Skip to content

🎥 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.tsx
similarity index 96%
rename from packages/template-prompt-to-motion-graphics/src/components/DownloadButton.tsx
rename to packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer/RenderControls/DownloadButton.tsx
index 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.tsx
similarity index 100%
rename from packages/template-prompt-to-motion-graphics/src/components/Error.tsx
rename to packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer/RenderControls/Error.tsx
diff --git a/packages/template-prompt-to-motion-graphics/src/components/ProgressBar.tsx b/packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer/RenderControls/ProgressBar.tsx
similarity index 100%
rename from packages/template-prompt-to-motion-graphics/src/components/ProgressBar.tsx
rename to packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer/RenderControls/ProgressBar.tsx
diff --git a/packages/template-prompt-to-motion-graphics/src/components/RenderControls.tsx b/packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer/RenderControls/index.tsx
similarity index 96%
rename from packages/template-prompt-to-motion-graphics/src/components/RenderControls.tsx
rename to packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer/RenderControls/index.tsx
index 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.tsx
similarity index 100%
rename from packages/template-prompt-to-motion-graphics/src/components/SettingsModal.tsx
rename to packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer/SettingsModal.tsx
diff --git a/packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer.tsx b/packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer/index.tsx
similarity index 100%
rename from packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer.tsx
rename to packages/template-prompt-to-motion-graphics/src/components/AnimationPlayer/index.tsx
diff --git a/packages/template-prompt-to-motion-graphics/src/components/ui/input.tsx b/packages/template-prompt-to-motion-graphics/src/components/ui/input.tsx
deleted file mode 100644
index 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 }