diff --git a/.changeset/orange-wombats-relate.md b/.changeset/orange-wombats-relate.md new file mode 100644 index 0000000..0a94988 --- /dev/null +++ b/.changeset/orange-wombats-relate.md @@ -0,0 +1,6 @@ +--- +"docs": patch +"@stepperize/react": patch +--- + +chore: docs minnor fixes diff --git a/apps/docs/.source/index.js b/apps/docs/.source/index.js index 7ee75cc..331885a 100644 --- a/apps/docs/.source/index.js +++ b/apps/docs/.source/index.js @@ -1,19 +1,25 @@ import { toRuntime } from "fumadocs-mdx" import * as file_0 from "../content/docs/react/index.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" import * as file_1 from "../content/docs/react/installation.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" -import * as file_2 from "../content/docs/react/api-references/define.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" -import * as file_3 from "../content/docs/react/api-references/hook.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" -import * as file_4 from "../content/docs/react/api-references/scoped.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" -import * as file_5 from "../content/docs/react/examples/basic.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" -import * as file_6 from "../content/docs/react/examples/conform-react.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" -import * as file_7 from "../content/docs/react/examples/dialog.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" -import * as file_8 from "../content/docs/react/examples/multi-scoped.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" -import * as file_9 from "../content/docs/react/examples/query-params.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" -import * as file_10 from "../content/docs/react/examples/react-hook-form.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" -import * as file_11 from "../content/docs/react/examples/scoped.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" -import * as file_12 from "../content/docs/react/examples/shareable-data.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" -import * as file_13 from "../content/docs/react/migration/migrating-to-v2.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" -import * as file_14 from "../content/docs/react/migration/migrating-to-v3.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" -import * as file_15 from "../content/docs/react/meta.json?collection=meta&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" -export const docs = [toRuntime("doc", file_0, {"path":"react/index.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/index.mdx"}),toRuntime("doc", file_1, {"path":"react/installation.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/installation.mdx"}),toRuntime("doc", file_2, {"path":"react/api-references/define.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/api-references/define.mdx"}),toRuntime("doc", file_3, {"path":"react/api-references/hook.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/api-references/hook.mdx"}),toRuntime("doc", file_4, {"path":"react/api-references/scoped.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/api-references/scoped.mdx"}),toRuntime("doc", file_5, {"path":"react/examples/basic.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/examples/basic.mdx"}),toRuntime("doc", file_6, {"path":"react/examples/conform-react.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/examples/conform-react.mdx"}),toRuntime("doc", file_7, {"path":"react/examples/dialog.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/examples/dialog.mdx"}),toRuntime("doc", file_8, {"path":"react/examples/multi-scoped.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/examples/multi-scoped.mdx"}),toRuntime("doc", file_9, {"path":"react/examples/query-params.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/examples/query-params.mdx"}),toRuntime("doc", file_10, {"path":"react/examples/react-hook-form.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/examples/react-hook-form.mdx"}),toRuntime("doc", file_11, {"path":"react/examples/scoped.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/examples/scoped.mdx"}),toRuntime("doc", file_12, {"path":"react/examples/shareable-data.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/examples/shareable-data.mdx"}),toRuntime("doc", file_13, {"path":"react/migration/migrating-to-v2.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/migration/migrating-to-v2.mdx"}),toRuntime("doc", file_14, {"path":"react/migration/migrating-to-v3.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/migration/migrating-to-v3.mdx"})] -export const meta = [toRuntime("meta", file_15, {"path":"react/meta.json","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/meta.json"})] \ No newline at end of file +import * as file_2 from "../content/docs/solid/index.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" +import * as file_3 from "../content/docs/svelte/index.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" +import * as file_4 from "../content/docs/vue/index.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" +import * as file_5 from "../content/docs/react/api-references/define.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" +import * as file_6 from "../content/docs/react/api-references/hook.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" +import * as file_7 from "../content/docs/react/api-references/scoped.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" +import * as file_8 from "../content/docs/react/examples/basic.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" +import * as file_9 from "../content/docs/react/examples/conform-react.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" +import * as file_10 from "../content/docs/react/examples/dialog.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" +import * as file_11 from "../content/docs/react/examples/multi-scoped.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" +import * as file_12 from "../content/docs/react/examples/query-params.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" +import * as file_13 from "../content/docs/react/examples/react-hook-form.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" +import * as file_14 from "../content/docs/react/examples/scoped.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" +import * as file_15 from "../content/docs/react/examples/shareable-data.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" +import * as file_16 from "../content/docs/react/migration/migrating-to-v2.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" +import * as file_17 from "../content/docs/react/migration/migrating-to-v3.mdx?collection=docs&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" +import * as file_18 from "../content/docs/react/meta.json?collection=meta&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" +import * as file_19 from "../content/docs/solid/meta.json?collection=meta&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" +import * as file_20 from "../content/docs/vue/meta.json?collection=meta&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" +import * as file_21 from "../content/docs/svelte/meta.json?collection=meta&hash=bc7c7620ff6e63a97b7e6e3e162afe44094dd17f054ad7cc7a1bf479cef93850" +export const docs = [toRuntime("doc", file_0, {"path":"react/index.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/index.mdx"}),toRuntime("doc", file_1, {"path":"react/installation.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/installation.mdx"}),toRuntime("doc", file_2, {"path":"solid/index.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/solid/index.mdx"}),toRuntime("doc", file_3, {"path":"svelte/index.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/svelte/index.mdx"}),toRuntime("doc", file_4, {"path":"vue/index.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/vue/index.mdx"}),toRuntime("doc", file_5, {"path":"react/api-references/define.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/api-references/define.mdx"}),toRuntime("doc", file_6, {"path":"react/api-references/hook.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/api-references/hook.mdx"}),toRuntime("doc", file_7, {"path":"react/api-references/scoped.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/api-references/scoped.mdx"}),toRuntime("doc", file_8, {"path":"react/examples/basic.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/examples/basic.mdx"}),toRuntime("doc", file_9, {"path":"react/examples/conform-react.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/examples/conform-react.mdx"}),toRuntime("doc", file_10, {"path":"react/examples/dialog.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/examples/dialog.mdx"}),toRuntime("doc", file_11, {"path":"react/examples/multi-scoped.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/examples/multi-scoped.mdx"}),toRuntime("doc", file_12, {"path":"react/examples/query-params.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/examples/query-params.mdx"}),toRuntime("doc", file_13, {"path":"react/examples/react-hook-form.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/examples/react-hook-form.mdx"}),toRuntime("doc", file_14, {"path":"react/examples/scoped.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/examples/scoped.mdx"}),toRuntime("doc", file_15, {"path":"react/examples/shareable-data.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/examples/shareable-data.mdx"}),toRuntime("doc", file_16, {"path":"react/migration/migrating-to-v2.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/migration/migrating-to-v2.mdx"}),toRuntime("doc", file_17, {"path":"react/migration/migrating-to-v3.mdx","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/migration/migrating-to-v3.mdx"})] +export const meta = [toRuntime("meta", file_18, {"path":"react/meta.json","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/react/meta.json"}),toRuntime("meta", file_19, {"path":"solid/meta.json","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/solid/meta.json"}),toRuntime("meta", file_20, {"path":"vue/meta.json","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/vue/meta.json"}),toRuntime("meta", file_21, {"path":"svelte/meta.json","absolutePath":"/Users/damianricobelli/Desktop/Personal/stepperize/apps/docs/content/docs/svelte/meta.json"})] \ No newline at end of file diff --git a/apps/docs/app/layout.config.tsx b/apps/docs/app/layout.config.tsx index 7b79233..748b71b 100644 --- a/apps/docs/app/layout.config.tsx +++ b/apps/docs/app/layout.config.tsx @@ -5,7 +5,7 @@ import { NavChildren } from "@/app/layout.client"; import { source } from "@/app/source"; import { modes } from "@/lib/modes"; import { RootToggle } from "fumadocs-ui/components/layout/root-toggle"; -import { BookIcon, Waypoints } from "lucide-react"; +import { Waypoints } from "lucide-react"; export const baseOptions: HomeLayoutProps = { githubUrl: "https://github.com/damianricobelli/stepperize", @@ -19,14 +19,14 @@ export const baseOptions: HomeLayoutProps = { transparentMode: "top", children: , }, - links: [ - { - icon: , - text: "Blog", - url: "/blog", - active: "nested-url", - }, - ], + // links: [ + // { + // icon: , + // text: "Blog", + // url: "/blog", + // active: "nested-url", + // }, + // ], }; export const docsOptions: DocsLayoutProps = { diff --git a/apps/docs/components/demo-viewer.tsx b/apps/docs/components/demo-viewer.tsx index 45d0910..e0ca61a 100644 --- a/apps/docs/components/demo-viewer.tsx +++ b/apps/docs/components/demo-viewer.tsx @@ -1,39 +1,9 @@ "use client"; -import { Skeleton } from "@/components/ui/skeleton"; import { cva } from "class-variance-authority"; -import { useEffect, useState } from "react"; export const DemoViewer = ({ src, className }: { src: string; className?: string }) => { - const [isLoaded, setIsLoaded] = useState(false); - - useEffect(() => { - setIsLoaded(false); - }, [src]); - - return ( - <> - {!isLoaded && ( - - Loading demo... - - )} -