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,61 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* Generated `api` utility.
|
|
4
|
+
*
|
|
5
|
+
* THIS CODE IS AUTOMATICALLY GENERATED.
|
|
6
|
+
*
|
|
7
|
+
* To regenerate, run `npx convex dev`.
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import type * as auth from "../auth.js";
|
|
12
|
+
import type * as http from "../http.js";
|
|
13
|
+
import type * as passwordReset from "../passwordReset.js";
|
|
14
|
+
import type * as resendOTP from "../resendOTP.js";
|
|
15
|
+
import type * as resendPasswordOTP from "../resendPasswordOTP.js";
|
|
16
|
+
import type * as router from "../router.js";
|
|
17
|
+
import type * as users from "../users.js";
|
|
18
|
+
|
|
19
|
+
import type {
|
|
20
|
+
ApiFromModules,
|
|
21
|
+
FilterApi,
|
|
22
|
+
FunctionReference,
|
|
23
|
+
} from "convex/server";
|
|
24
|
+
|
|
25
|
+
declare const fullApi: ApiFromModules<{
|
|
26
|
+
auth: typeof auth;
|
|
27
|
+
http: typeof http;
|
|
28
|
+
passwordReset: typeof passwordReset;
|
|
29
|
+
resendOTP: typeof resendOTP;
|
|
30
|
+
resendPasswordOTP: typeof resendPasswordOTP;
|
|
31
|
+
router: typeof router;
|
|
32
|
+
users: typeof users;
|
|
33
|
+
}>;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* A utility for referencing Convex functions in your app's public API.
|
|
37
|
+
*
|
|
38
|
+
* Usage:
|
|
39
|
+
* ```js
|
|
40
|
+
* const myFunctionReference = api.myModule.myFunction;
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export declare const api: FilterApi<
|
|
44
|
+
typeof fullApi,
|
|
45
|
+
FunctionReference<any, "public">
|
|
46
|
+
>;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* A utility for referencing Convex functions in your app's internal API.
|
|
50
|
+
*
|
|
51
|
+
* Usage:
|
|
52
|
+
* ```js
|
|
53
|
+
* const myFunctionReference = internal.myModule.myFunction;
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
export declare const internal: FilterApi<
|
|
57
|
+
typeof fullApi,
|
|
58
|
+
FunctionReference<any, "internal">
|
|
59
|
+
>;
|
|
60
|
+
|
|
61
|
+
export declare const components: {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* Generated `api` utility.
|
|
4
|
+
*
|
|
5
|
+
* THIS CODE IS AUTOMATICALLY GENERATED.
|
|
6
|
+
*
|
|
7
|
+
* To regenerate, run `npx convex dev`.
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import { anyApi, componentsGeneric } from "convex/server";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* A utility for referencing Convex functions in your app's API.
|
|
15
|
+
*
|
|
16
|
+
* Usage:
|
|
17
|
+
* ```js
|
|
18
|
+
* const myFunctionReference = api.myModule.myFunction;
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export const api = anyApi;
|
|
22
|
+
export const internal = anyApi;
|
|
23
|
+
export const components = componentsGeneric();
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* Generated data model types.
|
|
4
|
+
*
|
|
5
|
+
* THIS CODE IS AUTOMATICALLY GENERATED.
|
|
6
|
+
*
|
|
7
|
+
* To regenerate, run `npx convex dev`.
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import type {
|
|
12
|
+
DataModelFromSchemaDefinition,
|
|
13
|
+
DocumentByName,
|
|
14
|
+
TableNamesInDataModel,
|
|
15
|
+
SystemTableNames,
|
|
16
|
+
} from "convex/server";
|
|
17
|
+
import type { GenericId } from "convex/values";
|
|
18
|
+
import schema from "../schema.js";
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The names of all of your Convex tables.
|
|
22
|
+
*/
|
|
23
|
+
export type TableNames = TableNamesInDataModel<DataModel>;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The type of a document stored in Convex.
|
|
27
|
+
*
|
|
28
|
+
* @typeParam TableName - A string literal type of the table name (like "users").
|
|
29
|
+
*/
|
|
30
|
+
export type Doc<TableName extends TableNames> = DocumentByName<
|
|
31
|
+
DataModel,
|
|
32
|
+
TableName
|
|
33
|
+
>;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* An identifier for a document in Convex.
|
|
37
|
+
*
|
|
38
|
+
* Convex documents are uniquely identified by their `Id`, which is accessible
|
|
39
|
+
* on the `_id` field. To learn more, see [Document IDs](https://docs.convex.dev/using/document-ids).
|
|
40
|
+
*
|
|
41
|
+
* Documents can be loaded using `db.get(id)` in query and mutation functions.
|
|
42
|
+
*
|
|
43
|
+
* IDs are just strings at runtime, but this type can be used to distinguish them from other
|
|
44
|
+
* strings when type checking.
|
|
45
|
+
*
|
|
46
|
+
* @typeParam TableName - A string literal type of the table name (like "users").
|
|
47
|
+
*/
|
|
48
|
+
export type Id<TableName extends TableNames | SystemTableNames> =
|
|
49
|
+
GenericId<TableName>;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* A type describing your Convex data model.
|
|
53
|
+
*
|
|
54
|
+
* This type includes information about what tables you have, the type of
|
|
55
|
+
* documents stored in those tables, and the indexes defined on them.
|
|
56
|
+
*
|
|
57
|
+
* This type is used to parameterize methods like `queryGeneric` and
|
|
58
|
+
* `mutationGeneric` to make them type-safe.
|
|
59
|
+
*/
|
|
60
|
+
export type DataModel = DataModelFromSchemaDefinition<typeof schema>;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* Generated utilities for implementing server-side Convex query and mutation functions.
|
|
4
|
+
*
|
|
5
|
+
* THIS CODE IS AUTOMATICALLY GENERATED.
|
|
6
|
+
*
|
|
7
|
+
* To regenerate, run `npx convex dev`.
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import {
|
|
12
|
+
ActionBuilder,
|
|
13
|
+
HttpActionBuilder,
|
|
14
|
+
MutationBuilder,
|
|
15
|
+
QueryBuilder,
|
|
16
|
+
GenericActionCtx,
|
|
17
|
+
GenericMutationCtx,
|
|
18
|
+
GenericQueryCtx,
|
|
19
|
+
GenericDatabaseReader,
|
|
20
|
+
GenericDatabaseWriter,
|
|
21
|
+
} from "convex/server";
|
|
22
|
+
import type { DataModel } from "./dataModel.js";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Define a query in this Convex app's public API.
|
|
26
|
+
*
|
|
27
|
+
* This function will be allowed to read your Convex database and will be accessible from the client.
|
|
28
|
+
*
|
|
29
|
+
* @param func - The query function. It receives a {@link QueryCtx} as its first argument.
|
|
30
|
+
* @returns The wrapped query. Include this as an `export` to name it and make it accessible.
|
|
31
|
+
*/
|
|
32
|
+
export declare const query: QueryBuilder<DataModel, "public">;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Define a query that is only accessible from other Convex functions (but not from the client).
|
|
36
|
+
*
|
|
37
|
+
* This function will be allowed to read from your Convex database. It will not be accessible from the client.
|
|
38
|
+
*
|
|
39
|
+
* @param func - The query function. It receives a {@link QueryCtx} as its first argument.
|
|
40
|
+
* @returns The wrapped query. Include this as an `export` to name it and make it accessible.
|
|
41
|
+
*/
|
|
42
|
+
export declare const internalQuery: QueryBuilder<DataModel, "internal">;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Define a mutation in this Convex app's public API.
|
|
46
|
+
*
|
|
47
|
+
* This function will be allowed to modify your Convex database and will be accessible from the client.
|
|
48
|
+
*
|
|
49
|
+
* @param func - The mutation function. It receives a {@link MutationCtx} as its first argument.
|
|
50
|
+
* @returns The wrapped mutation. Include this as an `export` to name it and make it accessible.
|
|
51
|
+
*/
|
|
52
|
+
export declare const mutation: MutationBuilder<DataModel, "public">;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Define a mutation that is only accessible from other Convex functions (but not from the client).
|
|
56
|
+
*
|
|
57
|
+
* This function will be allowed to modify your Convex database. It will not be accessible from the client.
|
|
58
|
+
*
|
|
59
|
+
* @param func - The mutation function. It receives a {@link MutationCtx} as its first argument.
|
|
60
|
+
* @returns The wrapped mutation. Include this as an `export` to name it and make it accessible.
|
|
61
|
+
*/
|
|
62
|
+
export declare const internalMutation: MutationBuilder<DataModel, "internal">;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Define an action in this Convex app's public API.
|
|
66
|
+
*
|
|
67
|
+
* An action is a function which can execute any JavaScript code, including non-deterministic
|
|
68
|
+
* code and code with side-effects, like calling third-party services.
|
|
69
|
+
* They can be run in Convex's JavaScript environment or in Node.js using the "use node" directive.
|
|
70
|
+
* They can interact with the database indirectly by calling queries and mutations using the {@link ActionCtx}.
|
|
71
|
+
*
|
|
72
|
+
* @param func - The action. It receives an {@link ActionCtx} as its first argument.
|
|
73
|
+
* @returns The wrapped action. Include this as an `export` to name it and make it accessible.
|
|
74
|
+
*/
|
|
75
|
+
export declare const action: ActionBuilder<DataModel, "public">;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Define an action that is only accessible from other Convex functions (but not from the client).
|
|
79
|
+
*
|
|
80
|
+
* @param func - The function. It receives an {@link ActionCtx} as its first argument.
|
|
81
|
+
* @returns The wrapped function. Include this as an `export` to name it and make it accessible.
|
|
82
|
+
*/
|
|
83
|
+
export declare const internalAction: ActionBuilder<DataModel, "internal">;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Define an HTTP action.
|
|
87
|
+
*
|
|
88
|
+
* The wrapped function will be used to respond to HTTP requests received
|
|
89
|
+
* by a Convex deployment if the requests matches the path and method where
|
|
90
|
+
* this action is routed. Be sure to route your httpAction in `convex/http.js`.
|
|
91
|
+
*
|
|
92
|
+
* @param func - The function. It receives an {@link ActionCtx} as its first argument
|
|
93
|
+
* and a Fetch API `Request` object as its second.
|
|
94
|
+
* @returns The wrapped function. Import this function from `convex/http.js` and route it to hook it up.
|
|
95
|
+
*/
|
|
96
|
+
export declare const httpAction: HttpActionBuilder;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* A set of services for use within Convex query functions.
|
|
100
|
+
*
|
|
101
|
+
* The query context is passed as the first argument to any Convex query
|
|
102
|
+
* function run on the server.
|
|
103
|
+
*
|
|
104
|
+
* This differs from the {@link MutationCtx} because all of the services are
|
|
105
|
+
* read-only.
|
|
106
|
+
*/
|
|
107
|
+
export type QueryCtx = GenericQueryCtx<DataModel>;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* A set of services for use within Convex mutation functions.
|
|
111
|
+
*
|
|
112
|
+
* The mutation context is passed as the first argument to any Convex mutation
|
|
113
|
+
* function run on the server.
|
|
114
|
+
*/
|
|
115
|
+
export type MutationCtx = GenericMutationCtx<DataModel>;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* A set of services for use within Convex action functions.
|
|
119
|
+
*
|
|
120
|
+
* The action context is passed as the first argument to any Convex action
|
|
121
|
+
* function run on the server.
|
|
122
|
+
*/
|
|
123
|
+
export type ActionCtx = GenericActionCtx<DataModel>;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* An interface to read from the database within Convex query functions.
|
|
127
|
+
*
|
|
128
|
+
* The two entry points are {@link DatabaseReader.get}, which fetches a single
|
|
129
|
+
* document by its {@link Id}, or {@link DatabaseReader.query}, which starts
|
|
130
|
+
* building a query.
|
|
131
|
+
*/
|
|
132
|
+
export type DatabaseReader = GenericDatabaseReader<DataModel>;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* An interface to read from and write to the database within Convex mutation
|
|
136
|
+
* functions.
|
|
137
|
+
*
|
|
138
|
+
* Convex guarantees that all writes within a single mutation are
|
|
139
|
+
* executed atomically, so you never have to worry about partial writes leaving
|
|
140
|
+
* your data in an inconsistent state. See [the Convex Guide](https://docs.convex.dev/understanding/convex-fundamentals/functions#atomicity-and-optimistic-concurrency-control)
|
|
141
|
+
* for the guarantees Convex provides your functions.
|
|
142
|
+
*/
|
|
143
|
+
export type DatabaseWriter = GenericDatabaseWriter<DataModel>;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* Generated utilities for implementing server-side Convex query and mutation functions.
|
|
4
|
+
*
|
|
5
|
+
* THIS CODE IS AUTOMATICALLY GENERATED.
|
|
6
|
+
*
|
|
7
|
+
* To regenerate, run `npx convex dev`.
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import {
|
|
12
|
+
actionGeneric,
|
|
13
|
+
httpActionGeneric,
|
|
14
|
+
queryGeneric,
|
|
15
|
+
mutationGeneric,
|
|
16
|
+
internalActionGeneric,
|
|
17
|
+
internalMutationGeneric,
|
|
18
|
+
internalQueryGeneric,
|
|
19
|
+
} from "convex/server";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Define a query in this Convex app's public API.
|
|
23
|
+
*
|
|
24
|
+
* This function will be allowed to read your Convex database and will be accessible from the client.
|
|
25
|
+
*
|
|
26
|
+
* @param func - The query function. It receives a {@link QueryCtx} as its first argument.
|
|
27
|
+
* @returns The wrapped query. Include this as an `export` to name it and make it accessible.
|
|
28
|
+
*/
|
|
29
|
+
export const query = queryGeneric;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Define a query that is only accessible from other Convex functions (but not from the client).
|
|
33
|
+
*
|
|
34
|
+
* This function will be allowed to read from your Convex database. It will not be accessible from the client.
|
|
35
|
+
*
|
|
36
|
+
* @param func - The query function. It receives a {@link QueryCtx} as its first argument.
|
|
37
|
+
* @returns The wrapped query. Include this as an `export` to name it and make it accessible.
|
|
38
|
+
*/
|
|
39
|
+
export const internalQuery = internalQueryGeneric;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Define a mutation in this Convex app's public API.
|
|
43
|
+
*
|
|
44
|
+
* This function will be allowed to modify your Convex database and will be accessible from the client.
|
|
45
|
+
*
|
|
46
|
+
* @param func - The mutation function. It receives a {@link MutationCtx} as its first argument.
|
|
47
|
+
* @returns The wrapped mutation. Include this as an `export` to name it and make it accessible.
|
|
48
|
+
*/
|
|
49
|
+
export const mutation = mutationGeneric;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Define a mutation that is only accessible from other Convex functions (but not from the client).
|
|
53
|
+
*
|
|
54
|
+
* This function will be allowed to modify your Convex database. It will not be accessible from the client.
|
|
55
|
+
*
|
|
56
|
+
* @param func - The mutation function. It receives a {@link MutationCtx} as its first argument.
|
|
57
|
+
* @returns The wrapped mutation. Include this as an `export` to name it and make it accessible.
|
|
58
|
+
*/
|
|
59
|
+
export const internalMutation = internalMutationGeneric;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Define an action in this Convex app's public API.
|
|
63
|
+
*
|
|
64
|
+
* An action is a function which can execute any JavaScript code, including non-deterministic
|
|
65
|
+
* code and code with side-effects, like calling third-party services.
|
|
66
|
+
* They can be run in Convex's JavaScript environment or in Node.js using the "use node" directive.
|
|
67
|
+
* They can interact with the database indirectly by calling queries and mutations using the {@link ActionCtx}.
|
|
68
|
+
*
|
|
69
|
+
* @param func - The action. It receives an {@link ActionCtx} as its first argument.
|
|
70
|
+
* @returns The wrapped action. Include this as an `export` to name it and make it accessible.
|
|
71
|
+
*/
|
|
72
|
+
export const action = actionGeneric;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Define an action that is only accessible from other Convex functions (but not from the client).
|
|
76
|
+
*
|
|
77
|
+
* @param func - The function. It receives an {@link ActionCtx} as its first argument.
|
|
78
|
+
* @returns The wrapped function. Include this as an `export` to name it and make it accessible.
|
|
79
|
+
*/
|
|
80
|
+
export const internalAction = internalActionGeneric;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Define an HTTP action.
|
|
84
|
+
*
|
|
85
|
+
* The wrapped function will be used to respond to HTTP requests received
|
|
86
|
+
* by a Convex deployment if the requests matches the path and method where
|
|
87
|
+
* this action is routed. Be sure to route your httpAction in `convex/http.js`.
|
|
88
|
+
*
|
|
89
|
+
* @param func - The function. It receives an {@link ActionCtx} as its first argument
|
|
90
|
+
* and a Fetch API `Request` object as its second.
|
|
91
|
+
* @returns The wrapped function. Import this function from `convex/http.js` and route it to hook it up.
|
|
92
|
+
*/
|
|
93
|
+
export const httpAction = httpActionGeneric;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import Apple from '@auth/core/providers/apple';
|
|
2
|
+
import Google from '@auth/core/providers/google';
|
|
3
|
+
import GitHub from '@auth/core/providers/github';
|
|
4
|
+
import { convexAuth, getAuthUserId } from '@convex-dev/auth/server';
|
|
5
|
+
import { Password } from '@convex-dev/auth/providers/Password';
|
|
6
|
+
import { ResendOTPPasswordReset } from './passwordReset';
|
|
7
|
+
import { ResendOTP } from './resendOTP';
|
|
8
|
+
import { query } from './_generated/server';
|
|
9
|
+
import { Anonymous } from '@convex-dev/auth/providers/Anonymous';
|
|
10
|
+
|
|
11
|
+
export const { auth, signIn, signOut, store, isAuthenticated } = convexAuth({
|
|
12
|
+
providers: [
|
|
13
|
+
Anonymous,
|
|
14
|
+
Google,
|
|
15
|
+
ResendOTP,
|
|
16
|
+
Apple({
|
|
17
|
+
profile: (appleInfo) => {
|
|
18
|
+
const name = appleInfo.user
|
|
19
|
+
? `${appleInfo.user.name.firstName} ${appleInfo.user.name.lastName}`
|
|
20
|
+
: undefined;
|
|
21
|
+
return {
|
|
22
|
+
id: appleInfo.sub,
|
|
23
|
+
name: name,
|
|
24
|
+
email: appleInfo.email,
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
}),
|
|
28
|
+
Password({
|
|
29
|
+
profile(params, tokens) {
|
|
30
|
+
return {
|
|
31
|
+
name: params.name as string,
|
|
32
|
+
email: params.email as string,
|
|
33
|
+
gender: params.gender as string,
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
reset: ResendOTPPasswordReset,
|
|
37
|
+
validatePasswordRequirements(password) {
|
|
38
|
+
console.log('Validating password requirements...');
|
|
39
|
+
|
|
40
|
+
if (!password || password.length < 8) {
|
|
41
|
+
throw new Error('Password must be at least 8 characters long');
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (!/\d/.test(password)) {
|
|
45
|
+
throw new Error('Password must contain at least one number');
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (!/[a-z]/.test(password)) {
|
|
49
|
+
throw new Error(
|
|
50
|
+
'Password must contain at least one lowercase letter'
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (!/[A-Z]/.test(password)) {
|
|
55
|
+
throw new Error(
|
|
56
|
+
'Password must contain at least one uppercase letter'
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
console.log('Password validation passed');
|
|
61
|
+
},
|
|
62
|
+
}),
|
|
63
|
+
GitHub({
|
|
64
|
+
profile(githubProfile, tokens) {
|
|
65
|
+
return {
|
|
66
|
+
githubId: githubProfile.id,
|
|
67
|
+
name: githubProfile.name,
|
|
68
|
+
email: githubProfile.email,
|
|
69
|
+
image: githubProfile.picture as string | null | undefined,
|
|
70
|
+
};
|
|
71
|
+
},
|
|
72
|
+
}),
|
|
73
|
+
],
|
|
74
|
+
callbacks: {
|
|
75
|
+
async redirect({ redirectTo }) {
|
|
76
|
+
console.log('Redirect callback called with:', redirectTo);
|
|
77
|
+
|
|
78
|
+
const siteUrl = process.env.SITE_URL!;
|
|
79
|
+
const expoUrl = process.env.EXPO_URL!; // must be set in .env (bna:// in production)
|
|
80
|
+
|
|
81
|
+
const isExpoDevUrl = redirectTo.startsWith('exp://'); // dev URLs
|
|
82
|
+
const isExpoProdUrl = redirectTo.startsWith(expoUrl); // uses .env (bna:// in prod)
|
|
83
|
+
const isSiteUrl = siteUrl && redirectTo.startsWith(siteUrl);
|
|
84
|
+
|
|
85
|
+
if (isExpoDevUrl || isExpoProdUrl || isSiteUrl) {
|
|
86
|
+
console.log('Redirect approved:', redirectTo);
|
|
87
|
+
return redirectTo;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
console.error('Invalid redirect URL:', redirectTo);
|
|
91
|
+
throw new Error(`Invalid redirectTo URI ${redirectTo}`);
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
export const loggedInUser = query({
|
|
97
|
+
handler: async (ctx) => {
|
|
98
|
+
const userId = await getAuthUserId(ctx);
|
|
99
|
+
|
|
100
|
+
if (!userId) {
|
|
101
|
+
return null;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
const user = await ctx.db.get(userId);
|
|
105
|
+
|
|
106
|
+
if (!user) {
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return user;
|
|
111
|
+
},
|
|
112
|
+
});
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import Resend from '@auth/core/providers/resend';
|
|
2
|
+
import { Resend as ResendAPI } from 'resend';
|
|
3
|
+
import { RandomReader, generateRandomString } from '@oslojs/crypto/random';
|
|
4
|
+
|
|
5
|
+
export const ResendOTPPasswordReset = Resend({
|
|
6
|
+
id: 'resend-reset',
|
|
7
|
+
apiKey: process.env.AUTH_RESEND_KEY,
|
|
8
|
+
async generateVerificationToken() {
|
|
9
|
+
console.log('Generating password reset token...');
|
|
10
|
+
|
|
11
|
+
const random: RandomReader = {
|
|
12
|
+
read(bytes) {
|
|
13
|
+
crypto.getRandomValues(bytes);
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const length = 6;
|
|
18
|
+
const alphabet = '0123456789';
|
|
19
|
+
const token = generateRandomString(random, alphabet, length);
|
|
20
|
+
|
|
21
|
+
console.log('Generated reset token:', token);
|
|
22
|
+
return token;
|
|
23
|
+
},
|
|
24
|
+
async sendVerificationRequest({ identifier: email, provider, token }) {
|
|
25
|
+
console.log(
|
|
26
|
+
'Sending password reset email to:',
|
|
27
|
+
email,
|
|
28
|
+
'with token:',
|
|
29
|
+
token
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
if (!provider.apiKey) {
|
|
33
|
+
console.error('Missing AUTH_RESEND_KEY environment variable');
|
|
34
|
+
throw new Error('Email service not configured');
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const resend = new ResendAPI(provider.apiKey);
|
|
38
|
+
|
|
39
|
+
try {
|
|
40
|
+
const { data, error } = await resend.emails.send({
|
|
41
|
+
from: 'BNA UI <hi@ahmedbna.com>',
|
|
42
|
+
to: [email],
|
|
43
|
+
subject: `Reset your BNA UI password`,
|
|
44
|
+
text: `Your password reset code is: ${token}`,
|
|
45
|
+
html: `
|
|
46
|
+
<div style="font-family: Arial, sans-serif; max-width: 600px; margin: 0 auto;">
|
|
47
|
+
<h2>Reset your BNA UI password</h2>
|
|
48
|
+
<p>You requested to reset your password. Your verification code is:</p>
|
|
49
|
+
<div style="font-size: 24px; font-weight: bold; background: #f5f5f5; padding: 20px; text-align: center; margin: 20px 0; border-radius: 8px;">
|
|
50
|
+
${token}
|
|
51
|
+
</div>
|
|
52
|
+
<p>This code will expire in 10 minutes.</p>
|
|
53
|
+
<p>If you didn't request this password reset, please ignore this email.</p>
|
|
54
|
+
</div>
|
|
55
|
+
`,
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
if (error) {
|
|
59
|
+
console.error('Resend API error:', error);
|
|
60
|
+
throw new Error(`Could not send reset email: ${error.message}`);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
console.log('Password reset email sent successfully:', data);
|
|
64
|
+
} catch (error) {
|
|
65
|
+
console.error('Failed to send password reset email:', error);
|
|
66
|
+
throw new Error('Could not send password reset email');
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
});
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Email } from '@convex-dev/auth/providers/Email';
|
|
2
|
+
import { Resend as ResendAPI } from 'resend';
|
|
3
|
+
import { RandomReader, generateRandomString } from '@oslojs/crypto/random';
|
|
4
|
+
|
|
5
|
+
export const ResendOTP = Email({
|
|
6
|
+
id: 'resend-otp',
|
|
7
|
+
apiKey: process.env.AUTH_RESEND_KEY,
|
|
8
|
+
maxAge: 60 * 15, // 15 minutes
|
|
9
|
+
async generateVerificationToken() {
|
|
10
|
+
const random: RandomReader = {
|
|
11
|
+
read(bytes) {
|
|
12
|
+
crypto.getRandomValues(bytes);
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const length = 6;
|
|
17
|
+
const alphabet = '0123456789';
|
|
18
|
+
return generateRandomString(random, alphabet, length);
|
|
19
|
+
},
|
|
20
|
+
async sendVerificationRequest({ identifier: email, provider, token }) {
|
|
21
|
+
console.log('Sending verification email to:', email, 'with token:', token);
|
|
22
|
+
|
|
23
|
+
if (!provider.apiKey) {
|
|
24
|
+
console.error('Missing AUTH_RESEND_KEY environment variable');
|
|
25
|
+
throw new Error('Email service not configured');
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const resend = new ResendAPI(provider.apiKey);
|
|
29
|
+
|
|
30
|
+
try {
|
|
31
|
+
const { data, error } = await resend.emails.send({
|
|
32
|
+
from: 'BNA UI <hi@ahmedbna.com>',
|
|
33
|
+
to: [email],
|
|
34
|
+
subject: `Sign in to BNA UI`,
|
|
35
|
+
text: `Your verification code is: ${token}`,
|
|
36
|
+
html: `
|
|
37
|
+
<div style="font-family: Arial, sans-serif; max-width: 600px; margin: 0 auto;">
|
|
38
|
+
<h2>Sign in to BNA UI</h2>
|
|
39
|
+
<p>Your verification code is:</p>
|
|
40
|
+
<div style="font-size: 24px; font-weight: bold; background: #f5f5f5; padding: 20px; text-align: center; margin: 20px 0; border-radius: 8px;">
|
|
41
|
+
${token}
|
|
42
|
+
</div>
|
|
43
|
+
<p>This code will expire in 10 minutes.</p>
|
|
44
|
+
<p>If you didn't request this code, please ignore this email.</p>
|
|
45
|
+
</div>
|
|
46
|
+
`,
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
if (error) {
|
|
50
|
+
console.error('Resend API error:', error);
|
|
51
|
+
throw new Error(`Could not send email: ${error.message}`);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
console.log('Email sent successfully:', data);
|
|
55
|
+
} catch (error) {
|
|
56
|
+
console.error('Failed to send verification email:', error);
|
|
57
|
+
throw new Error('Could not send verification email');
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
});
|