forked from shadcn-ui/ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into cmdk-bump-and-styles
- Loading branch information
1 parent
430c1b3
commit d74be6b
Showing
516 changed files
with
37,414 additions
and
3,477 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,25 @@ | ||
title: "[blocks]: " | ||
labels: ["Blocks Request"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
### Thanks for taking the time to create a block request! Please search open/closed requests before submitting, as the block or a similar one may have already been requested. | ||
- type: textarea | ||
id: block-description | ||
attributes: | ||
label: Description | ||
description: Tell us about your block request | ||
placeholder: "A dashboard for an e-commerce website showing sales, orders, and customers..." | ||
validations: | ||
required: true | ||
|
||
- type: input | ||
id: block-example-url | ||
attributes: | ||
label: Example | ||
description: Link to an example of the block | ||
placeholder: ex. https://example.com | ||
validations: | ||
required: false |
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,85 @@ | ||
name: "Bug report" | ||
description: Report an issue | ||
title: '[bug]: ' | ||
labels: ["bug"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
### Thanks for taking the time to create a bug report. Please search open/closed issues before submitting, as the issue may have already been reported/addressed. | ||
- type: markdown | ||
attributes: | ||
value: | | ||
#### If you aren't sure this is a bug or not, please open a discussion instead: | ||
- [Discussions](https://github.com/shadcn-ui/ui/discussions/new?category=general) | ||
- type: textarea | ||
id: bug-description | ||
attributes: | ||
label: Describe the bug | ||
description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us how in the description. Thanks! | ||
placeholder: Bug description | ||
validations: | ||
required: true | ||
|
||
- type: input | ||
id: components-affected | ||
attributes: | ||
label: Affected component/components | ||
description: Which shadcn/ui components are affected? | ||
placeholder: ex. Button, Checkbox... | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: reproduction | ||
attributes: | ||
label: How to reproduce | ||
description: A step-by-step description of how to reproduce the bug. | ||
placeholder: | | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. See error | ||
validations: | ||
required: true | ||
|
||
- type: input | ||
id: codesandbox-stackblitz | ||
attributes: | ||
label: Codesandbox/StackBlitz link | ||
description: | | ||
A link to a CodeSandbox or StackBlitz that includes a minimal reproduction of the problem. In rare cases when not applicable, you can link to a GitHub repository that we can easily run to recreate the issue. If a report is vague and does not have a reproduction, it will be closed without warning. | ||
> [!CAUTION] | ||
> If you skip this step, this issue might be **labeled** with `please add a reproduction` and **closed**. | ||
validations: | ||
required: false | ||
|
||
- type: textarea | ||
id: logs | ||
attributes: | ||
label: Logs | ||
description: "Please include browser console and server logs around the time this bug occurred. Optional if provided reproduction. Please try not to insert an image but copy paste the log text." | ||
render: bash | ||
|
||
- type: textarea | ||
id: system-info | ||
attributes: | ||
label: System Info | ||
description: Information about browsers, system or binaries that's relevant. | ||
render: bash | ||
placeholder: System, Binaries, Browsers | ||
validations: | ||
required: true | ||
|
||
- type: checkboxes | ||
id: terms | ||
attributes: | ||
label: Before submitting | ||
description: By submitting this issue, you agree to follow our [Contributing Guidelines](https://github.com/shadcn-ui/ui/blob/main/CONTRIBUTING.md). | ||
options: | ||
- label: I've made research efforts and searched the documentation | ||
required: true | ||
- label: I've searched for existing issues | ||
required: true |
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 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Get Help | ||
url: https://github.com/shadcn-ui/ui/discussions/new?category=general | ||
about: If you can't get something to work the way you expect, open a question in our discussion forums. |
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,55 @@ | ||
name: "Feature request" | ||
description: Create a feature request for shadcn/ui | ||
title: '[feat]: ' | ||
labels: ['area: request'] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
### Thanks for taking the time to create a feature request! Please search open/closed issues before submitting, as the issue may have already been reported/addressed. | ||
- type: markdown | ||
attributes: | ||
value: | | ||
#### If you aren't sure this is a bug or not, please open a discussion instead: | ||
- [Discussions](https://github.com/shadcn-ui/ui/discussions/new?category=general) | ||
- type: textarea | ||
id: feature-description | ||
attributes: | ||
label: Feature description | ||
description: Tell us about your feature request | ||
placeholder: 'I think this feature would be great because...' | ||
value: 'Describe your feature request...' | ||
validations: | ||
required: true | ||
|
||
- type: input | ||
id: components-affected | ||
attributes: | ||
label: Affected component/components | ||
description: Is this feature request relevant to any of the already existing components? | ||
placeholder: ex. Button, Checkbox... | ||
validations: | ||
required: false | ||
|
||
- type: textarea | ||
id: context | ||
attributes: | ||
label: Additional Context | ||
description: Add any other context about the feature here. | ||
placeholder: ex. screenshots, Stack Overflow links, forum links, etc. | ||
value: 'Additional details here...' | ||
validations: | ||
required: false | ||
|
||
- type: checkboxes | ||
id: terms | ||
attributes: | ||
label: Before submitting | ||
description: By submitting this issue, you agree to follow our [Contributing Guidelines](https://github.com/shadcn-ui/ui/blob/main/CONTRIBUTING.md). | ||
options: | ||
- label: I've made research efforts and searched the documentation | ||
required: true | ||
- label: I've searched for existing issues and PRs | ||
required: true |
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 +1 @@ | ||
v18.17.0 | ||
v20.5.1 |
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,45 @@ | ||
import { Button } from "@/registry/default/ui/button" | ||
import { | ||
Card, | ||
CardContent, | ||
CardDescription, | ||
CardFooter, | ||
CardHeader, | ||
CardTitle, | ||
} from "@/registry/default/ui/card" | ||
import { Input } from "@/registry/default/ui/input" | ||
import { Label } from "@/registry/default/ui/label" | ||
|
||
export const description = | ||
"A simple login form with email and password. The submit button says 'Sign in'." | ||
|
||
export const iframeHeight = "600px" | ||
|
||
export const containerClassName = | ||
"w-full h-screen flex items-center justify-center px-4" | ||
|
||
export default function LoginForm() { | ||
return ( | ||
<Card className="w-full max-w-sm"> | ||
<CardHeader> | ||
<CardTitle className="text-2xl">Login</CardTitle> | ||
<CardDescription> | ||
Enter your email below to login to your account. | ||
</CardDescription> | ||
</CardHeader> | ||
<CardContent className="grid gap-4"> | ||
<div className="grid gap-2"> | ||
<Label htmlFor="email">Email</Label> | ||
<Input id="email" type="email" placeholder="m@example.com" required /> | ||
</div> | ||
<div className="grid gap-2"> | ||
<Label htmlFor="password">Password</Label> | ||
<Input id="password" type="password" required /> | ||
</div> | ||
</CardContent> | ||
<CardFooter> | ||
<Button className="w-full">Sign in</Button> | ||
</CardFooter> | ||
</Card> | ||
) | ||
} |
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,67 @@ | ||
import Link from "next/link" | ||
|
||
import { Button } from "@/registry/default/ui/button" | ||
import { | ||
Card, | ||
CardContent, | ||
CardDescription, | ||
CardHeader, | ||
CardTitle, | ||
} from "@/registry/default/ui/card" | ||
import { Input } from "@/registry/default/ui/input" | ||
import { Label } from "@/registry/default/ui/label" | ||
|
||
export const description = | ||
"A login form with email and password. There's an option to login with Google and a link to sign up if you don't have an account." | ||
|
||
export const iframeHeight = "600px" | ||
|
||
export const containerClassName = | ||
"w-full h-screen flex items-center justify-center px-4" | ||
|
||
export default function LoginForm() { | ||
return ( | ||
<Card className="mx-auto max-w-sm"> | ||
<CardHeader> | ||
<CardTitle className="text-2xl">Login</CardTitle> | ||
<CardDescription> | ||
Enter your email below to login to your account | ||
</CardDescription> | ||
</CardHeader> | ||
<CardContent> | ||
<div className="grid gap-4"> | ||
<div className="grid gap-2"> | ||
<Label htmlFor="email">Email</Label> | ||
<Input | ||
id="email" | ||
type="email" | ||
placeholder="m@example.com" | ||
required | ||
/> | ||
</div> | ||
<div className="grid gap-2"> | ||
<div className="flex items-center"> | ||
<Label htmlFor="password">Password</Label> | ||
<Link href="#" className="ml-auto inline-block text-sm underline"> | ||
Forgot your password? | ||
</Link> | ||
</div> | ||
<Input id="password" type="password" required /> | ||
</div> | ||
<Button type="submit" className="w-full"> | ||
Login | ||
</Button> | ||
<Button variant="outline" className="w-full"> | ||
Login with Google | ||
</Button> | ||
</div> | ||
<div className="mt-4 text-center text-sm"> | ||
Don't have an account?{" "} | ||
<Link href="#" className="underline"> | ||
Sign up | ||
</Link> | ||
</div> | ||
</CardContent> | ||
</Card> | ||
) | ||
} |
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,72 @@ | ||
import Link from "next/link" | ||
|
||
import { Button } from "@/registry/default/ui/button" | ||
import { | ||
Card, | ||
CardContent, | ||
CardDescription, | ||
CardHeader, | ||
CardTitle, | ||
} from "@/registry/default/ui/card" | ||
import { Input } from "@/registry/default/ui/input" | ||
import { Label } from "@/registry/default/ui/label" | ||
|
||
export const description = | ||
"A sign up form with first name, last name, email and password inside a card. There's an option to sign up with GitHub and a link to login if you already have an account" | ||
|
||
export const iframeHeight = "600px" | ||
|
||
export const containerClassName = | ||
"w-full h-screen flex items-center justify-center px-4" | ||
|
||
export default function LoginForm() { | ||
return ( | ||
<Card className="mx-auto max-w-sm"> | ||
<CardHeader> | ||
<CardTitle className="text-xl">Sign Up</CardTitle> | ||
<CardDescription> | ||
Enter your information to create an account | ||
</CardDescription> | ||
</CardHeader> | ||
<CardContent> | ||
<div className="grid gap-4"> | ||
<div className="grid grid-cols-2 gap-4"> | ||
<div className="grid gap-2"> | ||
<Label htmlFor="first-name">First name</Label> | ||
<Input id="first-name" placeholder="Max" required /> | ||
</div> | ||
<div className="grid gap-2"> | ||
<Label htmlFor="last-name">Last name</Label> | ||
<Input id="last-name" placeholder="Robinson" required /> | ||
</div> | ||
</div> | ||
<div className="grid gap-2"> | ||
<Label htmlFor="email">Email</Label> | ||
<Input | ||
id="email" | ||
type="email" | ||
placeholder="m@example.com" | ||
required | ||
/> | ||
</div> | ||
<div className="grid gap-2"> | ||
<Label htmlFor="password">Password</Label> | ||
<Input id="password" type="password" /> | ||
</div> | ||
<Button type="submit" className="w-full"> | ||
Create an account | ||
</Button> | ||
<Button variant="outline" className="w-full"> | ||
Sign up with GitHub | ||
</Button> | ||
</div> | ||
<div className="mt-4 text-center text-sm"> | ||
Already have an account?{" "} | ||
<Link href="#" className="underline"> | ||
Sign in | ||
</Link> | ||
</div> | ||
</CardContent> | ||
</Card> | ||
) | ||
} |
Oops, something went wrong.