kynjal-cli 2.0.6
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/LICENSE +21 -0
- package/README.md +145 -0
- package/bin/kynjal.js +27 -0
- package/dist/commands/add.d.ts +11 -0
- package/dist/commands/add.js +295 -0
- package/dist/commands/convex.d.ts +11 -0
- package/dist/commands/convex.js +319 -0
- package/dist/commands/init.d.ts +13 -0
- package/dist/commands/init.js +340 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +61 -0
- package/dist/index.test.d.ts +1 -0
- package/dist/index.test.js +6 -0
- package/dist/registry/accordion.d.ts +139 -0
- package/dist/registry/accordion.js +164 -0
- package/dist/registry/accordion.ts +183 -0
- package/dist/registry/action-sheet.d.ts +138 -0
- package/dist/registry/action-sheet.js +164 -0
- package/dist/registry/action-sheet.ts +182 -0
- package/dist/registry/alert-dialog.d.ts +71 -0
- package/dist/registry/alert-dialog.js +88 -0
- package/dist/registry/alert-dialog.ts +97 -0
- package/dist/registry/alert.d.ts +172 -0
- package/dist/registry/alert.js +204 -0
- package/dist/registry/alert.ts +225 -0
- package/dist/registry/audio-player.d.ts +139 -0
- package/dist/registry/audio-player.js +165 -0
- package/dist/registry/audio-player.ts +183 -0
- package/dist/registry/audio-recorder.d.ts +156 -0
- package/dist/registry/audio-recorder.js +184 -0
- package/dist/registry/audio-recorder.ts +203 -0
- package/dist/registry/audio-waveform.d.ts +121 -0
- package/dist/registry/audio-waveform.js +144 -0
- package/dist/registry/audio-waveform.ts +165 -0
- package/dist/registry/avatar.d.ts +139 -0
- package/dist/registry/avatar.js +164 -0
- package/dist/registry/avatar.ts +172 -0
- package/dist/registry/avoid-keyboard.d.ts +128 -0
- package/dist/registry/avoid-keyboard.js +150 -0
- package/dist/registry/avoid-keyboard.ts +165 -0
- package/dist/registry/badge.d.ts +139 -0
- package/dist/registry/badge.js +164 -0
- package/dist/registry/badge.ts +172 -0
- package/dist/registry/bottom-sheet.d.ts +156 -0
- package/dist/registry/bottom-sheet.js +184 -0
- package/dist/registry/bottom-sheet.ts +203 -0
- package/dist/registry/button.d.ts +173 -0
- package/dist/registry/button.js +209 -0
- package/dist/registry/button.ts +230 -0
- package/dist/registry/camera-preview.d.ts +37 -0
- package/dist/registry/camera-preview.js +56 -0
- package/dist/registry/camera-preview.ts +61 -0
- package/dist/registry/camera.d.ts +139 -0
- package/dist/registry/camera.js +168 -0
- package/dist/registry/camera.ts +185 -0
- package/dist/registry/card.d.ts +139 -0
- package/dist/registry/card.js +165 -0
- package/dist/registry/card.ts +173 -0
- package/dist/registry/carousel.d.ts +140 -0
- package/dist/registry/carousel.js +169 -0
- package/dist/registry/carousel.ts +186 -0
- package/dist/registry/charts/area-chart.d.ts +88 -0
- package/dist/registry/charts/area-chart.js +106 -0
- package/dist/registry/charts/area-chart.ts +117 -0
- package/dist/registry/charts/bar-chart.d.ts +71 -0
- package/dist/registry/charts/bar-chart.js +85 -0
- package/dist/registry/charts/bar-chart.ts +94 -0
- package/dist/registry/charts/bubble-chart.d.ts +88 -0
- package/dist/registry/charts/bubble-chart.js +109 -0
- package/dist/registry/charts/bubble-chart.ts +120 -0
- package/dist/registry/charts/candlestick-chart.d.ts +88 -0
- package/dist/registry/charts/candlestick-chart.js +109 -0
- package/dist/registry/charts/candlestick-chart.ts +125 -0
- package/dist/registry/charts/chart-container.d.ts +54 -0
- package/dist/registry/charts/chart-container.js +62 -0
- package/dist/registry/charts/chart-container.ts +71 -0
- package/dist/registry/charts/column-chart.d.ts +88 -0
- package/dist/registry/charts/column-chart.js +106 -0
- package/dist/registry/charts/column-chart.ts +117 -0
- package/dist/registry/charts/doughnut-chart.d.ts +88 -0
- package/dist/registry/charts/doughnut-chart.js +106 -0
- package/dist/registry/charts/doughnut-chart.ts +121 -0
- package/dist/registry/charts/heatmap-chart.d.ts +88 -0
- package/dist/registry/charts/heatmap-chart.js +106 -0
- package/dist/registry/charts/heatmap-chart.ts +117 -0
- package/dist/registry/charts/index.d.ts +1499 -0
- package/dist/registry/charts/index.js +38 -0
- package/dist/registry/charts/index.ts +39 -0
- package/dist/registry/charts/line-chart.d.ts +88 -0
- package/dist/registry/charts/line-chart.js +109 -0
- package/dist/registry/charts/line-chart.ts +120 -0
- package/dist/registry/charts/pie-chart.d.ts +88 -0
- package/dist/registry/charts/pie-chart.js +106 -0
- package/dist/registry/charts/pie-chart.ts +117 -0
- package/dist/registry/charts/polar-area-chart.d.ts +88 -0
- package/dist/registry/charts/polar-area-chart.js +106 -0
- package/dist/registry/charts/polar-area-chart.ts +121 -0
- package/dist/registry/charts/progress-ring-chart.d.ts +88 -0
- package/dist/registry/charts/progress-ring-chart.js +106 -0
- package/dist/registry/charts/progress-ring-chart.ts +121 -0
- package/dist/registry/charts/radar-chart.d.ts +88 -0
- package/dist/registry/charts/radar-chart.js +106 -0
- package/dist/registry/charts/radar-chart.ts +117 -0
- package/dist/registry/charts/radial-bar-chart.d.ts +88 -0
- package/dist/registry/charts/radial-bar-chart.js +106 -0
- package/dist/registry/charts/radial-bar-chart.ts +121 -0
- package/dist/registry/charts/scatter-chart.d.ts +88 -0
- package/dist/registry/charts/scatter-chart.js +106 -0
- package/dist/registry/charts/scatter-chart.ts +117 -0
- package/dist/registry/charts/stacked-area-chart.d.ts +88 -0
- package/dist/registry/charts/stacked-area-chart.js +106 -0
- package/dist/registry/charts/stacked-area-chart.ts +123 -0
- package/dist/registry/charts/stacked-bar-chart.d.ts +88 -0
- package/dist/registry/charts/stacked-bar-chart.js +109 -0
- package/dist/registry/charts/stacked-bar-chart.ts +125 -0
- package/dist/registry/charts/treemap-chart.d.ts +88 -0
- package/dist/registry/charts/treemap-chart.js +106 -0
- package/dist/registry/charts/treemap-chart.ts +117 -0
- package/dist/registry/checkbox.d.ts +122 -0
- package/dist/registry/checkbox.js +145 -0
- package/dist/registry/checkbox.ts +160 -0
- package/dist/registry/collapsible.d.ts +105 -0
- package/dist/registry/collapsible.js +125 -0
- package/dist/registry/collapsible.ts +137 -0
- package/dist/registry/color-picker.d.ts +156 -0
- package/dist/registry/color-picker.js +186 -0
- package/dist/registry/color-picker.ts +205 -0
- package/dist/registry/combobox.d.ts +139 -0
- package/dist/registry/combobox.js +158 -0
- package/dist/registry/combobox.ts +170 -0
- package/dist/registry/date-picker.d.ts +156 -0
- package/dist/registry/date-picker.js +190 -0
- package/dist/registry/date-picker.ts +209 -0
- package/dist/registry/file-picker.d.ts +139 -0
- package/dist/registry/file-picker.js +158 -0
- package/dist/registry/file-picker.ts +175 -0
- package/dist/registry/gallery.d.ts +122 -0
- package/dist/registry/gallery.js +144 -0
- package/dist/registry/gallery.ts +160 -0
- package/dist/registry/hello-wave.d.ts +37 -0
- package/dist/registry/hello-wave.js +44 -0
- package/dist/registry/hello-wave.ts +49 -0
- package/dist/registry/hooks/index.d.ts +60 -0
- package/dist/registry/hooks/index.js +75 -0
- package/dist/registry/hooks/index.ts +80 -0
- package/dist/registry/icon.d.ts +139 -0
- package/dist/registry/icon.js +164 -0
- package/dist/registry/icon.ts +173 -0
- package/dist/registry/image.d.ts +156 -0
- package/dist/registry/image.js +180 -0
- package/dist/registry/image.ts +191 -0
- package/dist/registry/index.d.ts +12 -0
- package/dist/registry/index.js +189 -0
- package/dist/registry/index.ts +209 -0
- package/dist/registry/input-otp.d.ts +155 -0
- package/dist/registry/input-otp.js +178 -0
- package/dist/registry/input-otp.ts +197 -0
- package/dist/registry/input.d.ts +164 -0
- package/dist/registry/input.js +192 -0
- package/dist/registry/input.ts +211 -0
- package/dist/registry/link.d.ts +139 -0
- package/dist/registry/link.js +164 -0
- package/dist/registry/link.ts +181 -0
- package/dist/registry/media-picker.d.ts +145 -0
- package/dist/registry/media-picker.js +175 -0
- package/dist/registry/media-picker.ts +192 -0
- package/dist/registry/mode-toggle.d.ts +37 -0
- package/dist/registry/mode-toggle.js +44 -0
- package/dist/registry/mode-toggle.ts +49 -0
- package/dist/registry/onboarding.d.ts +144 -0
- package/dist/registry/onboarding.js +164 -0
- package/dist/registry/onboarding.ts +181 -0
- package/dist/registry/parallax-scrollview.d.ts +125 -0
- package/dist/registry/parallax-scrollview.js +147 -0
- package/dist/registry/parallax-scrollview.ts +168 -0
- package/dist/registry/picker.d.ts +157 -0
- package/dist/registry/picker.js +178 -0
- package/dist/registry/picker.ts +198 -0
- package/dist/registry/popover.d.ts +139 -0
- package/dist/registry/popover.js +164 -0
- package/dist/registry/popover.ts +181 -0
- package/dist/registry/progress.d.ts +139 -0
- package/dist/registry/progress.js +159 -0
- package/dist/registry/progress.ts +172 -0
- package/dist/registry/radio.d.ts +139 -0
- package/dist/registry/radio.js +164 -0
- package/dist/registry/radio.ts +181 -0
- package/dist/registry/schema/index.d.ts +26 -0
- package/dist/registry/schema/index.js +1 -0
- package/dist/registry/schema/index.ts +28 -0
- package/dist/registry/scroll-view.d.ts +156 -0
- package/dist/registry/scroll-view.js +184 -0
- package/dist/registry/scroll-view.ts +203 -0
- package/dist/registry/searchbar.d.ts +139 -0
- package/dist/registry/searchbar.js +164 -0
- package/dist/registry/searchbar.ts +181 -0
- package/dist/registry/separator.d.ts +105 -0
- package/dist/registry/separator.js +124 -0
- package/dist/registry/separator.ts +130 -0
- package/dist/registry/share.d.ts +156 -0
- package/dist/registry/share.js +183 -0
- package/dist/registry/share.ts +202 -0
- package/dist/registry/sheet.d.ts +107 -0
- package/dist/registry/sheet.js +122 -0
- package/dist/registry/sheet.ts +135 -0
- package/dist/registry/skeleton.d.ts +122 -0
- package/dist/registry/skeleton.js +140 -0
- package/dist/registry/skeleton.ts +155 -0
- package/dist/registry/spinner.d.ts +156 -0
- package/dist/registry/spinner.js +184 -0
- package/dist/registry/spinner.ts +205 -0
- package/dist/registry/switch.d.ts +122 -0
- package/dist/registry/switch.js +139 -0
- package/dist/registry/switch.ts +154 -0
- package/dist/registry/table.d.ts +122 -0
- package/dist/registry/table.js +139 -0
- package/dist/registry/table.ts +154 -0
- package/dist/registry/tabs.d.ts +88 -0
- package/dist/registry/tabs.js +101 -0
- package/dist/registry/tabs.ts +112 -0
- package/dist/registry/text.d.ts +71 -0
- package/dist/registry/text.js +82 -0
- package/dist/registry/text.ts +87 -0
- package/dist/registry/theme/index.d.ts +35 -0
- package/dist/registry/theme/index.js +41 -0
- package/dist/registry/theme/index.ts +43 -0
- package/dist/registry/toast.d.ts +122 -0
- package/dist/registry/toast.js +148 -0
- package/dist/registry/toast.ts +164 -0
- package/dist/registry/toggle.d.ts +173 -0
- package/dist/registry/toggle.js +205 -0
- package/dist/registry/toggle.ts +225 -0
- package/dist/registry/video.d.ts +156 -0
- package/dist/registry/video.js +184 -0
- package/dist/registry/video.ts +203 -0
- package/dist/registry/view.d.ts +37 -0
- package/dist/registry/view.js +44 -0
- package/dist/registry/view.ts +47 -0
- package/dist/templates/components/charts/area-chart.tsx +38 -0
- package/dist/templates/components/charts/bar-chart.tsx +130 -0
- package/dist/templates/components/charts/bubble-chart.tsx +205 -0
- package/dist/templates/components/charts/candlestick-chart.tsx +178 -0
- package/dist/templates/components/charts/chart-container.tsx +47 -0
- package/dist/templates/components/charts/column-chart.tsx +130 -0
- package/dist/templates/components/charts/doughnut-chart.tsx +182 -0
- package/dist/templates/components/charts/heatmap-chart.tsx +253 -0
- package/dist/templates/components/charts/line-chart.tsx +349 -0
- package/dist/templates/components/charts/pie-chart.tsx +172 -0
- package/dist/templates/components/charts/polar-area-chart.tsx +185 -0
- package/dist/templates/components/charts/progress-ring-chart.tsx +161 -0
- package/dist/templates/components/charts/radar-chart.tsx +188 -0
- package/dist/templates/components/charts/radial-bar-chart.tsx +216 -0
- package/dist/templates/components/charts/scatter-chart.tsx +176 -0
- package/dist/templates/components/charts/stacked-area-chart.tsx +289 -0
- package/dist/templates/components/charts/stacked-bar-chart.tsx +311 -0
- package/dist/templates/components/charts/treemap-chart.tsx +273 -0
- package/dist/templates/components/ui/accordion.tsx +175 -0
- package/dist/templates/components/ui/action-sheet.tsx +408 -0
- package/dist/templates/components/ui/alert-dialog.tsx +195 -0
- package/dist/templates/components/ui/alert.tsx +208 -0
- package/dist/templates/components/ui/audio-player.tsx +300 -0
- package/dist/templates/components/ui/audio-recorder.tsx +476 -0
- package/dist/templates/components/ui/audio-waveform.tsx +292 -0
- package/dist/templates/components/ui/avatar.tsx +84 -0
- package/dist/templates/components/ui/avoid-keyboard.tsx +49 -0
- package/dist/templates/components/ui/badge.tsx +88 -0
- package/dist/templates/components/ui/bottom-sheet.tsx +352 -0
- package/dist/templates/components/ui/button.tsx +392 -0
- package/dist/templates/components/ui/camera-preview.tsx +410 -0
- package/dist/templates/components/ui/camera.tsx +1008 -0
- package/dist/templates/components/ui/card.tsx +110 -0
- package/dist/templates/components/ui/carousel.tsx +546 -0
- package/dist/templates/components/ui/checkbox.tsx +82 -0
- package/dist/templates/components/ui/collapsible.tsx +46 -0
- package/dist/templates/components/ui/color-picker.tsx +450 -0
- package/dist/templates/components/ui/combobox.tsx +624 -0
- package/dist/templates/components/ui/date-picker.tsx +1147 -0
- package/dist/templates/components/ui/file-picker.tsx +526 -0
- package/dist/templates/components/ui/gallery.tsx +871 -0
- package/dist/templates/components/ui/hello-wave.tsx +69 -0
- package/dist/templates/components/ui/icon.tsx +34 -0
- package/dist/templates/components/ui/image.tsx +174 -0
- package/dist/templates/components/ui/input-otp.tsx +302 -0
- package/dist/templates/components/ui/input.tsx +607 -0
- package/dist/templates/components/ui/link.tsx +143 -0
- package/dist/templates/components/ui/media-picker.tsx +548 -0
- package/dist/templates/components/ui/mode-toggle.tsx +55 -0
- package/dist/templates/components/ui/onboarding.tsx +357 -0
- package/dist/templates/components/ui/parallax-scrollview.tsx +85 -0
- package/dist/templates/components/ui/picker.tsx +476 -0
- package/dist/templates/components/ui/popover.tsx +450 -0
- package/dist/templates/components/ui/progress.tsx +159 -0
- package/dist/templates/components/ui/radio.tsx +133 -0
- package/dist/templates/components/ui/scroll-view.tsx +14 -0
- package/dist/templates/components/ui/searchbar.tsx +241 -0
- package/dist/templates/components/ui/separator.tsx +30 -0
- package/dist/templates/components/ui/share.tsx +304 -0
- package/dist/templates/components/ui/sheet.tsx +302 -0
- package/dist/templates/components/ui/skeleton.tsx +64 -0
- package/dist/templates/components/ui/spinner.tsx +462 -0
- package/dist/templates/components/ui/switch.tsx +78 -0
- package/dist/templates/components/ui/table.tsx +478 -0
- package/dist/templates/components/ui/tabs.tsx +500 -0
- package/dist/templates/components/ui/text.tsx +86 -0
- package/dist/templates/components/ui/toast.tsx +456 -0
- package/dist/templates/components/ui/toggle.tsx +347 -0
- package/dist/templates/components/ui/video.tsx +555 -0
- package/dist/templates/components/ui/view.tsx +14 -0
- package/dist/templates/demo/accordion/accordion-controlled.tsx +55 -0
- package/dist/templates/demo/accordion/accordion-demo.tsx +38 -0
- package/dist/templates/demo/accordion/accordion-faq.tsx +51 -0
- package/dist/templates/demo/accordion/accordion-multiple.tsx +51 -0
- package/dist/templates/demo/accordion/accordion-non-collapsible.tsx +51 -0
- package/dist/templates/demo/accordion/accordion-single.tsx +45 -0
- package/dist/templates/demo/accordion/accordion-styled.tsx +55 -0
- package/dist/templates/demo/action-sheet/action-sheet-demo.tsx +37 -0
- package/dist/templates/demo/action-sheet/action-sheet-destructive.tsx +44 -0
- package/dist/templates/demo/action-sheet/action-sheet-disabled.tsx +50 -0
- package/dist/templates/demo/action-sheet/action-sheet-hook.tsx +63 -0
- package/dist/templates/demo/action-sheet/action-sheet-icons.tsx +47 -0
- package/dist/templates/demo/action-sheet/action-sheet-long.tsx +105 -0
- package/dist/templates/demo/action-sheet/action-sheet-styled.tsx +52 -0
- package/dist/templates/demo/alert/alert-advanced-demo.tsx +132 -0
- package/dist/templates/demo/alert/alert-confirm-demo.tsx +20 -0
- package/dist/templates/demo/alert/alert-custom-demo.tsx +29 -0
- package/dist/templates/demo/alert/alert-demo.tsx +25 -0
- package/dist/templates/demo/alert/alert-error-demo.tsx +17 -0
- package/dist/templates/demo/alert/alert-success-demo.tsx +19 -0
- package/dist/templates/demo/alert/alert-three-button-demo.tsx +33 -0
- package/dist/templates/demo/alert/alert-visual-demo.tsx +22 -0
- package/dist/templates/demo/alert/alert-visual-destructive-demo.tsx +22 -0
- package/dist/templates/demo/alert-dialog/alert-dialog-custom.tsx +40 -0
- package/dist/templates/demo/alert-dialog/alert-dialog-demo.tsx +28 -0
- package/dist/templates/demo/alert-dialog/alert-dialog-destructive.tsx +30 -0
- package/dist/templates/demo/audio-player/audio-player-autoplay.tsx +22 -0
- package/dist/templates/demo/audio-player/audio-player-demo.tsx +21 -0
- package/dist/templates/demo/audio-player/audio-player-minimal.tsx +17 -0
- package/dist/templates/demo/audio-player/audio-player-music.tsx +158 -0
- package/dist/templates/demo/audio-player/audio-player-progress.tsx +17 -0
- package/dist/templates/demo/audio-player/audio-player-styled.tsx +32 -0
- package/dist/templates/demo/audio-player/audio-player-waveform.tsx +17 -0
- package/dist/templates/demo/audio-recorder/audio-recorder-callbacks.tsx +65 -0
- package/dist/templates/demo/audio-recorder/audio-recorder-cloud.tsx +67 -0
- package/dist/templates/demo/audio-recorder/audio-recorder-demo.tsx +27 -0
- package/dist/templates/demo/audio-recorder/audio-recorder-hq.tsx +24 -0
- package/dist/templates/demo/audio-recorder/audio-recorder-interview.tsx +98 -0
- package/dist/templates/demo/audio-recorder/audio-recorder-minimal.tsx +17 -0
- package/dist/templates/demo/audio-recorder/audio-recorder-styled.tsx +29 -0
- package/dist/templates/demo/audio-recorder/audio-recorder-voice.tsx +18 -0
- package/dist/templates/demo/audio-waveform/audio-waveform-compact.tsx +127 -0
- package/dist/templates/demo/audio-waveform/audio-waveform-demo.tsx +56 -0
- package/dist/templates/demo/audio-waveform/audio-waveform-interactive.tsx +114 -0
- package/dist/templates/demo/audio-waveform/audio-waveform-realtime.tsx +223 -0
- package/dist/templates/demo/audio-waveform/audio-waveform-recording.tsx +100 -0
- package/dist/templates/demo/audio-waveform/audio-waveform-styled.tsx +195 -0
- package/dist/templates/demo/avatar/avatar-bordered.tsx +64 -0
- package/dist/templates/demo/avatar/avatar-demo.tsx +13 -0
- package/dist/templates/demo/avatar/avatar-fallback.tsx +25 -0
- package/dist/templates/demo/avatar/avatar-group.tsx +76 -0
- package/dist/templates/demo/avatar/avatar-sizes.tsx +54 -0
- package/dist/templates/demo/avatar/avatar-status.tsx +76 -0
- package/dist/templates/demo/avatar/avatar-styled.tsx +64 -0
- package/dist/templates/demo/avoid-keyboard/avoid-keyboard-chat.tsx +176 -0
- package/dist/templates/demo/avoid-keyboard/avoid-keyboard-demo.tsx +37 -0
- package/dist/templates/demo/avoid-keyboard/avoid-keyboard-duration.tsx +62 -0
- package/dist/templates/demo/avoid-keyboard/avoid-keyboard-form.tsx +175 -0
- package/dist/templates/demo/avoid-keyboard/avoid-keyboard-offset.tsx +31 -0
- package/dist/templates/demo/avoid-keyboard/avoid-keyboard-playground.tsx +252 -0
- package/dist/templates/demo/badge/badge-demo.tsx +15 -0
- package/dist/templates/demo/badge/badge-icons.tsx +33 -0
- package/dist/templates/demo/badge/badge-interactive.tsx +81 -0
- package/dist/templates/demo/badge/badge-notifications.tsx +96 -0
- package/dist/templates/demo/badge/badge-sizes.tsx +104 -0
- package/dist/templates/demo/badge/badge-status.tsx +151 -0
- package/dist/templates/demo/badge/badge-styled.tsx +71 -0
- package/dist/templates/demo/bottom-sheet/bottom-sheet-demo.tsx +31 -0
- package/dist/templates/demo/bottom-sheet/bottom-sheet-form.tsx +72 -0
- package/dist/templates/demo/bottom-sheet/bottom-sheet-list.tsx +57 -0
- package/dist/templates/demo/bottom-sheet/bottom-sheet-menu.tsx +61 -0
- package/dist/templates/demo/bottom-sheet/bottom-sheet-no-dismiss.tsx +41 -0
- package/dist/templates/demo/bottom-sheet/bottom-sheet-snap-points.tsx +37 -0
- package/dist/templates/demo/bottom-sheet/bottom-sheet-styled.tsx +50 -0
- package/dist/templates/demo/bottom-sheet/bottom-sheet-title.tsx +32 -0
- package/dist/templates/demo/button/button-animation.tsx +28 -0
- package/dist/templates/demo/button/button-custom.tsx +52 -0
- package/dist/templates/demo/button/button-demo.tsx +8 -0
- package/dist/templates/demo/button/button-disabled.tsx +21 -0
- package/dist/templates/demo/button/button-icon-only.tsx +26 -0
- package/dist/templates/demo/button/button-loading.tsx +23 -0
- package/dist/templates/demo/button/button-sizes.tsx +19 -0
- package/dist/templates/demo/button/button-variants.tsx +33 -0
- package/dist/templates/demo/button/button-with-icons.tsx +23 -0
- package/dist/templates/demo/camera/camera-custom-controls.tsx +25 -0
- package/dist/templates/demo/camera/camera-demo.tsx +21 -0
- package/dist/templates/demo/camera/camera-picture-only.tsx +17 -0
- package/dist/templates/demo/camera/camera-settings.tsx +29 -0
- package/dist/templates/demo/camera/camera-timer.tsx +22 -0
- package/dist/templates/demo/camera/camera-video.tsx +25 -0
- package/dist/templates/demo/camera/camera-zoom.tsx +21 -0
- package/dist/templates/demo/camera-preview/camera-preview-demo.tsx +5 -0
- package/dist/templates/demo/card/card-demo.tsx +35 -0
- package/dist/templates/demo/card/card-notification.tsx +51 -0
- package/dist/templates/demo/card/card-pricing.tsx +115 -0
- package/dist/templates/demo/card/card-simple.tsx +16 -0
- package/dist/templates/demo/card/card-stats.tsx +33 -0
- package/dist/templates/demo/card/card-with-form.tsx +76 -0
- package/dist/templates/demo/card/card-with-image.tsx +43 -0
- package/dist/templates/demo/carousel/carousel-arrows.tsx +79 -0
- package/dist/templates/demo/carousel/carousel-cards.tsx +146 -0
- package/dist/templates/demo/carousel/carousel-custom-width.tsx +85 -0
- package/dist/templates/demo/carousel/carousel-demo.tsx +57 -0
- package/dist/templates/demo/carousel/carousel-images.tsx +83 -0
- package/dist/templates/demo/carousel/carousel-manual.tsx +215 -0
- package/dist/templates/demo/carousel/carousel-no-indicators.tsx +120 -0
- package/dist/templates/demo/charts/area-chart/area-chart-demo.tsx +33 -0
- package/dist/templates/demo/charts/area-chart/area-chart-interactive.tsx +36 -0
- package/dist/templates/demo/charts/area-chart/area-chart-large.tsx +41 -0
- package/dist/templates/demo/charts/area-chart/area-chart-styled.tsx +51 -0
- package/dist/templates/demo/charts/bar-chart/bar-chart-demo.tsx +31 -0
- package/dist/templates/demo/charts/bar-chart/bar-chart-minimal.tsx +26 -0
- package/dist/templates/demo/charts/bar-chart/bar-chart-sample.tsx +30 -0
- package/dist/templates/demo/charts/bubble-chart/bubble-chart-demo.tsx +34 -0
- package/dist/templates/demo/charts/bubble-chart/bubble-chart-minimal.tsx +26 -0
- package/dist/templates/demo/charts/bubble-chart/bubble-chart-sample.tsx +32 -0
- package/dist/templates/demo/charts/bubble-chart/bubble-chart-styled.tsx +39 -0
- package/dist/templates/demo/charts/candlestick-chart/candlestick-chart-demo.tsx +36 -0
- package/dist/templates/demo/charts/candlestick-chart/candlestick-chart-minimal.tsx +31 -0
- package/dist/templates/demo/charts/candlestick-chart/candlestick-chart-sample.tsx +34 -0
- package/dist/templates/demo/charts/candlestick-chart/candlestick-chart-styled.tsx +38 -0
- package/dist/templates/demo/charts/chart-container/chart-container-demo.tsx +30 -0
- package/dist/templates/demo/charts/chart-container/chart-container-styled.tsx +42 -0
- package/dist/templates/demo/charts/column-chart/column-chart-demo.tsx +31 -0
- package/dist/templates/demo/charts/column-chart/column-chart-large.tsx +42 -0
- package/dist/templates/demo/charts/column-chart/column-chart-sample.tsx +75 -0
- package/dist/templates/demo/charts/column-chart/column-chart-styled.tsx +37 -0
- package/dist/templates/demo/charts/doughnut-chart/doughnut-chart-demo.tsx +32 -0
- package/dist/templates/demo/charts/doughnut-chart/doughnut-chart-large.tsx +36 -0
- package/dist/templates/demo/charts/doughnut-chart/doughnut-chart-sample.tsx +40 -0
- package/dist/templates/demo/charts/doughnut-chart/doughnut-chart-styled.tsx +35 -0
- package/dist/templates/demo/charts/heatmap-chart/heatmap-chart-demo.tsx +41 -0
- package/dist/templates/demo/charts/heatmap-chart/heatmap-chart-large.tsx +66 -0
- package/dist/templates/demo/charts/heatmap-chart/heatmap-chart-sample.tsx +42 -0
- package/dist/templates/demo/charts/heatmap-chart/heatmap-chart-styled.tsx +43 -0
- package/dist/templates/demo/charts/line-chart/line-chart-demo.tsx +34 -0
- package/dist/templates/demo/charts/line-chart/line-chart-interactive.tsx +35 -0
- package/dist/templates/demo/charts/line-chart/line-chart-minimal.tsx +28 -0
- package/dist/templates/demo/charts/line-chart/line-chart-styled.tsx +51 -0
- package/dist/templates/demo/charts/pie-chart/pie-chart-demo.tsx +31 -0
- package/dist/templates/demo/charts/pie-chart/pie-chart-large.tsx +31 -0
- package/dist/templates/demo/charts/pie-chart/pie-chart-sample.tsx +29 -0
- package/dist/templates/demo/charts/pie-chart/pie-chart-styled.tsx +35 -0
- package/dist/templates/demo/charts/polar-area-chart/polar-area-chart-demo.tsx +31 -0
- package/dist/templates/demo/charts/polar-area-chart/polar-area-chart-large.tsx +37 -0
- package/dist/templates/demo/charts/polar-area-chart/polar-area-chart-sample.tsx +44 -0
- package/dist/templates/demo/charts/polar-area-chart/polar-area-chart-styled.tsx +37 -0
- package/dist/templates/demo/charts/progress-ring-chart/progress-ring-chart-demo.tsx +25 -0
- package/dist/templates/demo/charts/progress-ring-chart/progress-ring-chart-large.tsx +26 -0
- package/dist/templates/demo/charts/progress-ring-chart/progress-ring-chart-sample.tsx +26 -0
- package/dist/templates/demo/charts/progress-ring-chart/progress-ring-chart-styled.tsx +26 -0
- package/dist/templates/demo/charts/radar-chart/radar-chart-demo.tsx +31 -0
- package/dist/templates/demo/charts/radar-chart/radar-chart-large.tsx +36 -0
- package/dist/templates/demo/charts/radar-chart/radar-chart-sample.tsx +31 -0
- package/dist/templates/demo/charts/radar-chart/radar-chart-styled.tsx +41 -0
- package/dist/templates/demo/charts/radial-bar-chart/radial-bar-chart-demo.tsx +29 -0
- package/dist/templates/demo/charts/radial-bar-chart/radial-bar-chart-gradient.tsx +40 -0
- package/dist/templates/demo/charts/radial-bar-chart/radial-bar-chart-large.tsx +32 -0
- package/dist/templates/demo/charts/radial-bar-chart/radial-bar-chart-sample.tsx +37 -0
- package/dist/templates/demo/charts/scatter-chart/scatter-chart-demo.tsx +34 -0
- package/dist/templates/demo/charts/scatter-chart/scatter-chart-large.tsx +39 -0
- package/dist/templates/demo/charts/scatter-chart/scatter-chart-sample.tsx +36 -0
- package/dist/templates/demo/charts/scatter-chart/scatter-chart-styled.tsx +42 -0
- package/dist/templates/demo/charts/stacked-area-chart/stacked-area-chart-demo.tsx +35 -0
- package/dist/templates/demo/charts/stacked-area-chart/stacked-area-chart-large.tsx +63 -0
- package/dist/templates/demo/charts/stacked-area-chart/stacked-area-chart-sample.tsx +36 -0
- package/dist/templates/demo/charts/stacked-area-chart/stacked-area-chart-styled.tsx +44 -0
- package/dist/templates/demo/charts/stacked-bar-chart/stacked-bar-chart-demo.tsx +33 -0
- package/dist/templates/demo/charts/stacked-bar-chart/stacked-bar-chart-horizontal.tsx +35 -0
- package/dist/templates/demo/charts/stacked-bar-chart/stacked-bar-chart-large.tsx +42 -0
- package/dist/templates/demo/charts/stacked-bar-chart/stacked-bar-chart-styled.tsx +43 -0
- package/dist/templates/demo/charts/treemap-chart/treemap-chart-demo.tsx +31 -0
- package/dist/templates/demo/charts/treemap-chart/treemap-chart-large.tsx +41 -0
- package/dist/templates/demo/charts/treemap-chart/treemap-chart-sample.tsx +33 -0
- package/dist/templates/demo/charts/treemap-chart/treemap-chart-styled.tsx +32 -0
- package/dist/templates/demo/checkbox/checkbox-custom-styling.tsx +34 -0
- package/dist/templates/demo/checkbox/checkbox-demo.tsx +14 -0
- package/dist/templates/demo/checkbox/checkbox-group.tsx +44 -0
- package/dist/templates/demo/checkbox/checkbox-states.tsx +37 -0
- package/dist/templates/demo/checkbox/checkbox-with-error.tsx +24 -0
- package/dist/templates/demo/checkbox/checkbox-without-label.tsx +8 -0
- package/dist/templates/demo/collapsible/collapsible-demo.tsx +16 -0
- package/dist/templates/demo/collapsible/collapsible-faq.tsx +45 -0
- package/dist/templates/demo/collapsible/collapsible-multiple.tsx +34 -0
- package/dist/templates/demo/collapsible/collapsible-nested.tsx +39 -0
- package/dist/templates/demo/collapsible/collapsible-with-content.tsx +53 -0
- package/dist/templates/demo/color-picker/color-picker-colors.tsx +36 -0
- package/dist/templates/demo/color-picker/color-picker-demo.tsx +17 -0
- package/dist/templates/demo/color-picker/color-picker-disabled.tsx +15 -0
- package/dist/templates/demo/color-picker/color-picker-labeled.tsx +84 -0
- package/dist/templates/demo/color-picker/color-picker-palette.tsx +54 -0
- package/dist/templates/demo/color-picker/color-picker-sizes.tsx +39 -0
- package/dist/templates/demo/color-picker/color-picker-styled.tsx +52 -0
- package/dist/templates/demo/color-picker/color-swatch-demo.tsx +46 -0
- package/dist/templates/demo/combobox/combobox-demo.tsx +44 -0
- package/dist/templates/demo/combobox/combobox-disabled.tsx +44 -0
- package/dist/templates/demo/combobox/combobox-form.tsx +91 -0
- package/dist/templates/demo/combobox/combobox-groups.tsx +51 -0
- package/dist/templates/demo/combobox/combobox-large.tsx +89 -0
- package/dist/templates/demo/combobox/combobox-multiple.tsx +48 -0
- package/dist/templates/demo/combobox/combobox-search.tsx +67 -0
- package/dist/templates/demo/date-picker/date-picker-constraints.tsx +51 -0
- package/dist/templates/demo/date-picker/date-picker-datetime.tsx +17 -0
- package/dist/templates/demo/date-picker/date-picker-demo.tsx +15 -0
- package/dist/templates/demo/date-picker/date-picker-form.tsx +96 -0
- package/dist/templates/demo/date-picker/date-picker-formats.tsx +39 -0
- package/dist/templates/demo/date-picker/date-picker-range.tsx +16 -0
- package/dist/templates/demo/date-picker/date-picker-time.tsx +30 -0
- package/dist/templates/demo/date-picker/date-picker-variants.tsx +37 -0
- package/dist/templates/demo/file-picker/file-picker-controlled.tsx +134 -0
- package/dist/templates/demo/file-picker/file-picker-demo.tsx +16 -0
- package/dist/templates/demo/file-picker/file-picker-images.tsx +30 -0
- package/dist/templates/demo/file-picker/file-picker-info.tsx +192 -0
- package/dist/templates/demo/file-picker/file-picker-single.tsx +35 -0
- package/dist/templates/demo/file-picker/file-picker-styled.tsx +78 -0
- package/dist/templates/demo/file-picker/file-picker-validation.tsx +61 -0
- package/dist/templates/demo/gallery/gallery-controls.tsx +85 -0
- package/dist/templates/demo/gallery/gallery-demo.tsx +66 -0
- package/dist/templates/demo/gallery/gallery-grid.tsx +109 -0
- package/dist/templates/demo/gallery/gallery-info.tsx +70 -0
- package/dist/templates/demo/gallery/gallery-layouts.tsx +109 -0
- package/dist/templates/demo/gallery/gallery-overlay.tsx +89 -0
- package/dist/templates/demo/hello-wave/hello-wave-demo.tsx +6 -0
- package/dist/templates/demo/icon/icon-colors.tsx +39 -0
- package/dist/templates/demo/icon/icon-demo.tsx +7 -0
- package/dist/templates/demo/icon/icon-grid.tsx +69 -0
- package/dist/templates/demo/icon/icon-interactive.tsx +66 -0
- package/dist/templates/demo/icon/icon-sizes.tsx +23 -0
- package/dist/templates/demo/icon/icon-stroke.tsx +34 -0
- package/dist/templates/demo/icon/icon-themed.tsx +57 -0
- package/dist/templates/demo/image/image-content-fit.tsx +67 -0
- package/dist/templates/demo/image/image-demo.tsx +12 -0
- package/dist/templates/demo/image/image-error.tsx +50 -0
- package/dist/templates/demo/image/image-gallery.tsx +65 -0
- package/dist/templates/demo/image/image-loading.tsx +50 -0
- package/dist/templates/demo/image/image-responsive.tsx +53 -0
- package/dist/templates/demo/image/image-sizes.tsx +54 -0
- package/dist/templates/demo/image/image-variants.tsx +46 -0
- package/dist/templates/demo/input/input-demo.tsx +9 -0
- package/dist/templates/demo/input/input-disabled.tsx +18 -0
- package/dist/templates/demo/input/input-form.tsx +159 -0
- package/dist/templates/demo/input/input-grouped.tsx +28 -0
- package/dist/templates/demo/input/input-icons.tsx +30 -0
- package/dist/templates/demo/input/input-right-components.tsx +65 -0
- package/dist/templates/demo/input/input-validation.tsx +39 -0
- package/dist/templates/demo/input/input-variants.tsx +23 -0
- package/dist/templates/demo/input-otp/input-otp-demo.tsx +17 -0
- package/dist/templates/demo/input-otp/input-otp-disabled.tsx +40 -0
- package/dist/templates/demo/input-otp/input-otp-error.tsx +71 -0
- package/dist/templates/demo/input-otp/input-otp-lengths.tsx +25 -0
- package/dist/templates/demo/input-otp/input-otp-masked.tsx +42 -0
- package/dist/templates/demo/input-otp/input-otp-no-cursor.tsx +39 -0
- package/dist/templates/demo/input-otp/input-otp-separator.tsx +61 -0
- package/dist/templates/demo/input-otp/input-otp-styled.tsx +67 -0
- package/dist/templates/demo/link/link-browser.tsx +36 -0
- package/dist/templates/demo/link/link-buttons.tsx +65 -0
- package/dist/templates/demo/link/link-custom.tsx +42 -0
- package/dist/templates/demo/link/link-demo.tsx +13 -0
- package/dist/templates/demo/link/link-external.tsx +13 -0
- package/dist/templates/demo/link/link-styled.tsx +72 -0
- package/dist/templates/demo/link/link-types.tsx +45 -0
- package/dist/templates/demo/media-picker/media-picker-demo.tsx +16 -0
- package/dist/templates/demo/media-picker/media-picker-gallery.tsx +21 -0
- package/dist/templates/demo/media-picker/media-picker-images.tsx +17 -0
- package/dist/templates/demo/media-picker/media-picker-multiple.tsx +31 -0
- package/dist/templates/demo/media-picker/media-picker-preview.tsx +39 -0
- package/dist/templates/demo/media-picker/media-picker-quality.tsx +62 -0
- package/dist/templates/demo/media-picker/media-picker-videos.tsx +17 -0
- package/dist/templates/demo/mode-toggle/mode-toggle-demo.tsx +6 -0
- package/dist/templates/demo/onboarding/onboarding-custom-buttons.tsx +41 -0
- package/dist/templates/demo/onboarding/onboarding-demo.tsx +114 -0
- package/dist/templates/demo/onboarding/onboarding-hook.tsx +97 -0
- package/dist/templates/demo/onboarding/onboarding-images.tsx +70 -0
- package/dist/templates/demo/onboarding/onboarding-no-skip.tsx +62 -0
- package/dist/templates/demo/onboarding/onboarding-no-swipe.tsx +68 -0
- package/dist/templates/demo/onboarding/onboarding-styled.tsx +70 -0
- package/dist/templates/demo/parallax-scrollview/parallax-scrollview-article.tsx +180 -0
- package/dist/templates/demo/parallax-scrollview/parallax-scrollview-custom-height.tsx +44 -0
- package/dist/templates/demo/parallax-scrollview/parallax-scrollview-demo.tsx +39 -0
- package/dist/templates/demo/parallax-scrollview/parallax-scrollview-gradient.tsx +77 -0
- package/dist/templates/demo/parallax-scrollview/parallax-scrollview-product.tsx +181 -0
- package/dist/templates/demo/parallax-scrollview/parallax-scrollview-profile.tsx +144 -0
- package/dist/templates/demo/picker/picker-advanced.tsx +82 -0
- package/dist/templates/demo/picker/picker-demo.tsx +22 -0
- package/dist/templates/demo/picker/picker-form.tsx +81 -0
- package/dist/templates/demo/picker/picker-multiple.tsx +26 -0
- package/dist/templates/demo/picker/picker-searchable.tsx +31 -0
- package/dist/templates/demo/picker/picker-sections.tsx +35 -0
- package/dist/templates/demo/picker/picker-styled.tsx +63 -0
- package/dist/templates/demo/picker/picker-variants.tsx +60 -0
- package/dist/templates/demo/popover/popover-alignment.tsx +92 -0
- package/dist/templates/demo/popover/popover-controlled.tsx +53 -0
- package/dist/templates/demo/popover/popover-custom.tsx +79 -0
- package/dist/templates/demo/popover/popover-demo.tsx +39 -0
- package/dist/templates/demo/popover/popover-form.tsx +78 -0
- package/dist/templates/demo/popover/popover-menu.tsx +143 -0
- package/dist/templates/demo/popover/popover-positioning.tsx +62 -0
- package/dist/templates/demo/progress/progress-animated.tsx +71 -0
- package/dist/templates/demo/progress/progress-demo.tsx +6 -0
- package/dist/templates/demo/progress/progress-heights.tsx +35 -0
- package/dist/templates/demo/progress/progress-interactive.tsx +28 -0
- package/dist/templates/demo/progress/progress-labels.tsx +58 -0
- package/dist/templates/demo/progress/progress-media.tsx +120 -0
- package/dist/templates/demo/progress/progress-steps.tsx +137 -0
- package/dist/templates/demo/radio/radio-demo.tsx +18 -0
- package/dist/templates/demo/radio/radio-disabled.tsx +47 -0
- package/dist/templates/demo/radio/radio-form.tsx +82 -0
- package/dist/templates/demo/radio/radio-horizontal.tsx +19 -0
- package/dist/templates/demo/radio/radio-large.tsx +27 -0
- package/dist/templates/demo/radio/radio-single.tsx +36 -0
- package/dist/templates/demo/radio/radio-styled.tsx +77 -0
- package/dist/templates/demo/scroll-view/scroll-view-demo.tsx +37 -0
- package/dist/templates/demo/scroll-view/scroll-view-horizontal.tsx +57 -0
- package/dist/templates/demo/scroll-view/scroll-view-indicators.tsx +91 -0
- package/dist/templates/demo/scroll-view/scroll-view-inset.tsx +116 -0
- package/dist/templates/demo/scroll-view/scroll-view-nested.tsx +85 -0
- package/dist/templates/demo/scroll-view/scroll-view-refresh.tsx +81 -0
- package/dist/templates/demo/scroll-view/scroll-view-styled.tsx +91 -0
- package/dist/templates/demo/scroll-view/scroll-view-vertical.tsx +50 -0
- package/dist/templates/demo/searchbar/searchbar-demo.tsx +19 -0
- package/dist/templates/demo/searchbar/searchbar-icons.tsx +36 -0
- package/dist/templates/demo/searchbar/searchbar-instant.tsx +58 -0
- package/dist/templates/demo/searchbar/searchbar-loading.tsx +28 -0
- package/dist/templates/demo/searchbar/searchbar-no-clear.tsx +20 -0
- package/dist/templates/demo/searchbar/searchbar-styled.tsx +65 -0
- package/dist/templates/demo/searchbar/searchbar-suggestions.tsx +40 -0
- package/dist/templates/demo/separator/separator-colors.tsx +35 -0
- package/dist/templates/demo/separator/separator-demo.tsx +14 -0
- package/dist/templates/demo/separator/separator-spacing.tsx +26 -0
- package/dist/templates/demo/separator/separator-thickness.tsx +30 -0
- package/dist/templates/demo/separator/separator-vertical.tsx +21 -0
- package/dist/templates/demo/share/share-callbacks.tsx +61 -0
- package/dist/templates/demo/share/share-custom-content.tsx +53 -0
- package/dist/templates/demo/share/share-demo.tsx +22 -0
- package/dist/templates/demo/share/share-hook.tsx +71 -0
- package/dist/templates/demo/share/share-icon-only.tsx +42 -0
- package/dist/templates/demo/share/share-sizes.tsx +28 -0
- package/dist/templates/demo/share/share-url-only.tsx +24 -0
- package/dist/templates/demo/share/share-variants.tsx +38 -0
- package/dist/templates/demo/sheet/sheet-demo.tsx +38 -0
- package/dist/templates/demo/sheet/sheet-filter.tsx +191 -0
- package/dist/templates/demo/sheet/sheet-form.tsx +170 -0
- package/dist/templates/demo/sheet/sheet-left.tsx +39 -0
- package/dist/templates/demo/sheet/sheet-navigation.tsx +111 -0
- package/dist/templates/demo/skeleton/skeleton-card.tsx +39 -0
- package/dist/templates/demo/skeleton/skeleton-demo.tsx +6 -0
- package/dist/templates/demo/skeleton/skeleton-list.tsx +34 -0
- package/dist/templates/demo/skeleton/skeleton-profile.tsx +53 -0
- package/dist/templates/demo/skeleton/skeleton-shapes.tsx +44 -0
- package/dist/templates/demo/skeleton/skeleton-sizes.tsx +14 -0
- package/dist/templates/demo/spinner/spinner-colors.tsx +27 -0
- package/dist/templates/demo/spinner/spinner-demo.tsx +6 -0
- package/dist/templates/demo/spinner/spinner-inline.tsx +25 -0
- package/dist/templates/demo/spinner/spinner-labels.tsx +14 -0
- package/dist/templates/demo/spinner/spinner-overlay.tsx +31 -0
- package/dist/templates/demo/spinner/spinner-sizes.tsx +26 -0
- package/dist/templates/demo/spinner/spinner-speeds.tsx +25 -0
- package/dist/templates/demo/spinner/spinner-variants.tsx +27 -0
- package/dist/templates/demo/switch/switch-colors.tsx +33 -0
- package/dist/templates/demo/switch/switch-demo.tsx +14 -0
- package/dist/templates/demo/switch/switch-disabled.tsx +20 -0
- package/dist/templates/demo/switch/switch-error.tsx +24 -0
- package/dist/templates/demo/switch/switch-settings.tsx +42 -0
- package/dist/templates/demo/switch/switch-simple.tsx +8 -0
- package/dist/templates/demo/table/table-custom-cells.tsx +153 -0
- package/dist/templates/demo/table/table-demo.tsx +90 -0
- package/dist/templates/demo/table/table-loading.tsx +84 -0
- package/dist/templates/demo/table/table-pagination.tsx +114 -0
- package/dist/templates/demo/table/table-search.tsx +168 -0
- package/dist/templates/demo/table/table-sortable.tsx +119 -0
- package/dist/templates/demo/tabs/tabs-demo.tsx +85 -0
- package/dist/templates/demo/tabs/tabs-disabled.tsx +61 -0
- package/dist/templates/demo/tabs/tabs-styled.tsx +105 -0
- package/dist/templates/demo/tabs/tabs-vertical.tsx +61 -0
- package/dist/templates/demo/text/text-colors.tsx +40 -0
- package/dist/templates/demo/text/text-demo.tsx +19 -0
- package/dist/templates/demo/text/text-variants.tsx +60 -0
- package/dist/templates/demo/toast/toast-actions.tsx +51 -0
- package/dist/templates/demo/toast/toast-compact.tsx +66 -0
- package/dist/templates/demo/toast/toast-demo.tsx +18 -0
- package/dist/templates/demo/toast/toast-duration.tsx +68 -0
- package/dist/templates/demo/toast/toast-multiple.tsx +65 -0
- package/dist/templates/demo/toast/toast-variants.tsx +45 -0
- package/dist/templates/demo/toggle/toggle-demo.tsx +13 -0
- package/dist/templates/demo/toggle/toggle-disabled.tsx +23 -0
- package/dist/templates/demo/toggle/toggle-group-multiple.tsx +22 -0
- package/dist/templates/demo/toggle/toggle-group-outline.tsx +23 -0
- package/dist/templates/demo/toggle/toggle-group-single.tsx +22 -0
- package/dist/templates/demo/toggle/toggle-group-vertical.tsx +23 -0
- package/dist/templates/demo/toggle/toggle-sizes.tsx +20 -0
- package/dist/templates/demo/toggle/toggle-text.tsx +28 -0
- package/dist/templates/demo/toggle/toggle-variants.tsx +44 -0
- package/dist/templates/demo/video/video-autoplay-loop.tsx +22 -0
- package/dist/templates/demo/video/video-content-fit.tsx +47 -0
- package/dist/templates/demo/video/video-custom-controls.tsx +28 -0
- package/dist/templates/demo/video/video-demo.tsx +20 -0
- package/dist/templates/demo/video/video-gestures.tsx +34 -0
- package/dist/templates/demo/video/video-native-controls.tsx +20 -0
- package/dist/templates/demo/video/video-sources.tsx +39 -0
- package/dist/templates/demo/video/video-subtitles.tsx +29 -0
- package/dist/templates/demo/view/view-demo.tsx +17 -0
- package/dist/templates/hooks/useBottomTabOverflow.ts +6 -0
- package/dist/templates/hooks/useColor.ts +16 -0
- package/dist/templates/hooks/useColorScheme.ts +1 -0
- package/dist/templates/hooks/useColorScheme.web.ts +21 -0
- package/dist/templates/hooks/useKeyboardHeight.ts +131 -0
- package/dist/templates/hooks/useModeToggle.tsx +50 -0
- package/dist/templates/hooks/useThemeColor.ts +21 -0
- package/dist/templates/start/README.md +198 -0
- package/dist/templates/start/app/(tabs)/(home)/_layout.tsx +43 -0
- package/dist/templates/start/app/(tabs)/(home)/index.tsx +96 -0
- package/dist/templates/start/app/(tabs)/_layout.tsx +68 -0
- package/dist/templates/start/app/(tabs)/_layout.web.tsx +48 -0
- package/dist/templates/start/app/(tabs)/search/_layout.tsx +60 -0
- package/dist/templates/start/app/(tabs)/search/index.tsx +44 -0
- package/dist/templates/start/app/(tabs)/settings/_layout.tsx +42 -0
- package/dist/templates/start/app/(tabs)/settings/index.tsx +105 -0
- package/dist/templates/start/app/+not-found.tsx +24 -0
- package/dist/templates/start/app/_layout.tsx +90 -0
- package/dist/templates/start/app/sheet.tsx +1 -0
- package/dist/templates/start/app.json +50 -0
- package/dist/templates/start/assets/images/icon.png +0 -0
- package/dist/templates/start/assets/images/splash.png +0 -0
- package/dist/templates/start/components/sheet.tsx +79 -0
- package/dist/templates/start/components/ui/avoid-keyboard.tsx +49 -0
- package/dist/templates/start/components/ui/button.tsx +392 -0
- package/dist/templates/start/components/ui/card.tsx +110 -0
- package/dist/templates/start/components/ui/icon.tsx +34 -0
- package/dist/templates/start/components/ui/input-otp.tsx +302 -0
- package/dist/templates/start/components/ui/input.tsx +607 -0
- package/dist/templates/start/components/ui/link.tsx +143 -0
- package/dist/templates/start/components/ui/mode-toggle.tsx +55 -0
- package/dist/templates/start/components/ui/scroll-view.tsx +14 -0
- package/dist/templates/start/components/ui/spinner.tsx +462 -0
- package/dist/templates/start/components/ui/tabs.tsx +500 -0
- package/dist/templates/start/components/ui/text.tsx +86 -0
- package/dist/templates/start/components/ui/view.tsx +14 -0
- package/dist/templates/start/eslint.config.js +10 -0
- package/dist/templates/start/hooks/useColor.ts +16 -0
- package/dist/templates/start/hooks/useColorScheme.ts +1 -0
- package/dist/templates/start/hooks/useColorScheme.web.ts +21 -0
- package/dist/templates/start/hooks/useKeyboardHeight.ts +131 -0
- package/dist/templates/start/hooks/useModeToggle.tsx +88 -0
- package/dist/templates/start/package.json +58 -0
- package/dist/templates/start/providers/search-context.tsx +26 -0
- package/dist/templates/start/theme/colors.ts +184 -0
- package/dist/templates/start/theme/globals.ts +4 -0
- package/dist/templates/start/theme/theme-provider.tsx +59 -0
- package/dist/templates/start/tsconfig.json +17 -0
- package/dist/templates/start-convex/README.md +213 -0
- package/dist/templates/start-convex/app/(tabs)/(home)/_layout.tsx +43 -0
- package/dist/templates/start-convex/app/(tabs)/(home)/index.tsx +96 -0
- package/dist/templates/start-convex/app/(tabs)/_layout.tsx +68 -0
- package/dist/templates/start-convex/app/(tabs)/_layout.web.tsx +48 -0
- package/dist/templates/start-convex/app/(tabs)/search/_layout.tsx +60 -0
- package/dist/templates/start-convex/app/(tabs)/search/index.tsx +44 -0
- package/dist/templates/start-convex/app/(tabs)/settings/_layout.tsx +42 -0
- package/dist/templates/start-convex/app/(tabs)/settings/index.tsx +49 -0
- package/dist/templates/start-convex/app/+not-found.tsx +24 -0
- package/dist/templates/start-convex/app/_layout.tsx +136 -0
- package/dist/templates/start-convex/app/sheet.tsx +1 -0
- package/dist/templates/start-convex/app.json +51 -0
- package/dist/templates/start-convex/assets/images/icon.png +0 -0
- package/dist/templates/start-convex/assets/images/splash.png +0 -0
- package/dist/templates/start-convex/components/auth/apple.tsx +60 -0
- package/dist/templates/start-convex/components/auth/auth.tsx +127 -0
- package/dist/templates/start-convex/components/auth/email-otp.tsx +186 -0
- package/dist/templates/start-convex/components/auth/google.tsx +60 -0
- package/dist/templates/start-convex/components/auth/password.tsx +335 -0
- package/dist/templates/start-convex/components/auth/singout.tsx +36 -0
- package/dist/templates/start-convex/components/sheet.tsx +79 -0
- package/dist/templates/start-convex/components/ui/avoid-keyboard.tsx +49 -0
- package/dist/templates/start-convex/components/ui/button.tsx +392 -0
- package/dist/templates/start-convex/components/ui/card.tsx +110 -0
- package/dist/templates/start-convex/components/ui/icon.tsx +34 -0
- package/dist/templates/start-convex/components/ui/input-otp.tsx +302 -0
- package/dist/templates/start-convex/components/ui/input.tsx +607 -0
- package/dist/templates/start-convex/components/ui/link.tsx +143 -0
- package/dist/templates/start-convex/components/ui/mode-toggle.tsx +55 -0
- package/dist/templates/start-convex/components/ui/scroll-view.tsx +14 -0
- package/dist/templates/start-convex/components/ui/spinner.tsx +462 -0
- package/dist/templates/start-convex/components/ui/tabs.tsx +500 -0
- package/dist/templates/start-convex/components/ui/text.tsx +86 -0
- package/dist/templates/start-convex/components/ui/view.tsx +14 -0
- package/dist/templates/start-convex/convex/README.md +90 -0
- package/dist/templates/start-convex/convex/_generated/api.d.ts +61 -0
- package/dist/templates/start-convex/convex/_generated/api.js +23 -0
- package/dist/templates/start-convex/convex/_generated/dataModel.d.ts +60 -0
- package/dist/templates/start-convex/convex/_generated/server.d.ts +143 -0
- package/dist/templates/start-convex/convex/_generated/server.js +93 -0
- package/dist/templates/start-convex/convex/auth.config.ts +8 -0
- package/dist/templates/start-convex/convex/auth.ts +112 -0
- package/dist/templates/start-convex/convex/http.ts +8 -0
- package/dist/templates/start-convex/convex/passwordReset.ts +69 -0
- package/dist/templates/start-convex/convex/resendOTP.ts +60 -0
- package/dist/templates/start-convex/convex/resendPasswordOTP.ts +64 -0
- package/dist/templates/start-convex/convex/router.ts +5 -0
- package/dist/templates/start-convex/convex/schema.ts +23 -0
- package/dist/templates/start-convex/convex/tsconfig.json +25 -0
- package/dist/templates/start-convex/convex/users.ts +111 -0
- package/dist/templates/start-convex/eslint.config.js +10 -0
- package/dist/templates/start-convex/hooks/useColor.ts +16 -0
- package/dist/templates/start-convex/hooks/useColorScheme.ts +1 -0
- package/dist/templates/start-convex/hooks/useColorScheme.web.ts +21 -0
- package/dist/templates/start-convex/hooks/useKeyboardHeight.ts +131 -0
- package/dist/templates/start-convex/hooks/useModeToggle.tsx +88 -0
- package/dist/templates/start-convex/package.json +64 -0
- package/dist/templates/start-convex/providers/search-context.tsx +26 -0
- package/dist/templates/start-convex/theme/colors.ts +184 -0
- package/dist/templates/start-convex/theme/globals.ts +4 -0
- package/dist/templates/start-convex/theme/theme-provider.tsx +59 -0
- package/dist/templates/start-convex/tsconfig.json +17 -0
- package/dist/templates/theme/colors.ts +205 -0
- package/dist/templates/theme/globals.ts +4 -0
- package/dist/templates/theme/theme-provider.tsx +52 -0
- package/dist/utils/dependencies.d.ts +7 -0
- package/dist/utils/dependencies.js +109 -0
- package/dist/utils/filesystem.d.ts +6 -0
- package/dist/utils/filesystem.js +72 -0
- package/dist/utils/git.d.ts +2 -0
- package/dist/utils/git.js +33 -0
- package/dist/utils/logger.d.ts +11 -0
- package/dist/utils/logger.js +43 -0
- package/dist/utils/package-manager.d.ts +8 -0
- package/dist/utils/package-manager.js +128 -0
- package/dist/utils/project-config.d.ts +2 -0
- package/dist/utils/project-config.js +46 -0
- package/dist/utils/registry.d.ts +17 -0
- package/dist/utils/registry.js +181 -0
- package/dist/utils/validation.d.ts +16 -0
- package/dist/utils/validation.js +84 -0
- package/package.json +74 -0
|
@@ -0,0 +1,1008 @@
|
|
|
1
|
+
import { Button } from '@/components/ui/button';
|
|
2
|
+
import { Progress } from '@/components/ui/progress';
|
|
3
|
+
import { Text } from '@/components/ui/text';
|
|
4
|
+
import { useColor } from '@/hooks/useColor';
|
|
5
|
+
import { BORDER_RADIUS, FONT_SIZE } from '@/theme/globals';
|
|
6
|
+
import {
|
|
7
|
+
CameraMode,
|
|
8
|
+
CameraRatio,
|
|
9
|
+
CameraType,
|
|
10
|
+
CameraView,
|
|
11
|
+
useCameraPermissions,
|
|
12
|
+
} from 'expo-camera';
|
|
13
|
+
import {
|
|
14
|
+
Camera as CameraIcon,
|
|
15
|
+
Grid3X3,
|
|
16
|
+
Settings,
|
|
17
|
+
SwitchCamera,
|
|
18
|
+
Timer,
|
|
19
|
+
Video,
|
|
20
|
+
Volume2,
|
|
21
|
+
VolumeX,
|
|
22
|
+
X,
|
|
23
|
+
Zap,
|
|
24
|
+
ZapOff,
|
|
25
|
+
} from 'lucide-react-native';
|
|
26
|
+
import React, {
|
|
27
|
+
forwardRef,
|
|
28
|
+
useEffect,
|
|
29
|
+
useImperativeHandle,
|
|
30
|
+
useRef,
|
|
31
|
+
useState,
|
|
32
|
+
} from 'react';
|
|
33
|
+
import {
|
|
34
|
+
ActivityIndicator,
|
|
35
|
+
Alert,
|
|
36
|
+
Dimensions,
|
|
37
|
+
StyleSheet,
|
|
38
|
+
TouchableOpacity,
|
|
39
|
+
View,
|
|
40
|
+
ViewStyle,
|
|
41
|
+
} from 'react-native';
|
|
42
|
+
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
|
|
43
|
+
import Animated, {
|
|
44
|
+
interpolate,
|
|
45
|
+
runOnJS,
|
|
46
|
+
useAnimatedProps,
|
|
47
|
+
useAnimatedReaction,
|
|
48
|
+
useAnimatedStyle,
|
|
49
|
+
useSharedValue,
|
|
50
|
+
withDelay,
|
|
51
|
+
withSequence,
|
|
52
|
+
withTiming,
|
|
53
|
+
} from 'react-native-reanimated';
|
|
54
|
+
|
|
55
|
+
const { width: screenWidth } = Dimensions.get('window');
|
|
56
|
+
|
|
57
|
+
const AnimatedCameraView = Animated.createAnimatedComponent(CameraView);
|
|
58
|
+
|
|
59
|
+
export type CaptureSuccess = {
|
|
60
|
+
type: CameraMode;
|
|
61
|
+
uri: string;
|
|
62
|
+
cameraHeight: number;
|
|
63
|
+
};
|
|
64
|
+
export interface CameraProps {
|
|
65
|
+
style?: ViewStyle;
|
|
66
|
+
facing?: CameraType;
|
|
67
|
+
enableTorch?: boolean;
|
|
68
|
+
showControls?: boolean;
|
|
69
|
+
timerOptions?: Array<number>;
|
|
70
|
+
enableVideo?: boolean;
|
|
71
|
+
maxVideoDuration?: number; // in seconds
|
|
72
|
+
onClose?: () => void;
|
|
73
|
+
onCapture?: ({ type, uri, cameraHeight }: CaptureSuccess) => void;
|
|
74
|
+
onVideoCapture?: ({ type, uri, cameraHeight }: CaptureSuccess) => void;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface CameraRef {
|
|
78
|
+
switchCamera: () => void;
|
|
79
|
+
toggleTorch: () => void;
|
|
80
|
+
takePicture: () => Promise<void>;
|
|
81
|
+
startRecording: () => Promise<void>;
|
|
82
|
+
stopRecording: () => Promise<void>;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export const Camera = forwardRef<CameraRef, CameraProps>(
|
|
86
|
+
(
|
|
87
|
+
{
|
|
88
|
+
style,
|
|
89
|
+
onCapture,
|
|
90
|
+
onVideoCapture,
|
|
91
|
+
onClose,
|
|
92
|
+
enableTorch = true,
|
|
93
|
+
showControls = true,
|
|
94
|
+
enableVideo = true,
|
|
95
|
+
maxVideoDuration = 60,
|
|
96
|
+
timerOptions = [0, 3, 10],
|
|
97
|
+
facing: initialFacing = 'back',
|
|
98
|
+
},
|
|
99
|
+
ref
|
|
100
|
+
) => {
|
|
101
|
+
const cameraRef = useRef<CameraView>(null);
|
|
102
|
+
const recordingInterval = useRef<number | null>(null);
|
|
103
|
+
const timerInterval = useRef<number | null>(null);
|
|
104
|
+
|
|
105
|
+
const fadeAnim = useSharedValue(0);
|
|
106
|
+
const settingsAnim = useSharedValue(0);
|
|
107
|
+
const zoomTextAnim = useSharedValue(0);
|
|
108
|
+
const zoomControlsAnim = useSharedValue(0);
|
|
109
|
+
const zoom = useSharedValue(0);
|
|
110
|
+
const baseZoom = useSharedValue(0);
|
|
111
|
+
|
|
112
|
+
const aspectRatios: Array<CameraRatio> = ['16:9', '4:3', '1:1'];
|
|
113
|
+
|
|
114
|
+
const [permission, requestPermission] = useCameraPermissions();
|
|
115
|
+
const [torch, setTorch] = useState(false);
|
|
116
|
+
const [isCapturing, setIsCapturing] = useState(false);
|
|
117
|
+
const [isRecording, setIsRecording] = useState(false);
|
|
118
|
+
const [recordingTime, setRecordingTime] = useState(0);
|
|
119
|
+
const [mode, setMode] = useState<CameraMode>('picture');
|
|
120
|
+
const [facing, setFacing] = useState<CameraType>(initialFacing);
|
|
121
|
+
const [showGrid, setShowGrid] = useState(false);
|
|
122
|
+
const [timerSeconds, setTimerSeconds] = useState(0);
|
|
123
|
+
const [selectedTimer, setSelectedTimer] = useState<number>(0);
|
|
124
|
+
const [isTimerActive, setIsTimerActive] = useState(false);
|
|
125
|
+
const [soundEnabled, setSoundEnabled] = useState(true);
|
|
126
|
+
const [showSettings, setShowSettings] = useState(false);
|
|
127
|
+
const [aspectRatioIndex, setAspectRatioIndex] = useState(1);
|
|
128
|
+
const [zoomControls, setZoomControls] = useState(false);
|
|
129
|
+
const [availableZoomFactors] = useState<number[]>([
|
|
130
|
+
0, 0.25, 0.5, 0.75, 1.0,
|
|
131
|
+
]);
|
|
132
|
+
const [currentZoomIndex, setCurrentZoomIndex] = useState(0);
|
|
133
|
+
const [zoomFactorText, setZoomFactorText] = useState('1×');
|
|
134
|
+
const [zoomProgress, setZoomProgress] = useState(0);
|
|
135
|
+
|
|
136
|
+
const backgroundColor = useColor('background');
|
|
137
|
+
const textColor = useColor('text');
|
|
138
|
+
const primaryColor = useColor('primary');
|
|
139
|
+
const cardColor = useColor('card');
|
|
140
|
+
const destructiveColor = useColor('destructive');
|
|
141
|
+
|
|
142
|
+
useAnimatedReaction(
|
|
143
|
+
() => zoom.value,
|
|
144
|
+
(currentValue) => {
|
|
145
|
+
const text =
|
|
146
|
+
currentValue === 0 ? '1×' : `${(1 + currentValue * 4).toFixed(1)}×`; // Adjusted to .toFixed(1) for smoother feedback
|
|
147
|
+
runOnJS(setZoomFactorText)(text);
|
|
148
|
+
runOnJS(setZoomProgress)(currentValue * 100);
|
|
149
|
+
},
|
|
150
|
+
[]
|
|
151
|
+
);
|
|
152
|
+
|
|
153
|
+
const animatedContainerStyle = useAnimatedStyle(() => ({
|
|
154
|
+
opacity: fadeAnim.value,
|
|
155
|
+
}));
|
|
156
|
+
const animatedSettingsStyle = useAnimatedStyle(() => ({
|
|
157
|
+
opacity: settingsAnim.value,
|
|
158
|
+
transform: [
|
|
159
|
+
{ translateY: interpolate(settingsAnim.value, [0, 1], [-100, 0]) },
|
|
160
|
+
],
|
|
161
|
+
}));
|
|
162
|
+
const animatedZoomTextStyle = useAnimatedStyle(() => ({
|
|
163
|
+
opacity: zoomTextAnim.value,
|
|
164
|
+
}));
|
|
165
|
+
const animatedZoomControlsStyle = useAnimatedStyle(() => ({
|
|
166
|
+
opacity: zoomControlsAnim.value,
|
|
167
|
+
}));
|
|
168
|
+
const animatedCameraProps = useAnimatedProps(() => ({ zoom: zoom.value }));
|
|
169
|
+
|
|
170
|
+
const pinchGesture = Gesture.Pinch()
|
|
171
|
+
.onStart(() => {
|
|
172
|
+
'worklet';
|
|
173
|
+
// Save the current zoom level when the pinch gesture begins
|
|
174
|
+
baseZoom.value = zoom.value;
|
|
175
|
+
})
|
|
176
|
+
.onUpdate((event) => {
|
|
177
|
+
'worklet';
|
|
178
|
+
// Calculate new zoom based on the starting zoom and the current scale
|
|
179
|
+
// The sensitivity factor (e.g., * 0.5) can be adjusted for feel
|
|
180
|
+
const newZoom = baseZoom.value + (event.scale - 1) * 0.5;
|
|
181
|
+
// Clamp the zoom value between 0 and 1
|
|
182
|
+
zoom.value = Math.min(Math.max(newZoom, 0), 1);
|
|
183
|
+
})
|
|
184
|
+
.onEnd(() => {
|
|
185
|
+
'worklet';
|
|
186
|
+
// We no longer need to set baseZoom here.
|
|
187
|
+
// Just animate the indicator.
|
|
188
|
+
zoomTextAnim.value = withSequence(
|
|
189
|
+
withTiming(1, { duration: 200 }),
|
|
190
|
+
withDelay(1000, withTiming(0, { duration: 200 }))
|
|
191
|
+
);
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
const doubleTapGesture = Gesture.Tap()
|
|
195
|
+
.numberOfTaps(2)
|
|
196
|
+
.onEnd(() => {
|
|
197
|
+
'worklet';
|
|
198
|
+
const newZoom = zoom.value > 0 ? 0 : 0.5;
|
|
199
|
+
zoom.value = withTiming(newZoom);
|
|
200
|
+
baseZoom.value = newZoom; // Keep this for double tap, as it's an instant change
|
|
201
|
+
zoomTextAnim.value = withSequence(
|
|
202
|
+
withTiming(1, { duration: 200 }),
|
|
203
|
+
withDelay(1000, withTiming(0, { duration: 200 }))
|
|
204
|
+
);
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
const composedGestures = Gesture.Simultaneous(
|
|
208
|
+
pinchGesture,
|
|
209
|
+
doubleTapGesture
|
|
210
|
+
);
|
|
211
|
+
|
|
212
|
+
useImperativeHandle(ref, () => ({
|
|
213
|
+
switchCamera: toggleCameraFacing,
|
|
214
|
+
toggleTorch,
|
|
215
|
+
takePicture: handleCapture,
|
|
216
|
+
startRecording: handleStartRecording,
|
|
217
|
+
stopRecording: handleStopRecording,
|
|
218
|
+
}));
|
|
219
|
+
|
|
220
|
+
useEffect(() => {
|
|
221
|
+
fadeAnim.value = withTiming(1, { duration: 300 });
|
|
222
|
+
}, [fadeAnim]);
|
|
223
|
+
|
|
224
|
+
useEffect(() => {
|
|
225
|
+
zoomControlsAnim.value = withTiming(zoomControls ? 1 : 0, {
|
|
226
|
+
duration: 300,
|
|
227
|
+
});
|
|
228
|
+
}, [zoomControls, zoomControlsAnim]);
|
|
229
|
+
|
|
230
|
+
useEffect(() => {
|
|
231
|
+
return () => {
|
|
232
|
+
if (recordingInterval.current) clearInterval(recordingInterval.current);
|
|
233
|
+
if (timerInterval.current) clearInterval(timerInterval.current);
|
|
234
|
+
};
|
|
235
|
+
}, []);
|
|
236
|
+
|
|
237
|
+
const getCameraHeight = () => {
|
|
238
|
+
const currentAspectRatio = aspectRatios[aspectRatioIndex];
|
|
239
|
+
switch (currentAspectRatio) {
|
|
240
|
+
case '16:9':
|
|
241
|
+
return (screenWidth * 16) / 9;
|
|
242
|
+
case '1:1':
|
|
243
|
+
return screenWidth;
|
|
244
|
+
case '4:3':
|
|
245
|
+
default:
|
|
246
|
+
return (screenWidth * 4) / 3;
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
const startTimer = (seconds: number) => {
|
|
251
|
+
setTimerSeconds(seconds);
|
|
252
|
+
setIsTimerActive(true);
|
|
253
|
+
timerInterval.current = setInterval(() => {
|
|
254
|
+
setTimerSeconds((prev) => {
|
|
255
|
+
if (prev <= 1) {
|
|
256
|
+
setIsTimerActive(false);
|
|
257
|
+
if (timerInterval.current) clearInterval(timerInterval.current);
|
|
258
|
+
setTimeout(() => {
|
|
259
|
+
if (mode === 'picture') handleActualCapture();
|
|
260
|
+
else handleStartRecording();
|
|
261
|
+
}, 100);
|
|
262
|
+
return 0;
|
|
263
|
+
}
|
|
264
|
+
return prev - 1;
|
|
265
|
+
});
|
|
266
|
+
}, 1000);
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
const cancelTimer = () => {
|
|
270
|
+
if (timerInterval.current) clearInterval(timerInterval.current);
|
|
271
|
+
setIsTimerActive(false);
|
|
272
|
+
setTimerSeconds(0);
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
const handleActualCapture = async () => {
|
|
276
|
+
if (!cameraRef.current || isCapturing || isRecording) return;
|
|
277
|
+
try {
|
|
278
|
+
setIsCapturing(true);
|
|
279
|
+
const picture = await cameraRef.current.takePictureAsync({
|
|
280
|
+
quality: 1,
|
|
281
|
+
base64: false,
|
|
282
|
+
exif: true,
|
|
283
|
+
});
|
|
284
|
+
if (picture && onCapture)
|
|
285
|
+
onCapture({
|
|
286
|
+
type: 'picture',
|
|
287
|
+
uri: picture.uri,
|
|
288
|
+
cameraHeight: getCameraHeight(),
|
|
289
|
+
});
|
|
290
|
+
} catch (error) {
|
|
291
|
+
console.error('Error taking picture:', error);
|
|
292
|
+
Alert.alert('Error', 'Failed to take picture');
|
|
293
|
+
} finally {
|
|
294
|
+
setIsCapturing(false);
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
const handleStartRecording = async () => {
|
|
299
|
+
if (!cameraRef.current || isRecording || isCapturing) return;
|
|
300
|
+
try {
|
|
301
|
+
setIsRecording(true);
|
|
302
|
+
setRecordingTime(0);
|
|
303
|
+
recordingInterval.current = setInterval(() => {
|
|
304
|
+
setRecordingTime((prev) => {
|
|
305
|
+
if (prev >= maxVideoDuration) {
|
|
306
|
+
handleStopRecording();
|
|
307
|
+
return prev;
|
|
308
|
+
}
|
|
309
|
+
return prev + 1;
|
|
310
|
+
});
|
|
311
|
+
}, 1000);
|
|
312
|
+
const video = await cameraRef.current.recordAsync({
|
|
313
|
+
maxDuration: maxVideoDuration,
|
|
314
|
+
});
|
|
315
|
+
if (video && onVideoCapture)
|
|
316
|
+
onVideoCapture({
|
|
317
|
+
type: 'video',
|
|
318
|
+
uri: video.uri,
|
|
319
|
+
cameraHeight: getCameraHeight(),
|
|
320
|
+
});
|
|
321
|
+
} catch (error) {
|
|
322
|
+
console.error('Error starting recording:', error);
|
|
323
|
+
Alert.alert('Error', 'Failed to start recording');
|
|
324
|
+
setIsRecording(false);
|
|
325
|
+
}
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
const handleCapture = async () => {
|
|
329
|
+
if (isCapturing || isRecording || isTimerActive) return;
|
|
330
|
+
if (selectedTimer > 0) startTimer(selectedTimer);
|
|
331
|
+
else if (mode === 'picture') handleActualCapture();
|
|
332
|
+
else handleStartRecording();
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
const handleStopRecording = async () => {
|
|
336
|
+
if (!cameraRef.current || !isRecording) return;
|
|
337
|
+
try {
|
|
338
|
+
await cameraRef.current.stopRecording();
|
|
339
|
+
if (recordingInterval.current) clearInterval(recordingInterval.current);
|
|
340
|
+
} catch (error) {
|
|
341
|
+
console.error('Error stopping recording:', error);
|
|
342
|
+
} finally {
|
|
343
|
+
setIsRecording(false);
|
|
344
|
+
setRecordingTime(0);
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
const toggleCameraFacing = () =>
|
|
349
|
+
setFacing((c) => (c === 'back' ? 'front' : 'back'));
|
|
350
|
+
const toggleTorch = () => setTorch((c) => !c);
|
|
351
|
+
const toggleMode = () => {
|
|
352
|
+
if (!isRecording && !isCapturing)
|
|
353
|
+
setMode((c) => (c === 'picture' ? 'video' : 'picture'));
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
const toggleSettings = () => {
|
|
357
|
+
setShowSettings((prev) => {
|
|
358
|
+
const newValue = !prev;
|
|
359
|
+
settingsAnim.value = withTiming(newValue ? 1 : 0, { duration: 300 });
|
|
360
|
+
return newValue;
|
|
361
|
+
});
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
const handleZoomSliderChange = (value: number) => {
|
|
365
|
+
const newZoom = value / 100;
|
|
366
|
+
zoom.value = newZoom;
|
|
367
|
+
baseZoom.value = newZoom;
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
const formatTime = (seconds: number) => {
|
|
371
|
+
const mins = Math.floor(seconds / 60);
|
|
372
|
+
const secs = seconds % 60;
|
|
373
|
+
return `${mins.toString().padStart(2, '0')}:${secs
|
|
374
|
+
.toString()
|
|
375
|
+
.padStart(2, '0')}`;
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
const getTimerButtonText = () =>
|
|
379
|
+
selectedTimer === 0 ? 'OFF' : `${selectedTimer}s`;
|
|
380
|
+
|
|
381
|
+
const handleZoomButtonTap = () => {
|
|
382
|
+
const nextIndex = (currentZoomIndex + 1) % availableZoomFactors.length;
|
|
383
|
+
const nextZoom = availableZoomFactors[nextIndex];
|
|
384
|
+
setCurrentZoomIndex(nextIndex);
|
|
385
|
+
zoom.value = withTiming(nextZoom);
|
|
386
|
+
baseZoom.value = nextZoom;
|
|
387
|
+
zoomTextAnim.value = withSequence(
|
|
388
|
+
withTiming(1, { duration: 200 }),
|
|
389
|
+
withDelay(1000, withTiming(0, { duration: 200 }))
|
|
390
|
+
);
|
|
391
|
+
};
|
|
392
|
+
|
|
393
|
+
if (!permission) {
|
|
394
|
+
return (
|
|
395
|
+
<View style={[styles.container, { backgroundColor }, style]}>
|
|
396
|
+
<ActivityIndicator size='large' color={primaryColor} />
|
|
397
|
+
<Text style={[styles.loadingText, { color: textColor }]}>
|
|
398
|
+
Loading camera...
|
|
399
|
+
</Text>
|
|
400
|
+
</View>
|
|
401
|
+
);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
if (!permission.granted) {
|
|
405
|
+
return (
|
|
406
|
+
<View
|
|
407
|
+
style={[styles.permissionContainer, { backgroundColor: cardColor }]}
|
|
408
|
+
>
|
|
409
|
+
<CameraIcon
|
|
410
|
+
size={36}
|
|
411
|
+
color={textColor}
|
|
412
|
+
style={styles.permissionIcon}
|
|
413
|
+
/>
|
|
414
|
+
<Text variant='title' style={{ textAlign: 'center' }}>
|
|
415
|
+
Camera Access Required
|
|
416
|
+
</Text>
|
|
417
|
+
<Text variant='body' style={{ textAlign: 'center' }}>
|
|
418
|
+
We need access to your camera to take pictures and videos
|
|
419
|
+
</Text>
|
|
420
|
+
<View style={{ width: '100%' }}>
|
|
421
|
+
<Button onPress={requestPermission} style={{ width: '100%' }}>
|
|
422
|
+
Grant Permission
|
|
423
|
+
</Button>
|
|
424
|
+
</View>
|
|
425
|
+
</View>
|
|
426
|
+
);
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
return (
|
|
430
|
+
<Animated.View
|
|
431
|
+
style={[
|
|
432
|
+
styles.container,
|
|
433
|
+
{ backgroundColor },
|
|
434
|
+
style,
|
|
435
|
+
animatedContainerStyle,
|
|
436
|
+
]}
|
|
437
|
+
>
|
|
438
|
+
<View style={[styles.cameraContainer, { height: getCameraHeight() }]}>
|
|
439
|
+
<GestureDetector gesture={composedGestures}>
|
|
440
|
+
<AnimatedCameraView
|
|
441
|
+
ref={cameraRef}
|
|
442
|
+
mode={mode}
|
|
443
|
+
style={styles.camera}
|
|
444
|
+
facing={facing}
|
|
445
|
+
enableTorch={torch}
|
|
446
|
+
animateShutter={true}
|
|
447
|
+
mirror={mode === 'picture' && facing === 'front'}
|
|
448
|
+
ratio={aspectRatios[aspectRatioIndex]}
|
|
449
|
+
animatedProps={animatedCameraProps}
|
|
450
|
+
>
|
|
451
|
+
{/* Children of CameraView are rendered as an overlay */}
|
|
452
|
+
{showGrid && (
|
|
453
|
+
<View style={styles.gridOverlay}>
|
|
454
|
+
<View style={styles.gridLines}>
|
|
455
|
+
<View style={[styles.gridLine, styles.verticalLine1]} />
|
|
456
|
+
<View style={[styles.gridLine, styles.verticalLine2]} />
|
|
457
|
+
<View style={[styles.gridLine, styles.horizontalLine1]} />
|
|
458
|
+
<View style={[styles.gridLine, styles.horizontalLine2]} />
|
|
459
|
+
</View>
|
|
460
|
+
</View>
|
|
461
|
+
)}
|
|
462
|
+
<Animated.View
|
|
463
|
+
style={[styles.zoomIndicator, animatedZoomTextStyle]}
|
|
464
|
+
pointerEvents='none'
|
|
465
|
+
>
|
|
466
|
+
<Text style={styles.zoomText}>{zoomFactorText}</Text>
|
|
467
|
+
</Animated.View>
|
|
468
|
+
{isTimerActive && (
|
|
469
|
+
<TouchableOpacity
|
|
470
|
+
style={styles.timerOverlay}
|
|
471
|
+
onPress={cancelTimer}
|
|
472
|
+
activeOpacity={1}
|
|
473
|
+
>
|
|
474
|
+
<Text style={styles.timerText}>{timerSeconds}</Text>
|
|
475
|
+
<View style={styles.cancelTimerButton}>
|
|
476
|
+
<X size={20} color='white' />
|
|
477
|
+
</View>
|
|
478
|
+
<Text style={styles.tapToCancelText}>Tap to cancel</Text>
|
|
479
|
+
</TouchableOpacity>
|
|
480
|
+
)}
|
|
481
|
+
{isRecording && (
|
|
482
|
+
<View style={styles.recordingIndicator}>
|
|
483
|
+
<View style={styles.recordingDot} />
|
|
484
|
+
<Text style={styles.recordingText}>
|
|
485
|
+
REC {formatTime(recordingTime)}
|
|
486
|
+
</Text>
|
|
487
|
+
</View>
|
|
488
|
+
)}
|
|
489
|
+
{showControls && (
|
|
490
|
+
<>
|
|
491
|
+
<View style={styles.topControls}>
|
|
492
|
+
<View style={styles.topLeft}>
|
|
493
|
+
{onClose && (
|
|
494
|
+
<TouchableOpacity
|
|
495
|
+
style={[
|
|
496
|
+
styles.controlButton,
|
|
497
|
+
{ backgroundColor: cardColor },
|
|
498
|
+
]}
|
|
499
|
+
onPress={onClose}
|
|
500
|
+
activeOpacity={0.7}
|
|
501
|
+
>
|
|
502
|
+
<X size={24} color={textColor} />
|
|
503
|
+
</TouchableOpacity>
|
|
504
|
+
)}
|
|
505
|
+
</View>
|
|
506
|
+
<View style={styles.topCenter}>
|
|
507
|
+
<Text style={[styles.modeText, { color: textColor }]}>
|
|
508
|
+
{mode.toUpperCase()}
|
|
509
|
+
</Text>
|
|
510
|
+
</View>
|
|
511
|
+
<View style={styles.topRight}>
|
|
512
|
+
<TouchableOpacity
|
|
513
|
+
style={[
|
|
514
|
+
styles.controlButton,
|
|
515
|
+
{ backgroundColor: cardColor },
|
|
516
|
+
]}
|
|
517
|
+
onPress={toggleSettings}
|
|
518
|
+
activeOpacity={0.7}
|
|
519
|
+
>
|
|
520
|
+
<Settings size={24} color={textColor} />
|
|
521
|
+
</TouchableOpacity>
|
|
522
|
+
</View>
|
|
523
|
+
</View>
|
|
524
|
+
<Animated.View
|
|
525
|
+
style={[
|
|
526
|
+
styles.settingsPanel,
|
|
527
|
+
{ backgroundColor: cardColor },
|
|
528
|
+
animatedSettingsStyle,
|
|
529
|
+
]}
|
|
530
|
+
pointerEvents={showSettings ? 'auto' : 'none'}
|
|
531
|
+
>
|
|
532
|
+
<View style={styles.settingsRow}>
|
|
533
|
+
<TouchableOpacity
|
|
534
|
+
style={[
|
|
535
|
+
styles.settingButton,
|
|
536
|
+
showGrid && { backgroundColor: primaryColor },
|
|
537
|
+
]}
|
|
538
|
+
onPress={() => setShowGrid(!showGrid)}
|
|
539
|
+
>
|
|
540
|
+
<Grid3X3
|
|
541
|
+
size={20}
|
|
542
|
+
color={showGrid ? cardColor : textColor}
|
|
543
|
+
/>
|
|
544
|
+
</TouchableOpacity>
|
|
545
|
+
<TouchableOpacity
|
|
546
|
+
style={[
|
|
547
|
+
styles.settingButton,
|
|
548
|
+
{
|
|
549
|
+
backgroundColor: soundEnabled
|
|
550
|
+
? primaryColor
|
|
551
|
+
: cardColor,
|
|
552
|
+
},
|
|
553
|
+
]}
|
|
554
|
+
onPress={() => setSoundEnabled(!soundEnabled)}
|
|
555
|
+
>
|
|
556
|
+
{soundEnabled ? (
|
|
557
|
+
<Volume2 size={20} color={cardColor} />
|
|
558
|
+
) : (
|
|
559
|
+
<VolumeX size={20} color={textColor} />
|
|
560
|
+
)}
|
|
561
|
+
</TouchableOpacity>
|
|
562
|
+
<TouchableOpacity
|
|
563
|
+
style={[
|
|
564
|
+
styles.settingButton,
|
|
565
|
+
{ backgroundColor: cardColor },
|
|
566
|
+
]}
|
|
567
|
+
onPress={() => setAspectRatioIndex((p) => (p + 1) % 3)}
|
|
568
|
+
>
|
|
569
|
+
<Text
|
|
570
|
+
style={[styles.settingText, { color: textColor }]}
|
|
571
|
+
>
|
|
572
|
+
{aspectRatios[aspectRatioIndex]}
|
|
573
|
+
</Text>
|
|
574
|
+
</TouchableOpacity>
|
|
575
|
+
<TouchableOpacity
|
|
576
|
+
style={[
|
|
577
|
+
styles.settingButton,
|
|
578
|
+
{
|
|
579
|
+
backgroundColor:
|
|
580
|
+
selectedTimer > 0 ? primaryColor : cardColor,
|
|
581
|
+
},
|
|
582
|
+
]}
|
|
583
|
+
onPress={() => {
|
|
584
|
+
const ci = timerOptions.indexOf(selectedTimer);
|
|
585
|
+
const ni = (ci + 1) % timerOptions.length;
|
|
586
|
+
setSelectedTimer(timerOptions[ni]);
|
|
587
|
+
}}
|
|
588
|
+
>
|
|
589
|
+
<Timer
|
|
590
|
+
size={16}
|
|
591
|
+
color={selectedTimer > 0 ? cardColor : textColor}
|
|
592
|
+
/>
|
|
593
|
+
<Text
|
|
594
|
+
style={[
|
|
595
|
+
styles.timerSettingText,
|
|
596
|
+
{
|
|
597
|
+
color: selectedTimer > 0 ? cardColor : textColor,
|
|
598
|
+
},
|
|
599
|
+
]}
|
|
600
|
+
>
|
|
601
|
+
{getTimerButtonText()}
|
|
602
|
+
</Text>
|
|
603
|
+
</TouchableOpacity>
|
|
604
|
+
</View>
|
|
605
|
+
</Animated.View>
|
|
606
|
+
<View style={styles.sideControls}>
|
|
607
|
+
{enableTorch && facing === 'back' && (
|
|
608
|
+
<TouchableOpacity
|
|
609
|
+
style={[
|
|
610
|
+
styles.controlButton,
|
|
611
|
+
{
|
|
612
|
+
backgroundColor: torch ? primaryColor : cardColor,
|
|
613
|
+
},
|
|
614
|
+
]}
|
|
615
|
+
onPress={toggleTorch}
|
|
616
|
+
activeOpacity={0.7}
|
|
617
|
+
>
|
|
618
|
+
{torch ? (
|
|
619
|
+
<Zap size={24} color={cardColor} />
|
|
620
|
+
) : (
|
|
621
|
+
<ZapOff size={24} color={textColor} />
|
|
622
|
+
)}
|
|
623
|
+
</TouchableOpacity>
|
|
624
|
+
)}
|
|
625
|
+
<TouchableOpacity
|
|
626
|
+
style={[
|
|
627
|
+
styles.controlButton,
|
|
628
|
+
{ backgroundColor: cardColor },
|
|
629
|
+
]}
|
|
630
|
+
onPress={toggleCameraFacing}
|
|
631
|
+
activeOpacity={0.7}
|
|
632
|
+
>
|
|
633
|
+
<SwitchCamera size={24} color={textColor} />
|
|
634
|
+
</TouchableOpacity>
|
|
635
|
+
<TouchableOpacity
|
|
636
|
+
style={[
|
|
637
|
+
styles.controlButton,
|
|
638
|
+
{
|
|
639
|
+
backgroundColor: zoomControls
|
|
640
|
+
? primaryColor
|
|
641
|
+
: cardColor,
|
|
642
|
+
},
|
|
643
|
+
]}
|
|
644
|
+
onPress={handleZoomButtonTap}
|
|
645
|
+
activeOpacity={0.7}
|
|
646
|
+
>
|
|
647
|
+
<Text
|
|
648
|
+
style={{
|
|
649
|
+
fontWeight: '600',
|
|
650
|
+
color: zoomControls ? cardColor : textColor,
|
|
651
|
+
}}
|
|
652
|
+
>
|
|
653
|
+
{zoomFactorText}
|
|
654
|
+
</Text>
|
|
655
|
+
</TouchableOpacity>
|
|
656
|
+
{enableVideo && (
|
|
657
|
+
<TouchableOpacity
|
|
658
|
+
style={[
|
|
659
|
+
styles.controlButton,
|
|
660
|
+
{ backgroundColor: cardColor },
|
|
661
|
+
]}
|
|
662
|
+
onPress={toggleMode}
|
|
663
|
+
disabled={isRecording || isCapturing}
|
|
664
|
+
activeOpacity={0.7}
|
|
665
|
+
>
|
|
666
|
+
{mode === 'picture' ? (
|
|
667
|
+
<Video size={24} color={textColor} />
|
|
668
|
+
) : (
|
|
669
|
+
<CameraIcon size={24} color={textColor} />
|
|
670
|
+
)}
|
|
671
|
+
</TouchableOpacity>
|
|
672
|
+
)}
|
|
673
|
+
</View>
|
|
674
|
+
<View style={styles.bottomControls}>
|
|
675
|
+
<TouchableOpacity
|
|
676
|
+
style={[
|
|
677
|
+
styles.captureButton,
|
|
678
|
+
{
|
|
679
|
+
backgroundColor:
|
|
680
|
+
mode === 'video' && isRecording
|
|
681
|
+
? destructiveColor
|
|
682
|
+
: 'white',
|
|
683
|
+
borderColor:
|
|
684
|
+
mode === 'video' && isRecording
|
|
685
|
+
? destructiveColor
|
|
686
|
+
: primaryColor,
|
|
687
|
+
},
|
|
688
|
+
(isCapturing || isTimerActive) &&
|
|
689
|
+
styles.capturingButton,
|
|
690
|
+
]}
|
|
691
|
+
onPress={
|
|
692
|
+
mode === 'picture'
|
|
693
|
+
? handleCapture
|
|
694
|
+
: isRecording
|
|
695
|
+
? handleStopRecording
|
|
696
|
+
: handleCapture
|
|
697
|
+
}
|
|
698
|
+
disabled={isCapturing || isTimerActive}
|
|
699
|
+
activeOpacity={0.8}
|
|
700
|
+
>
|
|
701
|
+
{isCapturing ? (
|
|
702
|
+
<ActivityIndicator size='small' color={primaryColor} />
|
|
703
|
+
) : (
|
|
704
|
+
<View
|
|
705
|
+
style={[
|
|
706
|
+
styles.captureInner,
|
|
707
|
+
{
|
|
708
|
+
backgroundColor:
|
|
709
|
+
mode === 'video' && isRecording
|
|
710
|
+
? 'white'
|
|
711
|
+
: primaryColor,
|
|
712
|
+
borderRadius:
|
|
713
|
+
mode === 'video' && isRecording ? 4 : 30,
|
|
714
|
+
},
|
|
715
|
+
]}
|
|
716
|
+
/>
|
|
717
|
+
)}
|
|
718
|
+
</TouchableOpacity>
|
|
719
|
+
</View>
|
|
720
|
+
</>
|
|
721
|
+
)}
|
|
722
|
+
</AnimatedCameraView>
|
|
723
|
+
</GestureDetector>
|
|
724
|
+
</View>
|
|
725
|
+
</Animated.View>
|
|
726
|
+
);
|
|
727
|
+
}
|
|
728
|
+
);
|
|
729
|
+
|
|
730
|
+
Camera.displayName = 'Camera';
|
|
731
|
+
|
|
732
|
+
const styles = StyleSheet.create({
|
|
733
|
+
container: {
|
|
734
|
+
flex: 1,
|
|
735
|
+
justifyContent: 'center',
|
|
736
|
+
alignItems: 'center',
|
|
737
|
+
},
|
|
738
|
+
cameraContainer: {
|
|
739
|
+
width: screenWidth,
|
|
740
|
+
borderRadius: BORDER_RADIUS,
|
|
741
|
+
overflow: 'hidden',
|
|
742
|
+
},
|
|
743
|
+
camera: {
|
|
744
|
+
flex: 1,
|
|
745
|
+
},
|
|
746
|
+
topControls: {
|
|
747
|
+
position: 'absolute',
|
|
748
|
+
top: 20,
|
|
749
|
+
left: 20,
|
|
750
|
+
right: 20,
|
|
751
|
+
flexDirection: 'row',
|
|
752
|
+
justifyContent: 'space-between',
|
|
753
|
+
alignItems: 'center',
|
|
754
|
+
zIndex: 1,
|
|
755
|
+
},
|
|
756
|
+
topLeft: {
|
|
757
|
+
flex: 1,
|
|
758
|
+
alignItems: 'flex-start',
|
|
759
|
+
},
|
|
760
|
+
topCenter: {
|
|
761
|
+
flex: 1,
|
|
762
|
+
alignItems: 'center',
|
|
763
|
+
},
|
|
764
|
+
topRight: {
|
|
765
|
+
flex: 1,
|
|
766
|
+
alignItems: 'flex-end',
|
|
767
|
+
},
|
|
768
|
+
modeText: {
|
|
769
|
+
fontSize: 16,
|
|
770
|
+
fontWeight: 'bold',
|
|
771
|
+
textShadowColor: 'rgba(0, 0, 0, 0.5)',
|
|
772
|
+
textShadowOffset: { width: 1, height: 1 },
|
|
773
|
+
textShadowRadius: 2,
|
|
774
|
+
},
|
|
775
|
+
settingsPanel: {
|
|
776
|
+
position: 'absolute',
|
|
777
|
+
top: 76,
|
|
778
|
+
left: 20,
|
|
779
|
+
right: 20,
|
|
780
|
+
borderRadius: BORDER_RADIUS,
|
|
781
|
+
padding: 16,
|
|
782
|
+
zIndex: 2,
|
|
783
|
+
},
|
|
784
|
+
settingsRow: {
|
|
785
|
+
flexDirection: 'row',
|
|
786
|
+
justifyContent: 'space-around',
|
|
787
|
+
alignItems: 'center',
|
|
788
|
+
},
|
|
789
|
+
settingButton: {
|
|
790
|
+
width: 48,
|
|
791
|
+
height: 48,
|
|
792
|
+
borderRadius: 24,
|
|
793
|
+
justifyContent: 'center',
|
|
794
|
+
alignItems: 'center',
|
|
795
|
+
},
|
|
796
|
+
settingText: {
|
|
797
|
+
fontSize: 12,
|
|
798
|
+
fontWeight: 'bold',
|
|
799
|
+
},
|
|
800
|
+
timerSettingText: {
|
|
801
|
+
fontSize: 10,
|
|
802
|
+
fontWeight: 'bold',
|
|
803
|
+
marginTop: 2,
|
|
804
|
+
},
|
|
805
|
+
sideControls: {
|
|
806
|
+
position: 'absolute',
|
|
807
|
+
right: 20,
|
|
808
|
+
top: '50%',
|
|
809
|
+
transform: [{ translateY: -120 }],
|
|
810
|
+
gap: 16,
|
|
811
|
+
zIndex: 1,
|
|
812
|
+
},
|
|
813
|
+
bottomControls: {
|
|
814
|
+
position: 'absolute',
|
|
815
|
+
bottom: 40,
|
|
816
|
+
left: 20,
|
|
817
|
+
right: 20,
|
|
818
|
+
flexDirection: 'row',
|
|
819
|
+
justifyContent: 'center',
|
|
820
|
+
alignItems: 'center',
|
|
821
|
+
zIndex: 1,
|
|
822
|
+
},
|
|
823
|
+
controlButton: {
|
|
824
|
+
width: 48,
|
|
825
|
+
height: 48,
|
|
826
|
+
borderRadius: 24,
|
|
827
|
+
justifyContent: 'center',
|
|
828
|
+
alignItems: 'center',
|
|
829
|
+
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
830
|
+
},
|
|
831
|
+
captureButton: {
|
|
832
|
+
width: 80,
|
|
833
|
+
height: 80,
|
|
834
|
+
borderRadius: 40,
|
|
835
|
+
borderWidth: 4,
|
|
836
|
+
justifyContent: 'center',
|
|
837
|
+
alignItems: 'center',
|
|
838
|
+
backgroundColor: 'white',
|
|
839
|
+
},
|
|
840
|
+
captureInner: {
|
|
841
|
+
width: 32,
|
|
842
|
+
height: 32,
|
|
843
|
+
borderRadius: 30,
|
|
844
|
+
},
|
|
845
|
+
capturingButton: {
|
|
846
|
+
transform: [{ scale: 0.9 }],
|
|
847
|
+
},
|
|
848
|
+
gridOverlay: {
|
|
849
|
+
position: 'absolute',
|
|
850
|
+
top: 0,
|
|
851
|
+
left: 0,
|
|
852
|
+
right: 0,
|
|
853
|
+
bottom: 0,
|
|
854
|
+
zIndex: 1,
|
|
855
|
+
},
|
|
856
|
+
gridLines: {
|
|
857
|
+
flex: 1,
|
|
858
|
+
position: 'relative',
|
|
859
|
+
},
|
|
860
|
+
gridLine: {
|
|
861
|
+
position: 'absolute',
|
|
862
|
+
backgroundColor: 'rgba(255, 255, 255, 0.3)',
|
|
863
|
+
},
|
|
864
|
+
verticalLine1: {
|
|
865
|
+
left: '33.33%',
|
|
866
|
+
top: 0,
|
|
867
|
+
bottom: 0,
|
|
868
|
+
width: 1,
|
|
869
|
+
},
|
|
870
|
+
verticalLine2: {
|
|
871
|
+
left: '66.66%',
|
|
872
|
+
top: 0,
|
|
873
|
+
bottom: 0,
|
|
874
|
+
width: 1,
|
|
875
|
+
},
|
|
876
|
+
horizontalLine1: {
|
|
877
|
+
top: '33.33%',
|
|
878
|
+
left: 0,
|
|
879
|
+
right: 0,
|
|
880
|
+
height: 1,
|
|
881
|
+
},
|
|
882
|
+
horizontalLine2: {
|
|
883
|
+
top: '66.66%',
|
|
884
|
+
left: 0,
|
|
885
|
+
right: 0,
|
|
886
|
+
height: 1,
|
|
887
|
+
},
|
|
888
|
+
zoomIndicator: {
|
|
889
|
+
position: 'absolute',
|
|
890
|
+
top: '45%',
|
|
891
|
+
alignSelf: 'center',
|
|
892
|
+
backgroundColor: 'rgba(0, 0, 0, 0.7)',
|
|
893
|
+
paddingHorizontal: 16,
|
|
894
|
+
paddingVertical: 8,
|
|
895
|
+
borderRadius: 20,
|
|
896
|
+
zIndex: 2,
|
|
897
|
+
},
|
|
898
|
+
zoomText: {
|
|
899
|
+
color: 'white',
|
|
900
|
+
fontSize: 16,
|
|
901
|
+
fontWeight: 'bold',
|
|
902
|
+
textAlign: 'center',
|
|
903
|
+
},
|
|
904
|
+
timerOverlay: {
|
|
905
|
+
position: 'absolute',
|
|
906
|
+
top: 0,
|
|
907
|
+
left: 0,
|
|
908
|
+
right: 0,
|
|
909
|
+
bottom: 0,
|
|
910
|
+
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
911
|
+
justifyContent: 'center',
|
|
912
|
+
alignItems: 'center',
|
|
913
|
+
zIndex: 3,
|
|
914
|
+
},
|
|
915
|
+
timerText: {
|
|
916
|
+
fontSize: 72,
|
|
917
|
+
fontWeight: 'bold',
|
|
918
|
+
color: 'white',
|
|
919
|
+
textAlign: 'center',
|
|
920
|
+
},
|
|
921
|
+
cancelTimerButton: {
|
|
922
|
+
position: 'absolute',
|
|
923
|
+
top: 60,
|
|
924
|
+
right: 20,
|
|
925
|
+
width: 48,
|
|
926
|
+
height: 48,
|
|
927
|
+
borderRadius: 24,
|
|
928
|
+
backgroundColor: 'rgba(0, 0, 0, 0.7)',
|
|
929
|
+
justifyContent: 'center',
|
|
930
|
+
alignItems: 'center',
|
|
931
|
+
},
|
|
932
|
+
tapToCancelText: {
|
|
933
|
+
position: 'absolute',
|
|
934
|
+
bottom: 100,
|
|
935
|
+
color: 'white',
|
|
936
|
+
fontSize: 16,
|
|
937
|
+
textAlign: 'center',
|
|
938
|
+
},
|
|
939
|
+
recordingIndicator: {
|
|
940
|
+
position: 'absolute',
|
|
941
|
+
top: 20,
|
|
942
|
+
left: 20,
|
|
943
|
+
flexDirection: 'row',
|
|
944
|
+
alignItems: 'center',
|
|
945
|
+
backgroundColor: 'rgba(255, 0, 0, 0.8)',
|
|
946
|
+
paddingHorizontal: 12,
|
|
947
|
+
paddingVertical: 6,
|
|
948
|
+
borderRadius: 16,
|
|
949
|
+
zIndex: 2,
|
|
950
|
+
},
|
|
951
|
+
recordingDot: {
|
|
952
|
+
width: 8,
|
|
953
|
+
height: 8,
|
|
954
|
+
borderRadius: 4,
|
|
955
|
+
backgroundColor: 'white',
|
|
956
|
+
marginRight: 8,
|
|
957
|
+
},
|
|
958
|
+
recordingText: {
|
|
959
|
+
color: 'white',
|
|
960
|
+
fontSize: 14,
|
|
961
|
+
fontWeight: 'bold',
|
|
962
|
+
},
|
|
963
|
+
permissionContainer: {
|
|
964
|
+
gap: 16,
|
|
965
|
+
padding: 32,
|
|
966
|
+
borderRadius: BORDER_RADIUS,
|
|
967
|
+
alignItems: 'center',
|
|
968
|
+
},
|
|
969
|
+
permissionIcon: {
|
|
970
|
+
marginBottom: 16,
|
|
971
|
+
},
|
|
972
|
+
loadingText: {
|
|
973
|
+
marginTop: 16,
|
|
974
|
+
fontSize: FONT_SIZE,
|
|
975
|
+
},
|
|
976
|
+
zoomControls: {
|
|
977
|
+
position: 'absolute',
|
|
978
|
+
right: 20,
|
|
979
|
+
top: '25%',
|
|
980
|
+
padding: 12,
|
|
981
|
+
borderRadius: 12,
|
|
982
|
+
justifyContent: 'center',
|
|
983
|
+
alignItems: 'center',
|
|
984
|
+
zIndex: 100,
|
|
985
|
+
},
|
|
986
|
+
sliderContainer: {
|
|
987
|
+
height: 200,
|
|
988
|
+
justifyContent: 'space-between',
|
|
989
|
+
alignItems: 'center',
|
|
990
|
+
paddingVertical: 10,
|
|
991
|
+
transform: [{ rotate: '-90deg' }],
|
|
992
|
+
},
|
|
993
|
+
zoomSlider: {
|
|
994
|
+
width: 160,
|
|
995
|
+
borderRadius: 999,
|
|
996
|
+
},
|
|
997
|
+
zoomValue: {
|
|
998
|
+
fontSize: 14,
|
|
999
|
+
fontWeight: 'bold',
|
|
1000
|
+
},
|
|
1001
|
+
currentZoomText: {
|
|
1002
|
+
marginTop: 12,
|
|
1003
|
+
fontSize: 12,
|
|
1004
|
+
fontWeight: '600',
|
|
1005
|
+
},
|
|
1006
|
+
});
|
|
1007
|
+
|
|
1008
|
+
export default Camera;
|