🎥 Make videos programmatically with React
Adjust UI component folder structure
ASchwad47ced6c328e4
diff --git a/packages/template-prompt-to-motion-graphics/src/components/DownloadButton.tsx b/packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer/RenderControls/DownloadButton.tsxsimilarity index 96%rename from packages/template-prompt-to-motion-graphics/src/components/DownloadButton.tsxrename to packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer/RenderControls/DownloadButton.tsxindex 786623a2d0..cc92ad32bb 100644--- a/packages/template-prompt-to-motion-graphics/src/components/DownloadButton.tsx+++ b/packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer/RenderControls/DownloadButton.tsx@@ -1,5 +1,5 @@import React from "react";-import { State } from "../helpers/use-rendering";+import { State } from "../../../helpers/use-rendering";import { Button } from "@/components/ui/button";const Megabytes: React.FC<{diff --git a/packages/template-prompt-to-motion-graphics/src/components/Error.tsx b/packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer/RenderControls/Error.tsxsimilarity index 100%rename from packages/template-prompt-to-motion-graphics/src/components/Error.tsxrename to packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer/RenderControls/Error.tsxdiff --git a/packages/template-prompt-to-motion-graphics/src/components/ProgressBar.tsx b/packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer/RenderControls/ProgressBar.tsxsimilarity index 100%rename from packages/template-prompt-to-motion-graphics/src/components/ProgressBar.tsxrename to packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer/RenderControls/ProgressBar.tsxdiff --git a/packages/template-prompt-to-motion-graphics/src/components/RenderControls.tsx b/packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer/RenderControls/index.tsxsimilarity index 96%rename from packages/template-prompt-to-motion-graphics/src/components/RenderControls.tsxrename to packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer/RenderControls/index.tsxindex d1caafb154..a9e3ac5037 100644--- a/packages/template-prompt-to-motion-graphics/src/components/RenderControls.tsx+++ b/packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer/RenderControls/index.tsx@@ -6,7 +6,7 @@ import { Button } from "@/components/ui/button";import { ErrorComp } from "./Error";import { ProgressBar } from "./ProgressBar";import { DownloadButton } from "./DownloadButton";-import { useRendering } from "../helpers/use-rendering";+import { useRendering } from "../../../helpers/use-rendering";export const RenderControls: React.FC<{code: string;diff --git a/packages/template-prompt-to-motion-graphics/src/components/SettingsModal.tsx b/packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer/SettingsModal.tsxsimilarity index 100%rename from packages/template-prompt-to-motion-graphics/src/components/SettingsModal.tsxrename to packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer/SettingsModal.tsxdiff --git a/packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer.tsx b/packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer/index.tsxsimilarity index 100%rename from packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer.tsxrename to packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer/index.tsxdiff --git a/packages/template-prompt-to-motion-graphics/src/components/ui/input.tsx b/packages/template-prompt-to-motion-graphics/src/components/ui/input.tsxdeleted file mode 100644index f027d44341..0000000000--- a/packages/template-prompt-to-motion-graphics/src/components/ui/input.tsx+++ /dev/null@@ -1,21 +0,0 @@-import * as React from "react"--import { cn } from "@/lib/utils"--function Input({ className, type, ...props }: React.ComponentProps<"input">) {- return (- <input- type={type}- data-slot="input"- className={cn(- "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",- "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",- "aria-invalid:ring-destructive/20 aria-invalid:border-destructive",- className- )}- {...props}- />- )-}--export { Input }