-
Notifications
You must be signed in to change notification settings - Fork 70
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 #291 from MeshJS/update-aiken-lib
Update aiken lib
- Loading branch information
Showing
86 changed files
with
1,227 additions
and
159 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
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions
14
apps/playground/src/components/button/button-float-documentation.tsx
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,14 @@ | ||
import { DocumentTextIcon } from "@heroicons/react/24/solid"; | ||
|
||
import Link from "../link"; | ||
import Button from "./button"; | ||
|
||
export default function ButtonFloatDocumentation({ href }: { href: string }) { | ||
return ( | ||
<Link href={href}> | ||
<Button className="fixed bottom-0 left-2 z-30" tooltip="Documentation" style="info"> | ||
<DocumentTextIcon className="h-5 w-5" /> | ||
</Button> | ||
</Link> | ||
); | ||
} |
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
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
97 changes: 97 additions & 0 deletions
97
apps/playground/src/components/layouts/sidebar/sticky-sidebar.tsx
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,97 @@ | ||
import { Link } from "react-scroll"; | ||
|
||
export default function StickySidebar({ | ||
sidebarItems, | ||
authors, | ||
}: { | ||
sidebarItems: { to: string; label: string }[]; | ||
authors?: { url: string; image: string; name: string; about: string }[]; | ||
}) { | ||
return ( | ||
<div className="mb-6 hidden lg:w-72 xl:block"> | ||
<div className="sticky top-20"> | ||
{authors && ( | ||
<div className="mb-6 rounded-lg border border-gray-200 p-6 text-gray-500 dark:border-gray-700 dark:text-gray-400"> | ||
{authors && | ||
authors!.map((author, i) => { | ||
return ( | ||
<a | ||
href={author.url} | ||
className="mb-4 flex items-center" | ||
target="_blank" | ||
rel="noreferrer" | ||
key={i} | ||
> | ||
<div className="mr-3 shrink-0"> | ||
<img | ||
className="mt-1 h-8 w-8 rounded-full" | ||
src={author.image} | ||
alt={author.name} | ||
/> | ||
</div> | ||
<div className="mr-3"> | ||
<span className="block font-medium text-gray-900 dark:text-white"> | ||
{author.name} | ||
</span> | ||
<span className="text-sm">{author.about}</span> | ||
</div> | ||
</a> | ||
); | ||
})} | ||
</div> | ||
)} | ||
|
||
<aside aria-labelledby="categories-label"> | ||
<h3 id="categories-label" className="sr-only"> | ||
Topics | ||
</h3> | ||
<nav className="rounded-lg border border-gray-200 p-6 font-medium text-gray-500 dark:border-gray-700 dark:text-gray-400"> | ||
<ul className="space-y-4"> | ||
{sidebarItems.map((item, i) => { | ||
return ( | ||
<li key={i}> | ||
<Link | ||
activeClass="text-primary-600 dark:text-primary-500" | ||
className="cursor-pointer hover:text-black dark:hover:text-white" | ||
to={item.to} | ||
spy={true} | ||
smooth={true} | ||
duration={500} | ||
offset={-80} | ||
> | ||
{item.label} | ||
</Link> | ||
</li> | ||
); | ||
})} | ||
</ul> | ||
{/* <h4 className="mb-4 text-gray-900 dark:text-white">Others</h4> */} | ||
</nav> | ||
</aside> | ||
{/* <aside> | ||
<div className="flex justify-center items-center mb-3 w-full h-32 bg-gray-100 rounded-lg dark:bg-gray-800"> | ||
<svg | ||
aria-hidden="true" | ||
className="w-8 h-8 text-gray-400" | ||
fill="currentColor" | ||
viewBox="0 0 20 20" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
fill-rule="evenodd" | ||
d="M4 3a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V5a2 2 0 00-2-2H4zm12 12H4l4-8 3 6 2-4 3 6z" | ||
clip-rule="evenodd" | ||
></path> | ||
</svg> | ||
</div> | ||
<p className="mb-2 text-sm font-light text-gray-500 dark:text-gray-400"> | ||
Students and Teachers, save up to 60% on Flowbite Creative Cloud. | ||
</p> | ||
<p className="text-xs font-light text-gray-400 uppercase dark:text-gray-500"> | ||
Ads placeholder | ||
</p> | ||
</aside> */} | ||
</div> | ||
</div> | ||
); | ||
} |
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
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
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
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
Oops, something went wrong.