@krizaka/ui 3.62.0 → 3.63.0
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 +13 -16
- package/dist/account-menu.d.ts +1 -1
- package/dist/account-menu.js +1 -1
- package/dist/account-settings.d.ts +1 -1
- package/dist/account-settings.js +1 -1
- package/dist/achievement.d.ts +2 -2
- package/dist/achievement.js +1 -1
- package/dist/achievement.js.map +1 -1
- package/dist/activity-feed.d.ts +1 -1
- package/dist/activity-feed.js.map +1 -1
- package/dist/app-shell.js.map +1 -1
- package/dist/auth-layout.d.ts +1 -1
- package/dist/auth-layout.js.map +1 -1
- package/dist/avatar/defaults.d.ts +2 -1
- package/dist/avatar/defaults.js.map +1 -1
- package/dist/{avatar-iajODANU.d.ts → avatar-BL2iG_Js.d.ts} +2 -1
- package/dist/avatar.d.ts +3 -2
- package/dist/avatar.js.map +1 -1
- package/dist/bird-plate.d.ts +1 -1
- package/dist/bird-plate.js +1 -1
- package/dist/chat.js +1 -1
- package/dist/choice-grid.d.ts +1 -1
- package/dist/choice-grid.js +1 -1
- package/dist/choice-grid.js.map +1 -1
- package/dist/{chunk-KB7OLYIJ.js → chunk-7AZ23BUX.js} +1 -1
- package/dist/chunk-7AZ23BUX.js.map +1 -0
- package/dist/{chunk-4E5IUZHR.js → chunk-B2HS5EAH.js} +1 -1
- package/dist/chunk-B2HS5EAH.js.map +1 -0
- package/dist/{chunk-MHUUNC5W.js → chunk-DRTIE44Z.js} +1 -1
- package/dist/chunk-DRTIE44Z.js.map +1 -0
- package/dist/{chunk-555LWYIN.js → chunk-EHTXLZSM.js} +1 -1
- package/dist/{chunk-555LWYIN.js.map → chunk-EHTXLZSM.js.map} +1 -1
- package/dist/{chunk-3RVFD3UX.js → chunk-PW2FVPTV.js} +1 -1
- package/dist/chunk-PW2FVPTV.js.map +1 -0
- package/dist/{chunk-MIMOTE4W.js → chunk-RCHKIOVV.js} +1 -1
- package/dist/chunk-RCHKIOVV.js.map +1 -0
- package/dist/{chunk-XVFQZ3ZG.js → chunk-TPITVAUW.js} +1 -1
- package/dist/{chunk-XVFQZ3ZG.js.map → chunk-TPITVAUW.js.map} +1 -1
- package/dist/{chunk-RBETQO2P.js → chunk-Y5YBTHVD.js} +9 -15
- package/dist/chunk-Y5YBTHVD.js.map +1 -0
- package/dist/continue-prompt.js +1 -1
- package/dist/dashboard-layout.js.map +1 -1
- package/dist/date-picker.d.ts +15 -15
- package/dist/detail-layout.js.map +1 -1
- package/dist/elephant.js.map +1 -1
- package/dist/engine-flow.d.ts +4 -4
- package/dist/engine-flow.js.map +1 -1
- package/dist/environment-notice.d.ts +110 -0
- package/dist/environment-notice.js +47 -0
- package/dist/environment-notice.js.map +1 -0
- package/dist/file-upload.d.ts +2 -2
- package/dist/filter-bar.d.ts +3 -3
- package/dist/flock.js +1 -1
- package/dist/{geometry-DZ4Q3hDQ.d.ts → geometry-DDlFDtiQ.d.ts} +3 -4
- package/dist/{geometry-DncHaYP8.d.ts → geometry-DuUQyHZ1.d.ts} +3 -4
- package/dist/goal-gauge.d.ts +1 -1
- package/dist/goal-gauge.js +1 -1
- package/dist/goal-gauge.js.map +1 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +1 -1
- package/dist/landing-page.d.ts +1 -1
- package/dist/landing-page.js.map +1 -1
- package/dist/loader.d.ts +1 -1
- package/dist/loader.js.map +1 -1
- package/dist/mascot-quote.d.ts +1 -1
- package/dist/mascot-quote.js +1 -1
- package/dist/mascot-state.js +1 -1
- package/dist/mascots.d.ts +2 -2
- package/dist/mascots.js +1 -1
- package/dist/match-dialog.js +1 -1
- package/dist/media-grid.d.ts +1 -0
- package/dist/media-grid.js +1 -1
- package/dist/native.d.ts +39 -10
- package/dist/native.js +905 -870
- package/dist/native.js.map +1 -1
- package/dist/nav-bar.d.ts +1 -1
- package/dist/nav-bar.js +2 -2
- package/dist/product-page.d.ts +1 -1
- package/dist/product-page.js.map +1 -1
- package/dist/profile-card.d.ts +1 -1
- package/dist/profile-card.js +1 -1
- package/dist/profile-card.js.map +1 -1
- package/dist/promise-card.js +1 -1
- package/dist/rail-nav.d.ts +4 -0
- package/dist/scroll-stage.d.ts +1 -1
- package/dist/scroll-stage.js +1 -1
- package/dist/scroll-stage.js.map +1 -1
- package/dist/site-cahier.d.ts +10 -2
- package/dist/site-cahier.js +8 -14
- package/dist/site-cahier.js.map +1 -1
- package/dist/site-footer.d.ts +1 -1
- package/dist/site-footer.js +2 -2
- package/dist/{sites-BKz1beUK.d.ts → sites-CEnywB89.d.ts} +10 -2
- package/dist/sites.d.ts +13 -5
- package/dist/sites.js +7 -13
- package/dist/sites.js.map +1 -1
- package/dist/stage-banner.d.ts +1 -1
- package/dist/stage-banner.js +1 -1
- package/dist/stage-banner.js.map +1 -1
- package/dist/status-page.d.ts +1 -1
- package/dist/status-page.js.map +1 -1
- package/dist/versus-card.js +1 -1
- package/dist/vertical-video.js +1 -1
- package/package.json +25 -13
- package/registry/account-menu.json +1 -1
- package/registry/account-settings.json +1 -1
- package/registry/achievement.json +8 -8
- package/registry/action-bar.json +1 -1
- package/registry/activity-feed.json +8 -8
- package/registry/agenda.json +1 -1
- package/registry/alert.json +1 -1
- package/registry/anatomy-plate.json +1 -1
- package/registry/app-header.json +3 -3
- package/registry/app-shell.json +10 -10
- package/registry/argument-card.json +1 -1
- package/registry/audio-player.json +6 -6
- package/registry/auth-layout.json +9 -9
- package/registry/avatar.json +8 -8
- package/registry/badge.json +1 -1
- package/registry/bird-plate.json +1 -1
- package/registry/button.json +1 -1
- package/registry/captcha.json +1 -1
- package/registry/card-grid.json +6 -6
- package/registry/card.json +1 -1
- package/registry/catalogue-page.json +1 -1
- package/registry/changelog-page.json +1 -1
- package/registry/chapter.json +1 -1
- package/registry/chat.json +3 -3
- package/registry/checkbox.json +1 -1
- package/registry/chip-link.json +1 -1
- package/registry/chip-row.json +1 -1
- package/registry/chip.json +1 -1
- package/registry/choice-grid.json +6 -6
- package/registry/code-block.json +1 -1
- package/registry/combobox.json +1 -1
- package/registry/command.json +1 -1
- package/registry/comparison-table.json +1 -1
- package/registry/component-page.json +1 -1
- package/registry/confirm-button.json +1 -1
- package/registry/contact-page.json +1 -1
- package/registry/continue-prompt.json +2 -2
- package/registry/countdown.json +1 -1
- package/registry/cover-hero.json +1 -1
- package/registry/cta-panel.json +1 -1
- package/registry/dashboard-layout.json +2 -2
- package/registry/data-table.json +1 -1
- package/registry/date-picker.json +2 -2
- package/registry/decision-list.json +1 -1
- package/registry/description-list.json +1 -1
- package/registry/detail-layout.json +6 -6
- package/registry/dialog.json +1 -1
- package/registry/docs-article-page.json +1 -1
- package/registry/docs-hub-page.json +3 -3
- package/registry/docs-layout.json +1 -1
- package/registry/docs-nav.json +1 -1
- package/registry/document-viewer.json +1 -1
- package/registry/doodle.json +1 -1
- package/registry/drop-overlay.json +1 -1
- package/registry/dropdown-menu.json +1 -1
- package/registry/elephant.json +7 -7
- package/registry/empty-state.json +2 -2
- package/registry/engine-flow.json +6 -6
- package/registry/environment-notice.json +270 -0
- package/registry/error-page.json +1 -1
- package/registry/examples/achievement/arcade.js +1 -1
- package/registry/examples/achievement/arcade.tsx +1 -1
- package/registry/examples/activity-feed/job-activity.tsx +1 -1
- package/registry/examples/app-shell/admin-console.js +1 -1
- package/registry/examples/app-shell/admin-console.tsx +2 -2
- package/registry/examples/app-shell/basic.js +1 -1
- package/registry/examples/app-shell/basic.tsx +1 -1
- package/registry/examples/app-shell/{orochia-studio.js → creator-studio.js} +6 -6
- package/registry/examples/app-shell/{orochia-studio.tsx → creator-studio.tsx} +4 -4
- package/registry/examples/audio-player/podcast.js +1 -1
- package/registry/examples/audio-player/podcast.tsx +1 -1
- package/registry/examples/audio-player/voice-note.js +1 -1
- package/registry/examples/audio-player/voice-note.tsx +1 -1
- package/registry/examples/auth-layout/onboarding.js +3 -3
- package/registry/examples/auth-layout/onboarding.tsx +3 -3
- package/registry/examples/auth-layout/sign-in.js +3 -3
- package/registry/examples/auth-layout/sign-in.tsx +3 -3
- package/registry/examples/avatar/default.js +1 -1
- package/registry/examples/avatar/default.tsx +1 -1
- package/registry/examples/card-grid/aligned.js +2 -2
- package/registry/examples/card-grid/aligned.tsx +2 -2
- package/registry/examples/card-grid/foundation.js +1 -2
- package/registry/examples/card-grid/foundation.tsx +1 -2
- package/registry/examples/card-grid/hover-quiet.js +1 -1
- package/registry/examples/card-grid/hover-quiet.tsx +1 -1
- package/registry/examples/card-grid/products.js +1 -1
- package/registry/examples/card-grid/products.tsx +1 -1
- package/registry/examples/choice-grid/line-up.js +1 -1
- package/registry/examples/choice-grid/line-up.tsx +1 -1
- package/registry/examples/detail-layout/checkout.js +1 -1
- package/registry/examples/detail-layout/checkout.tsx +2 -2
- package/registry/examples/detail-layout/video.js +1 -1
- package/registry/examples/detail-layout/video.tsx +2 -2
- package/registry/examples/docs-hub-page/krizaka.js +1 -1
- package/registry/examples/docs-hub-page/krizaka.tsx +1 -1
- package/registry/examples/empty-state/library.js +1 -1
- package/registry/examples/empty-state/library.tsx +1 -1
- package/registry/examples/engine-flow/calm.js +1 -1
- package/registry/examples/engine-flow/calm.tsx +1 -1
- package/registry/examples/engine-flow/compact.js +4 -4
- package/registry/examples/engine-flow/compact.tsx +4 -4
- package/registry/examples/engine-flow/radial.js +2 -6
- package/registry/examples/engine-flow/radial.tsx +1 -5
- package/registry/examples/environment-notice/development.js +15 -0
- package/registry/examples/environment-notice/development.tsx +13 -0
- package/registry/examples/environment-notice/native/development.d.ts +4 -0
- package/registry/examples/environment-notice/native/development.dark.png +0 -0
- package/registry/examples/environment-notice/native/development.js +21 -0
- package/registry/examples/environment-notice/native/development.light.png +0 -0
- package/registry/examples/environment-notice/native/development.tsx +17 -0
- package/registry/examples/environment-notice/staging.d.ts +4 -0
- package/registry/examples/environment-notice/staging.js +11 -0
- package/registry/examples/environment-notice/staging.tsx +6 -0
- package/registry/examples/force-update-screen/default.js +1 -1
- package/registry/examples/force-update-screen/default.tsx +1 -1
- package/registry/examples/force-update-screen/native/default.dark.png +0 -0
- package/registry/examples/force-update-screen/native/default.js +1 -1
- package/registry/examples/force-update-screen/native/default.light.png +0 -0
- package/registry/examples/force-update-screen/native/default.tsx +1 -1
- package/registry/examples/form/native/sign-up.js +2 -2
- package/registry/examples/form/native/sign-up.tsx +2 -2
- package/registry/examples/form/sign-up.js +1 -1
- package/registry/examples/form/sign-up.tsx +3 -3
- package/registry/examples/goal-gauge/arcade.js +1 -1
- package/registry/examples/goal-gauge/arcade.tsx +1 -1
- package/registry/examples/image-cropper/avatar.js +1 -1
- package/registry/examples/image-cropper/avatar.tsx +1 -1
- package/registry/examples/image-cropper/banner.js +1 -1
- package/registry/examples/image-cropper/banner.tsx +1 -1
- package/registry/examples/image-cropper/vertical-video.js +1 -2
- package/registry/examples/image-cropper/vertical-video.tsx +1 -3
- package/registry/examples/iso/creator-hero.d.ts +4 -0
- package/registry/examples/iso/{orochia-hero.js → creator-hero.js} +3 -3
- package/registry/examples/iso/{orochia-hero.tsx → creator-hero.tsx} +1 -1
- package/registry/examples/landing-page/krizaka.js +2 -2
- package/registry/examples/landing-page/krizaka.tsx +2 -2
- package/registry/examples/link-card/docs-hub.js +1 -1
- package/registry/examples/link-card/docs-hub.tsx +1 -1
- package/registry/examples/link-card/hover-quiet.js +1 -1
- package/registry/examples/link-card/hover-quiet.tsx +1 -1
- package/registry/examples/loader/branded.js +2 -2
- package/registry/examples/loader/branded.tsx +3 -3
- package/registry/examples/loader/native/branded.dark.png +0 -0
- package/registry/examples/loader/native/branded.js +1 -1
- package/registry/examples/loader/native/branded.light.png +0 -0
- package/registry/examples/loader/native/branded.tsx +2 -2
- package/registry/examples/longform-page/story.js +3 -3
- package/registry/examples/longform-page/story.tsx +3 -3
- package/registry/examples/marketing-layout/docs-hub.js +1 -1
- package/registry/examples/marketing-layout/docs-hub.tsx +1 -1
- package/registry/examples/mascots/flock.tsx +2 -2
- package/registry/examples/nav-bar/family-admin.js +5 -5
- package/registry/examples/nav-bar/family-admin.tsx +4 -4
- package/registry/examples/nav-bar/site.js +1 -1
- package/registry/examples/nav-bar/site.tsx +1 -1
- package/registry/examples/permission-prompt/native/blocked.dark.png +0 -0
- package/registry/examples/permission-prompt/native/blocked.js +1 -1
- package/registry/examples/permission-prompt/native/blocked.tsx +1 -1
- package/registry/examples/permission-prompt/native/camera.dark.png +0 -0
- package/registry/examples/permission-prompt/native/camera.js +1 -1
- package/registry/examples/permission-prompt/native/camera.light.png +0 -0
- package/registry/examples/permission-prompt/native/camera.tsx +1 -1
- package/registry/examples/profile-card/match.js +1 -1
- package/registry/examples/profile-card/match.tsx +1 -1
- package/registry/examples/promise-card/arcade.js +1 -1
- package/registry/examples/promise-card/arcade.tsx +1 -1
- package/registry/examples/pull-to-refresh/native/branded.dark.png +0 -0
- package/registry/examples/pull-to-refresh/native/branded.js +1 -1
- package/registry/examples/pull-to-refresh/native/branded.light.png +0 -0
- package/registry/examples/pull-to-refresh/native/branded.tsx +1 -1
- package/registry/examples/rail-nav/expandable.js +3 -3
- package/registry/examples/rail-nav/expandable.tsx +3 -3
- package/registry/examples/retro-tv/cabinet.js +1 -2
- package/registry/examples/retro-tv/cabinet.tsx +1 -3
- package/registry/examples/retro-tv/portable.js +1 -2
- package/registry/examples/retro-tv/portable.tsx +1 -3
- package/registry/examples/scroll-stage/arcade.js +1 -1
- package/registry/examples/scroll-stage/arcade.tsx +1 -1
- package/registry/examples/search-field/global.js +1 -1
- package/registry/examples/search-field/global.tsx +1 -1
- package/registry/examples/sites/french.js +1 -1
- package/registry/examples/sites/french.tsx +1 -1
- package/registry/examples/specimen-tag/wire.js +2 -2
- package/registry/examples/specimen-tag/wire.tsx +2 -2
- package/registry/examples/splash-handoff/native/default.dark.png +0 -0
- package/registry/examples/splash-handoff/native/default.js +1 -1
- package/registry/examples/splash-handoff/native/default.light.png +0 -0
- package/registry/examples/splash-handoff/native/default.tsx +1 -1
- package/registry/examples/split-view/messages.tsx +1 -1
- package/registry/examples/split-view/notifications.js +1 -1
- package/registry/examples/split-view/notifications.tsx +1 -1
- package/registry/examples/status-page/building.js +2 -2
- package/registry/examples/status-page/building.tsx +2 -2
- package/registry/examples/status-page/operational.js +1 -1
- package/registry/examples/status-page/operational.tsx +1 -1
- package/registry/examples/tab-bar/native/main-sections.tsx +1 -1
- package/registry/examples/tree-view/docs.js +1 -1
- package/registry/examples/tree-view/docs.tsx +1 -1
- package/registry/examples/video-player/default.js +1 -2
- package/registry/examples/video-player/default.tsx +1 -3
- package/registry/examples/video-player/gated.js +2 -3
- package/registry/examples/video-player/gated.tsx +2 -4
- package/registry/examples/video-player/native/default.dark.png +0 -0
- package/registry/examples/video-player/native/default.js +3 -3
- package/registry/examples/video-player/native/default.light.png +0 -0
- package/registry/examples/video-player/native/default.tsx +3 -3
- package/registry/examples/video-player/signed-source.js +2 -3
- package/registry/examples/video-player/signed-source.tsx +2 -4
- package/registry/examples/video-player/vertical.js +1 -2
- package/registry/examples/video-player/vertical.tsx +1 -3
- package/registry/examples/video-trimmer/filmstrip.js +10 -2
- package/registry/examples/video-trimmer/filmstrip.tsx +11 -2
- package/registry/examples/video-trimmer/playhead.js +8 -1
- package/registry/examples/video-trimmer/playhead.tsx +9 -1
- package/registry/field.json +1 -1
- package/registry/file-upload.json +2 -2
- package/registry/filter-bar.json +1 -1
- package/registry/flock.json +1 -1
- package/registry/footnote.json +1 -1
- package/registry/force-update-screen.json +4 -4
- package/registry/form.json +7 -7
- package/registry/gallery-page.json +1 -1
- package/registry/genui.json +2 -2
- package/registry/glossary-term.json +1 -1
- package/registry/glossary.json +1 -1
- package/registry/glow-card.json +1 -1
- package/registry/goal-gauge.json +6 -6
- package/registry/grade-stamp.json +1 -1
- package/registry/how-it-works-page.json +1 -1
- package/registry/image-cropper.json +5 -5
- package/registry/index.json +53 -24
- package/registry/iso.json +7 -7
- package/registry/kanban.json +3 -3
- package/registry/kbd.json +1 -1
- package/registry/kind-config-editor.json +1 -1
- package/registry/kpi-explained.json +2 -2
- package/registry/landing-page.json +6 -6
- package/registry/landscape.json +1 -1
- package/registry/language-switch.json +1 -1
- package/registry/legal-page.json +1 -1
- package/registry/link-card.json +4 -4
- package/registry/list.json +3 -3
- package/registry/loader.json +11 -11
- package/registry/longform-page.json +3 -3
- package/registry/maintenance-screen.json +1 -1
- package/registry/map.json +2 -2
- package/registry/markdown.json +1 -1
- package/registry/marketing-layout.json +2 -2
- package/registry/marquee.json +1 -1
- package/registry/mascot-quote.json +1 -1
- package/registry/mascot-state.json +1 -1
- package/registry/mascots.json +5 -5
- package/registry/match-dialog.json +1 -1
- package/registry/media-capture.json +1 -1
- package/registry/media-gallery.json +1 -1
- package/registry/media-grid.json +3 -3
- package/registry/meta-row.json +1 -1
- package/registry/meter.json +1 -1
- package/registry/nav-bar.json +9 -9
- package/registry/next-actions.json +1 -1
- package/registry/notification-preferences.json +3 -3
- package/registry/number-ticker.json +1 -1
- package/registry/onboarding.json +1 -1
- package/registry/opening-hours.json +1 -1
- package/registry/page-header.json +1 -1
- package/registry/page-hero.json +1 -1
- package/registry/page-index.json +1 -1
- package/registry/page.json +1 -1
- package/registry/pagination.json +1 -1
- package/registry/permission-prompt.json +3 -3
- package/registry/photo-grid.json +1 -1
- package/registry/pointer-light.json +1 -1
- package/registry/popover.json +1 -1
- package/registry/pricing-page.json +1 -1
- package/registry/product-page.json +6 -6
- package/registry/profile-card.json +7 -7
- package/registry/progress.json +1 -1
- package/registry/promise-card.json +3 -3
- package/registry/pull-to-refresh.json +2 -2
- package/registry/quota-meter.json +1 -1
- package/registry/radio-group.json +1 -1
- package/registry/rail-nav.json +10 -10
- package/registry/recipes.json +1 -1
- package/registry/retro-tv.json +4 -4
- package/registry/router.json +1 -1
- package/registry/scroll-stage.json +6 -6
- package/registry/search-field.json +3 -3
- package/registry/section-backdrop.json +1 -1
- package/registry/separator.json +1 -1
- package/registry/service-card.json +1 -1
- package/registry/settings-layout.json +1 -1
- package/registry/showcase.json +1 -1
- package/registry/signature.json +1 -1
- package/registry/site-cahier.json +1 -1
- package/registry/site-footer.json +7 -7
- package/registry/sites.json +4 -4
- package/registry/skeleton.json +1 -1
- package/registry/skip-link.json +1 -1
- package/registry/slider.json +1 -1
- package/registry/slot-picker.json +1 -1
- package/registry/slot.json +1 -1
- package/registry/specimen-tag.json +2 -2
- package/registry/speed-lines.json +1 -1
- package/registry/spinner.json +1 -1
- package/registry/splash-handoff.json +4 -4
- package/registry/split-view.json +4 -4
- package/registry/stage-banner.json +10 -6
- package/registry/stat.json +3 -3
- package/registry/status-chip.json +1 -1
- package/registry/status-page.json +9 -9
- package/registry/step-progress.json +1 -1
- package/registry/step-showcase.json +1 -1
- package/registry/stepper.json +1 -1
- package/registry/sticky-action.json +1 -1
- package/registry/stuck.json +1 -1
- package/registry/swipe-deck.json +1 -1
- package/registry/switch.json +1 -1
- package/registry/tab-bar.json +2 -2
- package/registry/tabs.json +1 -1
- package/registry/tag-input.json +1 -1
- package/registry/tag-selector.json +1 -1
- package/registry/taped-photo.json +1 -1
- package/registry/terminal-replay.json +1 -1
- package/registry/text-style.json +1 -1
- package/registry/theme.json +1 -1
- package/registry/toast.json +1 -1
- package/registry/toc.json +1 -1
- package/registry/tooltip.json +1 -1
- package/registry/tree-view.json +3 -3
- package/registry/update-prompt.json +1 -1
- package/registry/upload-queue.json +1 -1
- package/registry/verified-badge.json +1 -1
- package/registry/versus-card.json +1 -1
- package/registry/vertical-video.json +4 -4
- package/registry/video-player.json +7 -7
- package/registry/video-trimmer.json +6 -6
- package/registry/virtual.json +1 -1
- package/registry/wall.json +1 -1
- package/registry/waveform.json +1 -1
- package/skills/form/SKILL.md +1 -1
- package/skills/map/SKILL.md +2 -2
- package/dist/chunk-3RVFD3UX.js.map +0 -1
- package/dist/chunk-4E5IUZHR.js.map +0 -1
- package/dist/chunk-KB7OLYIJ.js.map +0 -1
- package/dist/chunk-MHUUNC5W.js.map +0 -1
- package/dist/chunk-MIMOTE4W.js.map +0 -1
- package/dist/chunk-RBETQO2P.js.map +0 -1
- /package/registry/examples/app-shell/{orochia-studio.d.ts → creator-studio.d.ts} +0 -0
- /package/registry/examples/{iso/orochia-hero.d.ts → environment-notice/development.d.ts} +0 -0
package/dist/native.js
CHANGED
|
@@ -2638,14 +2638,48 @@ var styles19 = StyleSheet19.create({
|
|
|
2638
2638
|
action: { marginTop: 8, flexDirection: "row", flexWrap: "wrap", justifyContent: "center", gap: 8 }
|
|
2639
2639
|
});
|
|
2640
2640
|
|
|
2641
|
-
// src/native/
|
|
2641
|
+
// src/native/environment-notice.tsx
|
|
2642
2642
|
import { Pressable as Pressable12, StyleSheet as StyleSheet20, View as View18 } from "react-native";
|
|
2643
2643
|
import { jsx as jsx22, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2644
|
+
var isProduction = (stage) => ["production", "prod"].includes((stage ?? "").trim().toLowerCase());
|
|
2645
|
+
function EnvironmentNotice({ stage, title, message, link, onLinkPress, style, ...props }) {
|
|
2646
|
+
const { theme } = useTheme();
|
|
2647
|
+
if (isProduction(stage)) return null;
|
|
2648
|
+
const content = { title, message, link };
|
|
2649
|
+
return /* @__PURE__ */ jsxs19(
|
|
2650
|
+
View18,
|
|
2651
|
+
{
|
|
2652
|
+
role: "region",
|
|
2653
|
+
"aria-label": content.title,
|
|
2654
|
+
...props,
|
|
2655
|
+
style: [styles20.band, { backgroundColor: theme.warningSoft, borderBottomColor: theme.warning }, style],
|
|
2656
|
+
children: [
|
|
2657
|
+
/* @__PURE__ */ jsx22(View18, { "aria-hidden": true, style: [styles20.dot, { backgroundColor: theme.warning }] }),
|
|
2658
|
+
/* @__PURE__ */ jsxs19(Txt, { variant: "caption", style: styles20.text, children: [
|
|
2659
|
+
/* @__PURE__ */ jsx22(Txt, { variant: "label", style: styles20.title, children: content.title }),
|
|
2660
|
+
" ",
|
|
2661
|
+
/* @__PURE__ */ jsx22(Txt, { variant: "caption", tone: "secondary", children: content.message })
|
|
2662
|
+
] }),
|
|
2663
|
+
content.link ? /* @__PURE__ */ jsx22(Pressable12, { role: "link", accessibilityLabel: content.link.label, onPress: onLinkPress, hitSlop: 8, children: /* @__PURE__ */ jsx22(Txt, { variant: "label", tone: "accent", children: content.link.label }) }) : null
|
|
2664
|
+
]
|
|
2665
|
+
}
|
|
2666
|
+
);
|
|
2667
|
+
}
|
|
2668
|
+
var styles20 = StyleSheet20.create({
|
|
2669
|
+
band: { minHeight: 36, flexDirection: "row", alignItems: "center", columnGap: 10, paddingHorizontal: 16, paddingVertical: 6, borderBottomWidth: StyleSheet20.hairlineWidth },
|
|
2670
|
+
dot: { width: 8, height: 8, borderRadius: 4 },
|
|
2671
|
+
text: { flex: 1 },
|
|
2672
|
+
title: { fontWeight: "600" }
|
|
2673
|
+
});
|
|
2674
|
+
|
|
2675
|
+
// src/native/fab.tsx
|
|
2676
|
+
import { Pressable as Pressable13, StyleSheet as StyleSheet21, View as View19 } from "react-native";
|
|
2677
|
+
import { jsx as jsx23, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2644
2678
|
function Fab({ label, icon, onPress, extended, placement = "end", offset = 0, style }) {
|
|
2645
2679
|
const { theme, insets, haptic } = useTheme();
|
|
2646
2680
|
const position = placement === "center" ? { alignSelf: "center" } : placement === "start" ? { left: 16 + insets.left } : { right: 16 + insets.right };
|
|
2647
|
-
return /* @__PURE__ */
|
|
2648
|
-
|
|
2681
|
+
return /* @__PURE__ */ jsx23(View19, { pointerEvents: "box-none", style: [styles21.layer, placement === "center" ? styles21.centre : null], children: /* @__PURE__ */ jsxs20(
|
|
2682
|
+
Pressable13,
|
|
2649
2683
|
{
|
|
2650
2684
|
role: "button",
|
|
2651
2685
|
"aria-label": label,
|
|
@@ -2654,20 +2688,20 @@ function Fab({ label, icon, onPress, extended, placement = "end", offset = 0, st
|
|
|
2654
2688
|
onPress();
|
|
2655
2689
|
},
|
|
2656
2690
|
style: ({ pressed }) => [
|
|
2657
|
-
|
|
2658
|
-
extended ?
|
|
2691
|
+
styles21.fab,
|
|
2692
|
+
extended ? styles21.extended : null,
|
|
2659
2693
|
position,
|
|
2660
2694
|
{ bottom: 16 + insets.bottom + offset, backgroundColor: pressed ? theme.accentHover : theme.accent, borderTopColor: theme.edgeOnFill, shadowColor: theme.scrimStrong },
|
|
2661
2695
|
style
|
|
2662
2696
|
],
|
|
2663
2697
|
children: [
|
|
2664
|
-
/* @__PURE__ */
|
|
2665
|
-
extended ? /* @__PURE__ */
|
|
2698
|
+
/* @__PURE__ */ jsx23(View19, { "aria-hidden": true, children: icon }),
|
|
2699
|
+
extended ? /* @__PURE__ */ jsx23(Txt, { variant: "label", tone: "onAccent", "aria-hidden": true, numberOfLines: 1, style: styles21.label, children: label }) : null
|
|
2666
2700
|
]
|
|
2667
2701
|
}
|
|
2668
2702
|
) });
|
|
2669
2703
|
}
|
|
2670
|
-
var
|
|
2704
|
+
var styles21 = StyleSheet21.create({
|
|
2671
2705
|
layer: { position: "absolute", top: 0, right: 0, bottom: 0, left: 0 },
|
|
2672
2706
|
centre: { alignItems: "center" },
|
|
2673
2707
|
fab: { borderTopWidth: 1, borderColor: "transparent", position: "absolute", minWidth: 56, height: 56, borderRadius: 28, alignItems: "center", justifyContent: "center", flexDirection: "row", gap: 8, shadowOpacity: 0.3, shadowRadius: 12, shadowOffset: { width: 0, height: 6 }, elevation: 6 },
|
|
@@ -2677,17 +2711,17 @@ var styles20 = StyleSheet20.create({
|
|
|
2677
2711
|
|
|
2678
2712
|
// src/native/field.tsx
|
|
2679
2713
|
import * as React16 from "react";
|
|
2680
|
-
import { StyleSheet as
|
|
2681
|
-
import { jsx as
|
|
2714
|
+
import { StyleSheet as StyleSheet22, Text as Text13, TextInput as TextInput4, View as View20 } from "react-native";
|
|
2715
|
+
import { jsx as jsx24, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2682
2716
|
function TextField({ label, hint, error, value, defaultValue, onValueChange, disabled, end, inputRef, style, multiline, onFocus, onBlur, ...props }) {
|
|
2683
2717
|
const { theme, radius: radius3 } = useTheme();
|
|
2684
2718
|
const [focused, setFocused] = React16.useState(false);
|
|
2685
2719
|
const caption = error ?? hint;
|
|
2686
2720
|
const border = error ? theme.danger : focused ? theme.accent : theme.borderDefault;
|
|
2687
|
-
return /* @__PURE__ */
|
|
2688
|
-
/* @__PURE__ */
|
|
2689
|
-
/* @__PURE__ */
|
|
2690
|
-
/* @__PURE__ */
|
|
2721
|
+
return /* @__PURE__ */ jsxs21(View20, { style: [styles22.root, disabled ? styles22.disabled : null, style], children: [
|
|
2722
|
+
/* @__PURE__ */ jsx24(Text13, { style: [styles22.label, { color: theme.textSecondary }], children: label }),
|
|
2723
|
+
/* @__PURE__ */ jsxs21(View20, { style: [styles22.frame, multiline ? styles22.multiline : null, { borderRadius: radius3.md, borderColor: border, backgroundColor: theme.surface2 }], children: [
|
|
2724
|
+
/* @__PURE__ */ jsx24(
|
|
2691
2725
|
TextInput4,
|
|
2692
2726
|
{
|
|
2693
2727
|
ref: inputRef,
|
|
@@ -2709,16 +2743,16 @@ function TextField({ label, hint, error, value, defaultValue, onValueChange, dis
|
|
|
2709
2743
|
setFocused(false);
|
|
2710
2744
|
onBlur?.(event);
|
|
2711
2745
|
},
|
|
2712
|
-
style: [
|
|
2746
|
+
style: [styles22.input, multiline ? styles22.inputMultiline : null, { color: theme.textPrimary }],
|
|
2713
2747
|
...props
|
|
2714
2748
|
}
|
|
2715
2749
|
),
|
|
2716
|
-
end ? /* @__PURE__ */
|
|
2750
|
+
end ? /* @__PURE__ */ jsx24(View20, { style: styles22.end, children: end }) : null
|
|
2717
2751
|
] }),
|
|
2718
|
-
caption ? /* @__PURE__ */
|
|
2752
|
+
caption ? /* @__PURE__ */ jsx24(Text13, { role: error ? "alert" : void 0, "aria-live": error ? "polite" : void 0, style: [styles22.caption, { color: error ? theme.dangerText : theme.textSecondary }], children: caption }) : null
|
|
2719
2753
|
] });
|
|
2720
2754
|
}
|
|
2721
|
-
var
|
|
2755
|
+
var styles22 = StyleSheet22.create({
|
|
2722
2756
|
root: { gap: 6, alignSelf: "stretch" },
|
|
2723
2757
|
label: { fontSize: 12, lineHeight: 16, fontWeight: "600" },
|
|
2724
2758
|
frame: { flexDirection: "row", alignItems: "center", minHeight: 44, paddingHorizontal: 12, borderWidth: 1 },
|
|
@@ -2731,22 +2765,22 @@ var styles21 = StyleSheet21.create({
|
|
|
2731
2765
|
});
|
|
2732
2766
|
|
|
2733
2767
|
// src/native/force-update-screen.tsx
|
|
2734
|
-
import { StyleSheet as
|
|
2735
|
-
import { jsx as
|
|
2768
|
+
import { StyleSheet as StyleSheet23, View as View21 } from "react-native";
|
|
2769
|
+
import { jsx as jsx25, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2736
2770
|
function ForceUpdateScreen({ title, message, versionLabel, mark, updateLabel, onUpdate, retryLabel, onRetry, fill = true, style }) {
|
|
2737
2771
|
const { theme } = useTheme();
|
|
2738
|
-
return /* @__PURE__ */
|
|
2739
|
-
mark ? /* @__PURE__ */
|
|
2740
|
-
/* @__PURE__ */
|
|
2741
|
-
message ? /* @__PURE__ */
|
|
2742
|
-
versionLabel ? /* @__PURE__ */
|
|
2743
|
-
/* @__PURE__ */
|
|
2744
|
-
/* @__PURE__ */
|
|
2745
|
-
retryLabel && onRetry ? /* @__PURE__ */
|
|
2772
|
+
return /* @__PURE__ */ jsxs22(View21, { style: [styles23.root, fill ? styles23.fill : null, { backgroundColor: theme.surface0 }, style], children: [
|
|
2773
|
+
mark ? /* @__PURE__ */ jsx25(View21, { accessibilityElementsHidden: true, importantForAccessibility: "no-hide-descendants", style: styles23.mark, children: mark }) : null,
|
|
2774
|
+
/* @__PURE__ */ jsx25(Txt, { variant: "title", style: styles23.centred, children: title }),
|
|
2775
|
+
message ? /* @__PURE__ */ jsx25(Txt, { tone: "secondary", style: styles23.centred, children: message }) : null,
|
|
2776
|
+
versionLabel ? /* @__PURE__ */ jsx25(Txt, { variant: "mono", tone: "secondary", style: styles23.centred, children: versionLabel }) : null,
|
|
2777
|
+
/* @__PURE__ */ jsxs22(View21, { style: styles23.actions, children: [
|
|
2778
|
+
/* @__PURE__ */ jsx25(Button, { label: updateLabel, variant: "primary", size: "lg", onPress: onUpdate }),
|
|
2779
|
+
retryLabel && onRetry ? /* @__PURE__ */ jsx25(Button, { label: retryLabel, variant: "ghost", onPress: onRetry }) : null
|
|
2746
2780
|
] })
|
|
2747
2781
|
] });
|
|
2748
2782
|
}
|
|
2749
|
-
var
|
|
2783
|
+
var styles23 = StyleSheet23.create({
|
|
2750
2784
|
root: { alignItems: "center", justifyContent: "center", gap: 12, padding: 24 },
|
|
2751
2785
|
fill: { flex: 1 },
|
|
2752
2786
|
mark: { width: 96, height: 96, alignItems: "center", justifyContent: "center" },
|
|
@@ -2755,7 +2789,7 @@ var styles22 = StyleSheet22.create({
|
|
|
2755
2789
|
});
|
|
2756
2790
|
|
|
2757
2791
|
// src/native/goal-gauge.tsx
|
|
2758
|
-
import { Animated as Animated7, StyleSheet as
|
|
2792
|
+
import { Animated as Animated7, StyleSheet as StyleSheet24, View as View22 } from "react-native";
|
|
2759
2793
|
|
|
2760
2794
|
// src/native/story-motion.ts
|
|
2761
2795
|
import * as React17 from "react";
|
|
@@ -2778,17 +2812,17 @@ function useEntrance(animated, delay = 0, duration = 700) {
|
|
|
2778
2812
|
}
|
|
2779
2813
|
|
|
2780
2814
|
// src/native/goal-gauge.tsx
|
|
2781
|
-
import { jsx as
|
|
2815
|
+
import { jsx as jsx26, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2782
2816
|
function Cell({ lit, animate, order, animated, arcade }) {
|
|
2783
2817
|
const { theme } = useTheme();
|
|
2784
2818
|
const t = useEntrance(animated && animate, 300 + order * 100, 350);
|
|
2785
2819
|
const spentOpacity = arcade ? 0.14 : 1;
|
|
2786
2820
|
const opacity = !animate ? 1 : lit ? t.interpolate({ inputRange: [0, 1], outputRange: [0.25, 1] }) : t.interpolate({ inputRange: [0, 1], outputRange: [1, arcade ? 0.14 : 1] });
|
|
2787
2821
|
const color = lit || arcade ? theme.accent : theme.surface3;
|
|
2788
|
-
return /* @__PURE__ */
|
|
2822
|
+
return /* @__PURE__ */ jsx26(
|
|
2789
2823
|
Animated7.View,
|
|
2790
2824
|
{
|
|
2791
|
-
style: [
|
|
2825
|
+
style: [styles24.cell, arcade ? styles24.cellArcade : null, { backgroundColor: color, opacity: lit || animate ? opacity : spentOpacity }]
|
|
2792
2826
|
}
|
|
2793
2827
|
);
|
|
2794
2828
|
}
|
|
@@ -2798,8 +2832,8 @@ function GoalGauge({ label, segments, value, valueText, mode = "fill", showLabel
|
|
|
2798
2832
|
const lit = Math.min(total, Math.max(0, Math.round(value ?? total)));
|
|
2799
2833
|
const words2 = valueText ?? `${lit} / ${total}`;
|
|
2800
2834
|
const arcade = variant === "arcade";
|
|
2801
|
-
return /* @__PURE__ */
|
|
2802
|
-
|
|
2835
|
+
return /* @__PURE__ */ jsxs23(
|
|
2836
|
+
View22,
|
|
2803
2837
|
{
|
|
2804
2838
|
accessible: true,
|
|
2805
2839
|
role: "meter",
|
|
@@ -2809,22 +2843,22 @@ function GoalGauge({ label, segments, value, valueText, mode = "fill", showLabel
|
|
|
2809
2843
|
"aria-valuenow": lit,
|
|
2810
2844
|
"aria-valuetext": words2,
|
|
2811
2845
|
...props,
|
|
2812
|
-
style: [
|
|
2846
|
+
style: [styles24.root, style],
|
|
2813
2847
|
children: [
|
|
2814
|
-
showLabel ? /* @__PURE__ */
|
|
2815
|
-
/* @__PURE__ */
|
|
2816
|
-
arcade ? null : /* @__PURE__ */
|
|
2848
|
+
showLabel ? /* @__PURE__ */ jsxs23(View22, { "aria-hidden": true, style: [styles24.head, arcade ? styles24.headArcade : null], children: [
|
|
2849
|
+
/* @__PURE__ */ jsx26(Txt, { variant: arcade ? "mono" : "caption", tone: "secondary", children: arcade ? label.toUpperCase() : label }),
|
|
2850
|
+
arcade ? null : /* @__PURE__ */ jsx26(Txt, { variant: "caption", children: words2 })
|
|
2817
2851
|
] }) : null,
|
|
2818
|
-
/* @__PURE__ */
|
|
2852
|
+
/* @__PURE__ */ jsx26(View22, { "aria-hidden": true, style: [styles24.cells, arcade ? [styles24.cellsArcade, { borderColor: theme.borderSubtle, backgroundColor: theme.surface1 }] : null], children: Array.from({ length: total }, (_, i) => {
|
|
2819
2853
|
const on = i < lit;
|
|
2820
2854
|
const animate = mode === "fill" ? on : !on;
|
|
2821
|
-
return /* @__PURE__ */
|
|
2855
|
+
return /* @__PURE__ */ jsx26(Cell, { lit: on, animate, order: mode === "fill" ? i : i - lit, animated, arcade }, i);
|
|
2822
2856
|
}) })
|
|
2823
2857
|
]
|
|
2824
2858
|
}
|
|
2825
2859
|
);
|
|
2826
2860
|
}
|
|
2827
|
-
var
|
|
2861
|
+
var styles24 = StyleSheet24.create({
|
|
2828
2862
|
root: { alignSelf: "stretch", gap: 8 },
|
|
2829
2863
|
head: { flexDirection: "row", justifyContent: "space-between", alignItems: "baseline", gap: 12 },
|
|
2830
2864
|
headArcade: { justifyContent: "center" },
|
|
@@ -2836,9 +2870,9 @@ var styles23 = StyleSheet23.create({
|
|
|
2836
2870
|
|
|
2837
2871
|
// src/native/header.tsx
|
|
2838
2872
|
import * as React18 from "react";
|
|
2839
|
-
import { Animated as Animated8, Pressable as
|
|
2873
|
+
import { Animated as Animated8, Pressable as Pressable14, StyleSheet as StyleSheet25, View as View23 } from "react-native";
|
|
2840
2874
|
import Svg9, { Path as Path7 } from "react-native-svg";
|
|
2841
|
-
import { jsx as
|
|
2875
|
+
import { jsx as jsx27, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
2842
2876
|
var BAR = 44;
|
|
2843
2877
|
var LARGE = 52;
|
|
2844
2878
|
function Header({ title, subtitle, scrollY, size = "large", backLabel, onBack, actions, children, style }) {
|
|
@@ -2851,21 +2885,21 @@ function Header({ title, subtitle, scrollY, size = "large", backLabel, onBack, a
|
|
|
2851
2885
|
const largeOpacity = progress.interpolate({ inputRange: [0, 0.7], outputRange: [1, 0], extrapolate: "clamp" });
|
|
2852
2886
|
const largeShift = reduce ? 0 : progress.interpolate({ inputRange: [0, 1], outputRange: [0, -10] });
|
|
2853
2887
|
const largeHeight = progress.interpolate({ inputRange: [0, 1], outputRange: [LARGE + (subtitle ? 18 : 0), 0] });
|
|
2854
|
-
return /* @__PURE__ */
|
|
2855
|
-
/* @__PURE__ */
|
|
2856
|
-
/* @__PURE__ */
|
|
2857
|
-
/* @__PURE__ */
|
|
2858
|
-
/* @__PURE__ */
|
|
2888
|
+
return /* @__PURE__ */ jsxs24(View23, { style: [{ paddingTop: insets.top, backgroundColor: theme.surface0 }, style], children: [
|
|
2889
|
+
/* @__PURE__ */ jsxs24(View23, { style: styles25.bar, children: [
|
|
2890
|
+
/* @__PURE__ */ jsx27(View23, { style: styles25.side, children: onBack && backLabel ? /* @__PURE__ */ jsxs24(Pressable14, { role: "button", "aria-label": backLabel, onPress: onBack, hitSlop: 8, style: styles25.back, children: [
|
|
2891
|
+
/* @__PURE__ */ jsx27(Svg9, { width: 22, height: 22, viewBox: "0 0 24 24", "aria-hidden": true, children: /* @__PURE__ */ jsx27(Path7, { d: "M15 5l-7 7 7 7", stroke: theme.accentText, strokeWidth: 2.4, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }) }),
|
|
2892
|
+
/* @__PURE__ */ jsx27(Txt, { variant: "label", tone: "accent", numberOfLines: 1, children: backLabel })
|
|
2859
2893
|
] }) : null }),
|
|
2860
|
-
/* @__PURE__ */
|
|
2861
|
-
/* @__PURE__ */
|
|
2894
|
+
/* @__PURE__ */ jsx27(Animated8.View, { style: [styles25.middle, { opacity: smallOpacity }], "aria-hidden": large, children: /* @__PURE__ */ jsx27(Txt, { variant: "label", numberOfLines: 1, role: large ? void 0 : "heading", children: title }) }),
|
|
2895
|
+
/* @__PURE__ */ jsx27(View23, { style: [styles25.side, styles25.right], children: actions })
|
|
2862
2896
|
] }),
|
|
2863
|
-
large ? /* @__PURE__ */
|
|
2864
|
-
/* @__PURE__ */
|
|
2865
|
-
subtitle ? /* @__PURE__ */
|
|
2897
|
+
large ? /* @__PURE__ */ jsx27(Animated8.View, { style: { height: largeHeight, overflow: "hidden" }, children: /* @__PURE__ */ jsxs24(Animated8.View, { style: [styles25.large, { opacity: largeOpacity, transform: [{ translateY: largeShift }] }], children: [
|
|
2898
|
+
/* @__PURE__ */ jsx27(Txt, { variant: "display", numberOfLines: 1, role: "heading", style: styles25.largeTitle, children: title }),
|
|
2899
|
+
subtitle ? /* @__PURE__ */ jsx27(Txt, { variant: "caption", tone: "secondary", children: subtitle }) : null
|
|
2866
2900
|
] }) }) : null,
|
|
2867
|
-
children ? /* @__PURE__ */
|
|
2868
|
-
/* @__PURE__ */
|
|
2901
|
+
children ? /* @__PURE__ */ jsx27(View23, { style: styles25.children, children }) : null,
|
|
2902
|
+
/* @__PURE__ */ jsx27(Animated8.View, { "aria-hidden": true, style: [styles25.rule, { backgroundColor: theme.borderSubtle, opacity: smallOpacity }] })
|
|
2869
2903
|
] });
|
|
2870
2904
|
}
|
|
2871
2905
|
function useCollapsingHeader() {
|
|
@@ -2873,7 +2907,7 @@ function useCollapsingHeader() {
|
|
|
2873
2907
|
const onScroll = React18.useMemo(() => Animated8.event([{ nativeEvent: { contentOffset: { y: scrollY } } }], { useNativeDriver: false }), [scrollY]);
|
|
2874
2908
|
return { scrollY, onScroll };
|
|
2875
2909
|
}
|
|
2876
|
-
var
|
|
2910
|
+
var styles25 = StyleSheet25.create({
|
|
2877
2911
|
bar: { height: BAR, flexDirection: "row", alignItems: "center", paddingHorizontal: 8 },
|
|
2878
2912
|
side: { flex: 1, flexDirection: "row", alignItems: "center" },
|
|
2879
2913
|
right: { justifyContent: "flex-end", gap: 4 },
|
|
@@ -2882,13 +2916,13 @@ var styles24 = StyleSheet24.create({
|
|
|
2882
2916
|
large: { paddingHorizontal: 16, paddingBottom: 6 },
|
|
2883
2917
|
largeTitle: { fontSize: 32, lineHeight: 40 },
|
|
2884
2918
|
children: { paddingHorizontal: 16, paddingBottom: 8 },
|
|
2885
|
-
rule: { height:
|
|
2919
|
+
rule: { height: StyleSheet25.hairlineWidth }
|
|
2886
2920
|
});
|
|
2887
2921
|
|
|
2888
2922
|
// src/native/image-viewer.tsx
|
|
2889
2923
|
import * as React19 from "react";
|
|
2890
|
-
import { AccessibilityInfo as AccessibilityInfo5, Animated as Animated9, Image as Image3, Modal as Modal3, PanResponder, Pressable as
|
|
2891
|
-
import { jsx as
|
|
2924
|
+
import { AccessibilityInfo as AccessibilityInfo5, Animated as Animated9, Image as Image3, Modal as Modal3, PanResponder, Pressable as Pressable15, StyleSheet as StyleSheet26, useWindowDimensions, View as View24 } from "react-native";
|
|
2925
|
+
import { jsx as jsx28, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
2892
2926
|
var MAX_SCALE = 4;
|
|
2893
2927
|
function ImageViewer({ images, index, onIndexChange, closeLabel, positionLabel = (n, total) => `${n} / ${total}` }) {
|
|
2894
2928
|
const { theme, insets, haptic } = useTheme();
|
|
@@ -2976,12 +3010,12 @@ function ImageViewer({ images, index, onIndexChange, closeLabel, positionLabel =
|
|
|
2976
3010
|
if (!open) return null;
|
|
2977
3011
|
const image = images[index];
|
|
2978
3012
|
const backdrop = dismiss2.interpolate({ inputRange: [0, height / 2], outputRange: [1, 0.3], extrapolate: "clamp" });
|
|
2979
|
-
return /* @__PURE__ */
|
|
2980
|
-
/* @__PURE__ */
|
|
2981
|
-
/* @__PURE__ */
|
|
2982
|
-
|
|
3013
|
+
return /* @__PURE__ */ jsxs25(Modal3, { ...modalName(image.alt), visible: true, transparent: true, animationType: reduce ? "none" : "fade", onRequestClose: () => onIndexChange(null), statusBarTranslucent: true, children: [
|
|
3014
|
+
/* @__PURE__ */ jsx28(Animated9.View, { style: [StyleSheet26.absoluteFill, { backgroundColor: theme.media, opacity: backdrop }] }),
|
|
3015
|
+
/* @__PURE__ */ jsx28(
|
|
3016
|
+
View24,
|
|
2983
3017
|
{
|
|
2984
|
-
style:
|
|
3018
|
+
style: StyleSheet26.absoluteFill,
|
|
2985
3019
|
accessible: true,
|
|
2986
3020
|
role: "img",
|
|
2987
3021
|
"aria-label": `${image.alt}, ${positionLabel(index + 1, images.length)}`,
|
|
@@ -2993,21 +3027,21 @@ function ImageViewer({ images, index, onIndexChange, closeLabel, positionLabel =
|
|
|
2993
3027
|
if (name === "escape") onIndexChange(null);
|
|
2994
3028
|
},
|
|
2995
3029
|
...responder.panHandlers,
|
|
2996
|
-
children: /* @__PURE__ */
|
|
3030
|
+
children: /* @__PURE__ */ jsx28(Animated9.View, { style: { width, height, transform: [{ translateX: pan.x }, { translateY: Animated9.add(pan.y, dismiss2) }, { scale }] }, children: /* @__PURE__ */ jsx28(Image3, { source: { uri: image.uri }, resizeMode: "contain", style: { width, height }, accessibilityIgnoresInvertColors: true }) })
|
|
2997
3031
|
}
|
|
2998
3032
|
),
|
|
2999
|
-
/* @__PURE__ */
|
|
3000
|
-
/* @__PURE__ */
|
|
3001
|
-
/* @__PURE__ */
|
|
3033
|
+
/* @__PURE__ */ jsxs25(View24, { pointerEvents: "box-none", style: [styles26.top, { paddingTop: insets.top + 8 }], children: [
|
|
3034
|
+
/* @__PURE__ */ jsx28(View24, { "aria-hidden": true, style: [styles26.counter, { backgroundColor: theme.scrimStrong }], children: /* @__PURE__ */ jsx28(Txt, { variant: "label", tone: "onMedia", children: positionLabel(index + 1, images.length) }) }),
|
|
3035
|
+
/* @__PURE__ */ jsx28(Pressable15, { role: "button", "aria-label": closeLabel, hitSlop: 12, onPress: () => onIndexChange(null), style: [styles26.close, { backgroundColor: theme.scrimStrong }], children: /* @__PURE__ */ jsx28(Txt, { tone: "onMedia", style: styles26.cross, "aria-hidden": true, children: "\xD7" }) })
|
|
3002
3036
|
] }),
|
|
3003
|
-
image.caption ? /* @__PURE__ */
|
|
3037
|
+
image.caption ? /* @__PURE__ */ jsx28(View24, { pointerEvents: "none", style: [styles26.caption, { paddingBottom: insets.bottom + 16, backgroundColor: theme.scrimStrong }], children: /* @__PURE__ */ jsx28(Txt, { tone: "onMedia", children: image.caption }) }) : null
|
|
3004
3038
|
] });
|
|
3005
3039
|
}
|
|
3006
3040
|
function prefetchNeighbours(images, index) {
|
|
3007
3041
|
if (index === null) return;
|
|
3008
3042
|
for (const i of [index - 1, index + 1]) if (images[i]) void Image3.prefetch(images[i].uri).catch(() => void 0);
|
|
3009
3043
|
}
|
|
3010
|
-
var
|
|
3044
|
+
var styles26 = StyleSheet26.create({
|
|
3011
3045
|
top: { position: "absolute", top: 0, left: 0, right: 0, flexDirection: "row", alignItems: "center", justifyContent: "space-between", paddingHorizontal: 16 },
|
|
3012
3046
|
counter: { paddingHorizontal: 10, paddingVertical: 4, borderRadius: 999 },
|
|
3013
3047
|
close: { width: 40, height: 40, borderRadius: 20, alignItems: "center", justifyContent: "center" },
|
|
@@ -3016,7 +3050,7 @@ var styles25 = StyleSheet25.create({
|
|
|
3016
3050
|
});
|
|
3017
3051
|
|
|
3018
3052
|
// src/native/KachizakaMark.tsx
|
|
3019
|
-
import { View as
|
|
3053
|
+
import { View as View25 } from "react-native";
|
|
3020
3054
|
import Svg10, { Circle as Circle4, Defs as Defs4, Path as Path8, RadialGradient as RadialGradient2, Stop as Stop4 } from "react-native-svg";
|
|
3021
3055
|
|
|
3022
3056
|
// src/marks/kachizaka-geometry.ts
|
|
@@ -3048,39 +3082,39 @@ var KACHIZAKA = {
|
|
|
3048
3082
|
};
|
|
3049
3083
|
|
|
3050
3084
|
// src/native/KachizakaMark.tsx
|
|
3051
|
-
import { jsx as
|
|
3085
|
+
import { jsx as jsx29, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3052
3086
|
function KachizakaMark({ size = 48, animated = true, title, neutral }) {
|
|
3053
3087
|
const { theme } = useTheme();
|
|
3054
3088
|
const { Animated: Animated29, layer, spinStyle, pulseStyle } = useMarkMotion(size, animated, KACHIZAKA.motion.spin * 1e3);
|
|
3055
3089
|
const id = useSvgId("kcm");
|
|
3056
3090
|
const viewBox = size < 48 ? KACHIZAKA.croppedViewBox : KACHIZAKA.viewBox;
|
|
3057
3091
|
const stroke = neutral ?? theme.textMuted;
|
|
3058
|
-
return /* @__PURE__ */
|
|
3059
|
-
/* @__PURE__ */
|
|
3060
|
-
/* @__PURE__ */
|
|
3061
|
-
/* @__PURE__ */
|
|
3062
|
-
/* @__PURE__ */
|
|
3092
|
+
return /* @__PURE__ */ jsxs26(View25, { style: { width: size, height: size }, ...markA11y(title), children: [
|
|
3093
|
+
/* @__PURE__ */ jsxs26(Svg10, { viewBox, style: layer, children: [
|
|
3094
|
+
/* @__PURE__ */ jsx29(Defs4, { children: /* @__PURE__ */ jsxs26(RadialGradient2, { id: `${id}g`, cx: "50%", cy: "50%", r: "50%", children: [
|
|
3095
|
+
/* @__PURE__ */ jsx29(Stop4, { offset: "0%", stopColor: KACHIZAKA.glow.color, stopOpacity: KACHIZAKA.glow.opacity }),
|
|
3096
|
+
/* @__PURE__ */ jsx29(Stop4, { offset: "100%", stopColor: KACHIZAKA.glow.color, stopOpacity: 0 })
|
|
3063
3097
|
] }) }),
|
|
3064
|
-
size >= 48 ? /* @__PURE__ */
|
|
3065
|
-
/* @__PURE__ */
|
|
3066
|
-
/* @__PURE__ */
|
|
3067
|
-
/* @__PURE__ */
|
|
3068
|
-
/* @__PURE__ */
|
|
3098
|
+
size >= 48 ? /* @__PURE__ */ jsx29(Circle4, { cx: KACHIZAKA.center, cy: KACHIZAKA.center, r: 190, fill: `url(#${id}g)` }) : null,
|
|
3099
|
+
/* @__PURE__ */ jsx29(Circle4, { cx: KACHIZAKA.center, cy: KACHIZAKA.center, r: KACHIZAKA.ring.r, stroke, strokeWidth: KACHIZAKA.ring.width, opacity: 0.35, fill: "none" }),
|
|
3100
|
+
/* @__PURE__ */ jsx29(Path8, { d: KACHIZAKA.steps.second, fill: KACHIZAKA.cobalt }),
|
|
3101
|
+
/* @__PURE__ */ jsx29(Path8, { d: KACHIZAKA.steps.first, fill: KACHIZAKA.gold }),
|
|
3102
|
+
/* @__PURE__ */ jsx29(Path8, { d: KACHIZAKA.steps.third, fill: KACHIZAKA.cobalt })
|
|
3069
3103
|
] }),
|
|
3070
|
-
/* @__PURE__ */
|
|
3071
|
-
/* @__PURE__ */
|
|
3072
|
-
/* @__PURE__ */
|
|
3104
|
+
/* @__PURE__ */ jsx29(Animated29.View, { style: [layer, spinStyle], children: /* @__PURE__ */ jsxs26(Svg10, { viewBox, style: layer, children: [
|
|
3105
|
+
/* @__PURE__ */ jsx29(Circle4, { cx: KACHIZAKA.center, cy: KACHIZAKA.center, r: KACHIZAKA.orbit.r, stroke, strokeWidth: KACHIZAKA.orbit.width, strokeDasharray: KACHIZAKA.orbit.dash, opacity: 0.6, fill: "none" }),
|
|
3106
|
+
/* @__PURE__ */ jsx29(Circle4, { cx: KACHIZAKA.ball.at[0], cy: KACHIZAKA.ball.at[1], r: KACHIZAKA.ball.r, fill: KACHIZAKA.gold })
|
|
3073
3107
|
] }) }),
|
|
3074
|
-
/* @__PURE__ */
|
|
3075
|
-
/* @__PURE__ */
|
|
3076
|
-
/* @__PURE__ */
|
|
3108
|
+
/* @__PURE__ */ jsx29(Animated29.View, { style: [layer, pulseStyle], children: /* @__PURE__ */ jsxs26(Svg10, { viewBox, style: layer, children: [
|
|
3109
|
+
/* @__PURE__ */ jsx29(Path8, { d: KACHIZAKA.node.d, fill: KACHIZAKA.gold, stroke: KACHIZAKA.gold, strokeWidth: KACHIZAKA.node.soften, strokeLinejoin: "round" }),
|
|
3110
|
+
/* @__PURE__ */ jsx29(Path8, { d: KACHIZAKA.node.light, fill: KACHIZAKA.highlight })
|
|
3077
3111
|
] }) })
|
|
3078
3112
|
] });
|
|
3079
3113
|
}
|
|
3080
3114
|
|
|
3081
3115
|
// src/native/kind-config-editor.tsx
|
|
3082
3116
|
import * as React22 from "react";
|
|
3083
|
-
import { StyleSheet as
|
|
3117
|
+
import { StyleSheet as StyleSheet29, View as View28 } from "react-native";
|
|
3084
3118
|
|
|
3085
3119
|
// src/kind-config-editor/labels.ts
|
|
3086
3120
|
var STATUS_TONES = ["neutral", "accent", "success", "warning", "danger"];
|
|
@@ -3229,8 +3263,8 @@ function addReason(set, from, to, label) {
|
|
|
3229
3263
|
|
|
3230
3264
|
// src/native/switch.tsx
|
|
3231
3265
|
import * as React20 from "react";
|
|
3232
|
-
import { Animated as Animated10, Pressable as
|
|
3233
|
-
import { jsx as
|
|
3266
|
+
import { Animated as Animated10, Pressable as Pressable16, StyleSheet as StyleSheet27, Text as Text14, View as View26 } from "react-native";
|
|
3267
|
+
import { jsx as jsx30, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3234
3268
|
var SIZES = { sm: { w: 40, h: 24, knob: 18 }, md: { w: 52, h: 32, knob: 26 } };
|
|
3235
3269
|
function Switch({ label, checked, defaultChecked = false, onCheckedChange, description, showLabel, size = "md", error, disabled, style }) {
|
|
3236
3270
|
const { theme, motion: motion3, haptic } = useTheme();
|
|
@@ -3247,11 +3281,11 @@ function Switch({ label, checked, defaultChecked = false, onCheckedChange, descr
|
|
|
3247
3281
|
if (checked === void 0) setOwn(!on);
|
|
3248
3282
|
onCheckedChange?.(!on);
|
|
3249
3283
|
};
|
|
3250
|
-
const track = /* @__PURE__ */
|
|
3284
|
+
const track = /* @__PURE__ */ jsx30(View26, { style: [styles27.track, { width: d.w, height: d.h, borderRadius: d.h / 2, backgroundColor: on ? theme.accent : theme.surface3, borderColor: error ? theme.danger : on ? theme.accent : theme.borderDefault }], children: /* @__PURE__ */ jsx30(
|
|
3251
3285
|
Animated10.View,
|
|
3252
3286
|
{
|
|
3253
3287
|
style: [
|
|
3254
|
-
|
|
3288
|
+
styles27.knob,
|
|
3255
3289
|
{
|
|
3256
3290
|
width: d.knob,
|
|
3257
3291
|
height: d.knob,
|
|
@@ -3273,19 +3307,19 @@ function Switch({ label, checked, defaultChecked = false, onCheckedChange, descr
|
|
|
3273
3307
|
onPress: toggle
|
|
3274
3308
|
};
|
|
3275
3309
|
if (!showLabel)
|
|
3276
|
-
return /* @__PURE__ */
|
|
3277
|
-
return /* @__PURE__ */
|
|
3278
|
-
/* @__PURE__ */
|
|
3279
|
-
/* @__PURE__ */
|
|
3280
|
-
/* @__PURE__ */
|
|
3281
|
-
description ? /* @__PURE__ */
|
|
3310
|
+
return /* @__PURE__ */ jsx30(Pressable16, { ...a11y, hitSlop: { top: (44 - d.h) / 2, bottom: (44 - d.h) / 2, left: Math.max(0, (44 - d.w) / 2), right: Math.max(0, (44 - d.w) / 2) }, style: [disabled ? styles27.disabled : null, style], children: track });
|
|
3311
|
+
return /* @__PURE__ */ jsxs27(View26, { style: [styles27.root, style], children: [
|
|
3312
|
+
/* @__PURE__ */ jsxs27(Pressable16, { ...a11y, style: [styles27.row, disabled ? styles27.disabled : null], children: [
|
|
3313
|
+
/* @__PURE__ */ jsxs27(View26, { style: styles27.text, children: [
|
|
3314
|
+
/* @__PURE__ */ jsx30(Text14, { style: [styles27.label, { color: theme.textPrimary }], children: label }),
|
|
3315
|
+
description ? /* @__PURE__ */ jsx30(Text14, { style: [styles27.description, { color: theme.textSecondary }], children: description }) : null
|
|
3282
3316
|
] }),
|
|
3283
3317
|
track
|
|
3284
3318
|
] }),
|
|
3285
|
-
error ? /* @__PURE__ */
|
|
3319
|
+
error ? /* @__PURE__ */ jsx30(Text14, { role: "alert", "aria-live": "polite", style: [styles27.description, { color: theme.dangerText }], children: error }) : null
|
|
3286
3320
|
] });
|
|
3287
3321
|
}
|
|
3288
|
-
var
|
|
3322
|
+
var styles27 = StyleSheet27.create({
|
|
3289
3323
|
root: { gap: 2, alignSelf: "stretch" },
|
|
3290
3324
|
row: { flexDirection: "row", alignItems: "center", gap: 16, minHeight: 48 },
|
|
3291
3325
|
text: { flex: 1, gap: 2 },
|
|
@@ -3298,26 +3332,26 @@ var styles26 = StyleSheet26.create({
|
|
|
3298
3332
|
|
|
3299
3333
|
// src/native/tag-chip.tsx
|
|
3300
3334
|
import * as React21 from "react";
|
|
3301
|
-
import { Pressable as
|
|
3335
|
+
import { Pressable as Pressable17, StyleSheet as StyleSheet28, View as View27 } from "react-native";
|
|
3302
3336
|
import Svg11, { Path as Path9 } from "react-native-svg";
|
|
3303
3337
|
|
|
3304
3338
|
// src/chip/markers.ts
|
|
3305
3339
|
var TAG_MARKERS = ["blue", "green", "amber", "red", "violet", "gray"];
|
|
3306
3340
|
|
|
3307
3341
|
// src/native/tag-chip.tsx
|
|
3308
|
-
import { jsx as
|
|
3342
|
+
import { jsx as jsx31, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
3309
3343
|
var ROLE = { blue: "tagBlue", green: "tagGreen", amber: "tagAmber", red: "tagRed", violet: "tagViolet", gray: "tagGray" };
|
|
3310
3344
|
function TagMarker({ marker, shape = "dot", style }) {
|
|
3311
3345
|
const { theme } = useTheme();
|
|
3312
3346
|
const color = theme[ROLE[marker]];
|
|
3313
3347
|
if (shape === "ribbon") {
|
|
3314
|
-
return /* @__PURE__ */
|
|
3348
|
+
return /* @__PURE__ */ jsx31(View27, { "aria-hidden": true, accessible: false, importantForAccessibility: "no-hide-descendants", style, children: /* @__PURE__ */ jsx31(Svg11, { width: 10, height: 14, viewBox: "0 0 10 14", children: /* @__PURE__ */ jsx31(Path9, { d: "M0 0H10V14L5 10L0 14Z", fill: color }) }) });
|
|
3315
3349
|
}
|
|
3316
|
-
return /* @__PURE__ */
|
|
3350
|
+
return /* @__PURE__ */ jsx31(View27, { "aria-hidden": true, accessible: false, importantForAccessibility: "no-hide-descendants", style: [styles28.dot, { backgroundColor: color }, style] });
|
|
3317
3351
|
}
|
|
3318
3352
|
function TagChip({ marker, shape, children, ...props }) {
|
|
3319
|
-
return /* @__PURE__ */
|
|
3320
|
-
/* @__PURE__ */
|
|
3353
|
+
return /* @__PURE__ */ jsxs28(Chip, { ...props, children: [
|
|
3354
|
+
/* @__PURE__ */ jsx31(TagMarker, { marker, shape }),
|
|
3321
3355
|
children
|
|
3322
3356
|
] });
|
|
3323
3357
|
}
|
|
@@ -3325,11 +3359,11 @@ function MarkerPicker({ label, names, value, defaultValue, onValueChange, marker
|
|
|
3325
3359
|
const { theme, haptic } = useTheme();
|
|
3326
3360
|
const [own, setOwn] = React21.useState(defaultValue);
|
|
3327
3361
|
const current = value ?? own;
|
|
3328
|
-
return /* @__PURE__ */
|
|
3362
|
+
return /* @__PURE__ */ jsx31(View27, { role: "radiogroup", "aria-label": label, style: [styles28.row, style], children: markers.map((marker) => {
|
|
3329
3363
|
const on = current === marker;
|
|
3330
3364
|
const color = theme[ROLE[marker]];
|
|
3331
|
-
return /* @__PURE__ */
|
|
3332
|
-
|
|
3365
|
+
return /* @__PURE__ */ jsx31(
|
|
3366
|
+
Pressable17,
|
|
3333
3367
|
{
|
|
3334
3368
|
role: "radio",
|
|
3335
3369
|
"aria-checked": on,
|
|
@@ -3342,14 +3376,14 @@ function MarkerPicker({ label, names, value, defaultValue, onValueChange, marker
|
|
|
3342
3376
|
if (value === void 0) setOwn(marker);
|
|
3343
3377
|
onValueChange?.(marker);
|
|
3344
3378
|
},
|
|
3345
|
-
style: [
|
|
3346
|
-
children: /* @__PURE__ */
|
|
3379
|
+
style: [styles28.swatch, { borderColor: on ? color : theme.borderDefault, backgroundColor: theme.surface1 }, disabled ? styles28.disabled : null],
|
|
3380
|
+
children: /* @__PURE__ */ jsx31(View27, { style: [styles28.dot, styles28.big, { backgroundColor: color }], children: on ? /* @__PURE__ */ jsx31(Svg11, { width: 12, height: 12, viewBox: "0 0 24 24", "aria-hidden": true, children: /* @__PURE__ */ jsx31(Path9, { d: "M20 6 9 17l-5-5", stroke: theme.surface0, strokeWidth: 4, strokeLinecap: "round", strokeLinejoin: "round", fill: "none" }) }) : null })
|
|
3347
3381
|
},
|
|
3348
3382
|
marker
|
|
3349
3383
|
);
|
|
3350
3384
|
}) });
|
|
3351
3385
|
}
|
|
3352
|
-
var
|
|
3386
|
+
var styles28 = StyleSheet28.create({
|
|
3353
3387
|
dot: { width: 10, height: 10, borderRadius: 5 },
|
|
3354
3388
|
big: { width: 18, height: 18, borderRadius: 9, alignItems: "center", justifyContent: "center" },
|
|
3355
3389
|
row: { flexDirection: "row", flexWrap: "wrap", gap: 8, alignItems: "center" },
|
|
@@ -3358,16 +3392,16 @@ var styles27 = StyleSheet27.create({
|
|
|
3358
3392
|
});
|
|
3359
3393
|
|
|
3360
3394
|
// src/native/kind-config-editor.tsx
|
|
3361
|
-
import { Fragment as Fragment6, jsx as
|
|
3395
|
+
import { Fragment as Fragment6, jsx as jsx32, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3362
3396
|
function Problems({ title, problems }) {
|
|
3363
3397
|
const { theme, radius: radius3 } = useTheme();
|
|
3364
3398
|
if (!problems || problems.length === 0) return null;
|
|
3365
|
-
return /* @__PURE__ */
|
|
3366
|
-
/* @__PURE__ */
|
|
3367
|
-
problems.map((problem) => /* @__PURE__ */
|
|
3399
|
+
return /* @__PURE__ */ jsxs29(View28, { role: "alert", style: [styles29.problems, { borderColor: theme.danger, backgroundColor: theme.dangerSoft, borderRadius: radius3.md }], children: [
|
|
3400
|
+
/* @__PURE__ */ jsx32(Txt, { variant: "label", tone: "danger", children: title }),
|
|
3401
|
+
problems.map((problem) => /* @__PURE__ */ jsx32(Txt, { variant: "caption", children: `\u2022 ${problem}` }, problem))
|
|
3368
3402
|
] });
|
|
3369
3403
|
}
|
|
3370
|
-
var Glyph = ({ children }) => /* @__PURE__ */
|
|
3404
|
+
var Glyph = ({ children }) => /* @__PURE__ */ jsx32(Txt, { variant: "label", "aria-hidden": true, children });
|
|
3371
3405
|
function TagSetEditor({ value, onChange, variant, roles, problems, labels: given, disabled }) {
|
|
3372
3406
|
const labels = { ...tagSetEditorLabels, ...given, markerNames: { ...tagSetEditorLabels.markerNames, ...given?.markerNames } };
|
|
3373
3407
|
const presets = value.presets[variant] ?? [];
|
|
@@ -3380,16 +3414,16 @@ function TagSetEditor({ value, onChange, variant, roles, problems, labels: given
|
|
|
3380
3414
|
onChange(next);
|
|
3381
3415
|
setDraft("");
|
|
3382
3416
|
};
|
|
3383
|
-
return /* @__PURE__ */
|
|
3384
|
-
/* @__PURE__ */
|
|
3385
|
-
/* @__PURE__ */
|
|
3386
|
-
presets.length === 0 ? /* @__PURE__ */
|
|
3417
|
+
return /* @__PURE__ */ jsxs29(View28, { style: styles29.root, children: [
|
|
3418
|
+
/* @__PURE__ */ jsx32(Problems, { title: labels.problems, problems }),
|
|
3419
|
+
/* @__PURE__ */ jsx32(Txt, { variant: "title", children: labels.presets }),
|
|
3420
|
+
presets.length === 0 ? /* @__PURE__ */ jsx32(Txt, { tone: "secondary", children: labels.empty }) : null,
|
|
3387
3421
|
presets.map((preset, index) => {
|
|
3388
3422
|
const shown = preset.name || String(index + 1);
|
|
3389
|
-
return /* @__PURE__ */
|
|
3390
|
-
/* @__PURE__ */
|
|
3391
|
-
/* @__PURE__ */
|
|
3392
|
-
/* @__PURE__ */
|
|
3423
|
+
return /* @__PURE__ */ jsxs29(View28, { style: styles29.card, children: [
|
|
3424
|
+
/* @__PURE__ */ jsxs29(View28, { style: styles29.line, children: [
|
|
3425
|
+
/* @__PURE__ */ jsx32(TagMarker, { marker: preset.marker }),
|
|
3426
|
+
/* @__PURE__ */ jsx32(
|
|
3393
3427
|
TextField,
|
|
3394
3428
|
{
|
|
3395
3429
|
label: labels.name(index + 1),
|
|
@@ -3397,28 +3431,28 @@ function TagSetEditor({ value, onChange, variant, roles, problems, labels: given
|
|
|
3397
3431
|
disabled,
|
|
3398
3432
|
error: twins.has(index) ? labels.duplicate : void 0,
|
|
3399
3433
|
onValueChange: (name) => onChange(renamePreset(value, variant, index, name)),
|
|
3400
|
-
style:
|
|
3434
|
+
style: styles29.grow
|
|
3401
3435
|
}
|
|
3402
3436
|
)
|
|
3403
3437
|
] }),
|
|
3404
|
-
/* @__PURE__ */
|
|
3405
|
-
/* @__PURE__ */
|
|
3406
|
-
/* @__PURE__ */
|
|
3407
|
-
/* @__PURE__ */
|
|
3408
|
-
/* @__PURE__ */
|
|
3438
|
+
/* @__PURE__ */ jsx32(MarkerPicker, { label: labels.marker(shown), names: labels.markerNames, value: preset.marker, disabled, onValueChange: (marker) => onChange(recolorPreset(value, variant, index, marker)) }),
|
|
3439
|
+
/* @__PURE__ */ jsxs29(View28, { style: styles29.line, children: [
|
|
3440
|
+
/* @__PURE__ */ jsx32(IconButton, { variant: "ghost", size: "sm", label: labels.moveUp(shown), icon: /* @__PURE__ */ jsx32(Glyph, { children: "\u2191" }), disabled: disabled || index === 0, onPress: () => onChange(movePreset(value, variant, index, index - 1)) }),
|
|
3441
|
+
/* @__PURE__ */ jsx32(IconButton, { variant: "ghost", size: "sm", label: labels.moveDown(shown), icon: /* @__PURE__ */ jsx32(Glyph, { children: "\u2193" }), disabled: disabled || index === presets.length - 1, onPress: () => onChange(movePreset(value, variant, index, index + 1)) }),
|
|
3442
|
+
/* @__PURE__ */ jsx32(IconButton, { variant: "ghost", size: "sm", label: labels.remove(shown), icon: /* @__PURE__ */ jsx32(Glyph, { children: "\xD7" }), disabled, onPress: () => onChange(removePreset(value, variant, index)) })
|
|
3409
3443
|
] })
|
|
3410
3444
|
] }, index);
|
|
3411
3445
|
}),
|
|
3412
|
-
/* @__PURE__ */
|
|
3413
|
-
/* @__PURE__ */
|
|
3414
|
-
/* @__PURE__ */
|
|
3415
|
-
/* @__PURE__ */
|
|
3446
|
+
/* @__PURE__ */ jsxs29(View28, { style: styles29.card, children: [
|
|
3447
|
+
/* @__PURE__ */ jsx32(TextField, { label: labels.add, value: draft, maxLength: 80, disabled, onValueChange: setDraft, onSubmitEditing: add, returnKeyType: "done" }),
|
|
3448
|
+
/* @__PURE__ */ jsx32(MarkerPicker, { label: labels.marker(draft.trim() || labels.add), names: labels.markerNames, value: draftMarker, disabled, onValueChange: setDraftMarker }),
|
|
3449
|
+
/* @__PURE__ */ jsx32(Button, { label: labels.addButton, size: "sm", disabled: disabled || !draft.trim(), onPress: add })
|
|
3416
3450
|
] }),
|
|
3417
|
-
/* @__PURE__ */
|
|
3418
|
-
/* @__PURE__ */
|
|
3419
|
-
/* @__PURE__ */
|
|
3420
|
-
/* @__PURE__ */
|
|
3421
|
-
/* @__PURE__ */
|
|
3451
|
+
/* @__PURE__ */ jsx32(Txt, { variant: "label", children: labels.writers }),
|
|
3452
|
+
/* @__PURE__ */ jsx32(Txt, { variant: "caption", tone: "secondary", children: labels.writersHint }),
|
|
3453
|
+
/* @__PURE__ */ jsx32(Chip.Group, { type: "multiple", size: "sm", "aria-label": labels.writers, value: value.writers, disabled, onValueChange: (writers) => onChange({ ...value, writers }), children: roles.map((role) => /* @__PURE__ */ jsx32(Chip, { value: role.key, children: role.label }, role.key)) }),
|
|
3454
|
+
/* @__PURE__ */ jsx32(Switch, { showLabel: true, label: labels.userTags, description: labels.userTagsHint, checked: value.userTags, disabled, onCheckedChange: (userTags) => onChange({ ...value, userTags }) }),
|
|
3455
|
+
/* @__PURE__ */ jsx32(
|
|
3422
3456
|
TextField,
|
|
3423
3457
|
{
|
|
3424
3458
|
label: labels.max,
|
|
@@ -3441,21 +3475,21 @@ function StatusSetEditor({ value, onChange, roles, locale = "en", problems, labe
|
|
|
3441
3475
|
const open = chosen && value.states.some((x) => x.key === chosen.from) && value.states.some((x) => x.key === chosen.to) ? chosen : null;
|
|
3442
3476
|
const detail = open ? transitionOf(value, open.from, open.to) : void 0;
|
|
3443
3477
|
if (value.mode === "derived") {
|
|
3444
|
-
return /* @__PURE__ */
|
|
3445
|
-
/* @__PURE__ */
|
|
3446
|
-
/* @__PURE__ */
|
|
3447
|
-
value.states.map((state) => /* @__PURE__ */
|
|
3478
|
+
return /* @__PURE__ */ jsxs29(View28, { style: styles29.root, children: [
|
|
3479
|
+
/* @__PURE__ */ jsx32(Problems, { title: labels.problems, problems }),
|
|
3480
|
+
/* @__PURE__ */ jsx32(Txt, { tone: "secondary", children: labels.derived }),
|
|
3481
|
+
value.states.map((state) => /* @__PURE__ */ jsx32(Txt, { children: state.label[locale] }, state.key))
|
|
3448
3482
|
] });
|
|
3449
3483
|
}
|
|
3450
|
-
return /* @__PURE__ */
|
|
3451
|
-
/* @__PURE__ */
|
|
3452
|
-
/* @__PURE__ */
|
|
3484
|
+
return /* @__PURE__ */ jsxs29(View28, { style: styles29.root, children: [
|
|
3485
|
+
/* @__PURE__ */ jsx32(Problems, { title: labels.problems, problems }),
|
|
3486
|
+
/* @__PURE__ */ jsx32(Txt, { variant: "title", children: labels.states }),
|
|
3453
3487
|
value.states.map((state, index) => {
|
|
3454
3488
|
const n = index + 1;
|
|
3455
3489
|
const isInitial = value.initial === state.key;
|
|
3456
3490
|
const name = state.label[locale] || String(n);
|
|
3457
|
-
return /* @__PURE__ */
|
|
3458
|
-
["fr", "en"].map((lang) => /* @__PURE__ */
|
|
3491
|
+
return /* @__PURE__ */ jsxs29(View28, { style: styles29.card, children: [
|
|
3492
|
+
["fr", "en"].map((lang) => /* @__PURE__ */ jsx32(
|
|
3459
3493
|
TextField,
|
|
3460
3494
|
{
|
|
3461
3495
|
label: labels.stateLabel(labels.languages[lang], n),
|
|
@@ -3467,7 +3501,7 @@ function StatusSetEditor({ value, onChange, roles, locale = "en", problems, labe
|
|
|
3467
3501
|
},
|
|
3468
3502
|
lang
|
|
3469
3503
|
)),
|
|
3470
|
-
/* @__PURE__ */
|
|
3504
|
+
/* @__PURE__ */ jsx32(
|
|
3471
3505
|
Select,
|
|
3472
3506
|
{
|
|
3473
3507
|
label: labels.tone(n),
|
|
@@ -3477,31 +3511,31 @@ function StatusSetEditor({ value, onChange, roles, locale = "en", problems, labe
|
|
|
3477
3511
|
onValueChange: (tone3) => onChange(setStateTone(value, state.key, tone3))
|
|
3478
3512
|
}
|
|
3479
3513
|
),
|
|
3480
|
-
/* @__PURE__ */
|
|
3481
|
-
/* @__PURE__ */
|
|
3482
|
-
/* @__PURE__ */
|
|
3483
|
-
/* @__PURE__ */
|
|
3484
|
-
/* @__PURE__ */
|
|
3485
|
-
/* @__PURE__ */
|
|
3514
|
+
/* @__PURE__ */ jsx32(Switch, { showLabel: true, size: "sm", label: labels.final(n), description: isInitial ? labels.initialNotFinal : labels.finalHint, checked: Boolean(state.final), disabled: disabled || isInitial, onCheckedChange: (final) => onChange(setFinal(value, state.key, final)) }),
|
|
3515
|
+
/* @__PURE__ */ jsx32(Chip, { selected: isInitial, disabled: disabled || Boolean(state.final), "aria-label": labels.initial(n), onSelectedChange: () => onChange(setInitial(value, state.key)), children: labels.initial(n) }),
|
|
3516
|
+
/* @__PURE__ */ jsxs29(View28, { style: styles29.line, children: [
|
|
3517
|
+
/* @__PURE__ */ jsx32(IconButton, { variant: "ghost", size: "sm", label: labels.moveUp(name), icon: /* @__PURE__ */ jsx32(Glyph, { children: "\u2191" }), disabled: disabled || index === 0, onPress: () => onChange(moveState(value, index, index - 1)) }),
|
|
3518
|
+
/* @__PURE__ */ jsx32(IconButton, { variant: "ghost", size: "sm", label: labels.moveDown(name), icon: /* @__PURE__ */ jsx32(Glyph, { children: "\u2193" }), disabled: disabled || index === value.states.length - 1, onPress: () => onChange(moveState(value, index, index + 1)) }),
|
|
3519
|
+
/* @__PURE__ */ jsx32(IconButton, { variant: "ghost", size: "sm", label: labels.remove(name), icon: /* @__PURE__ */ jsx32(Glyph, { children: "\xD7" }), disabled: disabled || value.states.length <= 2, onPress: () => onChange(removeState(value, state.key)) })
|
|
3486
3520
|
] })
|
|
3487
3521
|
] }, state.key);
|
|
3488
3522
|
}),
|
|
3489
|
-
/* @__PURE__ */
|
|
3490
|
-
/* @__PURE__ */
|
|
3491
|
-
/* @__PURE__ */
|
|
3492
|
-
value.states.map((from) => /* @__PURE__ */
|
|
3493
|
-
/* @__PURE__ */
|
|
3494
|
-
from.final ? /* @__PURE__ */
|
|
3523
|
+
/* @__PURE__ */ jsx32(Button, { label: labels.addState, size: "sm", disabled: disabled || value.states.length >= 12, onPress: () => onChange(addState(value, labels.newState)) }),
|
|
3524
|
+
/* @__PURE__ */ jsx32(Txt, { variant: "title", children: labels.moves }),
|
|
3525
|
+
/* @__PURE__ */ jsx32(Txt, { variant: "caption", tone: "secondary", children: labels.movesHint }),
|
|
3526
|
+
value.states.map((from) => /* @__PURE__ */ jsxs29(View28, { role: "group", "aria-label": labels.from(nameOf(from.key)), style: styles29.card, children: [
|
|
3527
|
+
/* @__PURE__ */ jsx32(Txt, { variant: "label", children: nameOf(from.key) }),
|
|
3528
|
+
from.final ? /* @__PURE__ */ jsx32(Txt, { variant: "caption", tone: "secondary", children: labels.noWayOut }) : /* @__PURE__ */ jsx32(View28, { style: styles29.wrap, children: value.states.filter((to) => to.key !== from.key).map((to) => {
|
|
3495
3529
|
const move2 = transitionOf(value, from.key, to.key);
|
|
3496
3530
|
const summary = move2 ? move2.roles.map(roleLabel).join(", ") : labels.none;
|
|
3497
3531
|
const on = open?.from === from.key && open.to === to.key;
|
|
3498
|
-
return /* @__PURE__ */
|
|
3532
|
+
return /* @__PURE__ */ jsx32(Chip, { selected: on, disabled, "aria-label": labels.move(nameOf(from.key), nameOf(to.key), summary), onSelectedChange: () => setChosen(on ? null : { from: from.key, to: to.key }), children: `\u2192 ${nameOf(to.key)} \xB7 ${summary}` }, to.key);
|
|
3499
3533
|
}) })
|
|
3500
3534
|
] }, from.key)),
|
|
3501
|
-
open ? /* @__PURE__ */
|
|
3502
|
-
/* @__PURE__ */
|
|
3503
|
-
/* @__PURE__ */
|
|
3504
|
-
/* @__PURE__ */
|
|
3535
|
+
open ? /* @__PURE__ */ jsxs29(View28, { role: "group", "aria-label": labels.moveDetail(nameOf(open.from), nameOf(open.to)), style: styles29.card, children: [
|
|
3536
|
+
/* @__PURE__ */ jsx32(Txt, { variant: "label", children: labels.moveDetail(nameOf(open.from), nameOf(open.to)) }),
|
|
3537
|
+
/* @__PURE__ */ jsx32(Txt, { variant: "caption", tone: "secondary", children: labels.roles }),
|
|
3538
|
+
/* @__PURE__ */ jsx32(
|
|
3505
3539
|
Chip.Group,
|
|
3506
3540
|
{
|
|
3507
3541
|
type: "multiple",
|
|
@@ -3512,14 +3546,14 @@ function StatusSetEditor({ value, onChange, roles, locale = "en", problems, labe
|
|
|
3512
3546
|
onValueChange: (next) => {
|
|
3513
3547
|
onChange(setTransitionRoles(value, open.from, open.to, next));
|
|
3514
3548
|
},
|
|
3515
|
-
children: roles.map((role) => /* @__PURE__ */
|
|
3549
|
+
children: roles.map((role) => /* @__PURE__ */ jsx32(Chip, { value: role.key, children: role.label }, role.key))
|
|
3516
3550
|
}
|
|
3517
3551
|
),
|
|
3518
|
-
detail ? /* @__PURE__ */
|
|
3519
|
-
/* @__PURE__ */
|
|
3520
|
-
/* @__PURE__ */
|
|
3521
|
-
(detail?.reasons ?? []).map((reason, at) => /* @__PURE__ */
|
|
3522
|
-
["fr", "en"].map((lang) => /* @__PURE__ */
|
|
3552
|
+
detail ? /* @__PURE__ */ jsxs29(Fragment6, { children: [
|
|
3553
|
+
/* @__PURE__ */ jsx32(Switch, { showLabel: true, size: "sm", label: labels.confirm, checked: Boolean(detail?.confirm), disabled, onCheckedChange: (on) => onChange(setTransitionConfirm(value, open.from, open.to, on)) }),
|
|
3554
|
+
/* @__PURE__ */ jsx32(Txt, { variant: "caption", tone: "secondary", children: labels.reasons }),
|
|
3555
|
+
(detail?.reasons ?? []).map((reason, at) => /* @__PURE__ */ jsxs29(View28, { style: styles29.card, children: [
|
|
3556
|
+
["fr", "en"].map((lang) => /* @__PURE__ */ jsx32(
|
|
3523
3557
|
TextField,
|
|
3524
3558
|
{
|
|
3525
3559
|
label: labels.reasonLabel(labels.languages[lang], at + 1),
|
|
@@ -3530,14 +3564,14 @@ function StatusSetEditor({ value, onChange, roles, locale = "en", problems, labe
|
|
|
3530
3564
|
},
|
|
3531
3565
|
lang
|
|
3532
3566
|
)),
|
|
3533
|
-
/* @__PURE__ */
|
|
3567
|
+
/* @__PURE__ */ jsx32(IconButton, { variant: "ghost", size: "sm", label: labels.removeReason(at + 1), icon: /* @__PURE__ */ jsx32(Glyph, { children: "\xD7" }), disabled, onPress: () => onChange(setTransitionReasons(value, open.from, open.to, (detail?.reasons ?? []).filter((r) => r.key !== reason.key))) })
|
|
3534
3568
|
] }, reason.key)),
|
|
3535
|
-
/* @__PURE__ */
|
|
3569
|
+
/* @__PURE__ */ jsx32(Button, { label: labels.addReason, size: "sm", disabled: disabled || (detail?.reasons?.length ?? 0) >= 12, onPress: () => onChange(addReason(value, open.from, open.to, { fr: "", en: "" })) })
|
|
3536
3570
|
] }) : null
|
|
3537
3571
|
] }) : null
|
|
3538
3572
|
] });
|
|
3539
3573
|
}
|
|
3540
|
-
var
|
|
3574
|
+
var styles29 = StyleSheet29.create({
|
|
3541
3575
|
root: { gap: 12 },
|
|
3542
3576
|
card: { gap: 8 },
|
|
3543
3577
|
line: { flexDirection: "row", alignItems: "center", gap: 8 },
|
|
@@ -3547,7 +3581,7 @@ var styles28 = StyleSheet28.create({
|
|
|
3547
3581
|
});
|
|
3548
3582
|
|
|
3549
3583
|
// src/native/KrizakaMark.tsx
|
|
3550
|
-
import { View as
|
|
3584
|
+
import { View as View29 } from "react-native";
|
|
3551
3585
|
import Svg12, { Circle as Circle5, Defs as Defs5, G as Group, LinearGradient as LinearGradient3, Path as Path10, RadialGradient as RadialGradient3, Stop as Stop5 } from "react-native-svg";
|
|
3552
3586
|
|
|
3553
3587
|
// src/marks/krizaka-geometry.ts
|
|
@@ -3570,39 +3604,39 @@ var KRIZAKA = {
|
|
|
3570
3604
|
};
|
|
3571
3605
|
|
|
3572
3606
|
// src/native/KrizakaMark.tsx
|
|
3573
|
-
import { Fragment as Fragment7, jsx as
|
|
3607
|
+
import { Fragment as Fragment7, jsx as jsx33, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
3574
3608
|
function KrizakaMark({ size = 48, animated = true, title, neutral }) {
|
|
3575
3609
|
const { theme } = useTheme();
|
|
3576
3610
|
const { Animated: Animated29, layer, spinStyle, pulseStyle } = useMarkMotion(size, animated);
|
|
3577
3611
|
const id = useSvgId("kzm");
|
|
3578
3612
|
const viewBox = size < 48 ? KRIZAKA.croppedViewBox : KRIZAKA.viewBox;
|
|
3579
3613
|
const stroke = neutral ?? theme.textMuted;
|
|
3580
|
-
const blue = /* @__PURE__ */
|
|
3581
|
-
const dot = (c) => /* @__PURE__ */
|
|
3582
|
-
/* @__PURE__ */
|
|
3583
|
-
/* @__PURE__ */
|
|
3614
|
+
const blue = /* @__PURE__ */ jsx33(LinearGradient3, { id: `${id}b`, gradientUnits: "userSpaceOnUse", x1: KRIZAKA.blue.x1 + KRIZAKA.offset, y1: KRIZAKA.blue.y1 + KRIZAKA.offset, x2: KRIZAKA.blue.x2 + KRIZAKA.offset, y2: KRIZAKA.blue.y2 + KRIZAKA.offset, children: KRIZAKA.blue.stops.map(([offset, color]) => /* @__PURE__ */ jsx33(Stop5, { offset, stopColor: color }, offset)) });
|
|
3615
|
+
const dot = (c) => /* @__PURE__ */ jsxs30(Fragment7, { children: [
|
|
3616
|
+
/* @__PURE__ */ jsx33(Circle5, { cx: c.cx, cy: c.cy, r: c.r, fill: `url(#${id}b)` }),
|
|
3617
|
+
/* @__PURE__ */ jsx33(Circle5, { cx: c.cx, cy: c.cy, r: c.inner, fill: KRIZAKA.highlight })
|
|
3584
3618
|
] });
|
|
3585
|
-
return /* @__PURE__ */
|
|
3586
|
-
/* @__PURE__ */
|
|
3587
|
-
/* @__PURE__ */
|
|
3588
|
-
/* @__PURE__ */
|
|
3589
|
-
/* @__PURE__ */
|
|
3590
|
-
/* @__PURE__ */
|
|
3619
|
+
return /* @__PURE__ */ jsxs30(View29, { style: { width: size, height: size }, ...markA11y(title), children: [
|
|
3620
|
+
/* @__PURE__ */ jsxs30(Svg12, { viewBox, style: layer, children: [
|
|
3621
|
+
/* @__PURE__ */ jsxs30(Defs5, { children: [
|
|
3622
|
+
/* @__PURE__ */ jsxs30(RadialGradient3, { id: `${id}g`, cx: "50%", cy: "50%", r: "50%", children: [
|
|
3623
|
+
/* @__PURE__ */ jsx33(Stop5, { offset: "0%", stopColor: KRIZAKA.glow.color, stopOpacity: KRIZAKA.glow.opacity }),
|
|
3624
|
+
/* @__PURE__ */ jsx33(Stop5, { offset: "100%", stopColor: KRIZAKA.glow.color, stopOpacity: 0 })
|
|
3591
3625
|
] }),
|
|
3592
|
-
/* @__PURE__ */
|
|
3593
|
-
/* @__PURE__ */
|
|
3594
|
-
/* @__PURE__ */
|
|
3626
|
+
/* @__PURE__ */ jsxs30(LinearGradient3, { id: `${id}i`, gradientUnits: "userSpaceOnUse", x1: KRIZAKA.ink.x1 + KRIZAKA.offset, y1: KRIZAKA.ink.y1 + KRIZAKA.offset, x2: KRIZAKA.ink.x2 + KRIZAKA.offset, y2: KRIZAKA.ink.y2 + KRIZAKA.offset, children: [
|
|
3627
|
+
/* @__PURE__ */ jsx33(Stop5, { offset: "0%", stopColor: theme.textSecondary }),
|
|
3628
|
+
/* @__PURE__ */ jsx33(Stop5, { offset: "100%", stopColor: theme.textPrimary })
|
|
3595
3629
|
] }),
|
|
3596
3630
|
blue
|
|
3597
3631
|
] }),
|
|
3598
|
-
size >= 48 ? /* @__PURE__ */
|
|
3599
|
-
/* @__PURE__ */
|
|
3600
|
-
/* @__PURE__ */
|
|
3632
|
+
size >= 48 ? /* @__PURE__ */ jsx33(Circle5, { cx: 200, cy: 200, r: 190, fill: `url(#${id}g)` }) : null,
|
|
3633
|
+
/* @__PURE__ */ jsx33(Circle5, { cx: 200, cy: 200, r: KRIZAKA.ring.r, stroke, strokeWidth: KRIZAKA.ring.width, opacity: 0.35, fill: "none" }),
|
|
3634
|
+
/* @__PURE__ */ jsx33(Group, { transform: `translate(${KRIZAKA.offset} ${KRIZAKA.offset})`, children: /* @__PURE__ */ jsx33(Path10, { d: KRIZAKA.shield, stroke: `url(#${id}i)`, strokeWidth: KRIZAKA.stroke, strokeLinecap: "round", strokeLinejoin: "round", fill: "none" }) })
|
|
3601
3635
|
] }),
|
|
3602
|
-
/* @__PURE__ */
|
|
3603
|
-
/* @__PURE__ */
|
|
3604
|
-
/* @__PURE__ */
|
|
3605
|
-
/* @__PURE__ */
|
|
3636
|
+
/* @__PURE__ */ jsx33(Animated29.View, { style: [layer, spinStyle], children: /* @__PURE__ */ jsx33(Svg12, { viewBox, style: layer, children: /* @__PURE__ */ jsx33(Circle5, { cx: 200, cy: 200, r: KRIZAKA.orbit.r, stroke, strokeWidth: KRIZAKA.orbit.width, strokeDasharray: KRIZAKA.orbit.dash, opacity: 0.6, fill: "none" }) }) }),
|
|
3637
|
+
/* @__PURE__ */ jsx33(Animated29.View, { style: [layer, pulseStyle], children: /* @__PURE__ */ jsxs30(Svg12, { viewBox, style: layer, children: [
|
|
3638
|
+
/* @__PURE__ */ jsx33(Defs5, { children: blue }),
|
|
3639
|
+
/* @__PURE__ */ jsxs30(Group, { transform: `translate(${KRIZAKA.offset} ${KRIZAKA.offset})`, children: [
|
|
3606
3640
|
dot(KRIZAKA.node),
|
|
3607
3641
|
dot(KRIZAKA.core)
|
|
3608
3642
|
] })
|
|
@@ -3612,11 +3646,11 @@ function KrizakaMark({ size = 48, animated = true, title, neutral }) {
|
|
|
3612
3646
|
|
|
3613
3647
|
// src/native/loader.tsx
|
|
3614
3648
|
import * as React25 from "react";
|
|
3615
|
-
import { AccessibilityInfo as AccessibilityInfo7, Animated as Animated12, Easing as Easing5, StyleSheet as
|
|
3649
|
+
import { AccessibilityInfo as AccessibilityInfo7, Animated as Animated12, Easing as Easing5, StyleSheet as StyleSheet30, View as View35 } from "react-native";
|
|
3616
3650
|
import Svg18, { Circle as Circle11, Path as Path16 } from "react-native-svg";
|
|
3617
3651
|
|
|
3618
3652
|
// src/native/OrazakaMark.tsx
|
|
3619
|
-
import { View as
|
|
3653
|
+
import { View as View30 } from "react-native";
|
|
3620
3654
|
import Svg13, { Circle as Circle6, Defs as Defs6, LinearGradient as LinearGradient4, Path as Path11, RadialGradient as RadialGradient4, Stop as Stop6 } from "react-native-svg";
|
|
3621
3655
|
|
|
3622
3656
|
// src/marks/orazaka-geometry.ts
|
|
@@ -3646,40 +3680,40 @@ var ORAZAKA = {
|
|
|
3646
3680
|
};
|
|
3647
3681
|
|
|
3648
3682
|
// src/native/OrazakaMark.tsx
|
|
3649
|
-
import { jsx as
|
|
3683
|
+
import { jsx as jsx34, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
3650
3684
|
function OrazakaMark({ size = 48, animated = true, title, neutral }) {
|
|
3651
3685
|
const { theme } = useTheme();
|
|
3652
3686
|
const { Animated: Animated29, layer, spinStyle, pulseStyle } = useMarkMotion(size, animated);
|
|
3653
3687
|
const id = useSvgId("ozm");
|
|
3654
3688
|
const viewBox = size < 48 ? ORAZAKA.croppedViewBox : ORAZAKA.viewBox;
|
|
3655
3689
|
const stroke = neutral ?? theme.textMuted;
|
|
3656
|
-
const gradient = /* @__PURE__ */
|
|
3690
|
+
const gradient = /* @__PURE__ */ jsx34(LinearGradient4, { id: `${id}a`, gradientUnits: "userSpaceOnUse", x1: ORAZAKA.gradient.x1, y1: ORAZAKA.gradient.y1, x2: ORAZAKA.gradient.x2, y2: ORAZAKA.gradient.y2, children: ORAZAKA.gradient.stops.map(([offset, color]) => /* @__PURE__ */ jsx34(Stop6, { offset, stopColor: color }, offset)) });
|
|
3657
3691
|
const fill = `url(#${id}a)`;
|
|
3658
|
-
return /* @__PURE__ */
|
|
3659
|
-
/* @__PURE__ */
|
|
3660
|
-
/* @__PURE__ */
|
|
3661
|
-
/* @__PURE__ */
|
|
3662
|
-
/* @__PURE__ */
|
|
3692
|
+
return /* @__PURE__ */ jsxs31(View30, { style: { width: size, height: size }, ...markA11y(title), children: [
|
|
3693
|
+
/* @__PURE__ */ jsxs31(Svg13, { viewBox, style: layer, children: [
|
|
3694
|
+
/* @__PURE__ */ jsx34(Defs6, { children: /* @__PURE__ */ jsxs31(RadialGradient4, { id: `${id}g`, cx: "50%", cy: "50%", r: "50%", children: [
|
|
3695
|
+
/* @__PURE__ */ jsx34(Stop6, { offset: "0%", stopColor: ORAZAKA.glow.color, stopOpacity: ORAZAKA.glow.opacity }),
|
|
3696
|
+
/* @__PURE__ */ jsx34(Stop6, { offset: "100%", stopColor: ORAZAKA.glow.color, stopOpacity: 0 })
|
|
3663
3697
|
] }) }),
|
|
3664
|
-
size >= 48 ? /* @__PURE__ */
|
|
3665
|
-
/* @__PURE__ */
|
|
3666
|
-
/* @__PURE__ */
|
|
3698
|
+
size >= 48 ? /* @__PURE__ */ jsx34(Circle6, { cx: ORAZAKA.center, cy: ORAZAKA.center, r: 190, fill: `url(#${id}g)` }) : null,
|
|
3699
|
+
/* @__PURE__ */ jsx34(Circle6, { cx: ORAZAKA.center, cy: ORAZAKA.center, r: ORAZAKA.orbit.r, stroke, strokeWidth: ORAZAKA.orbit.width, strokeDasharray: ORAZAKA.orbit.dash, opacity: 0.6, fill: "none" }),
|
|
3700
|
+
/* @__PURE__ */ jsx34(Circle6, { cx: ORAZAKA.center, cy: ORAZAKA.center, r: ORAZAKA.ring.r, stroke, strokeWidth: ORAZAKA.ring.width, opacity: 0.35, fill: "none" })
|
|
3667
3701
|
] }),
|
|
3668
|
-
/* @__PURE__ */
|
|
3669
|
-
/* @__PURE__ */
|
|
3670
|
-
ORAZAKA.shards.map((d) => /* @__PURE__ */
|
|
3702
|
+
/* @__PURE__ */ jsx34(Animated29.View, { style: [layer, spinStyle], children: /* @__PURE__ */ jsxs31(Svg13, { viewBox, style: layer, children: [
|
|
3703
|
+
/* @__PURE__ */ jsx34(Defs6, { children: gradient }),
|
|
3704
|
+
ORAZAKA.shards.map((d) => /* @__PURE__ */ jsx34(Path11, { d, fill, stroke: fill, strokeWidth: ORAZAKA.shardStroke, strokeLinejoin: "round" }, d))
|
|
3671
3705
|
] }) }),
|
|
3672
|
-
/* @__PURE__ */
|
|
3673
|
-
/* @__PURE__ */
|
|
3674
|
-
/* @__PURE__ */
|
|
3675
|
-
/* @__PURE__ */
|
|
3706
|
+
/* @__PURE__ */ jsx34(Animated29.View, { style: [layer, pulseStyle], children: /* @__PURE__ */ jsxs31(Svg13, { viewBox, style: layer, children: [
|
|
3707
|
+
/* @__PURE__ */ jsx34(Defs6, { children: gradient }),
|
|
3708
|
+
/* @__PURE__ */ jsx34(Circle6, { cx: ORAZAKA.center, cy: ORAZAKA.center, r: ORAZAKA.core.r, fill }),
|
|
3709
|
+
/* @__PURE__ */ jsx34(Circle6, { cx: ORAZAKA.center, cy: ORAZAKA.center, r: ORAZAKA.core.inner, fill: ORAZAKA.highlight })
|
|
3676
3710
|
] }) })
|
|
3677
3711
|
] });
|
|
3678
3712
|
}
|
|
3679
3713
|
|
|
3680
3714
|
// src/native/OrochiaMark.tsx
|
|
3681
3715
|
import { useEffect as useEffect13, useState as useState23 } from "react";
|
|
3682
|
-
import { AccessibilityInfo as AccessibilityInfo6, Animated as Animated11, Easing as Easing4, View as
|
|
3716
|
+
import { AccessibilityInfo as AccessibilityInfo6, Animated as Animated11, Easing as Easing4, View as View31 } from "react-native";
|
|
3683
3717
|
import Svg14, { Circle as Circle7, Defs as Defs7, Ellipse, G as Group2, LinearGradient as LinearGradient5, Path as Path12, RadialGradient as RadialGradient5, Stop as Stop7 } from "react-native-svg";
|
|
3684
3718
|
|
|
3685
3719
|
// src/marks/orochia-geometry.ts
|
|
@@ -3707,7 +3741,7 @@ var OROCHIA = {
|
|
|
3707
3741
|
};
|
|
3708
3742
|
|
|
3709
3743
|
// src/native/OrochiaMark.tsx
|
|
3710
|
-
import { jsx as
|
|
3744
|
+
import { jsx as jsx35, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
3711
3745
|
var CENTER = OROCHIA.offset + 180;
|
|
3712
3746
|
function OrochiaMark({ size = 48, animated = true, title, neutral: neutralProp }) {
|
|
3713
3747
|
const { theme } = useTheme();
|
|
@@ -3739,40 +3773,40 @@ function OrochiaMark({ size = 48, animated = true, title, neutral: neutralProp }
|
|
|
3739
3773
|
const viewBox = size < 48 ? OROCHIA.croppedViewBox : OROCHIA.viewBox;
|
|
3740
3774
|
const layer = { position: "absolute", width: size, height: size };
|
|
3741
3775
|
const a11y = title ? { accessible: true, accessibilityRole: "image", accessibilityLabel: title } : { accessibilityElementsHidden: true, importantForAccessibility: "no-hide-descendants" };
|
|
3742
|
-
const bodyGradient = /* @__PURE__ */
|
|
3743
|
-
return /* @__PURE__ */
|
|
3744
|
-
/* @__PURE__ */
|
|
3745
|
-
/* @__PURE__ */
|
|
3746
|
-
/* @__PURE__ */
|
|
3747
|
-
/* @__PURE__ */
|
|
3776
|
+
const bodyGradient = /* @__PURE__ */ jsx35(LinearGradient5, { id: "body", gradientUnits: "userSpaceOnUse", x1: OROCHIA.body.x1 + OROCHIA.offset, y1: OROCHIA.body.y1 + OROCHIA.offset, x2: OROCHIA.body.x2 + OROCHIA.offset, y2: OROCHIA.body.y2 + OROCHIA.offset, children: OROCHIA.body.stops.map(([offset, color]) => /* @__PURE__ */ jsx35(Stop7, { offset, stopColor: color }, offset)) });
|
|
3777
|
+
return /* @__PURE__ */ jsxs32(View31, { style: { width: size, height: size }, ...a11y, children: [
|
|
3778
|
+
/* @__PURE__ */ jsxs32(Svg14, { viewBox, style: layer, children: [
|
|
3779
|
+
/* @__PURE__ */ jsx35(Defs7, { children: /* @__PURE__ */ jsxs32(RadialGradient5, { id: "glow", cx: "50%", cy: "50%", r: "50%", children: [
|
|
3780
|
+
/* @__PURE__ */ jsx35(Stop7, { offset: "0%", stopColor: OROCHIA.glow.color, stopOpacity: OROCHIA.glow.opacity }),
|
|
3781
|
+
/* @__PURE__ */ jsx35(Stop7, { offset: "100%", stopColor: OROCHIA.glow.color, stopOpacity: 0 })
|
|
3748
3782
|
] }) }),
|
|
3749
|
-
/* @__PURE__ */
|
|
3750
|
-
/* @__PURE__ */
|
|
3783
|
+
/* @__PURE__ */ jsx35(Circle7, { cx: CENTER, cy: CENTER, r: 170, fill: "url(#glow)" }),
|
|
3784
|
+
/* @__PURE__ */ jsx35(Circle7, { cx: CENTER, cy: CENTER, r: OROCHIA.ring.r, stroke: neutral, strokeWidth: OROCHIA.ring.width, opacity: 0.35, fill: "none" })
|
|
3751
3785
|
] }),
|
|
3752
|
-
/* @__PURE__ */
|
|
3753
|
-
/* @__PURE__ */
|
|
3754
|
-
/* @__PURE__ */
|
|
3755
|
-
/* @__PURE__ */
|
|
3756
|
-
/* @__PURE__ */
|
|
3757
|
-
/* @__PURE__ */
|
|
3758
|
-
/* @__PURE__ */
|
|
3759
|
-
/* @__PURE__ */
|
|
3760
|
-
/* @__PURE__ */
|
|
3761
|
-
/* @__PURE__ */
|
|
3786
|
+
/* @__PURE__ */ jsx35(Animated11.View, { style: [layer, { transform: [{ rotate: spin.interpolate({ inputRange: [0, 1], outputRange: ["0deg", "360deg"] }) }] }], children: /* @__PURE__ */ jsx35(Svg14, { viewBox, style: layer, children: /* @__PURE__ */ jsx35(Circle7, { cx: CENTER, cy: CENTER, r: OROCHIA.orbit.r, stroke: neutral, strokeWidth: OROCHIA.orbit.width, strokeDasharray: OROCHIA.orbit.dash, opacity: 0.6, fill: "none" }) }) }),
|
|
3787
|
+
/* @__PURE__ */ jsxs32(Svg14, { viewBox, style: layer, children: [
|
|
3788
|
+
/* @__PURE__ */ jsx35(Defs7, { children: bodyGradient }),
|
|
3789
|
+
/* @__PURE__ */ jsxs32(Group2, { transform: `translate(${OROCHIA.offset} ${OROCHIA.offset})`, children: [
|
|
3790
|
+
/* @__PURE__ */ jsx35(Path12, { d: OROCHIA.arc, stroke: "url(#body)", strokeWidth: 22, strokeLinecap: "round", fill: "none" }),
|
|
3791
|
+
/* @__PURE__ */ jsx35(Path12, { d: OROCHIA.arc, stroke: OROCHIA.scales.color, strokeOpacity: OROCHIA.scales.opacity, strokeWidth: OROCHIA.scales.width, strokeLinecap: "round", strokeDasharray: OROCHIA.scales.dash, fill: "none" }),
|
|
3792
|
+
/* @__PURE__ */ jsx35(Path12, { d: OROCHIA.neck, stroke: "url(#body)", strokeWidth: 14, strokeLinecap: "round", fill: "none" }),
|
|
3793
|
+
/* @__PURE__ */ jsx35(Path12, { d: OROCHIA.tail, stroke: "url(#body)", strokeWidth: 6, strokeLinecap: "round", fill: "none" }),
|
|
3794
|
+
/* @__PURE__ */ jsx35(Ellipse, { cx: OROCHIA.head.cx, cy: OROCHIA.head.cy, rx: OROCHIA.head.rx, ry: OROCHIA.head.ry, rotation: OROCHIA.head.rotate, origin: `${OROCHIA.head.cx}, ${OROCHIA.head.cy}`, fill: "url(#body)" }),
|
|
3795
|
+
/* @__PURE__ */ jsx35(Path12, { d: OROCHIA.tongue.d, stroke: OROCHIA.tongue.color, strokeWidth: 3, strokeLinecap: "round", fill: "none" })
|
|
3762
3796
|
] })
|
|
3763
3797
|
] }),
|
|
3764
|
-
/* @__PURE__ */
|
|
3765
|
-
/* @__PURE__ */
|
|
3766
|
-
/* @__PURE__ */
|
|
3767
|
-
/* @__PURE__ */
|
|
3768
|
-
/* @__PURE__ */
|
|
3798
|
+
/* @__PURE__ */ jsx35(Animated11.View, { style: [layer, { opacity: pulse.interpolate({ inputRange: [0, 1], outputRange: [0.85, 1] }) }], children: /* @__PURE__ */ jsxs32(Svg14, { viewBox, style: layer, children: [
|
|
3799
|
+
/* @__PURE__ */ jsx35(Defs7, { children: /* @__PURE__ */ jsx35(LinearGradient5, { id: "flame", x1: "50%", y1: "100%", x2: "50%", y2: "0%", children: OROCHIA.flameGradient.stops.map(([offset, color]) => /* @__PURE__ */ jsx35(Stop7, { offset, stopColor: color }, offset)) }) }),
|
|
3800
|
+
/* @__PURE__ */ jsxs32(Group2, { transform: `translate(${OROCHIA.offset} ${OROCHIA.offset})`, children: [
|
|
3801
|
+
/* @__PURE__ */ jsx35(Circle7, { cx: OROCHIA.eye.cx, cy: OROCHIA.eye.cy, r: OROCHIA.eye.r, fill: OROCHIA.eye.color }),
|
|
3802
|
+
/* @__PURE__ */ jsx35(Path12, { d: OROCHIA.flame.d, transform: `translate(${OROCHIA.flame.translate[0]} ${OROCHIA.flame.translate[1]}) scale(${OROCHIA.flame.scale})`, fill: "url(#flame)" })
|
|
3769
3803
|
] })
|
|
3770
3804
|
] }) })
|
|
3771
3805
|
] });
|
|
3772
3806
|
}
|
|
3773
3807
|
|
|
3774
3808
|
// src/native/YasakiaMark.tsx
|
|
3775
|
-
import { View as
|
|
3809
|
+
import { View as View32 } from "react-native";
|
|
3776
3810
|
import Svg15, { Circle as Circle8, Defs as Defs8, LinearGradient as LinearGradient6, Path as Path13, RadialGradient as RadialGradient6, Stop as Stop8 } from "react-native-svg";
|
|
3777
3811
|
|
|
3778
3812
|
// src/marks/yasakia-geometry.ts
|
|
@@ -3801,42 +3835,42 @@ var YASAKIA = {
|
|
|
3801
3835
|
};
|
|
3802
3836
|
|
|
3803
3837
|
// src/native/YasakiaMark.tsx
|
|
3804
|
-
import { jsx as
|
|
3838
|
+
import { jsx as jsx36, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
3805
3839
|
function YasakiaMark({ size = 48, animated = true, title, neutral }) {
|
|
3806
3840
|
const { theme } = useTheme();
|
|
3807
3841
|
const { Animated: Animated29, layer, spinStyle, pulseStyle } = useMarkMotion(size, animated, YASAKIA.motion.spin * 1e3);
|
|
3808
3842
|
const id = useSvgId("yzm");
|
|
3809
3843
|
const viewBox = size < 48 ? YASAKIA.croppedViewBox : YASAKIA.viewBox;
|
|
3810
3844
|
const stroke = neutral ?? theme.textMuted;
|
|
3811
|
-
const gradient = /* @__PURE__ */
|
|
3845
|
+
const gradient = /* @__PURE__ */ jsx36(LinearGradient6, { id: `${id}a`, gradientUnits: "userSpaceOnUse", x1: YASAKIA.gradient.x1, y1: YASAKIA.gradient.y1, x2: YASAKIA.gradient.x2, y2: YASAKIA.gradient.y2, children: YASAKIA.gradient.stops.map(([offset, color]) => /* @__PURE__ */ jsx36(Stop8, { offset, stopColor: color }, offset)) });
|
|
3812
3846
|
const fill = `url(#${id}a)`;
|
|
3813
|
-
return /* @__PURE__ */
|
|
3814
|
-
/* @__PURE__ */
|
|
3815
|
-
/* @__PURE__ */
|
|
3816
|
-
/* @__PURE__ */
|
|
3817
|
-
/* @__PURE__ */
|
|
3818
|
-
/* @__PURE__ */
|
|
3847
|
+
return /* @__PURE__ */ jsxs33(View32, { style: { width: size, height: size }, ...markA11y(title), children: [
|
|
3848
|
+
/* @__PURE__ */ jsxs33(Svg15, { viewBox, style: layer, children: [
|
|
3849
|
+
/* @__PURE__ */ jsxs33(Defs8, { children: [
|
|
3850
|
+
/* @__PURE__ */ jsxs33(RadialGradient6, { id: `${id}g`, cx: "50%", cy: "50%", r: "50%", children: [
|
|
3851
|
+
/* @__PURE__ */ jsx36(Stop8, { offset: "0%", stopColor: YASAKIA.glow.color, stopOpacity: YASAKIA.glow.opacity }),
|
|
3852
|
+
/* @__PURE__ */ jsx36(Stop8, { offset: "100%", stopColor: YASAKIA.glow.color, stopOpacity: 0 })
|
|
3819
3853
|
] }),
|
|
3820
3854
|
gradient
|
|
3821
3855
|
] }),
|
|
3822
|
-
size >= 48 ? /* @__PURE__ */
|
|
3823
|
-
/* @__PURE__ */
|
|
3824
|
-
/* @__PURE__ */
|
|
3825
|
-
/* @__PURE__ */
|
|
3856
|
+
size >= 48 ? /* @__PURE__ */ jsx36(Circle8, { cx: YASAKIA.center, cy: YASAKIA.center, r: 190, fill: `url(#${id}g)` }) : null,
|
|
3857
|
+
/* @__PURE__ */ jsx36(Circle8, { cx: YASAKIA.center, cy: YASAKIA.center, r: YASAKIA.ring.r, stroke, strokeWidth: YASAKIA.ring.width, opacity: 0.35, fill: "none" }),
|
|
3858
|
+
/* @__PURE__ */ jsx36(Circle8, { cx: YASAKIA.bubble.cx, cy: YASAKIA.bubble.cy, r: YASAKIA.bubble.r, fill }),
|
|
3859
|
+
/* @__PURE__ */ jsx36(Path13, { d: YASAKIA.tails.join(" "), fill })
|
|
3826
3860
|
] }),
|
|
3827
|
-
/* @__PURE__ */
|
|
3828
|
-
/* @__PURE__ */
|
|
3829
|
-
/* @__PURE__ */
|
|
3830
|
-
/* @__PURE__ */
|
|
3861
|
+
/* @__PURE__ */ jsx36(Animated29.View, { style: [layer, spinStyle], children: /* @__PURE__ */ jsxs33(Svg15, { viewBox, style: layer, children: [
|
|
3862
|
+
/* @__PURE__ */ jsx36(Defs8, { children: gradient }),
|
|
3863
|
+
/* @__PURE__ */ jsx36(Circle8, { cx: YASAKIA.center, cy: YASAKIA.center, r: YASAKIA.orbit.r, stroke, strokeWidth: YASAKIA.orbit.width, strokeDasharray: YASAKIA.orbit.dash, opacity: 0.6, fill: "none" }),
|
|
3864
|
+
/* @__PURE__ */ jsx36(Circle8, { cx: YASAKIA.node.at[0], cy: YASAKIA.node.at[1], r: YASAKIA.node.r, fill })
|
|
3831
3865
|
] }) }),
|
|
3832
|
-
/* @__PURE__ */
|
|
3866
|
+
/* @__PURE__ */ jsx36(Animated29.View, { style: [layer, pulseStyle], children: /* @__PURE__ */ jsx36(Svg15, { viewBox, style: layer, children: /* @__PURE__ */ jsx36(Path13, { d: YASAKIA.spark.d, fill: YASAKIA.highlight, stroke: YASAKIA.highlight, strokeWidth: YASAKIA.spark.soften, strokeLinejoin: "round" }) }) })
|
|
3833
3867
|
] });
|
|
3834
3868
|
}
|
|
3835
3869
|
var YazakiaMark = YasakiaMark;
|
|
3836
3870
|
|
|
3837
3871
|
// src/native/YomizakaMark.tsx
|
|
3838
3872
|
import React24 from "react";
|
|
3839
|
-
import { View as
|
|
3873
|
+
import { View as View33 } from "react-native";
|
|
3840
3874
|
import Svg16, { Circle as Circle9, Defs as Defs9, LinearGradient as LinearGradient7, Path as Path14, RadialGradient as RadialGradient7, Stop as Stop9 } from "react-native-svg";
|
|
3841
3875
|
|
|
3842
3876
|
// src/marks/yomizaka-geometry.ts
|
|
@@ -3870,46 +3904,46 @@ var YOMIZAKA = {
|
|
|
3870
3904
|
};
|
|
3871
3905
|
|
|
3872
3906
|
// src/native/YomizakaMark.tsx
|
|
3873
|
-
import { jsx as
|
|
3907
|
+
import { jsx as jsx37, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
3874
3908
|
function YomizakaMark({ size = 48, animated = true, title, neutral }) {
|
|
3875
3909
|
const { theme } = useTheme();
|
|
3876
3910
|
const { Animated: Animated29, layer, spinStyle, pulseStyle } = useMarkMotion(size, animated, YOMIZAKA.motion.spin * 1e3);
|
|
3877
3911
|
const id = useSvgId("ymm");
|
|
3878
3912
|
const viewBox = size < 48 ? YOMIZAKA.croppedViewBox : YOMIZAKA.viewBox;
|
|
3879
3913
|
const stroke = neutral ?? theme.textMuted;
|
|
3880
|
-
const gradient = /* @__PURE__ */
|
|
3914
|
+
const gradient = /* @__PURE__ */ jsx37(LinearGradient7, { id: `${id}a`, gradientUnits: "userSpaceOnUse", x1: YOMIZAKA.gradient.x1, y1: YOMIZAKA.gradient.y1, x2: YOMIZAKA.gradient.x2, y2: YOMIZAKA.gradient.y2, children: YOMIZAKA.gradient.stops.map(([offset, color]) => /* @__PURE__ */ jsx37(Stop9, { offset, stopColor: color }, offset)) });
|
|
3881
3915
|
const fill = `url(#${id}a)`;
|
|
3882
|
-
return /* @__PURE__ */
|
|
3883
|
-
/* @__PURE__ */
|
|
3884
|
-
/* @__PURE__ */
|
|
3885
|
-
/* @__PURE__ */
|
|
3886
|
-
/* @__PURE__ */
|
|
3887
|
-
/* @__PURE__ */
|
|
3916
|
+
return /* @__PURE__ */ jsxs34(View33, { style: { width: size, height: size }, ...markA11y(title), children: [
|
|
3917
|
+
/* @__PURE__ */ jsxs34(Svg16, { viewBox, style: layer, children: [
|
|
3918
|
+
/* @__PURE__ */ jsxs34(Defs9, { children: [
|
|
3919
|
+
/* @__PURE__ */ jsxs34(RadialGradient7, { id: `${id}g`, cx: "50%", cy: "50%", r: "50%", children: [
|
|
3920
|
+
/* @__PURE__ */ jsx37(Stop9, { offset: "0%", stopColor: YOMIZAKA.glow.color, stopOpacity: YOMIZAKA.glow.opacity }),
|
|
3921
|
+
/* @__PURE__ */ jsx37(Stop9, { offset: "100%", stopColor: YOMIZAKA.glow.color, stopOpacity: 0 })
|
|
3888
3922
|
] }),
|
|
3889
3923
|
gradient
|
|
3890
3924
|
] }),
|
|
3891
|
-
size >= 48 ? /* @__PURE__ */
|
|
3892
|
-
/* @__PURE__ */
|
|
3893
|
-
/* @__PURE__ */
|
|
3894
|
-
YOMIZAKA.lenses.map((l) => /* @__PURE__ */
|
|
3925
|
+
size >= 48 ? /* @__PURE__ */ jsx37(Circle9, { cx: YOMIZAKA.center, cy: YOMIZAKA.center, r: 190, fill: `url(#${id}g)` }) : null,
|
|
3926
|
+
/* @__PURE__ */ jsx37(Circle9, { cx: YOMIZAKA.center, cy: YOMIZAKA.center, r: YOMIZAKA.ring.r, stroke, strokeWidth: YOMIZAKA.ring.width, opacity: 0.35, fill: "none" }),
|
|
3927
|
+
/* @__PURE__ */ jsx37(Path14, { d: YOMIZAKA.brow, stroke: fill, strokeWidth: YOMIZAKA.stroke, strokeLinecap: "round", strokeLinejoin: "round", fill: "none" }),
|
|
3928
|
+
YOMIZAKA.lenses.map((l) => /* @__PURE__ */ jsx37(Circle9, { cx: l.cx, cy: l.cy, r: l.r, stroke: fill, strokeWidth: YOMIZAKA.stroke, fill: "none" }, l.cx))
|
|
3895
3929
|
] }),
|
|
3896
|
-
/* @__PURE__ */
|
|
3897
|
-
/* @__PURE__ */
|
|
3898
|
-
/* @__PURE__ */
|
|
3899
|
-
/* @__PURE__ */
|
|
3930
|
+
/* @__PURE__ */ jsx37(Animated29.View, { style: [layer, spinStyle], children: /* @__PURE__ */ jsxs34(Svg16, { viewBox, style: layer, children: [
|
|
3931
|
+
/* @__PURE__ */ jsx37(Defs9, { children: gradient }),
|
|
3932
|
+
/* @__PURE__ */ jsx37(Circle9, { cx: YOMIZAKA.center, cy: YOMIZAKA.center, r: YOMIZAKA.orbit.r, stroke, strokeWidth: YOMIZAKA.orbit.width, strokeDasharray: YOMIZAKA.orbit.dash, opacity: 0.6, fill: "none" }),
|
|
3933
|
+
/* @__PURE__ */ jsx37(Circle9, { cx: YOMIZAKA.node.at[0], cy: YOMIZAKA.node.at[1], r: YOMIZAKA.node.r, fill })
|
|
3900
3934
|
] }) }),
|
|
3901
|
-
/* @__PURE__ */
|
|
3902
|
-
/* @__PURE__ */
|
|
3903
|
-
YOMIZAKA.pupils.map((p) => /* @__PURE__ */
|
|
3904
|
-
/* @__PURE__ */
|
|
3905
|
-
/* @__PURE__ */
|
|
3935
|
+
/* @__PURE__ */ jsx37(Animated29.View, { style: [layer, pulseStyle], children: /* @__PURE__ */ jsxs34(Svg16, { viewBox, style: layer, children: [
|
|
3936
|
+
/* @__PURE__ */ jsx37(Defs9, { children: gradient }),
|
|
3937
|
+
YOMIZAKA.pupils.map((p) => /* @__PURE__ */ jsxs34(React24.Fragment, { children: [
|
|
3938
|
+
/* @__PURE__ */ jsx37(Circle9, { cx: p.cx, cy: p.cy, r: p.r, fill }),
|
|
3939
|
+
/* @__PURE__ */ jsx37(Circle9, { cx: p.cx, cy: p.cy, r: p.inner, fill: YOMIZAKA.highlight })
|
|
3906
3940
|
] }, p.cx))
|
|
3907
3941
|
] }) })
|
|
3908
3942
|
] });
|
|
3909
3943
|
}
|
|
3910
3944
|
|
|
3911
3945
|
// src/native/YororisMark.tsx
|
|
3912
|
-
import { View as
|
|
3946
|
+
import { View as View34 } from "react-native";
|
|
3913
3947
|
import Svg17, { Circle as Circle10, Defs as Defs10, Path as Path15, RadialGradient as RadialGradient8, Stop as Stop10 } from "react-native-svg";
|
|
3914
3948
|
|
|
3915
3949
|
// src/marks/yororis-geometry.ts
|
|
@@ -3938,49 +3972,49 @@ var YORORIS = {
|
|
|
3938
3972
|
};
|
|
3939
3973
|
|
|
3940
3974
|
// src/native/YororisMark.tsx
|
|
3941
|
-
import { jsx as
|
|
3975
|
+
import { jsx as jsx38, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
3942
3976
|
function YororisMark({ size = 48, animated = true, title, neutral }) {
|
|
3943
3977
|
const { theme } = useTheme();
|
|
3944
3978
|
const { Animated: Animated29, layer, spinStyle, pulseStyle } = useMarkMotion(size, animated, YORORIS.motion.spin * 1e3);
|
|
3945
3979
|
const id = useSvgId("yrm");
|
|
3946
3980
|
const viewBox = size < 48 ? YORORIS.croppedViewBox : YORORIS.viewBox;
|
|
3947
3981
|
const stroke = neutral ?? theme.textMuted;
|
|
3948
|
-
return /* @__PURE__ */
|
|
3949
|
-
/* @__PURE__ */
|
|
3950
|
-
/* @__PURE__ */
|
|
3951
|
-
/* @__PURE__ */
|
|
3952
|
-
/* @__PURE__ */
|
|
3982
|
+
return /* @__PURE__ */ jsxs35(View34, { style: { width: size, height: size }, ...markA11y(title), children: [
|
|
3983
|
+
/* @__PURE__ */ jsxs35(Svg17, { viewBox, style: layer, children: [
|
|
3984
|
+
/* @__PURE__ */ jsx38(Defs10, { children: /* @__PURE__ */ jsxs35(RadialGradient8, { id: `${id}g`, cx: "50%", cy: "50%", r: "50%", children: [
|
|
3985
|
+
/* @__PURE__ */ jsx38(Stop10, { offset: "0%", stopColor: YORORIS.glow.color, stopOpacity: YORORIS.glow.opacity }),
|
|
3986
|
+
/* @__PURE__ */ jsx38(Stop10, { offset: "100%", stopColor: YORORIS.glow.color, stopOpacity: 0 })
|
|
3953
3987
|
] }) }),
|
|
3954
|
-
size >= 48 ? /* @__PURE__ */
|
|
3955
|
-
/* @__PURE__ */
|
|
3956
|
-
/* @__PURE__ */
|
|
3988
|
+
size >= 48 ? /* @__PURE__ */ jsx38(Circle10, { cx: YORORIS.center, cy: YORORIS.center, r: 190, fill: `url(#${id}g)` }) : null,
|
|
3989
|
+
/* @__PURE__ */ jsx38(Circle10, { cx: YORORIS.center, cy: YORORIS.center, r: YORORIS.ring.r, stroke, strokeWidth: YORORIS.ring.width, opacity: 0.35, fill: "none" }),
|
|
3990
|
+
/* @__PURE__ */ jsx38(Path15, { d: YORORIS.hands, stroke: YORORIS.sage, strokeWidth: YORORIS.stroke, strokeLinecap: "round", fill: "none" })
|
|
3957
3991
|
] }),
|
|
3958
|
-
/* @__PURE__ */
|
|
3959
|
-
/* @__PURE__ */
|
|
3960
|
-
/* @__PURE__ */
|
|
3992
|
+
/* @__PURE__ */ jsx38(Animated29.View, { style: [layer, spinStyle], children: /* @__PURE__ */ jsxs35(Svg17, { viewBox, style: layer, children: [
|
|
3993
|
+
/* @__PURE__ */ jsx38(Circle10, { cx: YORORIS.center, cy: YORORIS.center, r: YORORIS.orbit.r, stroke, strokeWidth: YORORIS.orbit.width, strokeDasharray: YORORIS.orbit.dash, opacity: 0.6, fill: "none" }),
|
|
3994
|
+
/* @__PURE__ */ jsx38(Circle10, { cx: YORORIS.node.at[0], cy: YORORIS.node.at[1], r: YORORIS.node.r, fill: YORORIS.sage })
|
|
3961
3995
|
] }) }),
|
|
3962
|
-
/* @__PURE__ */
|
|
3963
|
-
/* @__PURE__ */
|
|
3964
|
-
/* @__PURE__ */
|
|
3996
|
+
/* @__PURE__ */ jsx38(Animated29.View, { style: [layer, pulseStyle], children: /* @__PURE__ */ jsxs35(Svg17, { viewBox, style: layer, children: [
|
|
3997
|
+
/* @__PURE__ */ jsx38(Circle10, { cx: YORORIS.core.cx, cy: YORORIS.core.cy, r: YORORIS.core.r, fill: YORORIS.sand }),
|
|
3998
|
+
/* @__PURE__ */ jsx38(Circle10, { cx: YORORIS.core.cx, cy: YORORIS.core.cy, r: YORORIS.core.inner, fill: YORORIS.highlight })
|
|
3965
3999
|
] }) })
|
|
3966
4000
|
] });
|
|
3967
4001
|
}
|
|
3968
4002
|
|
|
3969
4003
|
// src/native/ProductMark.tsx
|
|
3970
|
-
import { jsx as
|
|
4004
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
3971
4005
|
function ProductMark({ id, ...props }) {
|
|
3972
|
-
if (id === "krizaka") return /* @__PURE__ */
|
|
3973
|
-
if (id === "orazaka") return /* @__PURE__ */
|
|
3974
|
-
if (id === "yasakia" || id === "yazakia") return /* @__PURE__ */
|
|
3975
|
-
if (id === "yororis") return /* @__PURE__ */
|
|
3976
|
-
if (id === "yomizaka") return /* @__PURE__ */
|
|
3977
|
-
if (id === "kachizaka") return /* @__PURE__ */
|
|
3978
|
-
if (id === "akinaza") return /* @__PURE__ */
|
|
3979
|
-
return /* @__PURE__ */
|
|
4006
|
+
if (id === "krizaka") return /* @__PURE__ */ jsx39(KrizakaMark, { ...props });
|
|
4007
|
+
if (id === "orazaka") return /* @__PURE__ */ jsx39(OrazakaMark, { ...props });
|
|
4008
|
+
if (id === "yasakia" || id === "yazakia") return /* @__PURE__ */ jsx39(YasakiaMark, { ...props });
|
|
4009
|
+
if (id === "yororis") return /* @__PURE__ */ jsx39(YororisMark, { ...props });
|
|
4010
|
+
if (id === "yomizaka") return /* @__PURE__ */ jsx39(YomizakaMark, { ...props });
|
|
4011
|
+
if (id === "kachizaka") return /* @__PURE__ */ jsx39(KachizakaMark, { ...props });
|
|
4012
|
+
if (id === "akinaza") return /* @__PURE__ */ jsx39(AkinazaMark, { ...props });
|
|
4013
|
+
return /* @__PURE__ */ jsx39(OrochiaMark, { ...props });
|
|
3980
4014
|
}
|
|
3981
4015
|
|
|
3982
4016
|
// src/native/loader.tsx
|
|
3983
|
-
import { jsx as
|
|
4017
|
+
import { jsx as jsx40, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
3984
4018
|
var HEX = "M12 3 19.79 7.5 19.79 16.5 12 21 4.21 16.5 4.21 7.5Z";
|
|
3985
4019
|
var PERIMETER = 54;
|
|
3986
4020
|
function LoaderGlyph({ state = "loading", value, size = 20, color }) {
|
|
@@ -3997,12 +4031,12 @@ function LoaderGlyph({ state = "loading", value, size = 20, color }) {
|
|
|
3997
4031
|
const stroke = color ?? (state === "success" ? theme.success : state === "error" ? theme.danger : theme.accent);
|
|
3998
4032
|
const fill = state !== "loading" ? 1 : known ? Math.min(1, Math.max(0, value)) : 0.3;
|
|
3999
4033
|
const rotate = spin.interpolate({ inputRange: [0, 1], outputRange: ["0deg", "360deg"] });
|
|
4000
|
-
return /* @__PURE__ */
|
|
4001
|
-
/* @__PURE__ */
|
|
4002
|
-
/* @__PURE__ */
|
|
4003
|
-
state === "loading" ? /* @__PURE__ */
|
|
4004
|
-
state === "success" ? /* @__PURE__ */
|
|
4005
|
-
state === "error" ? /* @__PURE__ */
|
|
4034
|
+
return /* @__PURE__ */ jsx40(Animated12.View, { "aria-hidden": true, style: { width: size, height: size, transform: state === "loading" && !known ? [{ rotate }] : [] }, children: /* @__PURE__ */ jsxs36(Svg18, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", children: [
|
|
4035
|
+
/* @__PURE__ */ jsx40(Path16, { d: HEX, stroke, strokeOpacity: 0.22, strokeWidth: 2.2, strokeLinejoin: "round" }),
|
|
4036
|
+
/* @__PURE__ */ jsx40(Path16, { d: HEX, stroke, strokeWidth: 2.2, strokeLinejoin: "round", strokeLinecap: "round", strokeDasharray: `${fill * PERIMETER} ${PERIMETER}` }),
|
|
4037
|
+
state === "loading" ? /* @__PURE__ */ jsx40(Circle11, { cx: 12, cy: 12, r: 2.6, fill: stroke }) : null,
|
|
4038
|
+
state === "success" ? /* @__PURE__ */ jsx40(Path16, { d: "M8.3 12.3l2.6 2.6 4.9-5.3", stroke, strokeWidth: 2.2, strokeLinecap: "round", strokeLinejoin: "round" }) : null,
|
|
4039
|
+
state === "error" ? /* @__PURE__ */ jsx40(Path16, { d: "M9.4 9.4l5.2 5.2M14.6 9.4l-5.2 5.2", stroke, strokeWidth: 2.2, strokeLinecap: "round" }) : null
|
|
4006
4040
|
] }) });
|
|
4007
4041
|
}
|
|
4008
4042
|
function useDelayedWait(active, delay = 250, minDuration = 600) {
|
|
@@ -4054,22 +4088,22 @@ function Loader({ label, status = "loading", successLabel, errorLabel, value, et
|
|
|
4054
4088
|
const known = phase === "loading" && typeof value === "number" && Number.isFinite(value);
|
|
4055
4089
|
const detail = phase === "loading" ? [known ? `${Math.round(Math.min(1, Math.max(0, value)) * 100)} %` : null, eta].filter(Boolean).join(" \xB7 ") : "";
|
|
4056
4090
|
const stacked = variant !== "inline";
|
|
4057
|
-
const box = /* @__PURE__ */
|
|
4058
|
-
product && phase === "loading" ? /* @__PURE__ */
|
|
4059
|
-
/* @__PURE__ */
|
|
4060
|
-
/* @__PURE__ */
|
|
4061
|
-
detail ? /* @__PURE__ */
|
|
4091
|
+
const box = /* @__PURE__ */ jsxs36(View35, { style: [stacked ? styles30.stacked : styles30.inline, variant === "overlay" ? { backgroundColor: alpha(theme.surface1, 0.92), borderColor: theme.borderDefault, borderRadius: radius3.lg, ...styles30.card } : null], children: [
|
|
4092
|
+
product && phase === "loading" ? /* @__PURE__ */ jsx40(ProductMark, { id: product, size: GLYPH[variant], animated: true }) : /* @__PURE__ */ jsx40(LoaderGlyph, { state: phase, value: known ? value : null, size: GLYPH[variant] }),
|
|
4093
|
+
/* @__PURE__ */ jsxs36(View35, { style: stacked ? styles30.center : styles30.text, children: [
|
|
4094
|
+
/* @__PURE__ */ jsx40(Txt, { variant: variant === "page" ? "title" : "label", style: stacked ? styles30.centered : null, children: words2 }),
|
|
4095
|
+
detail ? /* @__PURE__ */ jsx40(Txt, { variant: "caption", tone: "secondary", style: stacked ? styles30.centered : null, children: detail }) : null
|
|
4062
4096
|
] })
|
|
4063
4097
|
] });
|
|
4064
4098
|
const a11y = { accessible: true, role: "progressbar", "aria-label": words2, "aria-busy": phase === "loading", accessibilityLiveRegion: "polite" };
|
|
4065
4099
|
if (variant === "overlay" || variant === "page")
|
|
4066
|
-
return /* @__PURE__ */
|
|
4067
|
-
return /* @__PURE__ */
|
|
4100
|
+
return /* @__PURE__ */ jsx40(View35, { ...a11y, style: [StyleSheet30.absoluteFill, styles30.cover, variant === "page" ? { backgroundColor: alpha(theme.surface0, 0.86) } : null, style], children: box });
|
|
4101
|
+
return /* @__PURE__ */ jsx40(View35, { ...a11y, style: [variant === "block" ? styles30.block : null, style], children: box });
|
|
4068
4102
|
}
|
|
4069
|
-
var
|
|
4103
|
+
var styles30 = StyleSheet30.create({
|
|
4070
4104
|
inline: { flexDirection: "row", alignItems: "center", gap: 10 },
|
|
4071
4105
|
stacked: { alignItems: "center", gap: 10 },
|
|
4072
|
-
card: { paddingHorizontal: 24, paddingVertical: 20, borderWidth:
|
|
4106
|
+
card: { paddingHorizontal: 24, paddingVertical: 20, borderWidth: StyleSheet30.hairlineWidth },
|
|
4073
4107
|
text: { flexShrink: 1, gap: 2 },
|
|
4074
4108
|
center: { alignItems: "center", gap: 2 },
|
|
4075
4109
|
centered: { textAlign: "center" },
|
|
@@ -4078,20 +4112,20 @@ var styles29 = StyleSheet29.create({
|
|
|
4078
4112
|
});
|
|
4079
4113
|
|
|
4080
4114
|
// src/native/maintenance-screen.tsx
|
|
4081
|
-
import { StyleSheet as
|
|
4082
|
-
import { jsx as
|
|
4115
|
+
import { StyleSheet as StyleSheet31, View as View36 } from "react-native";
|
|
4116
|
+
import { jsx as jsx41, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
4083
4117
|
function MaintenanceScreen({ title, message, mark, retryLabel, onRetry, fill = true, style }) {
|
|
4084
4118
|
const { theme } = useTheme();
|
|
4085
|
-
return /* @__PURE__ */
|
|
4086
|
-
mark ? /* @__PURE__ */
|
|
4087
|
-
/* @__PURE__ */
|
|
4088
|
-
/* @__PURE__ */
|
|
4089
|
-
message ? /* @__PURE__ */
|
|
4119
|
+
return /* @__PURE__ */ jsxs37(View36, { style: [styles31.root, fill ? styles31.fill : null, { backgroundColor: theme.surface0 }, style], children: [
|
|
4120
|
+
mark ? /* @__PURE__ */ jsx41(View36, { accessibilityElementsHidden: true, importantForAccessibility: "no-hide-descendants", style: styles31.mark, children: mark }) : null,
|
|
4121
|
+
/* @__PURE__ */ jsxs37(View36, { role: "status", style: styles31.text, children: [
|
|
4122
|
+
/* @__PURE__ */ jsx41(Txt, { variant: "title", style: styles31.centred, children: title }),
|
|
4123
|
+
message ? /* @__PURE__ */ jsx41(Txt, { tone: "secondary", style: styles31.centred, children: message }) : null
|
|
4090
4124
|
] }),
|
|
4091
|
-
retryLabel && onRetry ? /* @__PURE__ */
|
|
4125
|
+
retryLabel && onRetry ? /* @__PURE__ */ jsx41(View36, { style: styles31.actions, children: /* @__PURE__ */ jsx41(Button, { label: retryLabel, variant: "secondary", onPress: onRetry }) }) : null
|
|
4092
4126
|
] });
|
|
4093
4127
|
}
|
|
4094
|
-
var
|
|
4128
|
+
var styles31 = StyleSheet31.create({
|
|
4095
4129
|
root: { alignItems: "center", justifyContent: "center", gap: 12, padding: 24 },
|
|
4096
4130
|
fill: { flex: 1 },
|
|
4097
4131
|
mark: { width: 96, height: 96, alignItems: "center", justifyContent: "center" },
|
|
@@ -4102,11 +4136,11 @@ var styles30 = StyleSheet30.create({
|
|
|
4102
4136
|
|
|
4103
4137
|
// src/native/mascot-state.tsx
|
|
4104
4138
|
import * as React27 from "react";
|
|
4105
|
-
import { AccessibilityInfo as AccessibilityInfo9, Animated as Animated14, Easing as Easing7, StyleSheet as
|
|
4139
|
+
import { AccessibilityInfo as AccessibilityInfo9, Animated as Animated14, Easing as Easing7, StyleSheet as StyleSheet32, View as View38 } from "react-native";
|
|
4106
4140
|
|
|
4107
4141
|
// src/native/mascots.tsx
|
|
4108
4142
|
import { useEffect as useEffect15, useState as useState25 } from "react";
|
|
4109
|
-
import { AccessibilityInfo as AccessibilityInfo8, Animated as Animated13, Easing as Easing6, View as
|
|
4143
|
+
import { AccessibilityInfo as AccessibilityInfo8, Animated as Animated13, Easing as Easing6, View as View37 } from "react-native";
|
|
4110
4144
|
import Svg19, { Circle as Circle12, Defs as Defs11, Ellipse as Ellipse2, G, LinearGradient as LinearGradient8, Path as Path17, Rect as Rect2, Stop as Stop11 } from "react-native-svg";
|
|
4111
4145
|
|
|
4112
4146
|
// src/mascots/geometry.ts
|
|
@@ -4309,7 +4343,7 @@ var SHADE = "#000000";
|
|
|
4309
4343
|
var PARCEL = ["#f59e0b", "#d97706", "#b45309"];
|
|
4310
4344
|
|
|
4311
4345
|
// src/native/mascots.tsx
|
|
4312
|
-
import { jsx as
|
|
4346
|
+
import { jsx as jsx42, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
4313
4347
|
function useBob(animated) {
|
|
4314
4348
|
const [y] = useState25(() => new Animated13.Value(0));
|
|
4315
4349
|
useEffect15(() => {
|
|
@@ -4343,52 +4377,52 @@ function Mascot({ bird = "owl", mood = "welcome", tone: tone3 = "brand", size =
|
|
|
4343
4377
|
const look3 = mood === "thinking" ? 1.4 : 0;
|
|
4344
4378
|
const rot = (deg, [x, y]) => `rotate(${deg} ${x} ${y})`;
|
|
4345
4379
|
const [wl, wr] = g.wings;
|
|
4346
|
-
return /* @__PURE__ */
|
|
4347
|
-
/* @__PURE__ */
|
|
4348
|
-
/* @__PURE__ */
|
|
4349
|
-
/* @__PURE__ */
|
|
4380
|
+
return /* @__PURE__ */ jsx42(View37, { style: [{ width: size, height: size }, style], ...markA11y(title), children: /* @__PURE__ */ jsx42(Animated13.View, { style: { transform: [{ translateY: bob }] }, children: /* @__PURE__ */ jsxs38(Svg19, { width: size, height: size, viewBox: "0 0 120 120", children: [
|
|
4381
|
+
/* @__PURE__ */ jsx42(Defs11, { children: /* @__PURE__ */ jsxs38(LinearGradient8, { id, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
4382
|
+
/* @__PURE__ */ jsx42(Stop11, { offset: "0%", stopColor: p.from }),
|
|
4383
|
+
/* @__PURE__ */ jsx42(Stop11, { offset: "100%", stopColor: p.to })
|
|
4350
4384
|
] }) }),
|
|
4351
|
-
/* @__PURE__ */
|
|
4352
|
-
mood === "empty" && /* @__PURE__ */
|
|
4353
|
-
g.legs.map((d) => /* @__PURE__ */
|
|
4354
|
-
g.back?.map((d) => d.endsWith("Z") ? /* @__PURE__ */
|
|
4355
|
-
g.parcel?.map((d, i) => /* @__PURE__ */
|
|
4356
|
-
/* @__PURE__ */
|
|
4357
|
-
/* @__PURE__ */
|
|
4385
|
+
/* @__PURE__ */ jsx42(Ellipse2, { cx: g.shadow[0], cy: g.shadow[1], rx: g.shadow[2], ry: g.shadow[3], fill: SHADE, opacity: 0.14 }),
|
|
4386
|
+
mood === "empty" && /* @__PURE__ */ jsx42(Path17, { d: MOOD_PARTS.tray, stroke: outline, strokeWidth: 1.6, strokeDasharray: "3 3", fill: "none" }),
|
|
4387
|
+
g.legs.map((d) => /* @__PURE__ */ jsx42(Path17, { d, stroke: p.beak, strokeWidth: 2.6, strokeLinecap: "round", fill: "none" }, d)),
|
|
4388
|
+
g.back?.map((d) => d.endsWith("Z") ? /* @__PURE__ */ jsx42(Path17, { d, fill: p.detail, ...line }, d) : /* @__PURE__ */ jsx42(Path17, { d, stroke: outline, strokeWidth: 1.4, fill: "none" }, d)),
|
|
4389
|
+
g.parcel?.map((d, i) => /* @__PURE__ */ jsx42(Path17, { d, fill: PARCEL[i], ...line }, d)),
|
|
4390
|
+
/* @__PURE__ */ jsx42(Path17, { d: g.body, fill: body, ...line }),
|
|
4391
|
+
/* @__PURE__ */ jsx42(Path17, { d: g.belly, fill: LIGHT, opacity: 0.28 }),
|
|
4358
4392
|
[wl, wr].map((w, i) => {
|
|
4359
4393
|
const turn = mood === "success" ? i === 0 ? 28 : -28 : mood === "welcome" && i === 1 ? -20 : 0;
|
|
4360
|
-
return /* @__PURE__ */
|
|
4361
|
-
/* @__PURE__ */
|
|
4362
|
-
/* @__PURE__ */
|
|
4394
|
+
return /* @__PURE__ */ jsxs38(G, { transform: turn ? rot(turn, w.pivot) : void 0, children: [
|
|
4395
|
+
/* @__PURE__ */ jsx42(Path17, { d: w.d, fill: p.wing, ...line }),
|
|
4396
|
+
/* @__PURE__ */ jsx42(Path17, { d: w.d, fill: SHADE, opacity: 0.16 })
|
|
4363
4397
|
] }, i);
|
|
4364
4398
|
}),
|
|
4365
|
-
g.neck && /* @__PURE__ */
|
|
4366
|
-
g.head.r > 0 && /* @__PURE__ */
|
|
4367
|
-
g.details.map((d) => /* @__PURE__ */
|
|
4368
|
-
g.visor && /* @__PURE__ */
|
|
4399
|
+
g.neck && /* @__PURE__ */ jsx42(Path17, { d: g.neck.d, stroke: body, strokeWidth: g.neck.width, strokeLinecap: "round", fill: "none" }),
|
|
4400
|
+
g.head.r > 0 && /* @__PURE__ */ jsx42(Circle12, { cx: g.head.cx, cy: g.head.cy, r: g.head.r, fill: body, ...line }),
|
|
4401
|
+
g.details.map((d) => /* @__PURE__ */ jsx42(Path17, { d, fill: p.detail, ...line }, d)),
|
|
4402
|
+
g.visor && /* @__PURE__ */ jsx42(Rect2, { x: g.visor.x, y: g.visor.y, width: g.visor.w, height: g.visor.h, rx: 4, fill: theme.surface0, ...line }),
|
|
4369
4403
|
g.eyes.at.map(
|
|
4370
|
-
(at, i) => mood === "empty" && g.eyes.white > 0 ? /* @__PURE__ */
|
|
4371
|
-
/* @__PURE__ */
|
|
4372
|
-
/* @__PURE__ */
|
|
4373
|
-
/* @__PURE__ */
|
|
4374
|
-
] }, i) : mood === "success" || mood === "empty" ? /* @__PURE__ */
|
|
4375
|
-
g.eyes.white > 0 && /* @__PURE__ */
|
|
4376
|
-
/* @__PURE__ */
|
|
4404
|
+
(at, i) => mood === "empty" && g.eyes.white > 0 ? /* @__PURE__ */ jsxs38(G, { children: [
|
|
4405
|
+
/* @__PURE__ */ jsx42(Circle12, { cx: at[0], cy: at[1], r: g.eyes.white, fill: LIGHT, ...line }),
|
|
4406
|
+
/* @__PURE__ */ jsx42(Circle12, { cx: at[0], cy: at[1] + g.eyes.pupil * 0.7, r: g.eyes.pupil, fill: SHADE }),
|
|
4407
|
+
/* @__PURE__ */ jsx42(Path17, { d: upperLid(at, g.eyes.white), fill: p.detail, ...line })
|
|
4408
|
+
] }, i) : mood === "success" || mood === "empty" ? /* @__PURE__ */ jsx42(Path17, { d: mood === "success" ? archEye(at, eyeR * 0.85) : lidEye(at, eyeR * 0.8), stroke: g.visor ? p.eye : outline, strokeWidth: 2.2, strokeLinecap: "round", fill: "none" }, i) : /* @__PURE__ */ jsxs38(G, { children: [
|
|
4409
|
+
g.eyes.white > 0 && /* @__PURE__ */ jsx42(Circle12, { cx: at[0], cy: at[1], r: g.eyes.white, fill: LIGHT, ...line }),
|
|
4410
|
+
/* @__PURE__ */ jsx42(Circle12, { cx: at[0] + look3, cy: at[1] - look3, r: g.eyes.pupil, fill: g.visor ? p.eye : SHADE })
|
|
4377
4411
|
] }, i)
|
|
4378
4412
|
),
|
|
4379
|
-
g.glasses && g.eyes.at.map(([x, y]) => /* @__PURE__ */
|
|
4380
|
-
mood === "error" && g.eyes.at.map((at, i) => /* @__PURE__ */
|
|
4381
|
-
/* @__PURE__ */
|
|
4382
|
-
mood === "thinking" && MOOD_PARTS.dots.map(([cx, cy, r], i) => /* @__PURE__ */
|
|
4383
|
-
(mood === "success" || mood === "error") && /* @__PURE__ */
|
|
4384
|
-
mood === "success" && /* @__PURE__ */
|
|
4385
|
-
mood === "error" && /* @__PURE__ */
|
|
4386
|
-
mood === "error" && /* @__PURE__ */
|
|
4413
|
+
g.glasses && g.eyes.at.map(([x, y]) => /* @__PURE__ */ jsx42(Circle12, { cx: x, cy: y, r: 6.5, fill: "none", stroke: outline, strokeWidth: 1.3 }, x)),
|
|
4414
|
+
mood === "error" && g.eyes.at.map((at, i) => /* @__PURE__ */ jsx42(Path17, { d: brow(at, eyeR, g.eyes.at.length === 1 ? 1 : i === 0 ? -1 : 1), stroke: outline, strokeWidth: 2, strokeLinecap: "round" }, i)),
|
|
4415
|
+
/* @__PURE__ */ jsx42(Path17, { d: g.beak, fill: p.beak, ...line }),
|
|
4416
|
+
mood === "thinking" && MOOD_PARTS.dots.map(([cx, cy, r], i) => /* @__PURE__ */ jsx42(Circle12, { cx, cy, r, fill: theme.textSecondary, opacity: 0.5 + i * 0.25 }, cx)),
|
|
4417
|
+
(mood === "success" || mood === "error") && /* @__PURE__ */ jsx42(Circle12, { cx: MOOD_PARTS.badge.cx, cy: MOOD_PARTS.badge.cy, r: MOOD_PARTS.badge.r, fill: mood === "success" ? theme.success : theme.danger }),
|
|
4418
|
+
mood === "success" && /* @__PURE__ */ jsx42(Path17, { d: MOOD_PARTS.check, stroke: theme.surface0, strokeWidth: 2.6, strokeLinecap: "round", strokeLinejoin: "round", fill: "none" }),
|
|
4419
|
+
mood === "error" && /* @__PURE__ */ jsx42(Path17, { d: MOOD_PARTS.bang.line, stroke: theme.surface0, strokeWidth: 2.8, strokeLinecap: "round" }),
|
|
4420
|
+
mood === "error" && /* @__PURE__ */ jsx42(Circle12, { cx: MOOD_PARTS.bang.dot[0], cy: MOOD_PARTS.bang.dot[1], r: 1.6, fill: theme.surface0 })
|
|
4387
4421
|
] }) }) });
|
|
4388
4422
|
}
|
|
4389
4423
|
|
|
4390
4424
|
// src/native/mascot-state.tsx
|
|
4391
|
-
import { jsx as
|
|
4425
|
+
import { jsx as jsx43, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
4392
4426
|
var SIZE = { sm: 64, md: 96, lg: 128 };
|
|
4393
4427
|
function useArrival(animated) {
|
|
4394
4428
|
const [value] = React27.useState(() => new Animated14.Value(animated ? 0 : 1));
|
|
@@ -4409,30 +4443,30 @@ function useArrival(animated) {
|
|
|
4409
4443
|
function MascotState({ bird = "owl", mood = "empty", title, description, action, size = "md", layout = "stacked", tone: tone3, animated = true, style, ...props }) {
|
|
4410
4444
|
const opacity = useArrival(animated);
|
|
4411
4445
|
const inline = layout === "inline";
|
|
4412
|
-
return /* @__PURE__ */
|
|
4446
|
+
return /* @__PURE__ */ jsxs39(
|
|
4413
4447
|
Animated14.View,
|
|
4414
4448
|
{
|
|
4415
4449
|
role: mood === "error" ? "alert" : "status",
|
|
4416
4450
|
accessibilityLiveRegion: mood === "error" ? "assertive" : "polite",
|
|
4417
4451
|
"aria-busy": mood === "thinking" ? true : void 0,
|
|
4418
4452
|
...props,
|
|
4419
|
-
style: [inline ?
|
|
4453
|
+
style: [inline ? styles32.inline : styles32.stacked, { opacity, transform: [{ translateY: opacity.interpolate({ inputRange: [0, 1], outputRange: [6, 0] }) }] }, style],
|
|
4420
4454
|
children: [
|
|
4421
|
-
/* @__PURE__ */
|
|
4422
|
-
/* @__PURE__ */
|
|
4423
|
-
/* @__PURE__ */
|
|
4424
|
-
description ? /* @__PURE__ */
|
|
4425
|
-
action ? /* @__PURE__ */
|
|
4455
|
+
/* @__PURE__ */ jsx43(Mascot, { bird, mood, tone: tone3, size: SIZE[size], animated }),
|
|
4456
|
+
/* @__PURE__ */ jsxs39(View38, { style: inline ? styles32.wordsInline : styles32.words, children: [
|
|
4457
|
+
/* @__PURE__ */ jsx43(Txt, { variant: "label", role: "heading", style: inline ? null : styles32.center, children: title }),
|
|
4458
|
+
description ? /* @__PURE__ */ jsx43(Txt, { tone: "secondary", style: inline ? null : styles32.center, children: description }) : null,
|
|
4459
|
+
action ? /* @__PURE__ */ jsx43(View38, { style: [styles32.action, inline ? null : styles32.actionCentred], children: action }) : null
|
|
4426
4460
|
] })
|
|
4427
4461
|
]
|
|
4428
4462
|
}
|
|
4429
4463
|
);
|
|
4430
4464
|
}
|
|
4431
|
-
var ErrorState = (props) => /* @__PURE__ */
|
|
4432
|
-
var SuccessState = (props) => /* @__PURE__ */
|
|
4433
|
-
var LoadingState = (props) => /* @__PURE__ */
|
|
4434
|
-
var WelcomeState = (props) => /* @__PURE__ */
|
|
4435
|
-
var
|
|
4465
|
+
var ErrorState = (props) => /* @__PURE__ */ jsx43(MascotState, { mood: "error", ...props });
|
|
4466
|
+
var SuccessState = (props) => /* @__PURE__ */ jsx43(MascotState, { mood: "success", ...props });
|
|
4467
|
+
var LoadingState = (props) => /* @__PURE__ */ jsx43(MascotState, { mood: "thinking", ...props });
|
|
4468
|
+
var WelcomeState = (props) => /* @__PURE__ */ jsx43(MascotState, { mood: "welcome", ...props });
|
|
4469
|
+
var styles32 = StyleSheet32.create({
|
|
4436
4470
|
stacked: { alignItems: "center", justifyContent: "center", gap: 12, paddingVertical: 40, paddingHorizontal: 24 },
|
|
4437
4471
|
inline: { flexDirection: "row", alignItems: "center", gap: 16 },
|
|
4438
4472
|
words: { alignItems: "center", gap: 6 },
|
|
@@ -4444,9 +4478,9 @@ var styles31 = StyleSheet31.create({
|
|
|
4444
4478
|
|
|
4445
4479
|
// src/native/match-dialog.tsx
|
|
4446
4480
|
import * as React28 from "react";
|
|
4447
|
-
import { AccessibilityInfo as AccessibilityInfo10, Animated as Animated15, Easing as Easing8, Modal as Modal4, Pressable as
|
|
4481
|
+
import { AccessibilityInfo as AccessibilityInfo10, Animated as Animated15, Easing as Easing8, Modal as Modal4, Pressable as Pressable18, StyleSheet as StyleSheet33, View as View39 } from "react-native";
|
|
4448
4482
|
import Svg20, { Path as Path18 } from "react-native-svg";
|
|
4449
|
-
import { jsx as
|
|
4483
|
+
import { jsx as jsx44, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
4450
4484
|
function MatchDialog({ open, onOpenChange, title, description, people, primaryLabel, onPrimary, secondaryLabel }) {
|
|
4451
4485
|
const { theme, haptic } = useTheme();
|
|
4452
4486
|
const reduce = useReducedMotion();
|
|
@@ -4466,17 +4500,17 @@ function MatchDialog({ open, onOpenChange, title, description, people, primaryLa
|
|
|
4466
4500
|
}
|
|
4467
4501
|
}, [open, reduce, t]);
|
|
4468
4502
|
const side = (dir) => ({ transform: [{ translateX: t.interpolate({ inputRange: [0, 1], outputRange: [dir * 110, dir * 50] }) }, { rotate: dir === -1 ? "-8deg" : "8deg" }] });
|
|
4469
|
-
return /* @__PURE__ */
|
|
4470
|
-
/* @__PURE__ */
|
|
4471
|
-
/* @__PURE__ */
|
|
4472
|
-
description ? /* @__PURE__ */
|
|
4473
|
-
/* @__PURE__ */
|
|
4474
|
-
/* @__PURE__ */
|
|
4475
|
-
/* @__PURE__ */
|
|
4476
|
-
/* @__PURE__ */
|
|
4503
|
+
return /* @__PURE__ */ jsx44(Modal4, { ...modalName(title), visible: open, transparent: true, animationType: reduce ? "none" : "fade", onRequestClose: () => onOpenChange(false), statusBarTranslucent: true, children: /* @__PURE__ */ jsxs40(View39, { accessibilityViewIsModal: true, style: [styles33.screen, { backgroundColor: theme.accent }], children: [
|
|
4504
|
+
/* @__PURE__ */ jsx44(View39, { style: [StyleSheet33.absoluteFill, { backgroundColor: theme.accent2, opacity: 0.55 }] }),
|
|
4505
|
+
/* @__PURE__ */ jsx44(Txt, { variant: "display", tone: "onAccent", style: styles33.title, children: title }),
|
|
4506
|
+
description ? /* @__PURE__ */ jsx44(Txt, { tone: "onAccent", style: styles33.center, children: description }) : null,
|
|
4507
|
+
/* @__PURE__ */ jsxs40(View39, { style: styles33.pair, "aria-hidden": true, children: [
|
|
4508
|
+
/* @__PURE__ */ jsx44(Animated15.View, { style: [styles33.photo, side(-1), { borderColor: theme.onAccent }], children: /* @__PURE__ */ jsx44(Avatar, { src: people[0].src, alt: "", fallback: people[0].name.charAt(0), size: 112 }) }),
|
|
4509
|
+
/* @__PURE__ */ jsx44(Animated15.View, { style: [styles33.photo, side(1), { borderColor: theme.onAccent }], children: /* @__PURE__ */ jsx44(Avatar, { src: people[1].src, alt: "", fallback: people[1].name.charAt(0), size: 112 }) }),
|
|
4510
|
+
/* @__PURE__ */ jsx44(Animated15.View, { style: [styles33.heart, { backgroundColor: theme.onAccent, transform: [{ scale: t }] }], children: /* @__PURE__ */ jsx44(Svg20, { width: 26, height: 26, viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx44(Path18, { d: "M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z", fill: theme.accent }) }) })
|
|
4477
4511
|
] }),
|
|
4478
|
-
/* @__PURE__ */
|
|
4479
|
-
/* @__PURE__ */
|
|
4512
|
+
/* @__PURE__ */ jsxs40(View39, { style: styles33.actions, children: [
|
|
4513
|
+
/* @__PURE__ */ jsx44(
|
|
4480
4514
|
Button,
|
|
4481
4515
|
{
|
|
4482
4516
|
label: primaryLabel,
|
|
@@ -4487,11 +4521,11 @@ function MatchDialog({ open, onOpenChange, title, description, people, primaryLa
|
|
|
4487
4521
|
}
|
|
4488
4522
|
}
|
|
4489
4523
|
),
|
|
4490
|
-
/* @__PURE__ */
|
|
4524
|
+
/* @__PURE__ */ jsx44(Pressable18, { role: "button", onPress: () => onOpenChange(false), style: ({ pressed }) => [styles33.secondary, { borderColor: theme.onAccent, opacity: pressed ? 0.8 : 1 }], children: /* @__PURE__ */ jsx44(Txt, { variant: "label", tone: "onAccent", children: secondaryLabel }) })
|
|
4491
4525
|
] })
|
|
4492
4526
|
] }) });
|
|
4493
4527
|
}
|
|
4494
|
-
var
|
|
4528
|
+
var styles33 = StyleSheet33.create({
|
|
4495
4529
|
screen: { flex: 1, alignItems: "center", justifyContent: "center", gap: 12, padding: 32 },
|
|
4496
4530
|
title: { textAlign: "center", fontSize: 40, lineHeight: 46 },
|
|
4497
4531
|
center: { textAlign: "center", maxWidth: 300 },
|
|
@@ -4503,23 +4537,23 @@ var styles32 = StyleSheet32.create({
|
|
|
4503
4537
|
});
|
|
4504
4538
|
|
|
4505
4539
|
// src/native/meta-row.tsx
|
|
4506
|
-
import { View as
|
|
4507
|
-
import { jsx as
|
|
4540
|
+
import { View as View40 } from "react-native";
|
|
4541
|
+
import { jsx as jsx45, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
4508
4542
|
var present = (n) => n !== null && n !== void 0 && n !== false && n !== "";
|
|
4509
4543
|
function MetaRow({ items: items2, chips = [], label, style, ...props }) {
|
|
4510
4544
|
const facts = items2.filter(present);
|
|
4511
4545
|
const tail = chips.filter(present);
|
|
4512
|
-
return /* @__PURE__ */
|
|
4513
|
-
facts.map((fact, i) => /* @__PURE__ */
|
|
4514
|
-
i > 0 ? /* @__PURE__ */
|
|
4515
|
-
typeof fact === "string" || typeof fact === "number" ? /* @__PURE__ */
|
|
4546
|
+
return /* @__PURE__ */ jsxs41(View40, { role: "list", "aria-label": label, ...props, style: [{ flexDirection: "row", flexWrap: "wrap", alignItems: "center", columnGap: 8, rowGap: 6 }, style], children: [
|
|
4547
|
+
facts.map((fact, i) => /* @__PURE__ */ jsxs41(View40, { role: "listitem", accessible: true, style: { flexDirection: "row", alignItems: "center", columnGap: 8 }, children: [
|
|
4548
|
+
i > 0 ? /* @__PURE__ */ jsx45(Txt, { variant: "caption", tone: "muted", "aria-hidden": true, importantForAccessibility: "no", children: "\xB7" }) : null,
|
|
4549
|
+
typeof fact === "string" || typeof fact === "number" ? /* @__PURE__ */ jsx45(Txt, { variant: "caption", tone: "secondary", children: fact }) : fact
|
|
4516
4550
|
] }, i)),
|
|
4517
|
-
tail.map((chip, i) => /* @__PURE__ */
|
|
4551
|
+
tail.map((chip, i) => /* @__PURE__ */ jsx45(View40, { role: "listitem", accessible: true, children: chip }, `chip-${i}`))
|
|
4518
4552
|
] });
|
|
4519
4553
|
}
|
|
4520
4554
|
|
|
4521
4555
|
// src/native/meter.tsx
|
|
4522
|
-
import { StyleSheet as
|
|
4556
|
+
import { StyleSheet as StyleSheet34, View as View41 } from "react-native";
|
|
4523
4557
|
import Svg21, { Circle as Circle13 } from "react-native-svg";
|
|
4524
4558
|
|
|
4525
4559
|
// src/meter/model.ts
|
|
@@ -4548,7 +4582,7 @@ function meterModel({ value = 0, min = 0, max = 100, valueText, thresholds, opti
|
|
|
4548
4582
|
}
|
|
4549
4583
|
|
|
4550
4584
|
// src/native/meter.tsx
|
|
4551
|
-
import { jsx as
|
|
4585
|
+
import { jsx as jsx46, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
4552
4586
|
var THICK = { sm: 6, md: 8, lg: 12 };
|
|
4553
4587
|
var RING = { sm: 56, md: 96, lg: 144 };
|
|
4554
4588
|
var partColor = (t, i) => [t.accent, t.warning, t.success, t.textSecondary, t.danger][i % 5];
|
|
@@ -4559,36 +4593,36 @@ function Meter({ label, value = 0, min = 0, max = 100, valueText, thresholds, op
|
|
|
4559
4593
|
const tone3 = levelColor(theme, level);
|
|
4560
4594
|
const shares = modelShares.map((p) => ({ ...p, color: partColor(theme, p.i) }));
|
|
4561
4595
|
const a11y = parts ? { role: "group", "aria-label": `${label}: ${shares.map((p) => `${p.label} ${p.words}`).join(", ")}` } : { role: "meter", "aria-label": label, "aria-valuemin": min, "aria-valuemax": max, "aria-valuenow": Math.min(max, Math.max(min, value)), "aria-valuetext": words2 };
|
|
4562
|
-
const legend = parts ? /* @__PURE__ */
|
|
4563
|
-
/* @__PURE__ */
|
|
4564
|
-
/* @__PURE__ */
|
|
4565
|
-
/* @__PURE__ */
|
|
4596
|
+
const legend = parts ? /* @__PURE__ */ jsx46(View41, { style: styles34.legend, "aria-hidden": true, children: shares.map((p, i) => /* @__PURE__ */ jsxs42(View41, { style: styles34.legendItem, children: [
|
|
4597
|
+
/* @__PURE__ */ jsx46(View41, { style: [styles34.swatch, { backgroundColor: p.color }] }),
|
|
4598
|
+
/* @__PURE__ */ jsx46(Txt, { variant: "caption", children: p.label }),
|
|
4599
|
+
/* @__PURE__ */ jsx46(Txt, { variant: "caption", tone: "secondary", children: p.words })
|
|
4566
4600
|
] }, i)) }) : null;
|
|
4567
4601
|
if (variant === "ring") {
|
|
4568
4602
|
const side = RING[size];
|
|
4569
4603
|
const r = 44;
|
|
4570
4604
|
const c = 2 * Math.PI * r;
|
|
4571
|
-
return /* @__PURE__ */
|
|
4572
|
-
/* @__PURE__ */
|
|
4573
|
-
/* @__PURE__ */
|
|
4574
|
-
/* @__PURE__ */
|
|
4575
|
-
arcs.map((arc, i) => /* @__PURE__ */
|
|
4605
|
+
return /* @__PURE__ */ jsxs42(View41, { accessible: true, ...a11y, style: [styles34.ringRoot, style], children: [
|
|
4606
|
+
/* @__PURE__ */ jsxs42(View41, { style: { width: side, height: side }, children: [
|
|
4607
|
+
/* @__PURE__ */ jsxs42(Svg21, { width: side, height: side, viewBox: "0 0 100 100", style: { transform: [{ rotate: "-90deg" }] }, children: [
|
|
4608
|
+
/* @__PURE__ */ jsx46(Circle13, { cx: 50, cy: 50, r, fill: "none", stroke: theme.borderDefault, strokeWidth: 9 }),
|
|
4609
|
+
arcs.map((arc, i) => /* @__PURE__ */ jsx46(Circle13, { cx: 50, cy: 50, r, fill: "none", stroke: arc.part === void 0 ? tone3 : partColor(theme, arc.part), strokeWidth: 9, strokeDasharray: `${Math.max(0, arc.len * c - (parts ? 2 : 0))} ${c}`, strokeDashoffset: -arc.start * c, strokeLinecap: parts ? "butt" : "round" }, i))
|
|
4576
4610
|
] }),
|
|
4577
|
-
children !== void 0 ? /* @__PURE__ */
|
|
4611
|
+
children !== void 0 ? /* @__PURE__ */ jsx46(View41, { style: [StyleSheet34.absoluteFill, styles34.center], children }) : null
|
|
4578
4612
|
] }),
|
|
4579
4613
|
legend
|
|
4580
4614
|
] });
|
|
4581
4615
|
}
|
|
4582
|
-
return /* @__PURE__ */
|
|
4583
|
-
showLabel ? /* @__PURE__ */
|
|
4584
|
-
/* @__PURE__ */
|
|
4585
|
-
!parts ? /* @__PURE__ */
|
|
4616
|
+
return /* @__PURE__ */ jsxs42(View41, { accessible: true, ...a11y, style: [styles34.root, style], children: [
|
|
4617
|
+
showLabel ? /* @__PURE__ */ jsxs42(View41, { style: styles34.header, "aria-hidden": true, children: [
|
|
4618
|
+
/* @__PURE__ */ jsx46(Txt, { variant: "caption", numberOfLines: 1, style: styles34.caption, children: label }),
|
|
4619
|
+
!parts ? /* @__PURE__ */ jsx46(Txt, { variant: "caption", tone: "secondary", children: words2 }) : null
|
|
4586
4620
|
] }) : null,
|
|
4587
|
-
/* @__PURE__ */
|
|
4621
|
+
/* @__PURE__ */ jsx46(View41, { style: [styles34.track, { height: THICK[size], backgroundColor: theme.surface3 }], children: parts ? shares.map((p, i) => /* @__PURE__ */ jsx46(View41, { style: { width: `${p.ratio * 100}%`, backgroundColor: p.color } }, i)) : /* @__PURE__ */ jsx46(View41, { style: [styles34.fill, { width: `${ratio * 100}%`, backgroundColor: tone3 }] }) }),
|
|
4588
4622
|
legend
|
|
4589
4623
|
] });
|
|
4590
4624
|
}
|
|
4591
|
-
var
|
|
4625
|
+
var styles34 = StyleSheet34.create({
|
|
4592
4626
|
root: { width: "100%", gap: 6 },
|
|
4593
4627
|
header: { flexDirection: "row", alignItems: "baseline", gap: 8 },
|
|
4594
4628
|
caption: { flex: 1, fontWeight: "600" },
|
|
@@ -4604,7 +4638,7 @@ var styles33 = StyleSheet33.create({
|
|
|
4604
4638
|
// src/native/number-ticker.tsx
|
|
4605
4639
|
import * as React29 from "react";
|
|
4606
4640
|
import { AccessibilityInfo as AccessibilityInfo11, Animated as Animated16, Easing as Easing9, Text as Text15 } from "react-native";
|
|
4607
|
-
import { jsx as
|
|
4641
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
4608
4642
|
function NumberTicker({ value, locale, format, trigger = "mount", duration = 1100, announce, variant = "display", tone: tone3 = "text", style }) {
|
|
4609
4643
|
const reduce = useReducedMotion();
|
|
4610
4644
|
const writer = React29.useMemo(() => new Intl.NumberFormat(locale, format), [locale, format]);
|
|
@@ -4632,13 +4666,13 @@ function NumberTicker({ value, locale, format, trigger = "mount", duration = 110
|
|
|
4632
4666
|
};
|
|
4633
4667
|
}, [value, reduce, trigger, duration, announce, anim, writer]);
|
|
4634
4668
|
const digits = Number.isInteger(value) ? Math.round(shown) : shown;
|
|
4635
|
-
return /* @__PURE__ */
|
|
4669
|
+
return /* @__PURE__ */ jsx47(Txt, { variant, tone: tone3, "aria-label": writer.format(value), style: [{ fontVariant: ["lining-nums", "tabular-nums"] }, style], children: /* @__PURE__ */ jsx47(Text15, { "aria-hidden": true, children: writer.format(digits) }) });
|
|
4636
4670
|
}
|
|
4637
4671
|
|
|
4638
4672
|
// src/native/onboarding.tsx
|
|
4639
4673
|
import * as React30 from "react";
|
|
4640
|
-
import { ScrollView as ScrollView5, StyleSheet as
|
|
4641
|
-
import { jsx as
|
|
4674
|
+
import { ScrollView as ScrollView5, StyleSheet as StyleSheet35, View as View42 } from "react-native";
|
|
4675
|
+
import { jsx as jsx48, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
4642
4676
|
function Onboarding({ slides, labels, onDone, style }) {
|
|
4643
4677
|
const { theme, insets, haptic } = useTheme();
|
|
4644
4678
|
const [width, setWidth] = React30.useState(0);
|
|
@@ -4653,18 +4687,18 @@ function Onboarding({ slides, labels, onDone, style }) {
|
|
|
4653
4687
|
const onScroll = (e) => {
|
|
4654
4688
|
if (width > 0) setPage(Math.round(e.nativeEvent.contentOffset.x / width));
|
|
4655
4689
|
};
|
|
4656
|
-
return /* @__PURE__ */
|
|
4657
|
-
/* @__PURE__ */
|
|
4658
|
-
/* @__PURE__ */
|
|
4659
|
-
slide.visual ? /* @__PURE__ */
|
|
4660
|
-
/* @__PURE__ */
|
|
4661
|
-
/* @__PURE__ */
|
|
4690
|
+
return /* @__PURE__ */ jsxs43(View42, { style: [styles35.root, { backgroundColor: theme.surface0, paddingTop: insets.top + 8, paddingBottom: insets.bottom + 16 }, style], onLayout: (e) => setWidth(e.nativeEvent.layout.width), children: [
|
|
4691
|
+
/* @__PURE__ */ jsx48(View42, { style: styles35.top, children: !last ? /* @__PURE__ */ jsx48(Button, { label: labels.skip, variant: "ghost", size: "sm", onPress: onDone }) : /* @__PURE__ */ jsx48(View42, { style: styles35.spacer }) }),
|
|
4692
|
+
/* @__PURE__ */ jsx48(ScrollView5, { ref: scroller, tabIndex: 0, horizontal: true, pagingEnabled: true, showsHorizontalScrollIndicator: false, onMomentumScrollEnd: onScroll, style: styles35.flex, children: slides.map((slide, i) => /* @__PURE__ */ jsxs43(View42, { style: [styles35.slide, { width: width || void 0 }], accessible: true, "aria-label": `${labels.position(i + 1, slides.length)}. ${slide.title}. ${slide.description}`, "aria-hidden": i !== page, children: [
|
|
4693
|
+
slide.visual ? /* @__PURE__ */ jsx48(View42, { style: styles35.visual, children: slide.visual }) : null,
|
|
4694
|
+
/* @__PURE__ */ jsx48(Txt, { variant: "display", style: styles35.centred, children: slide.title }),
|
|
4695
|
+
/* @__PURE__ */ jsx48(Txt, { tone: "secondary", style: [styles35.centred, styles35.description], children: slide.description })
|
|
4662
4696
|
] }, i)) }),
|
|
4663
|
-
/* @__PURE__ */
|
|
4664
|
-
/* @__PURE__ */
|
|
4697
|
+
/* @__PURE__ */ jsx48(View42, { style: styles35.dots, "aria-hidden": true, children: slides.map((_, i) => /* @__PURE__ */ jsx48(View42, { style: [styles35.dot, { width: i === page ? 22 : 8, backgroundColor: i === page ? theme.accent : theme.borderStrong }] }, i)) }),
|
|
4698
|
+
/* @__PURE__ */ jsx48(View42, { style: styles35.bottom, children: /* @__PURE__ */ jsx48(Button, { label: last ? labels.done : labels.next, variant: last ? "gradient" : "primary", size: "lg", onPress: () => last ? onDone() : go(page + 1) }) })
|
|
4665
4699
|
] });
|
|
4666
4700
|
}
|
|
4667
|
-
var
|
|
4701
|
+
var styles35 = StyleSheet35.create({
|
|
4668
4702
|
root: { flex: 1 },
|
|
4669
4703
|
top: { flexDirection: "row", justifyContent: "flex-end", paddingHorizontal: 16, minHeight: 32 },
|
|
4670
4704
|
spacer: { height: 32 },
|
|
@@ -4680,8 +4714,8 @@ var styles34 = StyleSheet34.create({
|
|
|
4680
4714
|
|
|
4681
4715
|
// src/native/otp-input.tsx
|
|
4682
4716
|
import * as React31 from "react";
|
|
4683
|
-
import { Platform as Platform2, Pressable as
|
|
4684
|
-
import { jsx as
|
|
4717
|
+
import { Platform as Platform2, Pressable as Pressable19, StyleSheet as StyleSheet36, TextInput as TextInput5, View as View43 } from "react-native";
|
|
4718
|
+
import { jsx as jsx49, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
4685
4719
|
function OtpInput({ label, length = 6, value, onValueChange, onComplete, mode = "numeric", invalid, disabled, autoFocus, style }) {
|
|
4686
4720
|
const { theme, radius: radius3, haptic } = useTheme();
|
|
4687
4721
|
const [own, setOwn] = React31.useState("");
|
|
@@ -4700,14 +4734,14 @@ function OtpInput({ label, length = 6, value, onValueChange, onComplete, mode =
|
|
|
4700
4734
|
onComplete?.(next);
|
|
4701
4735
|
}
|
|
4702
4736
|
};
|
|
4703
|
-
return /* @__PURE__ */
|
|
4704
|
-
/* @__PURE__ */
|
|
4737
|
+
return /* @__PURE__ */ jsxs44(Pressable19, { onPress: () => input.current?.focus(), disabled, accessible: false, style: [styles36.root, style], children: [
|
|
4738
|
+
/* @__PURE__ */ jsx49(View43, { style: styles36.boxes, "aria-hidden": true, children: Array.from({ length }, (_, i) => {
|
|
4705
4739
|
const active = focused && i === Math.min(code.length, length - 1);
|
|
4706
|
-
return /* @__PURE__ */
|
|
4707
|
-
|
|
4740
|
+
return /* @__PURE__ */ jsx49(
|
|
4741
|
+
View43,
|
|
4708
4742
|
{
|
|
4709
4743
|
style: [
|
|
4710
|
-
|
|
4744
|
+
styles36.box,
|
|
4711
4745
|
{
|
|
4712
4746
|
borderRadius: radius3.md,
|
|
4713
4747
|
backgroundColor: theme.surface2,
|
|
@@ -4715,12 +4749,12 @@ function OtpInput({ label, length = 6, value, onValueChange, onComplete, mode =
|
|
|
4715
4749
|
borderWidth: invalid || active ? 2 : 1
|
|
4716
4750
|
}
|
|
4717
4751
|
],
|
|
4718
|
-
children: /* @__PURE__ */
|
|
4752
|
+
children: /* @__PURE__ */ jsx49(Txt, { variant: "title", children: code[i] ?? "" })
|
|
4719
4753
|
},
|
|
4720
4754
|
i
|
|
4721
4755
|
);
|
|
4722
4756
|
}) }),
|
|
4723
|
-
/* @__PURE__ */
|
|
4757
|
+
/* @__PURE__ */ jsx49(
|
|
4724
4758
|
TextInput5,
|
|
4725
4759
|
{
|
|
4726
4760
|
ref: input,
|
|
@@ -4739,12 +4773,12 @@ function OtpInput({ label, length = 6, value, onValueChange, onComplete, mode =
|
|
|
4739
4773
|
caretHidden: true,
|
|
4740
4774
|
onFocus: () => setFocused(true),
|
|
4741
4775
|
onBlur: () => setFocused(false),
|
|
4742
|
-
style:
|
|
4776
|
+
style: styles36.hidden
|
|
4743
4777
|
}
|
|
4744
4778
|
)
|
|
4745
4779
|
] });
|
|
4746
4780
|
}
|
|
4747
|
-
var
|
|
4781
|
+
var styles36 = StyleSheet36.create({
|
|
4748
4782
|
root: { alignSelf: "flex-start" },
|
|
4749
4783
|
boxes: { flexDirection: "row", gap: 8 },
|
|
4750
4784
|
box: { width: 46, height: 56, alignItems: "center", justifyContent: "center" },
|
|
@@ -4752,11 +4786,11 @@ var styles35 = StyleSheet35.create({
|
|
|
4752
4786
|
});
|
|
4753
4787
|
|
|
4754
4788
|
// src/native/pagination.tsx
|
|
4755
|
-
import { Pressable as
|
|
4789
|
+
import { Pressable as Pressable20, StyleSheet as StyleSheet37, Text as Text16, View as View44 } from "react-native";
|
|
4756
4790
|
import Svg22, { Path as Path19 } from "react-native-svg";
|
|
4757
|
-
import { jsx as
|
|
4791
|
+
import { jsx as jsx50, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
4758
4792
|
function Chevron3({ direction, color }) {
|
|
4759
|
-
return /* @__PURE__ */
|
|
4793
|
+
return /* @__PURE__ */ jsx50(Svg22, { width: 18, height: 18, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2.2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx50(Path19, { d: direction === "left" ? "m15 6-6 6 6 6" : "m9 6 6 6-6 6" }) });
|
|
4760
4794
|
}
|
|
4761
4795
|
function Pagination({ page = 1, pageCount, onPageChange, hasPrevious, hasNext, onPrevious, onNext, status, disabled, labels, style }) {
|
|
4762
4796
|
const { theme, radius: radius3 } = useTheme();
|
|
@@ -4765,8 +4799,8 @@ function Pagination({ page = 1, pageCount, onPageChange, hasPrevious, hasNext, o
|
|
|
4765
4799
|
const current = Math.min(Math.max(1, page), count);
|
|
4766
4800
|
const canPrevious = !disabled && (paged ? current > 1 : Boolean(hasPrevious));
|
|
4767
4801
|
const canNext = !disabled && (paged ? current < count : Boolean(hasNext));
|
|
4768
|
-
const button = (direction, enabled, onPress, label) => /* @__PURE__ */
|
|
4769
|
-
|
|
4802
|
+
const button = (direction, enabled, onPress, label) => /* @__PURE__ */ jsx50(
|
|
4803
|
+
Pressable20,
|
|
4770
4804
|
{
|
|
4771
4805
|
role: "button",
|
|
4772
4806
|
"aria-label": label,
|
|
@@ -4775,28 +4809,28 @@ function Pagination({ page = 1, pageCount, onPageChange, hasPrevious, hasNext, o
|
|
|
4775
4809
|
hitSlop: 6,
|
|
4776
4810
|
onPress,
|
|
4777
4811
|
style: ({ pressed }) => [
|
|
4778
|
-
|
|
4812
|
+
styles37.button,
|
|
4779
4813
|
{ borderRadius: radius3.sm, borderColor: theme.borderDefault, backgroundColor: theme.surface1, opacity: enabled ? pressed ? 0.8 : 1 : 0.4 }
|
|
4780
4814
|
],
|
|
4781
|
-
children: /* @__PURE__ */
|
|
4815
|
+
children: /* @__PURE__ */ jsx50(Chevron3, { direction, color: theme.textPrimary })
|
|
4782
4816
|
}
|
|
4783
4817
|
);
|
|
4784
4818
|
const text = status ?? (paged ? labels.compact(current, count) : null);
|
|
4785
|
-
return /* @__PURE__ */
|
|
4819
|
+
return /* @__PURE__ */ jsxs45(View44, { role: "navigation", style: [styles37.row, style], children: [
|
|
4786
4820
|
button("left", canPrevious, paged ? () => onPageChange?.(current - 1) : onPrevious, labels.previous),
|
|
4787
|
-
text ? /* @__PURE__ */
|
|
4821
|
+
text ? /* @__PURE__ */ jsx50(Text16, { "aria-live": "polite", style: [styles37.status, { color: theme.textSecondary }], children: text }) : null,
|
|
4788
4822
|
button("right", canNext, paged ? () => onPageChange?.(current + 1) : onNext, labels.next)
|
|
4789
4823
|
] });
|
|
4790
4824
|
}
|
|
4791
|
-
var
|
|
4825
|
+
var styles37 = StyleSheet37.create({
|
|
4792
4826
|
row: { flexDirection: "row", alignItems: "center", justifyContent: "space-between", gap: 12 },
|
|
4793
|
-
button: { width: 44, height: 44, alignItems: "center", justifyContent: "center", borderWidth:
|
|
4827
|
+
button: { width: 44, height: 44, alignItems: "center", justifyContent: "center", borderWidth: StyleSheet37.hairlineWidth },
|
|
4794
4828
|
status: { fontSize: 13, fontWeight: "600", fontVariant: ["lining-nums", "tabular-nums"] }
|
|
4795
4829
|
});
|
|
4796
4830
|
|
|
4797
4831
|
// src/native/permission-prompt.tsx
|
|
4798
|
-
import { StyleSheet as
|
|
4799
|
-
import { Fragment as Fragment8, jsx as
|
|
4832
|
+
import { StyleSheet as StyleSheet38, View as View45 } from "react-native";
|
|
4833
|
+
import { Fragment as Fragment8, jsx as jsx51, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
4800
4834
|
function PermissionPrompt({
|
|
4801
4835
|
status,
|
|
4802
4836
|
title,
|
|
@@ -4813,27 +4847,27 @@ function PermissionPrompt({
|
|
|
4813
4847
|
style
|
|
4814
4848
|
}) {
|
|
4815
4849
|
const { theme, radius: radius3 } = useTheme();
|
|
4816
|
-
if (status === "granted") return /* @__PURE__ */
|
|
4850
|
+
if (status === "granted") return /* @__PURE__ */ jsx51(Fragment8, { children: children ?? null });
|
|
4817
4851
|
const blocked = status === "blocked" || status === "denied" && Boolean(onOpenSettings);
|
|
4818
|
-
return /* @__PURE__ */
|
|
4819
|
-
/* @__PURE__ */
|
|
4820
|
-
/* @__PURE__ */
|
|
4821
|
-
/* @__PURE__ */
|
|
4822
|
-
/* @__PURE__ */
|
|
4823
|
-
blocked && settingsLabel && onOpenSettings ? /* @__PURE__ */
|
|
4824
|
-
dismissLabel && onDismiss ? /* @__PURE__ */
|
|
4852
|
+
return /* @__PURE__ */ jsxs46(View45, { style: [styles38.root, { backgroundColor: theme.surface1, borderColor: theme.borderSubtle, borderRadius: radius3.xl }, style], children: [
|
|
4853
|
+
/* @__PURE__ */ jsx51(Mascot, { bird: mascot, mood: blocked ? "error" : "welcome", size: 104 }),
|
|
4854
|
+
/* @__PURE__ */ jsx51(Txt, { variant: "title", style: styles38.centred, children: title }),
|
|
4855
|
+
/* @__PURE__ */ jsx51(Txt, { tone: "secondary", style: styles38.centred, children: blocked && blockedDescription ? blockedDescription : description }),
|
|
4856
|
+
/* @__PURE__ */ jsxs46(View45, { style: styles38.actions, children: [
|
|
4857
|
+
blocked && settingsLabel && onOpenSettings ? /* @__PURE__ */ jsx51(Button, { label: settingsLabel, variant: "primary", onPress: onOpenSettings }) : /* @__PURE__ */ jsx51(Button, { label: allowLabel, variant: "primary", onPress: onAllow }),
|
|
4858
|
+
dismissLabel && onDismiss ? /* @__PURE__ */ jsx51(Button, { label: dismissLabel, variant: "ghost", onPress: onDismiss }) : null
|
|
4825
4859
|
] })
|
|
4826
4860
|
] });
|
|
4827
4861
|
}
|
|
4828
|
-
var
|
|
4829
|
-
root: { alignItems: "center", gap: 10, padding: 24, borderWidth:
|
|
4862
|
+
var styles38 = StyleSheet38.create({
|
|
4863
|
+
root: { alignItems: "center", gap: 10, padding: 24, borderWidth: StyleSheet38.hairlineWidth },
|
|
4830
4864
|
centred: { textAlign: "center", maxWidth: 340 },
|
|
4831
4865
|
actions: { marginTop: 8, gap: 8, alignSelf: "stretch" }
|
|
4832
4866
|
});
|
|
4833
4867
|
|
|
4834
4868
|
// src/native/phoenix.tsx
|
|
4835
4869
|
import { useEffect as useEffect20, useState as useState31 } from "react";
|
|
4836
|
-
import { AccessibilityInfo as AccessibilityInfo12, Animated as Animated17, Easing as Easing10, View as
|
|
4870
|
+
import { AccessibilityInfo as AccessibilityInfo12, Animated as Animated17, Easing as Easing10, View as View46 } from "react-native";
|
|
4837
4871
|
import Svg23, { Circle as Circle14, Defs as Defs12, LinearGradient as LinearGradient9, Path as Path20, RadialGradient as RadialGradient9, Stop as Stop12 } from "react-native-svg";
|
|
4838
4872
|
|
|
4839
4873
|
// src/mascots/phoenix-geometry.ts
|
|
@@ -4857,7 +4891,7 @@ var PHOENIX_PALETTES = {
|
|
|
4857
4891
|
};
|
|
4858
4892
|
|
|
4859
4893
|
// src/native/phoenix.tsx
|
|
4860
|
-
import { jsx as
|
|
4894
|
+
import { jsx as jsx52, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
4861
4895
|
function useFloat(animated) {
|
|
4862
4896
|
const [y] = useState31(() => new Animated17.Value(0));
|
|
4863
4897
|
useEffect20(() => {
|
|
@@ -4882,37 +4916,37 @@ function Phoenix({ tone: tone3 = "own", size = 120, animated = true, title, styl
|
|
|
4882
4916
|
const id = useSvgId("kzp");
|
|
4883
4917
|
const y = useFloat(animated);
|
|
4884
4918
|
const p = tone3 === "brand" ? { left: [theme.accent2, theme.accent], right: [theme.accent, theme.accent2], core: ["#ffffff", theme.accent], body: theme.surface3, edge: theme.borderStrong, crest: theme.accent } : PHOENIX_PALETTES.own;
|
|
4885
|
-
return /* @__PURE__ */
|
|
4886
|
-
/* @__PURE__ */
|
|
4887
|
-
/* @__PURE__ */
|
|
4888
|
-
/* @__PURE__ */
|
|
4889
|
-
/* @__PURE__ */
|
|
4919
|
+
return /* @__PURE__ */ jsx52(View46, { style: [{ width: size, height: size }, style], ...markA11y(title), children: /* @__PURE__ */ jsx52(Animated17.View, { style: { transform: [{ translateY: y }] }, children: /* @__PURE__ */ jsxs47(Svg23, { width: size, height: size, viewBox: "0 0 120 120", children: [
|
|
4920
|
+
/* @__PURE__ */ jsxs47(Defs12, { children: [
|
|
4921
|
+
/* @__PURE__ */ jsxs47(LinearGradient9, { id: `${id}l`, x1: "1", y1: "0", x2: "0", y2: "1", children: [
|
|
4922
|
+
/* @__PURE__ */ jsx52(Stop12, { offset: "0%", stopColor: p.left[0] }),
|
|
4923
|
+
/* @__PURE__ */ jsx52(Stop12, { offset: "100%", stopColor: p.left[1] })
|
|
4890
4924
|
] }),
|
|
4891
|
-
/* @__PURE__ */
|
|
4892
|
-
/* @__PURE__ */
|
|
4893
|
-
/* @__PURE__ */
|
|
4925
|
+
/* @__PURE__ */ jsxs47(LinearGradient9, { id: `${id}r`, x1: "0", y1: "0", x2: "1", y2: "1", children: [
|
|
4926
|
+
/* @__PURE__ */ jsx52(Stop12, { offset: "0%", stopColor: p.right[0] }),
|
|
4927
|
+
/* @__PURE__ */ jsx52(Stop12, { offset: "100%", stopColor: p.right[1] })
|
|
4894
4928
|
] }),
|
|
4895
|
-
/* @__PURE__ */
|
|
4896
|
-
/* @__PURE__ */
|
|
4897
|
-
/* @__PURE__ */
|
|
4929
|
+
/* @__PURE__ */ jsxs47(RadialGradient9, { id: `${id}c`, children: [
|
|
4930
|
+
/* @__PURE__ */ jsx52(Stop12, { offset: "0%", stopColor: p.core[0] }),
|
|
4931
|
+
/* @__PURE__ */ jsx52(Stop12, { offset: "100%", stopColor: p.core[1], stopOpacity: 0 })
|
|
4898
4932
|
] })
|
|
4899
4933
|
] }),
|
|
4900
|
-
/* @__PURE__ */
|
|
4901
|
-
/* @__PURE__ */
|
|
4902
|
-
/* @__PURE__ */
|
|
4903
|
-
/* @__PURE__ */
|
|
4904
|
-
/* @__PURE__ */
|
|
4905
|
-
/* @__PURE__ */
|
|
4906
|
-
/* @__PURE__ */
|
|
4907
|
-
/* @__PURE__ */
|
|
4934
|
+
/* @__PURE__ */ jsx52(Path20, { d: PHOENIX.wingL, fill: `url(#${id}l)` }),
|
|
4935
|
+
/* @__PURE__ */ jsx52(Path20, { d: PHOENIX.wingR, fill: `url(#${id}r)` }),
|
|
4936
|
+
/* @__PURE__ */ jsx52(Path20, { d: PHOENIX.tailL, fill: `url(#${id}l)`, opacity: 0.7 }),
|
|
4937
|
+
/* @__PURE__ */ jsx52(Path20, { d: PHOENIX.tailR, fill: `url(#${id}r)`, opacity: 0.7 }),
|
|
4938
|
+
/* @__PURE__ */ jsx52(Path20, { d: PHOENIX.body, fill: p.body, stroke: p.edge, strokeOpacity: 0.5 }),
|
|
4939
|
+
/* @__PURE__ */ jsx52(Circle14, { cx: 60, cy: 58, r: 12, fill: `url(#${id}c)` }),
|
|
4940
|
+
/* @__PURE__ */ jsx52(Circle14, { cx: 60, cy: 58, r: 3.5, fill: "#ffffff" }),
|
|
4941
|
+
/* @__PURE__ */ jsx52(Path20, { d: PHOENIX.crest, stroke: p.crest, strokeWidth: 2, strokeLinecap: "round" })
|
|
4908
4942
|
] }) }) });
|
|
4909
4943
|
}
|
|
4910
4944
|
|
|
4911
4945
|
// src/native/photo-grid.tsx
|
|
4912
4946
|
import * as React33 from "react";
|
|
4913
|
-
import { Image as Image4, Pressable as
|
|
4947
|
+
import { Image as Image4, Pressable as Pressable21, StyleSheet as StyleSheet39, View as View47 } from "react-native";
|
|
4914
4948
|
import Svg24, { Path as Path21 } from "react-native-svg";
|
|
4915
|
-
import { jsx as
|
|
4949
|
+
import { jsx as jsx53, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
4916
4950
|
function PhotoGrid({ value, onValueChange, onAdd, slots = 6, required = 1, columns = 3, labels, style }) {
|
|
4917
4951
|
const { theme, radius: radius3, haptic } = useTheme();
|
|
4918
4952
|
const [menu, setMenu] = React33.useState(null);
|
|
@@ -4929,12 +4963,12 @@ function PhotoGrid({ value, onValueChange, onAdd, slots = 6, required = 1, colum
|
|
|
4929
4963
|
onValueChange(value.filter((_, j) => j !== i));
|
|
4930
4964
|
};
|
|
4931
4965
|
const width = `${100 / columns}%`;
|
|
4932
|
-
return /* @__PURE__ */
|
|
4966
|
+
return /* @__PURE__ */ jsxs48(View47, { style: [styles39.grid, style], children: [
|
|
4933
4967
|
Array.from({ length: slots }, (_, i) => {
|
|
4934
4968
|
const photo = value[i];
|
|
4935
|
-
const cell = [
|
|
4936
|
-
return /* @__PURE__ */
|
|
4937
|
-
|
|
4969
|
+
const cell = [styles39.slot, { borderRadius: radius3.lg, aspectRatio: 3 / 4 }];
|
|
4970
|
+
return /* @__PURE__ */ jsx53(View47, { style: [styles39.cell, { width }], children: photo ? /* @__PURE__ */ jsxs48(
|
|
4971
|
+
Pressable21,
|
|
4938
4972
|
{
|
|
4939
4973
|
role: "button",
|
|
4940
4974
|
"aria-label": [labels.photo(i + 1), photo.alt, i === 0 ? labels.main : null].filter(Boolean).join(", "),
|
|
@@ -4957,12 +4991,12 @@ function PhotoGrid({ value, onValueChange, onAdd, slots = 6, required = 1, colum
|
|
|
4957
4991
|
},
|
|
4958
4992
|
style: [...cell, { backgroundColor: theme.surface3, overflow: "hidden" }],
|
|
4959
4993
|
children: [
|
|
4960
|
-
/* @__PURE__ */
|
|
4961
|
-
i === 0 ? /* @__PURE__ */
|
|
4994
|
+
/* @__PURE__ */ jsx53(Image4, { source: { uri: photo.uri }, style: StyleSheet39.absoluteFill, resizeMode: "cover" }),
|
|
4995
|
+
i === 0 ? /* @__PURE__ */ jsx53(View47, { style: [styles39.main, { backgroundColor: theme.accent, borderRadius: radius3.full }], children: /* @__PURE__ */ jsx53(Txt, { variant: "caption", tone: "onAccent", style: styles39.mainText, children: labels.main }) }) : null
|
|
4962
4996
|
]
|
|
4963
4997
|
}
|
|
4964
|
-
) : /* @__PURE__ */
|
|
4965
|
-
|
|
4998
|
+
) : /* @__PURE__ */ jsx53(
|
|
4999
|
+
Pressable21,
|
|
4966
5000
|
{
|
|
4967
5001
|
role: "button",
|
|
4968
5002
|
"aria-label": labels.add,
|
|
@@ -4970,14 +5004,14 @@ function PhotoGrid({ value, onValueChange, onAdd, slots = 6, required = 1, colum
|
|
|
4970
5004
|
onPress: onAdd,
|
|
4971
5005
|
style: ({ pressed }) => [
|
|
4972
5006
|
...cell,
|
|
4973
|
-
|
|
5007
|
+
styles39.empty,
|
|
4974
5008
|
{ borderColor: i < required ? theme.accent : theme.borderStrong, backgroundColor: pressed ? theme.surface2 : theme.surface1, opacity: i > value.length ? 0.5 : 1 }
|
|
4975
5009
|
],
|
|
4976
|
-
children: /* @__PURE__ */
|
|
5010
|
+
children: /* @__PURE__ */ jsx53(View47, { style: [styles39.plus, { backgroundColor: i === value.length ? theme.accent : theme.surface3, borderRadius: radius3.full }], children: /* @__PURE__ */ jsx53(Svg24, { width: 16, height: 16, viewBox: "0 0 24 24", "aria-hidden": true, children: /* @__PURE__ */ jsx53(Path21, { d: "M12 5v14M5 12h14", stroke: i === value.length ? theme.onAccent : theme.textSecondary, strokeWidth: 2.6, strokeLinecap: "round" }) }) })
|
|
4977
5011
|
}
|
|
4978
5012
|
) }, photo?.id ?? `empty-${i}`);
|
|
4979
5013
|
}),
|
|
4980
|
-
/* @__PURE__ */
|
|
5014
|
+
/* @__PURE__ */ jsx53(
|
|
4981
5015
|
ActionSheet,
|
|
4982
5016
|
{
|
|
4983
5017
|
open: menu !== null,
|
|
@@ -4993,7 +5027,7 @@ function PhotoGrid({ value, onValueChange, onAdd, slots = 6, required = 1, colum
|
|
|
4993
5027
|
)
|
|
4994
5028
|
] });
|
|
4995
5029
|
}
|
|
4996
|
-
var
|
|
5030
|
+
var styles39 = StyleSheet39.create({
|
|
4997
5031
|
grid: { flexDirection: "row", flexWrap: "wrap", marginHorizontal: -4 },
|
|
4998
5032
|
cell: { padding: 4 },
|
|
4999
5033
|
slot: { width: "100%" },
|
|
@@ -5005,17 +5039,17 @@ var styles38 = StyleSheet38.create({
|
|
|
5005
5039
|
|
|
5006
5040
|
// src/native/profile-card.tsx
|
|
5007
5041
|
import * as React34 from "react";
|
|
5008
|
-
import { Animated as Animated18, StyleSheet as
|
|
5042
|
+
import { Animated as Animated18, StyleSheet as StyleSheet40, View as View48 } from "react-native";
|
|
5009
5043
|
import Svg25, { Defs as Defs13, LinearGradient as LinearGradient10, Rect as Rect3, Stop as Stop13 } from "react-native-svg";
|
|
5010
|
-
import { jsx as
|
|
5044
|
+
import { jsx as jsx54, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
5011
5045
|
var ratioOf = (value, max = 100) => Math.min(1, Math.max(0, value / (max || 1)));
|
|
5012
5046
|
function Bar({ label, ratio, words: words2, animated, delay }) {
|
|
5013
5047
|
const { theme } = useTheme();
|
|
5014
5048
|
const t = useEntrance(animated, delay, 900);
|
|
5015
5049
|
const [width, setWidth] = React34.useState(0);
|
|
5016
5050
|
const translateX = t.interpolate({ inputRange: [0, 1], outputRange: [-width * ratio, 0] });
|
|
5017
|
-
return /* @__PURE__ */
|
|
5018
|
-
|
|
5051
|
+
return /* @__PURE__ */ jsx54(
|
|
5052
|
+
View48,
|
|
5019
5053
|
{
|
|
5020
5054
|
accessible: true,
|
|
5021
5055
|
role: "meter",
|
|
@@ -5025,42 +5059,42 @@ function Bar({ label, ratio, words: words2, animated, delay }) {
|
|
|
5025
5059
|
"aria-valuenow": Math.round(ratio * 100),
|
|
5026
5060
|
"aria-valuetext": words2,
|
|
5027
5061
|
onLayout: (e) => setWidth(e.nativeEvent.layout.width),
|
|
5028
|
-
style: [
|
|
5029
|
-
children: /* @__PURE__ */
|
|
5062
|
+
style: [styles40.track, { backgroundColor: theme.surface3 }],
|
|
5063
|
+
children: /* @__PURE__ */ jsx54(Animated18.View, { style: [styles40.fill, { width: `${ratio * 100}%`, backgroundColor: theme.accent, transform: [{ translateX }] }] })
|
|
5030
5064
|
}
|
|
5031
5065
|
);
|
|
5032
5066
|
}
|
|
5033
5067
|
function ProfileCard({ visual, name, statLabel, value = 100, valueText, stats, caption, children, animated = true, style, ...props }) {
|
|
5034
5068
|
const { theme, radius: radius3 } = useTheme();
|
|
5035
5069
|
const ratio = ratioOf(value);
|
|
5036
|
-
return /* @__PURE__ */
|
|
5037
|
-
/* @__PURE__ */
|
|
5038
|
-
/* @__PURE__ */
|
|
5039
|
-
/* @__PURE__ */
|
|
5040
|
-
statLabel ? /* @__PURE__ */
|
|
5070
|
+
return /* @__PURE__ */ jsxs49(View48, { ...props, style: [styles40.root, { backgroundColor: theme.surface1, borderColor: theme.borderSubtle, borderRadius: radius3.xl }, style], children: [
|
|
5071
|
+
/* @__PURE__ */ jsx54(View48, { "aria-hidden": true, style: [styles40.disc, { backgroundColor: theme.surface2, borderColor: theme.accentSoft }], children: visual }),
|
|
5072
|
+
/* @__PURE__ */ jsxs49(View48, { style: styles40.head, children: [
|
|
5073
|
+
/* @__PURE__ */ jsx54(Txt, { variant: "title", style: styles40.name, children: name }),
|
|
5074
|
+
statLabel ? /* @__PURE__ */ jsxs49(Txt, { variant: "caption", tone: "secondary", children: [
|
|
5041
5075
|
statLabel,
|
|
5042
5076
|
" ",
|
|
5043
|
-
/* @__PURE__ */
|
|
5077
|
+
/* @__PURE__ */ jsx54(Txt, { variant: "caption", children: valueText ?? `${Math.round(ratio * 100)} %` })
|
|
5044
5078
|
] }) : null
|
|
5045
5079
|
] }),
|
|
5046
|
-
statLabel ? /* @__PURE__ */
|
|
5080
|
+
statLabel ? /* @__PURE__ */ jsx54(Bar, { label: statLabel, ratio, words: valueText ?? `${Math.round(ratio * 100)} %`, animated, delay: 200 }) : null,
|
|
5047
5081
|
stats?.map((s, i) => {
|
|
5048
5082
|
const r = ratioOf(s.value, s.max);
|
|
5049
5083
|
const words2 = s.valueText ?? `${Math.round(r * 100)} %`;
|
|
5050
|
-
return /* @__PURE__ */
|
|
5051
|
-
/* @__PURE__ */
|
|
5052
|
-
/* @__PURE__ */
|
|
5053
|
-
/* @__PURE__ */
|
|
5084
|
+
return /* @__PURE__ */ jsxs49(View48, { style: styles40.stat, children: [
|
|
5085
|
+
/* @__PURE__ */ jsxs49(View48, { "aria-hidden": true, style: styles40.statHead, children: [
|
|
5086
|
+
/* @__PURE__ */ jsx54(Txt, { variant: "caption", tone: "secondary", children: s.label }),
|
|
5087
|
+
/* @__PURE__ */ jsx54(Txt, { variant: "caption", children: words2 })
|
|
5054
5088
|
] }),
|
|
5055
|
-
/* @__PURE__ */
|
|
5089
|
+
/* @__PURE__ */ jsx54(Bar, { label: s.label, ratio: r, words: words2, animated, delay: 320 + i * 120 })
|
|
5056
5090
|
] }, s.label);
|
|
5057
5091
|
}),
|
|
5058
|
-
caption ? /* @__PURE__ */
|
|
5059
|
-
children ? /* @__PURE__ */
|
|
5092
|
+
caption ? /* @__PURE__ */ jsx54(Txt, { variant: "caption", tone: "secondary", style: styles40.caption, children: caption }) : null,
|
|
5093
|
+
children ? /* @__PURE__ */ jsx54(View48, { style: styles40.extra, children }) : null
|
|
5060
5094
|
] });
|
|
5061
5095
|
}
|
|
5062
|
-
var
|
|
5063
|
-
root: { alignItems: "center", gap: 12, padding: 20, borderWidth:
|
|
5096
|
+
var styles40 = StyleSheet40.create({
|
|
5097
|
+
root: { alignItems: "center", gap: 12, padding: 20, borderWidth: StyleSheet40.hairlineWidth },
|
|
5064
5098
|
disc: { width: 104, height: 104, borderRadius: 52, borderWidth: 1, alignItems: "center", justifyContent: "center", overflow: "hidden" },
|
|
5065
5099
|
head: { flexDirection: "row", alignSelf: "stretch", alignItems: "center", justifyContent: "space-between", gap: 8 },
|
|
5066
5100
|
name: { flexShrink: 1, fontSize: 17 },
|
|
@@ -5074,28 +5108,28 @@ var styles39 = StyleSheet39.create({
|
|
|
5074
5108
|
function ProfileBanner({ banner, avatar, eyebrow, title, status, meta, actions, style, ...props }) {
|
|
5075
5109
|
const { theme, radius: radius3 } = useTheme();
|
|
5076
5110
|
const id = `kz-banner-${React34.useId().replace(/:/g, "")}`;
|
|
5077
|
-
return /* @__PURE__ */
|
|
5078
|
-
/* @__PURE__ */
|
|
5079
|
-
/* @__PURE__ */
|
|
5080
|
-
/* @__PURE__ */
|
|
5081
|
-
/* @__PURE__ */
|
|
5082
|
-
/* @__PURE__ */
|
|
5111
|
+
return /* @__PURE__ */ jsxs49(View48, { style: [bannerStyles.root, style], ...props, children: [
|
|
5112
|
+
/* @__PURE__ */ jsx54(View48, { "aria-hidden": true, style: [bannerStyles.cover, { borderRadius: radius3.lg, backgroundColor: theme.accentSoft }], children: banner ?? /* @__PURE__ */ jsxs49(Svg25, { width: "100%", height: "100%", preserveAspectRatio: "none", viewBox: "0 0 100 100", children: [
|
|
5113
|
+
/* @__PURE__ */ jsx54(Defs13, { children: /* @__PURE__ */ jsxs49(LinearGradient10, { id, x1: "0", y1: "0", x2: "1", y2: "1", children: [
|
|
5114
|
+
/* @__PURE__ */ jsx54(Stop13, { offset: "0", stopColor: theme.accent, stopOpacity: 0.3 }),
|
|
5115
|
+
/* @__PURE__ */ jsx54(Stop13, { offset: "0.5", stopColor: theme.accentSoft }),
|
|
5116
|
+
/* @__PURE__ */ jsx54(Stop13, { offset: "1", stopColor: theme.surface2 })
|
|
5083
5117
|
] }) }),
|
|
5084
|
-
/* @__PURE__ */
|
|
5118
|
+
/* @__PURE__ */ jsx54(Rect3, { x: "0", y: "0", width: "100", height: "100", fill: `url(#${id})` })
|
|
5085
5119
|
] }) }),
|
|
5086
|
-
/* @__PURE__ */
|
|
5087
|
-
/* @__PURE__ */
|
|
5088
|
-
eyebrow ? /* @__PURE__ */
|
|
5089
|
-
/* @__PURE__ */
|
|
5090
|
-
/* @__PURE__ */
|
|
5120
|
+
/* @__PURE__ */ jsx54(View48, { style: [bannerStyles.avatar, { borderColor: theme.surface0, backgroundColor: theme.surface3, borderRadius: radius3.lg }], children: avatar }),
|
|
5121
|
+
/* @__PURE__ */ jsxs49(View48, { style: bannerStyles.text, children: [
|
|
5122
|
+
eyebrow ? /* @__PURE__ */ jsx54(Txt, { variant: "mono", tone: "accent", children: eyebrow }) : null,
|
|
5123
|
+
/* @__PURE__ */ jsxs49(View48, { style: bannerStyles.titleRow, children: [
|
|
5124
|
+
/* @__PURE__ */ jsx54(Txt, { variant: "title", role: "heading", style: bannerStyles.title, children: title }),
|
|
5091
5125
|
status
|
|
5092
5126
|
] }),
|
|
5093
|
-
meta ? /* @__PURE__ */
|
|
5127
|
+
meta ? /* @__PURE__ */ jsx54(Txt, { tone: "secondary", children: meta }) : null
|
|
5094
5128
|
] }),
|
|
5095
|
-
actions ? /* @__PURE__ */
|
|
5129
|
+
actions ? /* @__PURE__ */ jsx54(View48, { style: bannerStyles.actions, children: actions }) : null
|
|
5096
5130
|
] });
|
|
5097
5131
|
}
|
|
5098
|
-
var bannerStyles =
|
|
5132
|
+
var bannerStyles = StyleSheet40.create({
|
|
5099
5133
|
root: { gap: 10 },
|
|
5100
5134
|
cover: { height: 112, width: "100%", overflow: "hidden" },
|
|
5101
5135
|
avatar: { width: 80, height: 80, marginTop: -50, marginLeft: 4, borderWidth: 4, overflow: "hidden", alignItems: "center", justifyContent: "center" },
|
|
@@ -5107,9 +5141,9 @@ var bannerStyles = StyleSheet39.create({
|
|
|
5107
5141
|
|
|
5108
5142
|
// src/native/progress.tsx
|
|
5109
5143
|
import * as React35 from "react";
|
|
5110
|
-
import { Animated as Animated19, Easing as Easing11, StyleSheet as
|
|
5144
|
+
import { Animated as Animated19, Easing as Easing11, StyleSheet as StyleSheet41, View as View49 } from "react-native";
|
|
5111
5145
|
import Svg26, { Circle as Circle15, Defs as Defs14, LinearGradient as LinearGradient11, Rect as Rect4, Stop as Stop14 } from "react-native-svg";
|
|
5112
|
-
import { jsx as
|
|
5146
|
+
import { jsx as jsx55, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
5113
5147
|
var AnimatedCircle = Animated19.createAnimatedComponent(Circle15);
|
|
5114
5148
|
var BAR2 = { sm: 4, md: 8, lg: 12 };
|
|
5115
5149
|
var RING2 = { sm: 40, md: 80, lg: 144 };
|
|
@@ -5151,9 +5185,9 @@ function Progress({ variant = "bar", size = "md", value, max = 100, label, value
|
|
|
5151
5185
|
"aria-valuenow": known ? Math.min(max, Math.max(0, value)) : void 0,
|
|
5152
5186
|
"aria-valuetext": known ? valueText ?? `${percent2}%` : valueText
|
|
5153
5187
|
};
|
|
5154
|
-
const gradient = /* @__PURE__ */
|
|
5155
|
-
/* @__PURE__ */
|
|
5156
|
-
/* @__PURE__ */
|
|
5188
|
+
const gradient = /* @__PURE__ */ jsx55(Defs14, { children: /* @__PURE__ */ jsxs50(LinearGradient11, { id, x1: "0", y1: "0", x2: "1", y2: variant === "ring" ? "1" : "0", children: [
|
|
5189
|
+
/* @__PURE__ */ jsx55(Stop14, { offset: "0", stopColor: theme.accent }),
|
|
5190
|
+
/* @__PURE__ */ jsx55(Stop14, { offset: "1", stopColor: theme.accent2 })
|
|
5157
5191
|
] }) });
|
|
5158
5192
|
if (variant === "ring") {
|
|
5159
5193
|
const side = RING2[size];
|
|
@@ -5162,11 +5196,11 @@ function Progress({ variant = "bar", size = "md", value, max = 100, label, value
|
|
|
5162
5196
|
const circumference = 2 * Math.PI * r;
|
|
5163
5197
|
const offset = known ? progress.interpolate({ inputRange: [0, 1], outputRange: [circumference, 0] }) : circumference * 0.75;
|
|
5164
5198
|
const rotate = spin.interpolate({ inputRange: [0, 1], outputRange: ["0deg", "360deg"] });
|
|
5165
|
-
return /* @__PURE__ */
|
|
5166
|
-
/* @__PURE__ */
|
|
5199
|
+
return /* @__PURE__ */ jsxs50(View49, { ...a11y, style: [styles41.ring, { width: side, height: side }, style], children: [
|
|
5200
|
+
/* @__PURE__ */ jsx55(Animated19.View, { style: [StyleSheet41.absoluteFill, { transform: [{ rotate: known ? "-90deg" : rotate }] }], children: /* @__PURE__ */ jsxs50(Svg26, { width: side, height: side, viewBox: "0 0 100 100", children: [
|
|
5167
5201
|
gradient,
|
|
5168
|
-
/* @__PURE__ */
|
|
5169
|
-
/* @__PURE__ */
|
|
5202
|
+
/* @__PURE__ */ jsx55(Circle15, { cx: 50, cy: 50, r, fill: "none", stroke: theme.borderDefault, strokeWidth: stroke }),
|
|
5203
|
+
/* @__PURE__ */ jsx55(
|
|
5170
5204
|
AnimatedCircle,
|
|
5171
5205
|
{
|
|
5172
5206
|
cx: 50,
|
|
@@ -5186,20 +5220,20 @@ function Progress({ variant = "bar", size = "md", value, max = 100, label, value
|
|
|
5186
5220
|
}
|
|
5187
5221
|
const width = known ? progress.interpolate({ inputRange: [0, 1], outputRange: ["0%", "100%"] }) : "40%";
|
|
5188
5222
|
const translate = spin.interpolate({ inputRange: [0, 1], outputRange: [-0.4 * track, track] });
|
|
5189
|
-
return /* @__PURE__ */
|
|
5190
|
-
|
|
5223
|
+
return /* @__PURE__ */ jsx55(
|
|
5224
|
+
View49,
|
|
5191
5225
|
{
|
|
5192
5226
|
...a11y,
|
|
5193
5227
|
onLayout: known ? void 0 : (event) => setTrack(event.nativeEvent.layout.width),
|
|
5194
|
-
style: [
|
|
5195
|
-
children: /* @__PURE__ */
|
|
5228
|
+
style: [styles41.bar, { height: BAR2[size], backgroundColor: theme.surface3 }, style],
|
|
5229
|
+
children: /* @__PURE__ */ jsx55(Animated19.View, { style: [styles41.fill, { width }, known || reduce ? null : { transform: [{ translateX: translate }] }], children: /* @__PURE__ */ jsxs50(Svg26, { width: "100%", height: "100%", preserveAspectRatio: "none", children: [
|
|
5196
5230
|
gradient,
|
|
5197
|
-
/* @__PURE__ */
|
|
5231
|
+
/* @__PURE__ */ jsx55(Rect4, { x: 0, y: 0, width: "100%", height: "100%", fill: `url(#${id})` })
|
|
5198
5232
|
] }) })
|
|
5199
5233
|
}
|
|
5200
5234
|
);
|
|
5201
5235
|
}
|
|
5202
|
-
var
|
|
5236
|
+
var styles41 = StyleSheet41.create({
|
|
5203
5237
|
ring: { alignItems: "center", justifyContent: "center" },
|
|
5204
5238
|
bar: { width: "100%", overflow: "hidden", borderRadius: 9999 },
|
|
5205
5239
|
fill: { height: "100%", overflow: "hidden", borderRadius: 9999 }
|
|
@@ -5207,11 +5241,11 @@ var styles40 = StyleSheet40.create({
|
|
|
5207
5241
|
|
|
5208
5242
|
// src/native/pull-to-refresh.tsx
|
|
5209
5243
|
import * as React36 from "react";
|
|
5210
|
-
import { AccessibilityInfo as AccessibilityInfo13, Animated as Animated20, RefreshControl, StyleSheet as
|
|
5211
|
-
import { jsx as
|
|
5244
|
+
import { AccessibilityInfo as AccessibilityInfo13, Animated as Animated20, RefreshControl, StyleSheet as StyleSheet42, View as View50 } from "react-native";
|
|
5245
|
+
import { jsx as jsx56, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
5212
5246
|
function PullToRefresh({ label, ...props }) {
|
|
5213
5247
|
const { theme } = useTheme();
|
|
5214
|
-
return /* @__PURE__ */
|
|
5248
|
+
return /* @__PURE__ */ jsx56(RefreshControl, { ...props, tintColor: theme.accent, colors: [theme.accent], progressBackgroundColor: theme.surface2, title: label, titleColor: theme.textSecondary });
|
|
5215
5249
|
}
|
|
5216
5250
|
var pullProgress = (offset, threshold) => Math.min(1, Math.max(0, -offset / threshold));
|
|
5217
5251
|
function BrandedRefresh({ product, refreshing, onRefresh, label, children, threshold = 72 }) {
|
|
@@ -5228,28 +5262,28 @@ function BrandedRefresh({ product, refreshing, onRefresh, label, children, thres
|
|
|
5228
5262
|
const shown = refreshing ? 1 : pull;
|
|
5229
5263
|
const scale = refreshing || reduce ? 1 : pull.interpolate({ inputRange: [0, 1], outputRange: [0.4, 1] });
|
|
5230
5264
|
const rotate = refreshing || reduce ? "0deg" : pull.interpolate({ inputRange: [0, 1], outputRange: ["-90deg", "0deg"] });
|
|
5231
|
-
return /* @__PURE__ */
|
|
5265
|
+
return /* @__PURE__ */ jsxs51(View50, { style: styles42.root, children: [
|
|
5232
5266
|
children({
|
|
5233
5267
|
// The platform's control does the gesture and the haptics, drawn transparent: the mark is ours.
|
|
5234
|
-
refreshControl: /* @__PURE__ */
|
|
5268
|
+
refreshControl: /* @__PURE__ */ jsx56(RefreshControl, { refreshing, onRefresh, tintColor: "transparent", colors: ["transparent"], progressBackgroundColor: "transparent" }),
|
|
5235
5269
|
onScroll,
|
|
5236
5270
|
scrollEventThrottle: 16
|
|
5237
5271
|
}),
|
|
5238
|
-
/* @__PURE__ */
|
|
5272
|
+
/* @__PURE__ */ jsx56(Animated20.View, { pointerEvents: "none", "aria-hidden": true, style: [styles42.mark, { opacity: shown, transform: [{ scale }, { rotate }] }], children: /* @__PURE__ */ jsx56(ProductMark, { id: product, size: 32, animated: refreshing, neutral: theme.textMuted }) })
|
|
5239
5273
|
] });
|
|
5240
5274
|
}
|
|
5241
|
-
var
|
|
5275
|
+
var styles42 = StyleSheet42.create({
|
|
5242
5276
|
root: { flex: 1 },
|
|
5243
5277
|
mark: { position: "absolute", top: 12, left: 0, right: 0, alignItems: "center" }
|
|
5244
5278
|
});
|
|
5245
5279
|
|
|
5246
5280
|
// src/native/radio-group.tsx
|
|
5247
5281
|
import * as React37 from "react";
|
|
5248
|
-
import { Animated as Animated21, Pressable as
|
|
5282
|
+
import { Animated as Animated21, Pressable as Pressable22, StyleSheet as StyleSheet43, Text as Text17, View as View51 } from "react-native";
|
|
5249
5283
|
import Svg27, { Path as Path22 } from "react-native-svg";
|
|
5250
|
-
import { jsx as
|
|
5284
|
+
import { jsx as jsx57, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
5251
5285
|
function Check({ color }) {
|
|
5252
|
-
return /* @__PURE__ */
|
|
5286
|
+
return /* @__PURE__ */ jsx57(Svg27, { width: 12, height: 12, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 3.2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx57(Path22, { d: "M20 6 9 17l-5-5" }) });
|
|
5253
5287
|
}
|
|
5254
5288
|
function Key({ option, checked, disabled, onPress }) {
|
|
5255
5289
|
const { theme, radius: radius3, motion: motion3 } = useTheme();
|
|
@@ -5259,8 +5293,8 @@ function Key({ option, checked, disabled, onPress }) {
|
|
|
5259
5293
|
React37.useEffect(() => {
|
|
5260
5294
|
Animated21.timing(sink, { toValue: down ? 1 : 0, duration: motion3.duration.fast, useNativeDriver: true }).start();
|
|
5261
5295
|
}, [down, sink, motion3.duration.fast]);
|
|
5262
|
-
return /* @__PURE__ */
|
|
5263
|
-
|
|
5296
|
+
return /* @__PURE__ */ jsxs52(
|
|
5297
|
+
Pressable22,
|
|
5264
5298
|
{
|
|
5265
5299
|
role: "radio",
|
|
5266
5300
|
"aria-checked": checked,
|
|
@@ -5270,14 +5304,14 @@ function Key({ option, checked, disabled, onPress }) {
|
|
|
5270
5304
|
onPress,
|
|
5271
5305
|
onPressIn: () => setHeld(true),
|
|
5272
5306
|
onPressOut: () => setHeld(false),
|
|
5273
|
-
style: [
|
|
5307
|
+
style: [styles43.keySlot, disabled ? styles43.disabled : null],
|
|
5274
5308
|
children: [
|
|
5275
|
-
/* @__PURE__ */
|
|
5276
|
-
/* @__PURE__ */
|
|
5309
|
+
/* @__PURE__ */ jsx57(View51, { style: [styles43.ledge, { borderRadius: radius3.lg, backgroundColor: checked ? theme.accentHover : theme.borderStrong }] }),
|
|
5310
|
+
/* @__PURE__ */ jsxs52(
|
|
5277
5311
|
Animated21.View,
|
|
5278
5312
|
{
|
|
5279
5313
|
style: [
|
|
5280
|
-
|
|
5314
|
+
styles43.key,
|
|
5281
5315
|
{
|
|
5282
5316
|
borderRadius: radius3.lg,
|
|
5283
5317
|
backgroundColor: checked ? theme.accent : theme.surface2,
|
|
@@ -5286,8 +5320,8 @@ function Key({ option, checked, disabled, onPress }) {
|
|
|
5286
5320
|
}
|
|
5287
5321
|
],
|
|
5288
5322
|
children: [
|
|
5289
|
-
/* @__PURE__ */
|
|
5290
|
-
option.hint ? /* @__PURE__ */
|
|
5323
|
+
/* @__PURE__ */ jsx57(Text17, { style: [styles43.keyLabel, { color: checked ? theme.onAccent : theme.textPrimary }], children: option.label }),
|
|
5324
|
+
option.hint ? /* @__PURE__ */ jsx57(Text17, { style: [styles43.keyHint, { color: checked ? theme.onAccent : theme.textSecondary }], children: option.hint }) : null
|
|
5291
5325
|
]
|
|
5292
5326
|
}
|
|
5293
5327
|
)
|
|
@@ -5308,10 +5342,10 @@ function RadioGroup({ label, options, value: valueProp, defaultValue = null, onV
|
|
|
5308
5342
|
const checked = o.value === value;
|
|
5309
5343
|
const off = Boolean(disabled || o.disabled);
|
|
5310
5344
|
const name = o.description ? `${o.label}, ${o.description}` : o.label;
|
|
5311
|
-
if (variant === "buttons") return /* @__PURE__ */
|
|
5345
|
+
if (variant === "buttons") return /* @__PURE__ */ jsx57(Key, { option: o, checked, disabled: off, onPress: () => pick(o.value) }, o.value);
|
|
5312
5346
|
if (variant === "segmented")
|
|
5313
|
-
return /* @__PURE__ */
|
|
5314
|
-
|
|
5347
|
+
return /* @__PURE__ */ jsx57(
|
|
5348
|
+
Pressable22,
|
|
5315
5349
|
{
|
|
5316
5350
|
role: "radio",
|
|
5317
5351
|
"aria-checked": checked,
|
|
@@ -5319,14 +5353,14 @@ function RadioGroup({ label, options, value: valueProp, defaultValue = null, onV
|
|
|
5319
5353
|
"aria-disabled": off || void 0,
|
|
5320
5354
|
disabled: off,
|
|
5321
5355
|
onPress: () => pick(o.value),
|
|
5322
|
-
style: [
|
|
5323
|
-
children: /* @__PURE__ */
|
|
5356
|
+
style: [styles43.segment, { borderRadius: radius3.md }, checked ? { backgroundColor: theme.surface0, borderColor: theme.borderDefault } : null, off ? styles43.disabled : null],
|
|
5357
|
+
children: /* @__PURE__ */ jsx57(Text17, { numberOfLines: 1, style: [styles43.segmentLabel, { color: checked ? theme.textPrimary : theme.textSecondary }], children: o.label })
|
|
5324
5358
|
},
|
|
5325
5359
|
o.value
|
|
5326
5360
|
);
|
|
5327
5361
|
if (variant === "cards")
|
|
5328
|
-
return /* @__PURE__ */
|
|
5329
|
-
|
|
5362
|
+
return /* @__PURE__ */ jsxs52(
|
|
5363
|
+
Pressable22,
|
|
5330
5364
|
{
|
|
5331
5365
|
role: "radio",
|
|
5332
5366
|
"aria-checked": checked,
|
|
@@ -5335,40 +5369,40 @@ function RadioGroup({ label, options, value: valueProp, defaultValue = null, onV
|
|
|
5335
5369
|
disabled: off,
|
|
5336
5370
|
onPress: () => pick(o.value),
|
|
5337
5371
|
style: ({ pressed }) => [
|
|
5338
|
-
|
|
5372
|
+
styles43.card,
|
|
5339
5373
|
{ borderRadius: radius3.xl, backgroundColor: checked ? theme.accentSoft : theme.surface1, borderColor: checked ? theme.accent : theme.borderDefault, transform: [{ scale: pressed ? 0.98 : 1 }] },
|
|
5340
|
-
off ?
|
|
5374
|
+
off ? styles43.disabled : null
|
|
5341
5375
|
],
|
|
5342
5376
|
children: [
|
|
5343
|
-
/* @__PURE__ */
|
|
5344
|
-
/* @__PURE__ */
|
|
5345
|
-
o.description ? /* @__PURE__ */
|
|
5377
|
+
/* @__PURE__ */ jsx57(View51, { style: [styles43.cardCheck, { borderColor: checked ? theme.accent : theme.borderStrong, backgroundColor: checked ? theme.accent : theme.surface1 }], children: checked ? /* @__PURE__ */ jsx57(Check, { color: theme.onAccent }) : null }),
|
|
5378
|
+
/* @__PURE__ */ jsx57(Text17, { style: [styles43.cardLabel, { color: theme.textPrimary }], children: o.label }),
|
|
5379
|
+
o.description ? /* @__PURE__ */ jsx57(Text17, { style: [styles43.cardDescription, { color: theme.textSecondary }], children: o.description }) : null
|
|
5346
5380
|
]
|
|
5347
5381
|
},
|
|
5348
5382
|
o.value
|
|
5349
5383
|
);
|
|
5350
|
-
return /* @__PURE__ */
|
|
5351
|
-
/* @__PURE__ */
|
|
5352
|
-
/* @__PURE__ */
|
|
5353
|
-
/* @__PURE__ */
|
|
5354
|
-
o.description ? /* @__PURE__ */
|
|
5384
|
+
return /* @__PURE__ */ jsxs52(Pressable22, { role: "radio", "aria-checked": checked, "aria-label": name, "aria-disabled": off || void 0, disabled: off, onPress: () => pick(o.value), style: [styles43.row, off ? styles43.disabled : null], children: [
|
|
5385
|
+
/* @__PURE__ */ jsx57(View51, { style: [styles43.dot, { borderColor: checked ? theme.accent : theme.borderStrong, backgroundColor: checked ? theme.accent : theme.surface1 }], children: checked ? /* @__PURE__ */ jsx57(View51, { style: [styles43.dotIn, { backgroundColor: theme.onAccent }] }) : null }),
|
|
5386
|
+
/* @__PURE__ */ jsxs52(View51, { style: styles43.rowText, children: [
|
|
5387
|
+
/* @__PURE__ */ jsx57(Text17, { style: [styles43.rowLabel, { color: theme.textPrimary }], children: o.label }),
|
|
5388
|
+
o.description ? /* @__PURE__ */ jsx57(Text17, { style: [styles43.cardDescription, { color: theme.textSecondary }], children: o.description }) : null
|
|
5355
5389
|
] })
|
|
5356
5390
|
] }, o.value);
|
|
5357
5391
|
});
|
|
5358
|
-
return /* @__PURE__ */
|
|
5359
|
-
/* @__PURE__ */
|
|
5360
|
-
|
|
5392
|
+
return /* @__PURE__ */ jsxs52(View51, { style: [styles43.root, style], children: [
|
|
5393
|
+
/* @__PURE__ */ jsx57(
|
|
5394
|
+
View51,
|
|
5361
5395
|
{
|
|
5362
5396
|
role: "radiogroup",
|
|
5363
5397
|
"aria-label": label,
|
|
5364
|
-
style: variant === "segmented" ? [
|
|
5398
|
+
style: variant === "segmented" ? [styles43.track, { borderRadius: radius3.lg, backgroundColor: theme.surface2, borderColor: error ? theme.danger : theme.borderDefault }] : variant === "buttons" ? styles43.keys : variant === "cards" ? styles43.cards : styles43.list,
|
|
5365
5399
|
children: body
|
|
5366
5400
|
}
|
|
5367
5401
|
),
|
|
5368
|
-
error ? /* @__PURE__ */
|
|
5402
|
+
error ? /* @__PURE__ */ jsx57(Text17, { role: "alert", "aria-live": "polite", style: [styles43.error, { color: theme.dangerText }], children: error }) : null
|
|
5369
5403
|
] });
|
|
5370
5404
|
}
|
|
5371
|
-
var
|
|
5405
|
+
var styles43 = StyleSheet43.create({
|
|
5372
5406
|
root: { gap: 6, alignSelf: "stretch" },
|
|
5373
5407
|
list: { gap: 2 },
|
|
5374
5408
|
row: { flexDirection: "row", alignItems: "center", gap: 12, minHeight: 44 },
|
|
@@ -5387,34 +5421,34 @@ var styles42 = StyleSheet42.create({
|
|
|
5387
5421
|
key: { minHeight: 48, paddingHorizontal: 16, paddingVertical: 8, alignItems: "center", justifyContent: "center", gap: 1, borderWidth: 1 },
|
|
5388
5422
|
keyLabel: { fontSize: 15, fontWeight: "700" },
|
|
5389
5423
|
keyHint: { fontSize: 11, fontWeight: "500" },
|
|
5390
|
-
track: { flexDirection: "row", padding: 3, gap: 3, borderWidth:
|
|
5391
|
-
segment: { flex: 1, alignItems: "center", justifyContent: "center", paddingHorizontal: 8, borderWidth:
|
|
5424
|
+
track: { flexDirection: "row", padding: 3, gap: 3, borderWidth: StyleSheet43.hairlineWidth, height: 42 },
|
|
5425
|
+
segment: { flex: 1, alignItems: "center", justifyContent: "center", paddingHorizontal: 8, borderWidth: StyleSheet43.hairlineWidth, borderColor: "transparent" },
|
|
5392
5426
|
segmentLabel: { fontSize: 13, fontWeight: "600" },
|
|
5393
5427
|
error: { fontSize: 12, lineHeight: 16 },
|
|
5394
5428
|
disabled: { opacity: 0.4 }
|
|
5395
5429
|
});
|
|
5396
5430
|
|
|
5397
5431
|
// src/native/screen.tsx
|
|
5398
|
-
import { KeyboardAvoidingView, Platform as Platform3, ScrollView as ScrollView6, StyleSheet as
|
|
5399
|
-
import { Fragment as Fragment9, jsx as
|
|
5432
|
+
import { KeyboardAvoidingView, Platform as Platform3, ScrollView as ScrollView6, StyleSheet as StyleSheet44, View as View52 } from "react-native";
|
|
5433
|
+
import { Fragment as Fragment9, jsx as jsx58, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
5400
5434
|
function Screen({ header, footer, children, scroll = true, keyboard = true, padding = 16, surface = "surface0", contentStyle }) {
|
|
5401
5435
|
const { theme, insets } = useTheme();
|
|
5402
|
-
const body = scroll ? /* @__PURE__ */
|
|
5403
|
-
const inner = /* @__PURE__ */
|
|
5436
|
+
const body = scroll ? /* @__PURE__ */ jsx58(ScrollView6, { style: styles44.flex, contentContainerStyle: [{ padding, paddingTop: header ? padding : padding + insets.top, gap: 16 }, contentStyle], keyboardShouldPersistTaps: "handled", tabIndex: 0, children }) : /* @__PURE__ */ jsx58(View52, { style: [styles44.flex, { paddingTop: header ? 0 : insets.top }, contentStyle], children });
|
|
5437
|
+
const inner = /* @__PURE__ */ jsxs53(Fragment9, { children: [
|
|
5404
5438
|
header,
|
|
5405
5439
|
body,
|
|
5406
5440
|
footer
|
|
5407
5441
|
] });
|
|
5408
|
-
return /* @__PURE__ */
|
|
5442
|
+
return /* @__PURE__ */ jsx58(View52, { style: [styles44.flex, { backgroundColor: theme[surface] }], children: keyboard ? /* @__PURE__ */ jsx58(KeyboardAvoidingView, { style: styles44.flex, behavior: Platform3.OS === "ios" ? "padding" : void 0, children: inner }) : inner });
|
|
5409
5443
|
}
|
|
5410
|
-
var
|
|
5444
|
+
var styles44 = StyleSheet44.create({ flex: { flex: 1 } });
|
|
5411
5445
|
|
|
5412
5446
|
// src/native/search-field.tsx
|
|
5413
5447
|
import { useDebouncedCallback } from "@krizaka/pacer/react";
|
|
5414
5448
|
import * as React38 from "react";
|
|
5415
|
-
import { Pressable as
|
|
5449
|
+
import { Pressable as Pressable23, StyleSheet as StyleSheet45, TextInput as TextInput6, View as View53 } from "react-native";
|
|
5416
5450
|
import Svg28, { Circle as Circle16, Path as Path23 } from "react-native-svg";
|
|
5417
|
-
import { jsx as
|
|
5451
|
+
import { jsx as jsx59, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
5418
5452
|
function SearchField({ label, value, defaultValue = "", onValueChange, onSearch, debounce = 300, onSubmit, clearLabel, cancelLabel, onCancel, style, placeholder, onFocus, onBlur, ...props }) {
|
|
5419
5453
|
const [focused, setFocused] = React38.useState(false);
|
|
5420
5454
|
const input = React38.useRef(null);
|
|
@@ -5428,12 +5462,12 @@ function SearchField({ label, value, defaultValue = "", onValueChange, onSearch,
|
|
|
5428
5462
|
search.cancel();
|
|
5429
5463
|
if (onSearch) search(next);
|
|
5430
5464
|
};
|
|
5431
|
-
const field = /* @__PURE__ */
|
|
5432
|
-
/* @__PURE__ */
|
|
5433
|
-
/* @__PURE__ */
|
|
5434
|
-
/* @__PURE__ */
|
|
5465
|
+
const field = /* @__PURE__ */ jsxs54(View53, { style: [styles45.frame, { borderRadius: radius3.md, borderColor: theme.borderDefault, backgroundColor: theme.surface2 }, style], children: [
|
|
5466
|
+
/* @__PURE__ */ jsxs54(Svg28, { width: 18, height: 18, viewBox: "0 0 24 24", fill: "none", stroke: theme.textSecondary, strokeWidth: 2, strokeLinecap: "round", "aria-hidden": true, children: [
|
|
5467
|
+
/* @__PURE__ */ jsx59(Circle16, { cx: 11, cy: 11, r: 7 }),
|
|
5468
|
+
/* @__PURE__ */ jsx59(Path23, { d: "m20 20-3.5-3.5" })
|
|
5435
5469
|
] }),
|
|
5436
|
-
/* @__PURE__ */
|
|
5470
|
+
/* @__PURE__ */ jsx59(
|
|
5437
5471
|
TextInput6,
|
|
5438
5472
|
{
|
|
5439
5473
|
ref: input,
|
|
@@ -5452,7 +5486,7 @@ function SearchField({ label, value, defaultValue = "", onValueChange, onSearch,
|
|
|
5452
5486
|
onSearch?.(query);
|
|
5453
5487
|
onSubmit?.(query);
|
|
5454
5488
|
},
|
|
5455
|
-
style: [
|
|
5489
|
+
style: [styles45.input, { color: theme.textPrimary }],
|
|
5456
5490
|
onFocus: (e) => {
|
|
5457
5491
|
setFocused(true);
|
|
5458
5492
|
onFocus?.(e);
|
|
@@ -5464,13 +5498,13 @@ function SearchField({ label, value, defaultValue = "", onValueChange, onSearch,
|
|
|
5464
5498
|
...props
|
|
5465
5499
|
}
|
|
5466
5500
|
),
|
|
5467
|
-
query ? /* @__PURE__ */
|
|
5501
|
+
query ? /* @__PURE__ */ jsx59(Pressable23, { role: "button", "aria-label": clearLabel, hitSlop: 10, onPress: () => change(""), style: styles45.clear, children: /* @__PURE__ */ jsx59(Svg28, { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: theme.textSecondary, strokeWidth: 2.4, strokeLinecap: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx59(Path23, { d: "M18 6 6 18M6 6l12 12" }) }) }) : null
|
|
5468
5502
|
] });
|
|
5469
5503
|
if (!cancelLabel || !onCancel) return field;
|
|
5470
|
-
return /* @__PURE__ */
|
|
5471
|
-
/* @__PURE__ */
|
|
5472
|
-
focused || query ? /* @__PURE__ */
|
|
5473
|
-
|
|
5504
|
+
return /* @__PURE__ */ jsxs54(View53, { style: styles45.bar, children: [
|
|
5505
|
+
/* @__PURE__ */ jsx59(View53, { style: styles45.grow, children: field }),
|
|
5506
|
+
focused || query ? /* @__PURE__ */ jsx59(
|
|
5507
|
+
Pressable23,
|
|
5474
5508
|
{
|
|
5475
5509
|
role: "button",
|
|
5476
5510
|
onPress: () => {
|
|
@@ -5479,14 +5513,14 @@ function SearchField({ label, value, defaultValue = "", onValueChange, onSearch,
|
|
|
5479
5513
|
onCancel();
|
|
5480
5514
|
},
|
|
5481
5515
|
hitSlop: 8,
|
|
5482
|
-
style:
|
|
5483
|
-
children: /* @__PURE__ */
|
|
5516
|
+
style: styles45.cancel,
|
|
5517
|
+
children: /* @__PURE__ */ jsx59(Txt, { variant: "label", tone: "accent", children: cancelLabel })
|
|
5484
5518
|
}
|
|
5485
5519
|
) : null
|
|
5486
5520
|
] });
|
|
5487
5521
|
}
|
|
5488
|
-
var
|
|
5489
|
-
frame: { flexDirection: "row", alignItems: "center", gap: 8, height: 44, paddingLeft: 12, paddingRight: 6, borderWidth:
|
|
5522
|
+
var styles45 = StyleSheet45.create({
|
|
5523
|
+
frame: { flexDirection: "row", alignItems: "center", gap: 8, height: 44, paddingLeft: 12, paddingRight: 6, borderWidth: StyleSheet45.hairlineWidth },
|
|
5490
5524
|
input: { flex: 1, height: "100%", fontSize: 15, paddingVertical: 0 },
|
|
5491
5525
|
bar: { flexDirection: "row", alignItems: "center", gap: 10 },
|
|
5492
5526
|
grow: { flex: 1 },
|
|
@@ -5495,20 +5529,20 @@ var styles44 = StyleSheet44.create({
|
|
|
5495
5529
|
});
|
|
5496
5530
|
|
|
5497
5531
|
// src/native/segmented.tsx
|
|
5498
|
-
import { Pressable as
|
|
5499
|
-
import { jsx as
|
|
5532
|
+
import { Pressable as Pressable24, StyleSheet as StyleSheet46, Text as Text18, View as View54 } from "react-native";
|
|
5533
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
5500
5534
|
function Segmented({ options, value, onValueChange, size = "md", "aria-label": label, style }) {
|
|
5501
5535
|
const { theme, radius: radius3 } = useTheme();
|
|
5502
|
-
return /* @__PURE__ */
|
|
5503
|
-
|
|
5536
|
+
return /* @__PURE__ */ jsx60(
|
|
5537
|
+
View54,
|
|
5504
5538
|
{
|
|
5505
5539
|
role: "tablist",
|
|
5506
5540
|
"aria-label": label,
|
|
5507
|
-
style: [
|
|
5541
|
+
style: [styles46.track, { backgroundColor: theme.surface2, borderColor: theme.borderSubtle, borderRadius: radius3.md, height: size === "sm" ? 32 : 40 }, style],
|
|
5508
5542
|
children: options.map((option) => {
|
|
5509
5543
|
const selected = option.value === value;
|
|
5510
|
-
return /* @__PURE__ */
|
|
5511
|
-
|
|
5544
|
+
return /* @__PURE__ */ jsx60(
|
|
5545
|
+
Pressable24,
|
|
5512
5546
|
{
|
|
5513
5547
|
role: "tab",
|
|
5514
5548
|
"aria-selected": selected,
|
|
@@ -5518,12 +5552,12 @@ function Segmented({ options, value, onValueChange, size = "md", "aria-label": l
|
|
|
5518
5552
|
if (!selected) onValueChange(option.value);
|
|
5519
5553
|
},
|
|
5520
5554
|
style: [
|
|
5521
|
-
|
|
5555
|
+
styles46.segment,
|
|
5522
5556
|
{ borderRadius: radius3.sm },
|
|
5523
5557
|
selected ? { backgroundColor: theme.surface0, borderColor: theme.borderDefault } : null,
|
|
5524
|
-
option.disabled ?
|
|
5558
|
+
option.disabled ? styles46.disabled : null
|
|
5525
5559
|
],
|
|
5526
|
-
children: /* @__PURE__ */
|
|
5560
|
+
children: /* @__PURE__ */ jsx60(Text18, { numberOfLines: 1, style: [styles46.label, { color: selected ? theme.textPrimary : theme.textSecondary, fontSize: size === "sm" ? 12 : 13 }], children: option.label })
|
|
5527
5561
|
},
|
|
5528
5562
|
option.value
|
|
5529
5563
|
);
|
|
@@ -5531,62 +5565,62 @@ function Segmented({ options, value, onValueChange, size = "md", "aria-label": l
|
|
|
5531
5565
|
}
|
|
5532
5566
|
);
|
|
5533
5567
|
}
|
|
5534
|
-
var
|
|
5535
|
-
track: { flexDirection: "row", padding: 3, gap: 3, borderWidth:
|
|
5536
|
-
segment: { flex: 1, alignItems: "center", justifyContent: "center", paddingHorizontal: 8, borderWidth:
|
|
5568
|
+
var styles46 = StyleSheet46.create({
|
|
5569
|
+
track: { flexDirection: "row", padding: 3, gap: 3, borderWidth: StyleSheet46.hairlineWidth },
|
|
5570
|
+
segment: { flex: 1, alignItems: "center", justifyContent: "center", paddingHorizontal: 8, borderWidth: StyleSheet46.hairlineWidth, borderColor: "transparent" },
|
|
5537
5571
|
label: { fontWeight: "600" },
|
|
5538
5572
|
disabled: { opacity: 0.4 }
|
|
5539
5573
|
});
|
|
5540
5574
|
|
|
5541
5575
|
// src/native/settings-layout.tsx
|
|
5542
5576
|
import * as React39 from "react";
|
|
5543
|
-
import { Pressable as
|
|
5577
|
+
import { Pressable as Pressable25, StyleSheet as StyleSheet47, View as View55 } from "react-native";
|
|
5544
5578
|
import Svg29, { Path as Path24 } from "react-native-svg";
|
|
5545
|
-
import { Fragment as Fragment11, jsx as
|
|
5579
|
+
import { Fragment as Fragment11, jsx as jsx61, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
5546
5580
|
function SettingsRow({ label, description, icon, value, trailing, onPress, destructive, accessibilityLabel, disabled }) {
|
|
5547
5581
|
const { theme } = useTheme();
|
|
5548
|
-
const body = /* @__PURE__ */
|
|
5549
|
-
icon ? /* @__PURE__ */
|
|
5550
|
-
/* @__PURE__ */
|
|
5551
|
-
/* @__PURE__ */
|
|
5552
|
-
description ? /* @__PURE__ */
|
|
5582
|
+
const body = /* @__PURE__ */ jsxs55(Fragment11, { children: [
|
|
5583
|
+
icon ? /* @__PURE__ */ jsx61(View55, { style: [styles47.tile, { backgroundColor: theme.surface3 }], children: icon }) : null,
|
|
5584
|
+
/* @__PURE__ */ jsxs55(View55, { style: styles47.text, children: [
|
|
5585
|
+
/* @__PURE__ */ jsx61(Txt, { variant: "body", tone: destructive ? "danger" : "text", children: label }),
|
|
5586
|
+
description ? /* @__PURE__ */ jsx61(Txt, { variant: "caption", tone: "secondary", children: description }) : null
|
|
5553
5587
|
] }),
|
|
5554
|
-
value ? /* @__PURE__ */
|
|
5588
|
+
value ? /* @__PURE__ */ jsx61(Txt, { variant: "caption", tone: "secondary", numberOfLines: 1, style: styles47.value, children: value }) : null,
|
|
5555
5589
|
trailing,
|
|
5556
|
-
onPress && !trailing ? /* @__PURE__ */
|
|
5590
|
+
onPress && !trailing ? /* @__PURE__ */ jsx61(Svg29, { width: 16, height: 16, viewBox: "0 0 24 24", "aria-hidden": true, children: /* @__PURE__ */ jsx61(Path24, { d: "m9 6 6 6-6 6", fill: "none", stroke: theme.textMuted, strokeWidth: 2.2, strokeLinecap: "round", strokeLinejoin: "round" }) }) : null
|
|
5557
5591
|
] });
|
|
5558
5592
|
if (onPress && !trailing) {
|
|
5559
|
-
return /* @__PURE__ */
|
|
5560
|
-
|
|
5593
|
+
return /* @__PURE__ */ jsx61(
|
|
5594
|
+
Pressable25,
|
|
5561
5595
|
{
|
|
5562
5596
|
role: "button",
|
|
5563
5597
|
accessibilityLabel,
|
|
5564
5598
|
accessibilityState: { disabled: !!disabled },
|
|
5565
5599
|
disabled,
|
|
5566
5600
|
onPress,
|
|
5567
|
-
style: ({ pressed }) => [
|
|
5601
|
+
style: ({ pressed }) => [styles47.row, pressed ? { backgroundColor: theme.surface2 } : null, disabled ? styles47.disabled : null],
|
|
5568
5602
|
children: body
|
|
5569
5603
|
}
|
|
5570
5604
|
);
|
|
5571
5605
|
}
|
|
5572
|
-
return /* @__PURE__ */
|
|
5606
|
+
return /* @__PURE__ */ jsx61(View55, { accessible: !trailing, accessibilityLabel: trailing ? void 0 : accessibilityLabel, style: [styles47.row, disabled ? styles47.disabled : null], children: body });
|
|
5573
5607
|
}
|
|
5574
5608
|
function SettingsGroup({ title, children, style, ...props }) {
|
|
5575
5609
|
const { theme } = useTheme();
|
|
5576
5610
|
const rows = React39.Children.toArray(children).filter(Boolean);
|
|
5577
|
-
return /* @__PURE__ */
|
|
5578
|
-
title ? /* @__PURE__ */
|
|
5579
|
-
/* @__PURE__ */
|
|
5580
|
-
i > 0 ? /* @__PURE__ */
|
|
5611
|
+
return /* @__PURE__ */ jsxs55(View55, { ...props, style: [styles47.group, style], children: [
|
|
5612
|
+
title ? /* @__PURE__ */ jsx61(Txt, { variant: "caption", tone: "muted", role: "heading", style: styles47.title, children: title }) : null,
|
|
5613
|
+
/* @__PURE__ */ jsx61(View55, { style: [styles47.card, { backgroundColor: theme.surface1, borderColor: theme.borderSubtle }], children: rows.map((row, i) => /* @__PURE__ */ jsxs55(React39.Fragment, { children: [
|
|
5614
|
+
i > 0 ? /* @__PURE__ */ jsx61(View55, { style: [styles47.hairline, { backgroundColor: theme.borderSubtle }] }) : null,
|
|
5581
5615
|
row
|
|
5582
5616
|
] }, i)) })
|
|
5583
5617
|
] });
|
|
5584
5618
|
}
|
|
5585
|
-
var
|
|
5619
|
+
var styles47 = StyleSheet47.create({
|
|
5586
5620
|
group: { rowGap: 8 },
|
|
5587
5621
|
title: { textTransform: "uppercase", letterSpacing: 0.6, fontWeight: "700", paddingHorizontal: 4 },
|
|
5588
|
-
card: { borderWidth:
|
|
5589
|
-
hairline: { height:
|
|
5622
|
+
card: { borderWidth: StyleSheet47.hairlineWidth, borderRadius: 16, overflow: "hidden" },
|
|
5623
|
+
hairline: { height: StyleSheet47.hairlineWidth, marginLeft: 16 },
|
|
5590
5624
|
row: { minHeight: 52, flexDirection: "row", alignItems: "center", columnGap: 12, paddingHorizontal: 16, paddingVertical: 10 },
|
|
5591
5625
|
tile: { width: 32, height: 32, borderRadius: 8, alignItems: "center", justifyContent: "center" },
|
|
5592
5626
|
text: { flex: 1, rowGap: 2 },
|
|
@@ -5596,9 +5630,9 @@ var styles46 = StyleSheet46.create({
|
|
|
5596
5630
|
|
|
5597
5631
|
// src/native/showcase.tsx
|
|
5598
5632
|
import * as React40 from "react";
|
|
5599
|
-
import { Animated as Animated22, AppState, Easing as Easing12, FlatList, Pressable as
|
|
5633
|
+
import { Animated as Animated22, AppState, Easing as Easing12, FlatList, Pressable as Pressable26, StyleSheet as StyleSheet48, View as View56 } from "react-native";
|
|
5600
5634
|
import Svg30, { Path as Path25 } from "react-native-svg";
|
|
5601
|
-
import { jsx as
|
|
5635
|
+
import { jsx as jsx62, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
5602
5636
|
var showcaseLabels = {
|
|
5603
5637
|
previous: "Previous slide",
|
|
5604
5638
|
next: "Next slide",
|
|
@@ -5656,10 +5690,10 @@ function Showcase({ label, items: items2, getId, renderItem, getTitle, interval
|
|
|
5656
5690
|
}, [running, current, interval]);
|
|
5657
5691
|
const item = items2[current];
|
|
5658
5692
|
const title = item !== void 0 ? getTitle?.(item) : void 0;
|
|
5659
|
-
const control = [
|
|
5660
|
-
const icon = (d) => /* @__PURE__ */
|
|
5661
|
-
return /* @__PURE__ */
|
|
5662
|
-
/* @__PURE__ */
|
|
5693
|
+
const control = [styles48.control, { borderColor: theme.borderDefault, backgroundColor: theme.surface1 }];
|
|
5694
|
+
const icon = (d) => /* @__PURE__ */ jsx62(Svg30, { width: 16, height: 16, viewBox: "0 0 24 24", "aria-hidden": true, children: /* @__PURE__ */ jsx62(Path25, { d, stroke: theme.textSecondary, strokeWidth: 2.2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
5695
|
+
return /* @__PURE__ */ jsxs56(View56, { role: "group", "aria-label": label, style: [styles48.root, style], children: [
|
|
5696
|
+
/* @__PURE__ */ jsx62(View56, { "aria-live": announce ? "polite" : "off", onLayout: (e) => setWidth(e.nativeEvent.layout.width), children: /* @__PURE__ */ jsx62(
|
|
5663
5697
|
FlatList,
|
|
5664
5698
|
{
|
|
5665
5699
|
ref: list,
|
|
@@ -5680,25 +5714,25 @@ function Showcase({ label, items: items2, getId, renderItem, getTitle, interval
|
|
|
5680
5714
|
onIndexChange?.(next, true);
|
|
5681
5715
|
}
|
|
5682
5716
|
},
|
|
5683
|
-
renderItem: ({ item: slide, index }) => /* @__PURE__ */
|
|
5717
|
+
renderItem: ({ item: slide, index }) => /* @__PURE__ */ jsx62(View56, { role: "group", "aria-label": labels.slide(index + 1, total), style: { width }, children: Math.abs(index - current) <= 1 ? renderItem(slide, { index, active: index === current }) : null })
|
|
5684
5718
|
}
|
|
5685
5719
|
) }),
|
|
5686
|
-
/* @__PURE__ */
|
|
5687
|
-
i < current || i === current && !playing ? /* @__PURE__ */
|
|
5688
|
-
i === current && playing ? /* @__PURE__ */
|
|
5720
|
+
/* @__PURE__ */ jsx62(View56, { style: styles48.segments, children: items2.map((slide, i) => /* @__PURE__ */ jsx62(Pressable26, { role: "button", "aria-label": labels.goTo(i + 1, total), "aria-current": i === current ? true : void 0, onPress: () => go(i, true), style: styles48.segment, children: /* @__PURE__ */ jsxs56(View56, { style: [styles48.track, { backgroundColor: theme.surface3 }], children: [
|
|
5721
|
+
i < current || i === current && !playing ? /* @__PURE__ */ jsx62(View56, { style: [StyleSheet48.absoluteFill, { backgroundColor: theme.accent }] }) : null,
|
|
5722
|
+
i === current && playing ? /* @__PURE__ */ jsx62(Animated22.View, { style: [styles48.fill, { backgroundColor: theme.accent, width: fill.interpolate({ inputRange: [0, 1], outputRange: ["0%", "100%"] }) }] }) : null
|
|
5689
5723
|
] }) }, getId(slide))) }),
|
|
5690
|
-
/* @__PURE__ */
|
|
5691
|
-
/* @__PURE__ */
|
|
5724
|
+
/* @__PURE__ */ jsxs56(View56, { style: styles48.bar, children: [
|
|
5725
|
+
/* @__PURE__ */ jsxs56(Txt, { variant: "caption", tone: "secondary", numberOfLines: 1, style: styles48.counter, children: [
|
|
5692
5726
|
title ? `${title} \xB7 ` : "",
|
|
5693
5727
|
labels.counter(current + 1, total)
|
|
5694
5728
|
] }),
|
|
5695
|
-
/* @__PURE__ */
|
|
5696
|
-
playing ? /* @__PURE__ */
|
|
5697
|
-
/* @__PURE__ */
|
|
5729
|
+
/* @__PURE__ */ jsx62(Pressable26, { role: "button", "aria-label": labels.previous, disabled: !loop && current === 0, hitSlop: 6, onPress: () => go(current - 1, true), style: control, children: icon("M15 5l-7 7 7 7") }),
|
|
5730
|
+
playing ? /* @__PURE__ */ jsx62(Pressable26, { role: "button", "aria-label": paused ? labels.play : labels.pause, hitSlop: 6, onPress: () => setPaused(!paused), style: control, children: icon(paused ? "M8 5.5v13l10-6.5Z" : "M8 5v14M16 5v14") }) : null,
|
|
5731
|
+
/* @__PURE__ */ jsx62(Pressable26, { role: "button", "aria-label": labels.next, disabled: !loop && current === total - 1, hitSlop: 6, onPress: () => go(current + 1, true), style: control, children: icon("M9 5l7 7-7 7") })
|
|
5698
5732
|
] })
|
|
5699
5733
|
] });
|
|
5700
5734
|
}
|
|
5701
|
-
var
|
|
5735
|
+
var styles48 = StyleSheet48.create({
|
|
5702
5736
|
root: { gap: 8 },
|
|
5703
5737
|
segments: { flexDirection: "row", gap: 4 },
|
|
5704
5738
|
segment: { flex: 1, height: 24, justifyContent: "center" },
|
|
@@ -5712,7 +5746,7 @@ var styles47 = StyleSheet47.create({
|
|
|
5712
5746
|
// src/native/skeleton.tsx
|
|
5713
5747
|
import * as React41 from "react";
|
|
5714
5748
|
import { Animated as Animated23 } from "react-native";
|
|
5715
|
-
import { jsx as
|
|
5749
|
+
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
5716
5750
|
var SHAPE = {
|
|
5717
5751
|
text: { width: "100%", height: 12, radius: 4 },
|
|
5718
5752
|
circle: { width: 40, height: 40, radius: 9999 },
|
|
@@ -5738,7 +5772,7 @@ function Skeleton({ shape = "text", width, height, style, testID }) {
|
|
|
5738
5772
|
}, [reduce, opacity]);
|
|
5739
5773
|
const s = SHAPE[shape];
|
|
5740
5774
|
const side = shape === "circle" ? width ?? height ?? s.width : void 0;
|
|
5741
|
-
return /* @__PURE__ */
|
|
5775
|
+
return /* @__PURE__ */ jsx63(
|
|
5742
5776
|
Animated23.View,
|
|
5743
5777
|
{
|
|
5744
5778
|
testID,
|
|
@@ -5753,9 +5787,9 @@ function Skeleton({ shape = "text", width, height, style, testID }) {
|
|
|
5753
5787
|
|
|
5754
5788
|
// src/native/slider.tsx
|
|
5755
5789
|
import * as React42 from "react";
|
|
5756
|
-
import { PanResponder as PanResponder2, StyleSheet as
|
|
5790
|
+
import { PanResponder as PanResponder2, StyleSheet as StyleSheet49, Text as Text19, View as View57 } from "react-native";
|
|
5757
5791
|
import Svg31, { Defs as Defs15, LinearGradient as LinearGradient12, Rect as Rect5, Stop as Stop15 } from "react-native-svg";
|
|
5758
|
-
import { jsx as
|
|
5792
|
+
import { jsx as jsx64, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
5759
5793
|
var THUMB = 26;
|
|
5760
5794
|
var toArray = (v) => v === void 0 ? void 0 : typeof v === "number" ? [v] : [...v];
|
|
5761
5795
|
function Slider({
|
|
@@ -5847,24 +5881,24 @@ function Slider({
|
|
|
5847
5881
|
const along = (p) => vertical ? { bottom: p * length } : { left: p * length };
|
|
5848
5882
|
const onLayout = (e) => setLength(vertical ? e.nativeEvent.layout.height : e.nativeEvent.layout.width);
|
|
5849
5883
|
const fill = vertical ? { bottom: pct(lo) * length, height: (pct(hi) - pct(lo)) * length, left: 0, right: 0 } : { left: pct(lo) * length, width: (pct(hi) - pct(lo)) * length, top: 0, bottom: 0 };
|
|
5850
|
-
return /* @__PURE__ */
|
|
5851
|
-
showLabel ? /* @__PURE__ */
|
|
5852
|
-
/* @__PURE__ */
|
|
5853
|
-
/* @__PURE__ */
|
|
5884
|
+
return /* @__PURE__ */ jsxs57(View57, { style: [styles49.root, vertical ? styles49.rootVertical : null, disabled ? styles49.disabled : null, style], children: [
|
|
5885
|
+
showLabel ? /* @__PURE__ */ jsxs57(View57, { style: styles49.header, children: [
|
|
5886
|
+
/* @__PURE__ */ jsx64(Text19, { style: [styles49.label, { color: theme.textSecondary }], children: label }),
|
|
5887
|
+
/* @__PURE__ */ jsx64(Text19, { "aria-hidden": true, style: [styles49.value, { color: theme.textSecondary }], children: current.map(formatValue).join(" \u2013 ") })
|
|
5854
5888
|
] }) : null,
|
|
5855
|
-
/* @__PURE__ */
|
|
5856
|
-
/* @__PURE__ */
|
|
5857
|
-
/* @__PURE__ */
|
|
5858
|
-
/* @__PURE__ */
|
|
5859
|
-
/* @__PURE__ */
|
|
5860
|
-
/* @__PURE__ */
|
|
5889
|
+
/* @__PURE__ */ jsxs57(View57, { ...responder.panHandlers, style: vertical ? styles49.controlVertical : styles49.control, children: [
|
|
5890
|
+
/* @__PURE__ */ jsxs57(View57, { onLayout, pointerEvents: "none", style: [vertical ? styles49.trackVertical : styles49.track, { borderRadius: radius3.full, backgroundColor: theme.surface3 }], children: [
|
|
5891
|
+
/* @__PURE__ */ jsx64(View57, { style: [styles49.fill, fill, { borderRadius: radius3.full, overflow: "hidden", backgroundColor: theme.accent }], children: tone3 === "gradient" ? /* @__PURE__ */ jsxs57(Svg31, { width: "100%", height: "100%", "aria-hidden": true, children: [
|
|
5892
|
+
/* @__PURE__ */ jsx64(Defs15, { children: /* @__PURE__ */ jsxs57(LinearGradient12, { id: gradientId, x1: "0", y1: vertical ? "1" : "0", x2: vertical ? "0" : "1", y2: "0", children: [
|
|
5893
|
+
/* @__PURE__ */ jsx64(Stop15, { offset: "0", stopColor: theme.accent }),
|
|
5894
|
+
/* @__PURE__ */ jsx64(Stop15, { offset: "1", stopColor: theme.accent2 })
|
|
5861
5895
|
] }) }),
|
|
5862
|
-
/* @__PURE__ */
|
|
5896
|
+
/* @__PURE__ */ jsx64(Rect5, { width: "100%", height: "100%", fill: `url(#${gradientId})` })
|
|
5863
5897
|
] }) : null }),
|
|
5864
|
-
tickValues.map((t) => /* @__PURE__ */
|
|
5898
|
+
tickValues.map((t) => /* @__PURE__ */ jsx64(View57, { style: [vertical ? styles49.tickVertical : styles49.tick, along(pct(t)), { backgroundColor: t > lo && t < hi ? theme.onAccent : theme.borderStrong }] }, t))
|
|
5865
5899
|
] }),
|
|
5866
|
-
current.map((v, i) => /* @__PURE__ */
|
|
5867
|
-
|
|
5900
|
+
current.map((v, i) => /* @__PURE__ */ jsx64(
|
|
5901
|
+
View57,
|
|
5868
5902
|
{
|
|
5869
5903
|
accessible: true,
|
|
5870
5904
|
role: "slider",
|
|
@@ -5883,16 +5917,16 @@ function Slider({
|
|
|
5883
5917
|
onValueCommit?.(out(values));
|
|
5884
5918
|
},
|
|
5885
5919
|
pointerEvents: "none",
|
|
5886
|
-
style: [
|
|
5887
|
-
children: floatingValue === "always" || floatingValue && dragging === i ? /* @__PURE__ */
|
|
5920
|
+
style: [styles49.thumb, vertical ? { bottom: pct(v) * length, left: (44 - THUMB) / 2, marginLeft: 0, marginTop: 0 } : { left: pct(v) * length - THUMB / 2, top: 0 }, { borderColor: theme.accent, backgroundColor: theme.textOnMedia, shadowColor: theme.scrimStrong }],
|
|
5921
|
+
children: floatingValue === "always" || floatingValue && dragging === i ? /* @__PURE__ */ jsx64(View57, { "aria-hidden": true, style: [vertical ? styles49.bubbleVertical : styles49.bubble, { backgroundColor: theme.textPrimary, borderRadius: radius3.md }], children: /* @__PURE__ */ jsx64(Text19, { style: [styles49.bubbleText, { color: theme.surface0 }], children: formatValue(v) }) }) : null
|
|
5888
5922
|
},
|
|
5889
5923
|
i
|
|
5890
5924
|
))
|
|
5891
5925
|
] }),
|
|
5892
|
-
marks2?.length && !vertical ? /* @__PURE__ */
|
|
5926
|
+
marks2?.length && !vertical ? /* @__PURE__ */ jsx64(View57, { "aria-hidden": true, style: styles49.marks, children: marks2.map((m) => /* @__PURE__ */ jsx64(Text19, { style: [styles49.mark, { left: pct(m.value) * length, color: theme.textSecondary, transform: [{ translateX: m.value === min ? 0 : m.value === max ? -40 : -20 }], textAlign: m.value === min ? "left" : m.value === max ? "right" : "center" }], children: m.label }, m.value)) }) : null
|
|
5893
5927
|
] });
|
|
5894
5928
|
}
|
|
5895
|
-
var
|
|
5929
|
+
var styles49 = StyleSheet49.create({
|
|
5896
5930
|
root: { gap: 8, alignSelf: "stretch" },
|
|
5897
5931
|
rootVertical: { alignSelf: "flex-start", alignItems: "center" },
|
|
5898
5932
|
header: { flexDirection: "row", justifyContent: "space-between", alignItems: "baseline", gap: 12 },
|
|
@@ -5928,10 +5962,10 @@ var styles48 = StyleSheet48.create({
|
|
|
5928
5962
|
|
|
5929
5963
|
// src/native/spinner.tsx
|
|
5930
5964
|
import { ActivityIndicator as ActivityIndicator2 } from "react-native";
|
|
5931
|
-
import { jsx as
|
|
5965
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
5932
5966
|
function Spinner({ label, size = "md", ...props }) {
|
|
5933
5967
|
const { theme } = useTheme();
|
|
5934
|
-
return /* @__PURE__ */
|
|
5968
|
+
return /* @__PURE__ */ jsx65(
|
|
5935
5969
|
ActivityIndicator2,
|
|
5936
5970
|
{
|
|
5937
5971
|
accessible: true,
|
|
@@ -5947,8 +5981,8 @@ function Spinner({ label, size = "md", ...props }) {
|
|
|
5947
5981
|
|
|
5948
5982
|
// src/native/splash-handoff.tsx
|
|
5949
5983
|
import * as React43 from "react";
|
|
5950
|
-
import { Animated as Animated24, Easing as Easing13, StyleSheet as
|
|
5951
|
-
import { jsx as
|
|
5984
|
+
import { Animated as Animated24, Easing as Easing13, StyleSheet as StyleSheet50, View as View58 } from "react-native";
|
|
5985
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
5952
5986
|
function SplashHandoff({ product, ready, onShown, onDone, size = 96, background, label, duration = 320, style }) {
|
|
5953
5987
|
const { theme } = useTheme();
|
|
5954
5988
|
const reduce = useReducedMotion();
|
|
@@ -5966,7 +6000,7 @@ function SplashHandoff({ product, ready, onShown, onDone, size = 96, background,
|
|
|
5966
6000
|
return () => animation.stop();
|
|
5967
6001
|
}, [ready, reduce, duration, opacity, onDone]);
|
|
5968
6002
|
if (gone) return null;
|
|
5969
|
-
return /* @__PURE__ */
|
|
6003
|
+
return /* @__PURE__ */ jsx66(
|
|
5970
6004
|
Animated24.View,
|
|
5971
6005
|
{
|
|
5972
6006
|
accessible: true,
|
|
@@ -5975,17 +6009,17 @@ function SplashHandoff({ product, ready, onShown, onDone, size = 96, background,
|
|
|
5975
6009
|
"aria-busy": true,
|
|
5976
6010
|
pointerEvents: ready ? "none" : "auto",
|
|
5977
6011
|
onLayout: onShown,
|
|
5978
|
-
style: [
|
|
5979
|
-
children: /* @__PURE__ */
|
|
6012
|
+
style: [StyleSheet50.absoluteFill, styles50.root, { backgroundColor: background ?? theme.surface0, opacity }, style],
|
|
6013
|
+
children: /* @__PURE__ */ jsx66(View58, { children: /* @__PURE__ */ jsx66(ProductMark, { id: product, size, animated: true }) })
|
|
5980
6014
|
}
|
|
5981
6015
|
);
|
|
5982
6016
|
}
|
|
5983
|
-
var
|
|
6017
|
+
var styles50 = StyleSheet50.create({ root: { alignItems: "center", justifyContent: "center", zIndex: 100 } });
|
|
5984
6018
|
|
|
5985
6019
|
// src/native/status-chip.tsx
|
|
5986
6020
|
import * as React44 from "react";
|
|
5987
|
-
import { Pressable as
|
|
5988
|
-
import { Fragment as Fragment12, jsx as
|
|
6021
|
+
import { Pressable as Pressable27 } from "react-native";
|
|
6022
|
+
import { Fragment as Fragment12, jsx as jsx67, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
5989
6023
|
function StatusChip({
|
|
5990
6024
|
label,
|
|
5991
6025
|
tone: tone3 = "neutral",
|
|
@@ -6000,11 +6034,11 @@ function StatusChip({
|
|
|
6000
6034
|
const [open, setOpen] = React44.useState(false);
|
|
6001
6035
|
const [armed, setArmed] = React44.useState(null);
|
|
6002
6036
|
const [asking, setAsking] = React44.useState(null);
|
|
6003
|
-
const badge = /* @__PURE__ */
|
|
6037
|
+
const badge = /* @__PURE__ */ jsx67(Badge, { tone: tone3, size, dot: true, children: label });
|
|
6004
6038
|
if (!onMove || moves.length === 0) return badge;
|
|
6005
|
-
return /* @__PURE__ */
|
|
6006
|
-
/* @__PURE__ */
|
|
6007
|
-
/* @__PURE__ */
|
|
6039
|
+
return /* @__PURE__ */ jsxs58(Fragment12, { children: [
|
|
6040
|
+
/* @__PURE__ */ jsx67(Pressable27, { role: "button", "aria-label": menuLabel(label), "aria-haspopup": "menu", hitSlop: 8, onPress: () => setOpen(true), style: { alignSelf: "flex-start" }, children: badge }),
|
|
6041
|
+
/* @__PURE__ */ jsx67(
|
|
6008
6042
|
ActionSheet,
|
|
6009
6043
|
{
|
|
6010
6044
|
open,
|
|
@@ -6032,7 +6066,7 @@ function StatusChip({
|
|
|
6032
6066
|
}))
|
|
6033
6067
|
}
|
|
6034
6068
|
),
|
|
6035
|
-
/* @__PURE__ */
|
|
6069
|
+
/* @__PURE__ */ jsx67(
|
|
6036
6070
|
ActionSheet,
|
|
6037
6071
|
{
|
|
6038
6072
|
open: asking !== null,
|
|
@@ -6053,22 +6087,22 @@ function StatusChip({
|
|
|
6053
6087
|
}
|
|
6054
6088
|
|
|
6055
6089
|
// src/native/step-progress.tsx
|
|
6056
|
-
import { Pressable as
|
|
6090
|
+
import { Pressable as Pressable28, StyleSheet as StyleSheet51, View as View59 } from "react-native";
|
|
6057
6091
|
import Svg32, { Path as Path26 } from "react-native-svg";
|
|
6058
|
-
import { jsx as
|
|
6092
|
+
import { jsx as jsx68, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
6059
6093
|
function StepProgress({ step, total, label, backLabel, onBack, trailing, style }) {
|
|
6060
6094
|
const { theme, insets } = useTheme();
|
|
6061
6095
|
const words2 = label(step, total);
|
|
6062
|
-
return /* @__PURE__ */
|
|
6063
|
-
/* @__PURE__ */
|
|
6064
|
-
onBack && backLabel ? /* @__PURE__ */
|
|
6065
|
-
/* @__PURE__ */
|
|
6066
|
-
/* @__PURE__ */
|
|
6096
|
+
return /* @__PURE__ */ jsxs59(View59, { style: [styles51.root, { paddingTop: insets.top + 8 }, style], children: [
|
|
6097
|
+
/* @__PURE__ */ jsxs59(View59, { style: styles51.row, children: [
|
|
6098
|
+
onBack && backLabel ? /* @__PURE__ */ jsx68(Pressable28, { role: "button", "aria-label": backLabel, hitSlop: 10, onPress: onBack, style: styles51.back, children: /* @__PURE__ */ jsx68(Svg32, { width: 22, height: 22, viewBox: "0 0 24 24", "aria-hidden": true, children: /* @__PURE__ */ jsx68(Path26, { d: "M15 5l-7 7 7 7", stroke: theme.textPrimary, strokeWidth: 2.4, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }) }) }) : /* @__PURE__ */ jsx68(View59, { style: styles51.back }),
|
|
6099
|
+
/* @__PURE__ */ jsx68(View59, { accessible: true, role: "progressbar", "aria-label": words2, "aria-valuemin": 1, "aria-valuemax": total, "aria-valuenow": step, "aria-valuetext": words2, style: styles51.bars, children: Array.from({ length: total }, (_, i) => /* @__PURE__ */ jsx68(View59, { style: [styles51.bar, { backgroundColor: i < step ? theme.accent : theme.surface3 }] }, i)) }),
|
|
6100
|
+
/* @__PURE__ */ jsx68(View59, { style: styles51.trailing, children: trailing })
|
|
6067
6101
|
] }),
|
|
6068
|
-
/* @__PURE__ */
|
|
6102
|
+
/* @__PURE__ */ jsx68(Txt, { variant: "caption", tone: "secondary", style: styles51.words, "aria-hidden": true, children: words2 })
|
|
6069
6103
|
] });
|
|
6070
6104
|
}
|
|
6071
|
-
var
|
|
6105
|
+
var styles51 = StyleSheet51.create({
|
|
6072
6106
|
root: { paddingHorizontal: 12, gap: 6 },
|
|
6073
6107
|
row: { flexDirection: "row", alignItems: "center", gap: 8 },
|
|
6074
6108
|
back: { width: 40, height: 40, alignItems: "center", justifyContent: "center" },
|
|
@@ -6079,36 +6113,36 @@ var styles50 = StyleSheet50.create({
|
|
|
6079
6113
|
});
|
|
6080
6114
|
|
|
6081
6115
|
// src/native/stepper.tsx
|
|
6082
|
-
import { StyleSheet as
|
|
6116
|
+
import { StyleSheet as StyleSheet52, View as View60 } from "react-native";
|
|
6083
6117
|
import Svg33, { Circle as Circle17, Path as Path27 } from "react-native-svg";
|
|
6084
|
-
import { jsx as
|
|
6118
|
+
import { jsx as jsx69, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
6085
6119
|
var WORDS = { done: "done", current: "in progress", upcoming: "to come", error: "failed" };
|
|
6086
6120
|
function Stepper({ steps, current = 0, orientation = "vertical", statusLabels, "aria-label": label, style }) {
|
|
6087
6121
|
const { theme } = useTheme();
|
|
6088
6122
|
const words2 = { ...WORDS, ...statusLabels };
|
|
6089
6123
|
const vertical = orientation === "vertical";
|
|
6090
|
-
return /* @__PURE__ */
|
|
6124
|
+
return /* @__PURE__ */ jsx69(View60, { role: "list", "aria-label": label, style: [vertical ? styles52.column : styles52.row, style], children: steps.map((step, i) => {
|
|
6091
6125
|
const status = step.status ?? (i < current ? "done" : i === current ? "current" : "upcoming");
|
|
6092
6126
|
const last = i === steps.length - 1;
|
|
6093
|
-
const node = status === "current" ? /* @__PURE__ */
|
|
6094
|
-
/* @__PURE__ */
|
|
6095
|
-
status === "done" ? /* @__PURE__ */
|
|
6127
|
+
const node = status === "current" ? /* @__PURE__ */ jsx69(LoaderGlyph, { value: step.value ?? null, size: 24 }) : status === "error" ? /* @__PURE__ */ jsx69(LoaderGlyph, { state: "error", size: 24 }) : /* @__PURE__ */ jsxs60(Svg33, { width: 24, height: 24, viewBox: "0 0 24 24", "aria-hidden": true, children: [
|
|
6128
|
+
/* @__PURE__ */ jsx69(Circle17, { cx: 12, cy: 12, r: 10, fill: status === "done" ? theme.accent : "none", stroke: status === "done" ? theme.accent : theme.borderStrong, strokeWidth: 2 }),
|
|
6129
|
+
status === "done" ? /* @__PURE__ */ jsx69(Path27, { d: "M7.5 12.3l3 3 6-6.3", stroke: theme.onAccent, strokeWidth: 2.2, fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }) : null
|
|
6096
6130
|
] });
|
|
6097
|
-
const connector = !last ? /* @__PURE__ */
|
|
6098
|
-
return /* @__PURE__ */
|
|
6099
|
-
/* @__PURE__ */
|
|
6131
|
+
const connector = !last ? /* @__PURE__ */ jsx69(View60, { "aria-hidden": true, style: [vertical ? styles52.vLine : styles52.hLine, { backgroundColor: status === "done" ? theme.accent : theme.borderDefault }] }) : null;
|
|
6132
|
+
return /* @__PURE__ */ jsxs60(View60, { role: "listitem", accessible: true, "aria-label": `${step.title}, ${words2[status]}`, style: vertical ? styles52.vStep : styles52.hStep, children: [
|
|
6133
|
+
/* @__PURE__ */ jsxs60(View60, { style: vertical ? styles52.vRail : styles52.hRail, children: [
|
|
6100
6134
|
node,
|
|
6101
6135
|
connector
|
|
6102
6136
|
] }),
|
|
6103
|
-
/* @__PURE__ */
|
|
6104
|
-
/* @__PURE__ */
|
|
6105
|
-
step.description ? /* @__PURE__ */
|
|
6106
|
-
step.content && (status === "current" || status === "error") ? /* @__PURE__ */
|
|
6137
|
+
/* @__PURE__ */ jsxs60(View60, { style: [styles52.body, vertical && !last ? { paddingBottom: 20 } : null], children: [
|
|
6138
|
+
/* @__PURE__ */ jsx69(Txt, { variant: "label", tone: status === "upcoming" ? "secondary" : "text", numberOfLines: vertical ? void 0 : 2, children: step.title }),
|
|
6139
|
+
step.description ? /* @__PURE__ */ jsx69(Txt, { variant: "caption", tone: "secondary", children: step.description }) : null,
|
|
6140
|
+
step.content && (status === "current" || status === "error") ? /* @__PURE__ */ jsx69(View60, { style: styles52.content, children: step.content }) : null
|
|
6107
6141
|
] })
|
|
6108
6142
|
] }, i);
|
|
6109
6143
|
}) });
|
|
6110
6144
|
}
|
|
6111
|
-
var
|
|
6145
|
+
var styles52 = StyleSheet52.create({
|
|
6112
6146
|
column: { gap: 0 },
|
|
6113
6147
|
row: { flexDirection: "row" },
|
|
6114
6148
|
vStep: { flexDirection: "row", gap: 12 },
|
|
@@ -6123,58 +6157,58 @@ var styles51 = StyleSheet51.create({
|
|
|
6123
6157
|
|
|
6124
6158
|
// src/native/swipe-deck.tsx
|
|
6125
6159
|
import * as React45 from "react";
|
|
6126
|
-
import { AccessibilityInfo as AccessibilityInfo14, Animated as Animated25, Image as Image5, PanResponder as PanResponder3, Platform as Platform4, Pressable as
|
|
6160
|
+
import { AccessibilityInfo as AccessibilityInfo14, Animated as Animated25, Image as Image5, PanResponder as PanResponder3, Platform as Platform4, Pressable as Pressable29, StyleSheet as StyleSheet53, useWindowDimensions as useWindowDimensions2, View as View61 } from "react-native";
|
|
6127
6161
|
import Svg34, { Defs as Defs16, LinearGradient as LinearGradient13, Path as Path28, Rect as Rect6, Stop as Stop16 } from "react-native-svg";
|
|
6128
|
-
import { Fragment as Fragment13, jsx as
|
|
6162
|
+
import { Fragment as Fragment13, jsx as jsx70, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
6129
6163
|
function PersonCard({ photos, name, age, badge, meta, bio, footer, photoLabel = (n, t) => `Photo ${n} of ${t}`, style }) {
|
|
6130
6164
|
const { theme, radius: radius3 } = useTheme();
|
|
6131
6165
|
const [index, setIndex] = React45.useState(0);
|
|
6132
6166
|
const gradient = useSvgId("kz-profile-");
|
|
6133
6167
|
const [box, setBox] = React45.useState(null);
|
|
6134
6168
|
const photo = photos[index];
|
|
6135
|
-
return /* @__PURE__ */
|
|
6136
|
-
|
|
6169
|
+
return /* @__PURE__ */ jsxs61(
|
|
6170
|
+
View61,
|
|
6137
6171
|
{
|
|
6138
6172
|
accessible: Platform4.OS !== "web",
|
|
6139
6173
|
accessibilityActions: photos.length > 1 ? [{ name: "increment" }, { name: "decrement" }] : [],
|
|
6140
6174
|
onAccessibilityAction: (e) => setIndex((i) => Math.max(0, Math.min(photos.length - 1, i + (e.nativeEvent.actionName === "increment" ? 1 : -1)))),
|
|
6141
6175
|
role: Platform4.OS === "web" ? "group" : "img",
|
|
6142
6176
|
"aria-label": [`${name}${age !== void 0 ? `, ${age}` : ""}`, bio, photos.length > 1 ? photoLabel(index + 1, photos.length) : null].filter(Boolean).join(". "),
|
|
6143
|
-
style: [
|
|
6177
|
+
style: [styles53.card, { borderRadius: radius3.xl, backgroundColor: theme.media }, style],
|
|
6144
6178
|
children: [
|
|
6145
|
-
photo ? /* @__PURE__ */
|
|
6146
|
-
photos.length > 1 ? /* @__PURE__ */
|
|
6147
|
-
/* @__PURE__ */
|
|
6148
|
-
/* @__PURE__ */
|
|
6149
|
-
/* @__PURE__ */
|
|
6179
|
+
photo ? /* @__PURE__ */ jsx70(Image5, { testID: "person-card-photo", source: { uri: photo.uri }, style: StyleSheet53.absoluteFill, resizeMode: "cover" }) : null,
|
|
6180
|
+
photos.length > 1 ? /* @__PURE__ */ jsxs61(Fragment13, { children: [
|
|
6181
|
+
/* @__PURE__ */ jsx70(View61, { style: styles53.bars, "aria-hidden": true, children: photos.map((_, i) => /* @__PURE__ */ jsx70(View61, { style: [styles53.bar, { backgroundColor: theme.textOnMedia, opacity: i === index ? 1 : 0.4 }] }, i)) }),
|
|
6182
|
+
/* @__PURE__ */ jsx70(Pressable29, { "aria-hidden": true, accessible: false, focusable: false, tabIndex: -1, style: [styles53.half, { left: 0 }], onPress: () => setIndex((i) => Math.max(0, i - 1)) }),
|
|
6183
|
+
/* @__PURE__ */ jsx70(Pressable29, { "aria-hidden": true, accessible: false, focusable: false, tabIndex: -1, style: [styles53.half, { right: 0 }], onPress: () => setIndex((i) => Math.min(photos.length - 1, i + 1)) })
|
|
6150
6184
|
] }) : null,
|
|
6151
|
-
/* @__PURE__ */
|
|
6152
|
-
|
|
6185
|
+
/* @__PURE__ */ jsxs61(
|
|
6186
|
+
View61,
|
|
6153
6187
|
{
|
|
6154
6188
|
testID: "person-card-overlay",
|
|
6155
6189
|
pointerEvents: "box-none",
|
|
6156
|
-
style:
|
|
6190
|
+
style: styles53.bottom,
|
|
6157
6191
|
onLayout: (e) => setBox({ width: e.nativeEvent.layout.width, height: e.nativeEvent.layout.height }),
|
|
6158
6192
|
children: [
|
|
6159
|
-
box ? /* @__PURE__ */
|
|
6160
|
-
/* @__PURE__ */
|
|
6161
|
-
/* @__PURE__ */
|
|
6162
|
-
/* @__PURE__ */
|
|
6163
|
-
/* @__PURE__ */
|
|
6193
|
+
box ? /* @__PURE__ */ jsxs61(Svg34, { testID: "person-card-scrim", style: styles53.scrim, width: box.width, height: box.height, "aria-hidden": true, children: [
|
|
6194
|
+
/* @__PURE__ */ jsx70(Defs16, { children: /* @__PURE__ */ jsxs61(LinearGradient13, { id: gradient, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
6195
|
+
/* @__PURE__ */ jsx70(Stop16, { offset: "0", stopColor: theme.scrimStrong, stopOpacity: 0 }),
|
|
6196
|
+
/* @__PURE__ */ jsx70(Stop16, { offset: "0.5", stopColor: theme.scrimStrong, stopOpacity: 0.8 }),
|
|
6197
|
+
/* @__PURE__ */ jsx70(Stop16, { offset: "1", stopColor: theme.scrimStrong, stopOpacity: 1 })
|
|
6164
6198
|
] }) }),
|
|
6165
|
-
/* @__PURE__ */
|
|
6199
|
+
/* @__PURE__ */ jsx70(Rect6, { x: 0, y: 0, width: box.width, height: box.height, fill: `url(#${gradient})` })
|
|
6166
6200
|
] }) : null,
|
|
6167
|
-
/* @__PURE__ */
|
|
6168
|
-
/* @__PURE__ */
|
|
6169
|
-
/* @__PURE__ */
|
|
6201
|
+
/* @__PURE__ */ jsxs61(View61, { style: styles53.text, children: [
|
|
6202
|
+
/* @__PURE__ */ jsxs61(View61, { style: styles53.nameRow, children: [
|
|
6203
|
+
/* @__PURE__ */ jsxs61(Txt, { variant: "display", tone: "onMedia", style: styles53.name, numberOfLines: 1, children: [
|
|
6170
6204
|
name,
|
|
6171
|
-
age !== void 0 ? /* @__PURE__ */
|
|
6205
|
+
age !== void 0 ? /* @__PURE__ */ jsx70(Txt, { variant: "display", tone: "onMedia", style: styles53.age, children: ` ${age}` }) : null
|
|
6172
6206
|
] }),
|
|
6173
6207
|
badge
|
|
6174
6208
|
] }),
|
|
6175
6209
|
meta,
|
|
6176
|
-
bio ? /* @__PURE__ */
|
|
6177
|
-
footer ? /* @__PURE__ */
|
|
6210
|
+
bio ? /* @__PURE__ */ jsx70(Txt, { tone: "onMedia", numberOfLines: 2, children: bio }) : null,
|
|
6211
|
+
footer ? /* @__PURE__ */ jsx70(View61, { style: styles53.footer, children: footer }) : null
|
|
6178
6212
|
] })
|
|
6179
6213
|
]
|
|
6180
6214
|
}
|
|
@@ -6218,26 +6252,26 @@ function SwipeDeck({ items: items2, getId, renderCard, onSwipe, empty: empty2, l
|
|
|
6218
6252
|
const rotate = x.interpolate({ inputRange: [-width, 0, width], outputRange: ["-14deg", "0deg", "14deg"] });
|
|
6219
6253
|
const likeOpacity = x.interpolate({ inputRange: [0, width / 4], outputRange: [0, 1], extrapolate: "clamp" });
|
|
6220
6254
|
const passOpacity = x.interpolate({ inputRange: [-width / 4, 0], outputRange: [1, 0], extrapolate: "clamp" });
|
|
6221
|
-
const button = (direction) => /* @__PURE__ */
|
|
6222
|
-
|
|
6255
|
+
const button = (direction) => /* @__PURE__ */ jsx70(
|
|
6256
|
+
Pressable29,
|
|
6223
6257
|
{
|
|
6224
6258
|
role: "button",
|
|
6225
6259
|
"aria-label": direction === "like" ? labels.like : labels.pass,
|
|
6226
6260
|
disabled: !top,
|
|
6227
6261
|
onPress: () => decide(direction),
|
|
6228
6262
|
style: ({ pressed }) => [
|
|
6229
|
-
|
|
6263
|
+
styles53.button,
|
|
6230
6264
|
{ borderColor: direction === "like" ? theme.success : theme.danger, backgroundColor: theme.surface1, transform: [{ scale: pressed ? 0.92 : 1 }], opacity: top ? 1 : 0.4 }
|
|
6231
6265
|
],
|
|
6232
|
-
children: /* @__PURE__ */
|
|
6266
|
+
children: /* @__PURE__ */ jsx70(Svg34, { width: 28, height: 28, viewBox: "0 0 24 24", "aria-hidden": true, children: direction === "like" ? /* @__PURE__ */ jsx70(Path28, { d: "M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z", fill: theme.success }) : /* @__PURE__ */ jsx70(Path28, { d: "M6 6l12 12M18 6 6 18", stroke: theme.danger, strokeWidth: 3, strokeLinecap: "round" }) })
|
|
6233
6267
|
}
|
|
6234
6268
|
);
|
|
6235
|
-
return /* @__PURE__ */
|
|
6236
|
-
/* @__PURE__ */
|
|
6269
|
+
return /* @__PURE__ */ jsxs61(View61, { style: [styles53.deck, style], children: [
|
|
6270
|
+
/* @__PURE__ */ jsxs61(View61, { style: styles53.stack, children: [
|
|
6237
6271
|
!top ? empty2 ?? null : null,
|
|
6238
6272
|
items2.slice(0, 2).reverse().map((item) => {
|
|
6239
6273
|
const isTop = item === top;
|
|
6240
|
-
return /* @__PURE__ */
|
|
6274
|
+
return /* @__PURE__ */ jsxs61(
|
|
6241
6275
|
Animated25.View,
|
|
6242
6276
|
{
|
|
6243
6277
|
...isTop ? pan.panHandlers : {},
|
|
@@ -6246,12 +6280,12 @@ function SwipeDeck({ items: items2, getId, renderCard, onSwipe, empty: empty2, l
|
|
|
6246
6280
|
"aria-hidden": !isTop,
|
|
6247
6281
|
importantForAccessibility: isTop ? "auto" : "no-hide-descendants",
|
|
6248
6282
|
pointerEvents: isTop ? "auto" : "none",
|
|
6249
|
-
style: [
|
|
6283
|
+
style: [StyleSheet53.absoluteFill, isTop ? { transform: [{ translateX: x }, { rotate }] } : { transform: [{ scale: 0.96 }], opacity: 0.9 }],
|
|
6250
6284
|
children: [
|
|
6251
6285
|
renderCard(item),
|
|
6252
|
-
isTop ? /* @__PURE__ */
|
|
6253
|
-
/* @__PURE__ */
|
|
6254
|
-
/* @__PURE__ */
|
|
6286
|
+
isTop ? /* @__PURE__ */ jsxs61(Fragment13, { children: [
|
|
6287
|
+
/* @__PURE__ */ jsx70(Animated25.View, { pointerEvents: "none", style: [styles53.stamp, styles53.stampLike, { borderColor: theme.success, opacity: likeOpacity }], "aria-hidden": true, children: /* @__PURE__ */ jsx70(Txt, { variant: "title", style: { color: theme.success }, children: labels.likeStamp ?? labels.like.toUpperCase() }) }),
|
|
6288
|
+
/* @__PURE__ */ jsx70(Animated25.View, { pointerEvents: "none", style: [styles53.stamp, styles53.stampPass, { borderColor: theme.danger, opacity: passOpacity }], "aria-hidden": true, children: /* @__PURE__ */ jsx70(Txt, { variant: "title", style: { color: theme.danger }, children: labels.passStamp ?? labels.pass.toUpperCase() }) })
|
|
6255
6289
|
] }) : null
|
|
6256
6290
|
]
|
|
6257
6291
|
},
|
|
@@ -6259,13 +6293,13 @@ function SwipeDeck({ items: items2, getId, renderCard, onSwipe, empty: empty2, l
|
|
|
6259
6293
|
);
|
|
6260
6294
|
})
|
|
6261
6295
|
] }),
|
|
6262
|
-
hideButtons ? null : /* @__PURE__ */
|
|
6296
|
+
hideButtons ? null : /* @__PURE__ */ jsxs61(View61, { style: styles53.buttons, children: [
|
|
6263
6297
|
button("pass"),
|
|
6264
6298
|
button("like")
|
|
6265
6299
|
] })
|
|
6266
6300
|
] });
|
|
6267
6301
|
}
|
|
6268
|
-
var
|
|
6302
|
+
var styles53 = StyleSheet53.create({
|
|
6269
6303
|
card: { flex: 1, overflow: "hidden" },
|
|
6270
6304
|
bars: { position: "absolute", top: 8, left: 8, right: 8, flexDirection: "row", gap: 4 },
|
|
6271
6305
|
bar: { flex: 1, height: 3, borderRadius: 2 },
|
|
@@ -6288,8 +6322,8 @@ var styles52 = StyleSheet52.create({
|
|
|
6288
6322
|
|
|
6289
6323
|
// src/native/swipeable-row.tsx
|
|
6290
6324
|
import * as React46 from "react";
|
|
6291
|
-
import { Animated as Animated26, PanResponder as PanResponder4, Pressable as
|
|
6292
|
-
import { jsx as
|
|
6325
|
+
import { Animated as Animated26, PanResponder as PanResponder4, Pressable as Pressable30, StyleSheet as StyleSheet54, View as View62 } from "react-native";
|
|
6326
|
+
import { jsx as jsx71, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
6293
6327
|
var toneColor = (t, tone3) => ({ neutral: t.surface3, accent: t.accent, success: t.success, warning: t.warning, danger: t.danger })[tone3 ?? "neutral"];
|
|
6294
6328
|
var toneText = (tone3) => tone3 === "neutral" || tone3 === void 0 ? "text" : "onAccent";
|
|
6295
6329
|
function SwipeableRow({ children, trailing = [], leading = [], fullSwipe = 0.6, actionWidth = 80, onActivate, testID, style }) {
|
|
@@ -6337,18 +6371,18 @@ function SwipeableRow({ children, trailing = [], leading = [], fullSwipe = 0.6,
|
|
|
6337
6371
|
[trailing, leading, fullSwipe, width, actionWidth]
|
|
6338
6372
|
// eslint-disable-line react-hooks/exhaustive-deps -- run/settle are stable in effect
|
|
6339
6373
|
);
|
|
6340
|
-
const side = (actions, edge) => /* @__PURE__ */
|
|
6374
|
+
const side = (actions, edge) => /* @__PURE__ */ jsx71(View62, { "aria-hidden": true, style: [styles54.side, edge === "left" ? { left: 0 } : { right: 0, flexDirection: "row-reverse" }], children: actions.map((action, i) => (
|
|
6341
6375
|
// eslint-disable-next-line react-hooks/refs -- runs on a press, never during render
|
|
6342
|
-
/* @__PURE__ */
|
|
6376
|
+
/* @__PURE__ */ jsxs62(Pressable30, { focusable: false, tabIndex: -1, onPress: () => run(action), style: [styles54.action, { width: actionWidth, backgroundColor: toneColor(theme, action.tone) }], children: [
|
|
6343
6377
|
action.icon,
|
|
6344
|
-
/* @__PURE__ */
|
|
6378
|
+
/* @__PURE__ */ jsx71(Txt, { variant: "caption", tone: toneText(action.tone), style: styles54.actionText, numberOfLines: 1, children: action.label })
|
|
6345
6379
|
] }, i)
|
|
6346
6380
|
)) });
|
|
6347
6381
|
const all = [...leading, ...trailing];
|
|
6348
|
-
return /* @__PURE__ */
|
|
6382
|
+
return /* @__PURE__ */ jsxs62(View62, { style: [styles54.root, style], onLayout: (e) => setWidth(e.nativeEvent.layout.width), children: [
|
|
6349
6383
|
leading.length > 0 ? side(leading, "left") : null,
|
|
6350
6384
|
trailing.length > 0 ? side(trailing, "right") : null,
|
|
6351
|
-
/* @__PURE__ */
|
|
6385
|
+
/* @__PURE__ */ jsx71(
|
|
6352
6386
|
Animated26.View,
|
|
6353
6387
|
{
|
|
6354
6388
|
...pan.panHandlers,
|
|
@@ -6360,13 +6394,13 @@ function SwipeableRow({ children, trailing = [], leading = [], fullSwipe = 0.6,
|
|
|
6360
6394
|
const action = all.find((a) => a.label === e.nativeEvent.actionName);
|
|
6361
6395
|
if (action) action.onPress();
|
|
6362
6396
|
},
|
|
6363
|
-
style: [
|
|
6397
|
+
style: [styles54.front, { backgroundColor: theme.surface0, transform: [{ translateX: x }] }],
|
|
6364
6398
|
children
|
|
6365
6399
|
}
|
|
6366
6400
|
)
|
|
6367
6401
|
] });
|
|
6368
6402
|
}
|
|
6369
|
-
var
|
|
6403
|
+
var styles54 = StyleSheet54.create({
|
|
6370
6404
|
root: { overflow: "hidden" },
|
|
6371
6405
|
side: { position: "absolute", top: 0, bottom: 0, flexDirection: "row" },
|
|
6372
6406
|
action: { alignItems: "center", justifyContent: "center", gap: 4, paddingHorizontal: 6 },
|
|
@@ -6375,16 +6409,16 @@ var styles53 = StyleSheet53.create({
|
|
|
6375
6409
|
});
|
|
6376
6410
|
|
|
6377
6411
|
// src/native/tab-bar.tsx
|
|
6378
|
-
import { Pressable as
|
|
6379
|
-
import { jsx as
|
|
6412
|
+
import { Pressable as Pressable31, StyleSheet as StyleSheet55, Text as Text20, View as View63 } from "react-native";
|
|
6413
|
+
import { jsx as jsx72, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
6380
6414
|
function TabBar({ items: items2, value, onValueChange, onReselect, "aria-label": label, style }) {
|
|
6381
6415
|
const { theme, insets, haptic } = useTheme();
|
|
6382
|
-
return /* @__PURE__ */
|
|
6416
|
+
return /* @__PURE__ */ jsx72(View63, { role: "tablist", "aria-label": label, style: [styles55.bar, { backgroundColor: theme.glassBg, borderTopColor: theme.glassBorder, paddingBottom: Math.max(6, insets.bottom) }, style], children: items2.map((item) => {
|
|
6383
6417
|
const selected = item.value === value;
|
|
6384
6418
|
const color = selected ? theme.accentText : theme.textSecondary;
|
|
6385
6419
|
const badge = item.badge === true ? "" : typeof item.badge === "number" && item.badge > 0 ? item.badge > 99 ? "99+" : String(item.badge) : null;
|
|
6386
|
-
return /* @__PURE__ */
|
|
6387
|
-
|
|
6420
|
+
return /* @__PURE__ */ jsxs63(
|
|
6421
|
+
Pressable31,
|
|
6388
6422
|
{
|
|
6389
6423
|
role: "tab",
|
|
6390
6424
|
"aria-selected": selected,
|
|
@@ -6393,22 +6427,22 @@ function TabBar({ items: items2, value, onValueChange, onReselect, "aria-label":
|
|
|
6393
6427
|
if (selected) onReselect?.(item.value);
|
|
6394
6428
|
else onValueChange(item.value);
|
|
6395
6429
|
},
|
|
6396
|
-
style: ({ pressed }) => [
|
|
6430
|
+
style: ({ pressed }) => [styles55.item, { opacity: pressed ? 0.7 : 1 }],
|
|
6397
6431
|
children: [
|
|
6398
|
-
/* @__PURE__ */
|
|
6432
|
+
/* @__PURE__ */ jsxs63(View63, { "aria-hidden": true, style: styles55.icon, children: [
|
|
6399
6433
|
item.icon(selected, color),
|
|
6400
|
-
badge !== null ? /* @__PURE__ */
|
|
6434
|
+
badge !== null ? /* @__PURE__ */ jsx72(View63, { style: [badge ? styles55.count : styles55.dot, { backgroundColor: theme.danger, borderColor: theme.surface1 }], children: badge ? /* @__PURE__ */ jsx72(Text20, { style: [styles55.countText, { color: theme.onAccent }], children: badge }) : null }) : null
|
|
6401
6435
|
] }),
|
|
6402
|
-
/* @__PURE__ */
|
|
6403
|
-
badge !== null && item.badgeLabel ? /* @__PURE__ */
|
|
6436
|
+
/* @__PURE__ */ jsx72(Text20, { numberOfLines: 1, style: [styles55.label, { color, fontWeight: selected ? "700" : "500" }], children: item.label }),
|
|
6437
|
+
badge !== null && item.badgeLabel ? /* @__PURE__ */ jsx72(Text20, { style: styles55.unseen, children: `, ${item.badgeLabel}` }) : null
|
|
6404
6438
|
]
|
|
6405
6439
|
},
|
|
6406
6440
|
item.value
|
|
6407
6441
|
);
|
|
6408
6442
|
}) });
|
|
6409
6443
|
}
|
|
6410
|
-
var
|
|
6411
|
-
bar: { flexDirection: "row", borderTopWidth:
|
|
6444
|
+
var styles55 = StyleSheet55.create({
|
|
6445
|
+
bar: { flexDirection: "row", borderTopWidth: StyleSheet55.hairlineWidth, paddingTop: 6 },
|
|
6412
6446
|
item: { flex: 1, alignItems: "center", gap: 2, minHeight: 48, justifyContent: "center" },
|
|
6413
6447
|
icon: { width: 28, height: 26, alignItems: "center", justifyContent: "center" },
|
|
6414
6448
|
label: { fontSize: 11, lineHeight: 14 },
|
|
@@ -6420,8 +6454,8 @@ var styles54 = StyleSheet54.create({
|
|
|
6420
6454
|
|
|
6421
6455
|
// src/native/tabs.tsx
|
|
6422
6456
|
import * as React47 from "react";
|
|
6423
|
-
import { Pressable as
|
|
6424
|
-
import { jsx as
|
|
6457
|
+
import { Pressable as Pressable32, ScrollView as ScrollView7, StyleSheet as StyleSheet56, View as View64 } from "react-native";
|
|
6458
|
+
import { jsx as jsx73, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
6425
6459
|
function Tabs({ items: items2, value, defaultValue, onValueChange, "aria-label": label, variant = "underline", add, style }) {
|
|
6426
6460
|
const { theme, radius: radius3, haptic } = useTheme();
|
|
6427
6461
|
const [own, setOwn] = React47.useState(defaultValue ?? items2[0]?.value);
|
|
@@ -6437,8 +6471,8 @@ function Tabs({ items: items2, value, defaultValue, onValueChange, "aria-label":
|
|
|
6437
6471
|
const hueOf = (hue) => ({ accent: theme.accent, success: theme.successText, warning: theme.warningText, danger: theme.dangerText, neutral: theme.textMuted })[hue ?? "accent"];
|
|
6438
6472
|
const tabs = items2.map((item) => {
|
|
6439
6473
|
const selected = item.value === current;
|
|
6440
|
-
return /* @__PURE__ */
|
|
6441
|
-
|
|
6474
|
+
return /* @__PURE__ */ jsx73(
|
|
6475
|
+
Pressable32,
|
|
6442
6476
|
{
|
|
6443
6477
|
role: "tab",
|
|
6444
6478
|
"aria-selected": selected,
|
|
@@ -6446,52 +6480,52 @@ function Tabs({ items: items2, value, defaultValue, onValueChange, "aria-label":
|
|
|
6446
6480
|
disabled: item.disabled,
|
|
6447
6481
|
onPress: () => select(item.value),
|
|
6448
6482
|
style: [
|
|
6449
|
-
binder ? [
|
|
6450
|
-
binder ? null : segmented ?
|
|
6483
|
+
binder ? [styles56.divider, { borderTopColor: hueOf(item.hue), borderColor: theme.borderDefault, borderTopLeftRadius: radius3.md, borderTopRightRadius: radius3.md, backgroundColor: selected ? theme.surface1 : theme.surface2 }] : null,
|
|
6484
|
+
binder ? null : segmented ? styles56.segment : styles56.tab,
|
|
6451
6485
|
segmented && selected ? { backgroundColor: theme.surface0, borderColor: theme.borderDefault, borderRadius: radius3.sm } : null,
|
|
6452
6486
|
!segmented && !binder ? { borderBottomColor: selected ? theme.accent : "transparent" } : null,
|
|
6453
|
-
item.disabled ?
|
|
6487
|
+
item.disabled ? styles56.disabled : null
|
|
6454
6488
|
],
|
|
6455
|
-
children: /* @__PURE__ */
|
|
6489
|
+
children: /* @__PURE__ */ jsxs64(Txt, { variant: "label", tone: selected ? "text" : "secondary", numberOfLines: 1, children: [
|
|
6456
6490
|
item.label,
|
|
6457
|
-
item.count !== void 0 ? /* @__PURE__ */
|
|
6491
|
+
item.count !== void 0 ? /* @__PURE__ */ jsx73(Txt, { variant: "caption", tone: "secondary", children: ` ${item.count}` }) : null
|
|
6458
6492
|
] })
|
|
6459
6493
|
},
|
|
6460
6494
|
item.value
|
|
6461
6495
|
);
|
|
6462
6496
|
});
|
|
6463
6497
|
const panel = items2.find((i) => i.value === current)?.content;
|
|
6464
|
-
return /* @__PURE__ */
|
|
6465
|
-
segmented ? /* @__PURE__ */
|
|
6466
|
-
/* @__PURE__ */
|
|
6467
|
-
binder && add ? /* @__PURE__ */
|
|
6498
|
+
return /* @__PURE__ */ jsxs64(View64, { style: [styles56.root, style], children: [
|
|
6499
|
+
segmented ? /* @__PURE__ */ jsx73(View64, { role: "tablist", "aria-label": label, style: [styles56.track, { backgroundColor: theme.surface2, borderColor: theme.borderSubtle, borderRadius: radius3.md }], children: tabs }) : /* @__PURE__ */ jsxs64(View64, { style: [styles56.underline, binder ? styles56.binderRow : null, { borderBottomColor: binder ? theme.borderDefault : theme.borderSubtle }], children: [
|
|
6500
|
+
/* @__PURE__ */ jsx73(ScrollView7, { horizontal: true, showsHorizontalScrollIndicator: false, role: "tablist", "aria-label": label, contentContainerStyle: [styles56.scroll, binder ? styles56.binderScroll : null], children: tabs }),
|
|
6501
|
+
binder && add ? /* @__PURE__ */ jsx73(Pressable32, { role: "button", "aria-label": add.label, onPress: add.onAdd, hitSlop: 4, style: styles56.add, children: /* @__PURE__ */ jsx73(Txt, { variant: "label", tone: "secondary", children: `+ ${add.label}` }) }) : null
|
|
6468
6502
|
] }),
|
|
6469
|
-
panel !== void 0 ? /* @__PURE__ */
|
|
6503
|
+
panel !== void 0 ? /* @__PURE__ */ jsx73(View64, { role: "tabpanel", children: panel }) : null
|
|
6470
6504
|
] });
|
|
6471
6505
|
}
|
|
6472
|
-
var
|
|
6506
|
+
var styles56 = StyleSheet56.create({
|
|
6473
6507
|
root: { gap: 12 },
|
|
6474
|
-
underline: { borderBottomWidth:
|
|
6508
|
+
underline: { borderBottomWidth: StyleSheet56.hairlineWidth },
|
|
6475
6509
|
scroll: { gap: 4, paddingHorizontal: 4 },
|
|
6476
6510
|
tab: { minHeight: 44, justifyContent: "center", paddingHorizontal: 12, borderBottomWidth: 2 },
|
|
6477
|
-
track: { flexDirection: "row", padding: 3, gap: 3, borderWidth:
|
|
6478
|
-
segment: { flex: 1, alignItems: "center", justifyContent: "center", paddingHorizontal: 8, borderWidth:
|
|
6511
|
+
track: { flexDirection: "row", padding: 3, gap: 3, borderWidth: StyleSheet56.hairlineWidth, height: 40 },
|
|
6512
|
+
segment: { flex: 1, alignItems: "center", justifyContent: "center", paddingHorizontal: 8, borderWidth: StyleSheet56.hairlineWidth, borderColor: "transparent" },
|
|
6479
6513
|
disabled: { opacity: 0.4 },
|
|
6480
6514
|
// A divider: a coloured top edge, its words; the selected one is the page's colour and sits on the line.
|
|
6481
|
-
divider: { minHeight: 44, justifyContent: "center", paddingHorizontal: 14, borderWidth:
|
|
6515
|
+
divider: { minHeight: 44, justifyContent: "center", paddingHorizontal: 14, borderWidth: StyleSheet56.hairlineWidth, borderTopWidth: 3, borderBottomWidth: 0, marginBottom: -StyleSheet56.hairlineWidth },
|
|
6482
6516
|
binderScroll: { alignItems: "flex-end", paddingHorizontal: 8 },
|
|
6483
6517
|
binderRow: { flexDirection: "row", alignItems: "flex-end" },
|
|
6484
6518
|
add: { minHeight: 44, justifyContent: "center", paddingHorizontal: 10 }
|
|
6485
6519
|
});
|
|
6486
6520
|
|
|
6487
6521
|
// src/native/tag-selector.tsx
|
|
6488
|
-
import { StyleSheet as
|
|
6489
|
-
import { jsx as
|
|
6522
|
+
import { StyleSheet as StyleSheet57, View as View65 } from "react-native";
|
|
6523
|
+
import { jsx as jsx74, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
6490
6524
|
function TagSelector({ label, options, value, onValueChange, max, countLabel, style }) {
|
|
6491
6525
|
const { haptic } = useTheme();
|
|
6492
6526
|
const full = max !== void 0 && value.length >= max;
|
|
6493
|
-
return /* @__PURE__ */
|
|
6494
|
-
/* @__PURE__ */
|
|
6527
|
+
return /* @__PURE__ */ jsxs65(View65, { style: [styles57.root, style], children: [
|
|
6528
|
+
/* @__PURE__ */ jsx74(View65, { role: "group", "aria-label": label, style: styles57.wrap, children: options.map((option) => {
|
|
6495
6529
|
const on = value.includes(option.value);
|
|
6496
6530
|
const props = {
|
|
6497
6531
|
selected: on,
|
|
@@ -6501,17 +6535,17 @@ function TagSelector({ label, options, value, onValueChange, max, countLabel, st
|
|
|
6501
6535
|
onValueChange(next ? [...value, option.value] : value.filter((v) => v !== option.value));
|
|
6502
6536
|
}
|
|
6503
6537
|
};
|
|
6504
|
-
return option.marker ? /* @__PURE__ */
|
|
6538
|
+
return option.marker ? /* @__PURE__ */ jsx74(TagChip, { marker: option.marker, ...props, children: option.label }, option.value) : /* @__PURE__ */ jsx74(Chip, { ...props, children: option.label }, option.value);
|
|
6505
6539
|
}) }),
|
|
6506
|
-
max !== void 0 && countLabel ? /* @__PURE__ */
|
|
6540
|
+
max !== void 0 && countLabel ? /* @__PURE__ */ jsx74(Txt, { variant: "caption", tone: full ? "accent" : "secondary", "aria-live": "polite", children: countLabel(value.length, max) }) : null
|
|
6507
6541
|
] });
|
|
6508
6542
|
}
|
|
6509
|
-
var
|
|
6543
|
+
var styles57 = StyleSheet57.create({ root: { gap: 8 }, wrap: { flexDirection: "row", flexWrap: "wrap", gap: 8 } });
|
|
6510
6544
|
|
|
6511
6545
|
// src/native/toast.tsx
|
|
6512
6546
|
import * as React48 from "react";
|
|
6513
|
-
import { AccessibilityInfo as AccessibilityInfo15, Animated as Animated27, PanResponder as PanResponder5, Pressable as
|
|
6514
|
-
import { Fragment as Fragment14, jsx as
|
|
6547
|
+
import { AccessibilityInfo as AccessibilityInfo15, Animated as Animated27, PanResponder as PanResponder5, Pressable as Pressable33, StyleSheet as StyleSheet58, Text as Text21, View as View66 } from "react-native";
|
|
6548
|
+
import { Fragment as Fragment14, jsx as jsx75, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
6515
6549
|
var items = [];
|
|
6516
6550
|
var listeners2 = /* @__PURE__ */ new Set();
|
|
6517
6551
|
var counter = 0;
|
|
@@ -6578,61 +6612,61 @@ function ToastView({ item, closeLabel, duration }) {
|
|
|
6578
6612
|
return () => clearTimeout(timer2);
|
|
6579
6613
|
}, [item.id, ms]);
|
|
6580
6614
|
const edge = { success: theme.success, warning: theme.warning, error: theme.danger, info: theme.info, default: theme.borderDefault }[item.tone ?? "default"];
|
|
6581
|
-
const text = /* @__PURE__ */
|
|
6582
|
-
item.icon ? /* @__PURE__ */
|
|
6583
|
-
/* @__PURE__ */
|
|
6584
|
-
/* @__PURE__ */
|
|
6585
|
-
item.description ? /* @__PURE__ */
|
|
6615
|
+
const text = /* @__PURE__ */ jsxs66(Fragment14, { children: [
|
|
6616
|
+
item.icon ? /* @__PURE__ */ jsx75(View66, { "aria-hidden": true, children: item.icon }) : null,
|
|
6617
|
+
/* @__PURE__ */ jsxs66(View66, { style: styles58.content, children: [
|
|
6618
|
+
/* @__PURE__ */ jsx75(Txt, { variant: "label", numberOfLines: 2, children: item.title }),
|
|
6619
|
+
item.description ? /* @__PURE__ */ jsx75(Txt, { variant: "caption", tone: "secondary", numberOfLines: 3, children: item.description }) : null
|
|
6586
6620
|
] })
|
|
6587
6621
|
] });
|
|
6588
|
-
const body = /* @__PURE__ */
|
|
6589
|
-
item.onPress ? /* @__PURE__ */
|
|
6590
|
-
|
|
6622
|
+
const body = /* @__PURE__ */ jsxs66(Fragment14, { children: [
|
|
6623
|
+
item.onPress ? /* @__PURE__ */ jsx75(
|
|
6624
|
+
Pressable33,
|
|
6591
6625
|
{
|
|
6592
6626
|
role: "button",
|
|
6593
6627
|
onPress: () => {
|
|
6594
6628
|
item.onPress?.();
|
|
6595
6629
|
dismiss(item.id);
|
|
6596
6630
|
},
|
|
6597
|
-
style: ({ pressed }) => [
|
|
6631
|
+
style: ({ pressed }) => [styles58.main, { opacity: pressed ? 0.8 : 1 }],
|
|
6598
6632
|
children: text
|
|
6599
6633
|
}
|
|
6600
|
-
) : /* @__PURE__ */
|
|
6601
|
-
item.action ? /* @__PURE__ */
|
|
6602
|
-
|
|
6634
|
+
) : /* @__PURE__ */ jsx75(View66, { style: styles58.main, children: text }),
|
|
6635
|
+
item.action ? /* @__PURE__ */ jsx75(
|
|
6636
|
+
Pressable33,
|
|
6603
6637
|
{
|
|
6604
6638
|
role: "button",
|
|
6605
6639
|
onPress: () => {
|
|
6606
6640
|
item.action?.onPress();
|
|
6607
6641
|
dismiss(item.id);
|
|
6608
6642
|
},
|
|
6609
|
-
style: [
|
|
6610
|
-
children: /* @__PURE__ */
|
|
6643
|
+
style: [styles58.action, { backgroundColor: theme.accent, borderRadius: radius3.sm }],
|
|
6644
|
+
children: /* @__PURE__ */ jsx75(Text21, { style: [styles58.actionLabel, { color: theme.onAccent }], children: item.action.label })
|
|
6611
6645
|
}
|
|
6612
6646
|
) : null,
|
|
6613
|
-
/* @__PURE__ */
|
|
6647
|
+
/* @__PURE__ */ jsx75(Pressable33, { role: "button", "aria-label": closeLabel, hitSlop: 10, onPress: () => dismiss(item.id), style: styles58.close, children: /* @__PURE__ */ jsx75(Text21, { style: [styles58.cross, { color: theme.textSecondary }], children: "\xD7" }) })
|
|
6614
6648
|
] });
|
|
6615
6649
|
const frame = [
|
|
6616
|
-
|
|
6650
|
+
styles58.toast,
|
|
6617
6651
|
{ backgroundColor: theme.surface2, borderColor: theme.borderDefault, borderLeftColor: edge, borderRadius: radius3.lg, shadowColor: theme.scrimStrong }
|
|
6618
6652
|
];
|
|
6619
6653
|
const motion3 = { transform: [{ translateY: enter.interpolate({ inputRange: [0, 1], outputRange: [-8, 0] }) }, { translateX: swipe }] };
|
|
6620
|
-
return /* @__PURE__ */
|
|
6654
|
+
return /* @__PURE__ */ jsx75(Animated27.View, { "aria-live": "polite", style: motion3, ...drag.panHandlers, children: /* @__PURE__ */ jsx75(View66, { style: frame, children: body }) });
|
|
6621
6655
|
}
|
|
6622
6656
|
function Toaster({ closeLabel, position = "top", offset = 12, duration = 6e3, max = 3 }) {
|
|
6623
6657
|
const all = React48.useSyncExternalStore(subscribe2, snapshot, snapshot);
|
|
6624
6658
|
const shown = all.slice(-max);
|
|
6625
6659
|
if (shown.length === 0) return null;
|
|
6626
|
-
return /* @__PURE__ */
|
|
6660
|
+
return /* @__PURE__ */ jsx75(View66, { pointerEvents: "box-none", style: [styles58.stack, position === "top" ? { top: offset } : { bottom: offset }], children: (position === "top" ? shown : [...shown].reverse()).map((item) => /* @__PURE__ */ jsx75(ToastView, { item, closeLabel, duration }, item.id)) });
|
|
6627
6661
|
}
|
|
6628
|
-
var
|
|
6662
|
+
var styles58 = StyleSheet58.create({
|
|
6629
6663
|
stack: { position: "absolute", left: 12, right: 12, gap: 8, zIndex: 100 },
|
|
6630
6664
|
toast: {
|
|
6631
6665
|
flexDirection: "row",
|
|
6632
6666
|
alignItems: "center",
|
|
6633
6667
|
gap: 10,
|
|
6634
6668
|
padding: 12,
|
|
6635
|
-
borderWidth:
|
|
6669
|
+
borderWidth: StyleSheet58.hairlineWidth,
|
|
6636
6670
|
borderLeftWidth: 4,
|
|
6637
6671
|
shadowOpacity: 0.3,
|
|
6638
6672
|
shadowRadius: 16,
|
|
@@ -6648,35 +6682,35 @@ var styles57 = StyleSheet57.create({
|
|
|
6648
6682
|
});
|
|
6649
6683
|
|
|
6650
6684
|
// src/native/update-prompt.tsx
|
|
6651
|
-
import { StyleSheet as
|
|
6652
|
-
import { jsx as
|
|
6685
|
+
import { StyleSheet as StyleSheet59, View as View67 } from "react-native";
|
|
6686
|
+
import { jsx as jsx76, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
6653
6687
|
function UpdatePrompt({ title, message, versionLabel, mark, updateLabel, onUpdate, laterLabel, onLater, style }) {
|
|
6654
6688
|
const { theme, radius: radius3 } = useTheme();
|
|
6655
|
-
return /* @__PURE__ */
|
|
6656
|
-
|
|
6689
|
+
return /* @__PURE__ */ jsxs67(
|
|
6690
|
+
View67,
|
|
6657
6691
|
{
|
|
6658
6692
|
role: "region",
|
|
6659
6693
|
"aria-label": title,
|
|
6660
|
-
style: [
|
|
6694
|
+
style: [styles59.root, { backgroundColor: theme.surface1, borderColor: theme.borderSubtle, borderRadius: radius3.xl }, style],
|
|
6661
6695
|
children: [
|
|
6662
|
-
/* @__PURE__ */
|
|
6663
|
-
mark ? /* @__PURE__ */
|
|
6664
|
-
/* @__PURE__ */
|
|
6665
|
-
/* @__PURE__ */
|
|
6666
|
-
message ? /* @__PURE__ */
|
|
6667
|
-
versionLabel ? /* @__PURE__ */
|
|
6696
|
+
/* @__PURE__ */ jsxs67(View67, { style: styles59.head, children: [
|
|
6697
|
+
mark ? /* @__PURE__ */ jsx76(View67, { accessibilityElementsHidden: true, importantForAccessibility: "no-hide-descendants", style: styles59.mark, children: mark }) : null,
|
|
6698
|
+
/* @__PURE__ */ jsxs67(View67, { style: styles59.text, children: [
|
|
6699
|
+
/* @__PURE__ */ jsx76(Txt, { variant: "label", children: title }),
|
|
6700
|
+
message ? /* @__PURE__ */ jsx76(Txt, { tone: "secondary", children: message }) : null,
|
|
6701
|
+
versionLabel ? /* @__PURE__ */ jsx76(Txt, { variant: "mono", tone: "secondary", children: versionLabel }) : null
|
|
6668
6702
|
] })
|
|
6669
6703
|
] }),
|
|
6670
|
-
/* @__PURE__ */
|
|
6671
|
-
/* @__PURE__ */
|
|
6672
|
-
/* @__PURE__ */
|
|
6704
|
+
/* @__PURE__ */ jsxs67(View67, { style: styles59.actions, children: [
|
|
6705
|
+
/* @__PURE__ */ jsx76(Button, { label: laterLabel, variant: "ghost", size: "sm", onPress: onLater }),
|
|
6706
|
+
/* @__PURE__ */ jsx76(Button, { label: updateLabel, variant: "primary", size: "sm", onPress: onUpdate })
|
|
6673
6707
|
] })
|
|
6674
6708
|
]
|
|
6675
6709
|
}
|
|
6676
6710
|
);
|
|
6677
6711
|
}
|
|
6678
|
-
var
|
|
6679
|
-
root: { gap: 12, padding: 16, borderWidth:
|
|
6712
|
+
var styles59 = StyleSheet59.create({
|
|
6713
|
+
root: { gap: 12, padding: 16, borderWidth: StyleSheet59.hairlineWidth },
|
|
6680
6714
|
head: { flexDirection: "row", gap: 12, alignItems: "center" },
|
|
6681
6715
|
mark: { width: 40, height: 40, alignItems: "center", justifyContent: "center" },
|
|
6682
6716
|
text: { flex: 1, gap: 2 },
|
|
@@ -6684,14 +6718,14 @@ var styles58 = StyleSheet58.create({
|
|
|
6684
6718
|
});
|
|
6685
6719
|
|
|
6686
6720
|
// src/native/verified-badge.tsx
|
|
6687
|
-
import { StyleSheet as
|
|
6721
|
+
import { StyleSheet as StyleSheet60, View as View68 } from "react-native";
|
|
6688
6722
|
import Svg35, { Path as Path29 } from "react-native-svg";
|
|
6689
|
-
import { jsx as
|
|
6723
|
+
import { jsx as jsx77, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
6690
6724
|
function VerifiedBadge({ label, showLabel, size = 16, on = "surface" }) {
|
|
6691
6725
|
const { theme } = useTheme();
|
|
6692
|
-
return /* @__PURE__ */
|
|
6693
|
-
/* @__PURE__ */
|
|
6694
|
-
/* @__PURE__ */
|
|
6726
|
+
return /* @__PURE__ */ jsxs68(View68, { accessible: true, role: "img", "aria-label": label, style: styles60.row, children: [
|
|
6727
|
+
/* @__PURE__ */ jsxs68(Svg35, { width: size, height: size, viewBox: "0 0 24 24", "aria-hidden": true, children: [
|
|
6728
|
+
/* @__PURE__ */ jsx77(
|
|
6695
6729
|
Path29,
|
|
6696
6730
|
{
|
|
6697
6731
|
d: "M12 2.5l2.4 1.7 2.9-.1.9 2.8 2.3 1.8-.9 2.8.9 2.8-2.3 1.8-.9 2.8-2.9-.1L12 21.5l-2.4-1.7-2.9.1-.9-2.8-2.3-1.8.9-2.8-.9-2.8 2.3-1.8.9-2.8 2.9.1z",
|
|
@@ -6700,16 +6734,16 @@ function VerifiedBadge({ label, showLabel, size = 16, on = "surface" }) {
|
|
|
6700
6734
|
strokeWidth: 1.2
|
|
6701
6735
|
}
|
|
6702
6736
|
),
|
|
6703
|
-
/* @__PURE__ */
|
|
6737
|
+
/* @__PURE__ */ jsx77(Path29, { d: "M8.3 12.3l2.5 2.5 4.9-5.2", fill: "none", stroke: theme.onAccent, strokeWidth: 2.2, strokeLinecap: "round", strokeLinejoin: "round" })
|
|
6704
6738
|
] }),
|
|
6705
|
-
showLabel ? /* @__PURE__ */
|
|
6739
|
+
showLabel ? /* @__PURE__ */ jsx77(Txt, { variant: "caption", tone: on === "media" ? "onMedia" : "accent", style: styles60.text, children: label }) : null
|
|
6706
6740
|
] });
|
|
6707
6741
|
}
|
|
6708
|
-
var
|
|
6742
|
+
var styles60 = StyleSheet60.create({ row: { flexDirection: "row", alignItems: "center", gap: 4 }, text: { fontWeight: "700" } });
|
|
6709
6743
|
|
|
6710
6744
|
// src/native/waveform.tsx
|
|
6711
6745
|
import * as React49 from "react";
|
|
6712
|
-
import { Animated as Animated28, AppState as AppState2, Easing as Easing14, StyleSheet as
|
|
6746
|
+
import { Animated as Animated28, AppState as AppState2, Easing as Easing14, StyleSheet as StyleSheet61, View as View69 } from "react-native";
|
|
6713
6747
|
|
|
6714
6748
|
// src/waveform/bars.ts
|
|
6715
6749
|
function resamplePeaks(peaks, count) {
|
|
@@ -6724,7 +6758,7 @@ function resamplePeaks(peaks, count) {
|
|
|
6724
6758
|
}
|
|
6725
6759
|
|
|
6726
6760
|
// src/native/waveform.tsx
|
|
6727
|
-
import { jsx as
|
|
6761
|
+
import { jsx as jsx78 } from "react/jsx-runtime";
|
|
6728
6762
|
var HEIGHT = { sm: 24, md: 40, lg: 64 };
|
|
6729
6763
|
function Waveform({ peaks, bars = 32, size = "md", tone: tone3 = "accent", playing = false, label, style, ...props }) {
|
|
6730
6764
|
const { theme } = useTheme();
|
|
@@ -6757,8 +6791,8 @@ function Waveform({ peaks, bars = 32, size = "md", tone: tone3 = "accent", playi
|
|
|
6757
6791
|
}, [moving, values]);
|
|
6758
6792
|
const named = label !== void 0;
|
|
6759
6793
|
const barColour = tone3 === "neutral" ? theme.borderStrong : theme.accent;
|
|
6760
|
-
return /* @__PURE__ */
|
|
6761
|
-
|
|
6794
|
+
return /* @__PURE__ */ jsx78(
|
|
6795
|
+
View69,
|
|
6762
6796
|
{
|
|
6763
6797
|
...props,
|
|
6764
6798
|
accessible: named,
|
|
@@ -6766,13 +6800,13 @@ function Waveform({ peaks, bars = 32, size = "md", tone: tone3 = "accent", playi
|
|
|
6766
6800
|
accessibilityLabel: label,
|
|
6767
6801
|
"aria-hidden": named ? void 0 : true,
|
|
6768
6802
|
importantForAccessibility: named ? "yes" : "no-hide-descendants",
|
|
6769
|
-
style: [
|
|
6770
|
-
children: shape.map((peak, i) => /* @__PURE__ */
|
|
6803
|
+
style: [styles61.root, { height: HEIGHT[size] }, style],
|
|
6804
|
+
children: shape.map((peak, i) => /* @__PURE__ */ jsx78(
|
|
6771
6805
|
Animated28.View,
|
|
6772
6806
|
{
|
|
6773
6807
|
testID: "waveform-bar",
|
|
6774
6808
|
style: [
|
|
6775
|
-
|
|
6809
|
+
styles61.bar,
|
|
6776
6810
|
{ height: `${Math.round(peak * 100)}%`, backgroundColor: barColour },
|
|
6777
6811
|
{ transform: [{ scaleY: values[i].interpolate({ inputRange: [0, 1], outputRange: [0.45, 1] }) }] }
|
|
6778
6812
|
]
|
|
@@ -6782,7 +6816,7 @@ function Waveform({ peaks, bars = 32, size = "md", tone: tone3 = "accent", playi
|
|
|
6782
6816
|
}
|
|
6783
6817
|
);
|
|
6784
6818
|
}
|
|
6785
|
-
var
|
|
6819
|
+
var styles61 = StyleSheet61.create({
|
|
6786
6820
|
root: { width: "100%", flexDirection: "row", alignItems: "center", justifyContent: "center", columnGap: 2 },
|
|
6787
6821
|
bar: { flex: 1, minWidth: 2, borderRadius: 9999 }
|
|
6788
6822
|
});
|
|
@@ -6820,6 +6854,7 @@ export {
|
|
|
6820
6854
|
DayStrip,
|
|
6821
6855
|
DescriptionList,
|
|
6822
6856
|
EmptyState,
|
|
6857
|
+
EnvironmentNotice,
|
|
6823
6858
|
ErrorState,
|
|
6824
6859
|
Fab,
|
|
6825
6860
|
ForceUpdateScreen,
|