-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from damianricobelli/chore/docs-minnor-fixes
chore: docs minnor fixes
- Loading branch information
Showing
12 changed files
with
84 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"docs": patch | ||
"@stepperize/react": patch | ||
--- | ||
|
||
chore: docs minnor fixes |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 && ( | ||
<Skeleton className={classForDemoViewer({ className })}> | ||
<span>Loading demo...</span> | ||
</Skeleton> | ||
)} | ||
<iframe | ||
src={src} | ||
title="Demo Viewer" | ||
className={classForDemoViewer({ className, isLoaded })} | ||
onLoad={() => setIsLoaded(true)} | ||
style={{ display: isLoaded ? "block" : "none" }} | ||
/> | ||
</> | ||
); | ||
return <iframe src={src} title="Demo Viewer" className={classForDemoViewer({ className })} />; | ||
}; | ||
|
||
const classForDemoViewer = cva("w-full h-[600px] border rounded-md flex items-center justify-center", { | ||
variants: { | ||
isLoaded: { | ||
true: "opacity-100", | ||
false: "opacity-0", | ||
}, | ||
}, | ||
}); | ||
const classForDemoViewer = cva("w-full h-[600px] border rounded-md"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: Introduction | ||
description: A powerful library for creating flexible Stepper components in Solid | ||
icon: Album | ||
--- | ||
|
||
<Callout type="warn"> | ||
Both the documents and the Solid package are not yet ready. | ||
</Callout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"title": "Solid", | ||
"root": true, | ||
"pages": ["---Getting Started---", "index"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: Introduction | ||
description: A powerful library for creating flexible Stepper components in Svelte | ||
icon: Album | ||
--- | ||
|
||
<Callout type="warn"> | ||
Both the documents and the Svelte package are not yet ready. | ||
</Callout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"title": "Svelte", | ||
"root": true, | ||
"pages": ["---Getting Started---", "index"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: Introduction | ||
description: A powerful library for creating flexible Stepper components in Vue | ||
icon: Album | ||
--- | ||
|
||
<Callout type="warn"> | ||
Both the documents and the Vue package are not yet ready. | ||
</Callout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"title": "Vue", | ||
"root": true, | ||
"pages": ["---Getting Started---", "index"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters