-
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 pull request #5 from based-zrt/IMG-16-login-ui
IMG-16-login-UI
- Loading branch information
Showing
56 changed files
with
1,027 additions
and
5 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<div class="container flex flex-col h-screen justify-center items-center text-center"> | ||
<div class="container flex flex-col h-screen justify-center items-center"> | ||
<slot /> | ||
</div> | ||
</div> |
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,13 @@ | ||
<script lang="ts"> | ||
import { cn } from "$lib/utils"; | ||
import type { HTMLAttributes } from "svelte/elements"; | ||
type $$Props = HTMLAttributes<HTMLDivElement>; | ||
let className: $$Props["class"] = undefined; | ||
export { className as class }; | ||
</script> | ||
|
||
<div class={cn("p-6 pt-0", className)} {...$$restProps}> | ||
<slot /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<script lang="ts"> | ||
import type { HTMLAttributes } from "svelte/elements"; | ||
import { cn } from "$lib/utils"; | ||
type $$Props = HTMLAttributes<HTMLParagraphElement>; | ||
let className: $$Props["class"] = undefined; | ||
export { className as class }; | ||
</script> | ||
|
||
<p class={cn("text-sm text-muted-foreground", className)} {...$$restProps}> | ||
<slot /> | ||
</p> |
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,13 @@ | ||
<script lang="ts"> | ||
import type { HTMLAttributes } from "svelte/elements"; | ||
import { cn } from "$lib/utils"; | ||
type $$Props = HTMLAttributes<HTMLDivElement>; | ||
let className: $$Props["class"] = undefined; | ||
export { className as class }; | ||
</script> | ||
|
||
<div class={cn("flex items-center p-6 pt-0", className)} {...$$restProps}> | ||
<slot /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<script lang="ts"> | ||
import type { HTMLAttributes } from "svelte/elements"; | ||
import { cn } from "$lib/utils"; | ||
type $$Props = HTMLAttributes<HTMLDivElement>; | ||
let className: $$Props["class"] = undefined; | ||
export { className as class }; | ||
</script> | ||
|
||
<div class={cn("flex flex-col space-y-1.5 p-6", className)} {...$$restProps}> | ||
<slot /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<script lang="ts"> | ||
import type { HTMLAttributes } from "svelte/elements"; | ||
import { cn } from "$lib/utils"; | ||
import type { HeadingLevel } from "."; | ||
type $$Props = HTMLAttributes<HTMLHeadingElement> & { | ||
tag?: HeadingLevel; | ||
}; | ||
let className: $$Props["class"] = undefined; | ||
export let tag: $$Props["tag"] = "h3"; | ||
export { className as class }; | ||
</script> | ||
|
||
<svelte:element | ||
this={tag} | ||
class={cn("text-lg font-semibold leading-none tracking-tight", className)} | ||
{...$$restProps} | ||
> | ||
<slot /> | ||
</svelte:element> |
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,19 @@ | ||
<script lang="ts"> | ||
import type { HTMLAttributes } from "svelte/elements"; | ||
import { cn } from "$lib/utils"; | ||
type $$Props = HTMLAttributes<HTMLDivElement>; | ||
let className: $$Props["class"] = undefined; | ||
export { className as class }; | ||
</script> | ||
|
||
<div | ||
class={cn( | ||
"rounded-lg border bg-card text-card-foreground shadow-sm", | ||
className | ||
)} | ||
{...$$restProps} | ||
> | ||
<slot /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import Root from "./card.svelte"; | ||
import Content from "./card-content.svelte"; | ||
import Description from "./card-description.svelte"; | ||
import Footer from "./card-footer.svelte"; | ||
import Header from "./card-header.svelte"; | ||
import Title from "./card-title.svelte"; | ||
|
||
export { | ||
Root, | ||
Content, | ||
Description, | ||
Footer, | ||
Header, | ||
Title, | ||
// | ||
Root as Card, | ||
Content as CardContent, | ||
Description as CardDescription, | ||
Footer as CardFooter, | ||
Header as CardHeader, | ||
Title as CardTitle | ||
}; | ||
|
||
export type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6"; |
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,34 @@ | ||
<script lang="ts"> | ||
import { Checkbox as CheckboxPrimitive } from "bits-ui"; | ||
import { Check, Minus } from "lucide-svelte"; | ||
import { cn } from "$lib/utils"; | ||
type $$Props = CheckboxPrimitive.Props; | ||
type $$Events = CheckboxPrimitive.Events; | ||
let className: $$Props["class"] = undefined; | ||
export let checked: $$Props["checked"] = false; | ||
export { className as class }; | ||
</script> | ||
|
||
<CheckboxPrimitive.Root | ||
class={cn( | ||
"box-content peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50", | ||
className | ||
)} | ||
bind:checked | ||
{...$$restProps} | ||
on:click | ||
> | ||
<CheckboxPrimitive.Indicator | ||
class={cn("flex items-center justify-center text-current h-4 w-4")} | ||
let:isChecked | ||
let:isIndeterminate | ||
> | ||
{#if isChecked} | ||
<Check class="h-3.5 w-3.5" /> | ||
{:else if isIndeterminate} | ||
<Minus class="h-3.5 w-3.5" /> | ||
{/if} | ||
</CheckboxPrimitive.Indicator> | ||
</CheckboxPrimitive.Root> |
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 @@ | ||
import Root from "./checkbox.svelte"; | ||
export { | ||
Root, | ||
// | ||
Root as Checkbox | ||
}; |
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 @@ | ||
<script lang="ts"> | ||
import * as Button from "$components/ui/button"; | ||
type $$Props = Button.Props; | ||
type $$Events = Button.Events; | ||
</script> | ||
|
||
<Button.Root type="submit" {...$$restProps} on:click on:keydown> | ||
<slot /> | ||
</Button.Root> |
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,26 @@ | ||
<script lang="ts"> | ||
import { getFormField } from "formsnap"; | ||
import type { Checkbox as CheckboxPrimitive } from "bits-ui"; | ||
import { Checkbox } from "$components/ui/checkbox"; | ||
type $$Props = CheckboxPrimitive.Props; | ||
type $$Events = CheckboxPrimitive.Events; | ||
export let onCheckedChange: $$Props["onCheckedChange"] = undefined; | ||
const { name, setValue, attrStore, value } = getFormField(); | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
const { name: nameAttr, value: valueAttr, ...rest } = $attrStore; | ||
</script> | ||
|
||
<Checkbox | ||
{...rest} | ||
checked={typeof $value === "boolean" ? $value : false} | ||
onCheckedChange={(v) => { | ||
onCheckedChange?.(v); | ||
setValue(v); | ||
}} | ||
{...$$restProps} | ||
on:click | ||
on:keydown | ||
/> | ||
<input hidden {name} value={$value} /> |
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,16 @@ | ||
<script lang="ts"> | ||
import { Form as FormPrimitive } from "formsnap"; | ||
import { cn } from "$lib/utils"; | ||
import type { HTMLAttributes } from "svelte/elements"; | ||
type $$Props = HTMLAttributes<HTMLSpanElement>; | ||
let className: string | undefined | null = undefined; | ||
export { className as class }; | ||
</script> | ||
|
||
<FormPrimitive.Description | ||
class={cn("text-sm text-muted-foreground", className)} | ||
{...$$restProps} | ||
> | ||
<slot /> | ||
</FormPrimitive.Description> |
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,28 @@ | ||
<script lang="ts"> | ||
import { getFormField } from "formsnap"; | ||
import type { HTMLInputAttributes } from "svelte/elements"; | ||
import { Input, type InputEvents } from "$components/ui/input"; | ||
type $$Props = HTMLInputAttributes; | ||
type $$Events = InputEvents; | ||
const { attrStore, value } = getFormField(); | ||
</script> | ||
|
||
<Input | ||
{...$attrStore} | ||
bind:value={$value} | ||
{...$$restProps} | ||
on:blur | ||
on:change | ||
on:click | ||
on:focus | ||
on:keydown | ||
on:keypress | ||
on:keyup | ||
on:mouseover | ||
on:mouseenter | ||
on:mouseleave | ||
on:paste | ||
on:input | ||
/> |
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,12 @@ | ||
<script lang="ts"> | ||
import { cn } from "$lib/utils"; | ||
import type { HTMLAttributes } from "svelte/elements"; | ||
type $$Props = HTMLAttributes<HTMLDivElement>; | ||
let className: string | undefined | null = undefined; | ||
export { className as class }; | ||
</script> | ||
|
||
<div class={cn("space-y-2", className)} {...$$restProps}> | ||
<slot /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<script lang="ts"> | ||
import type { Label as LabelPrimitive } from "bits-ui"; | ||
import { getFormField } from "formsnap"; | ||
import { cn } from "$lib/utils"; | ||
import { Label } from "$components/ui/label"; | ||
type $$Props = LabelPrimitive.Props; | ||
let className: $$Props["class"] = undefined; | ||
export { className as class }; | ||
const { errors, ids } = getFormField(); | ||
</script> | ||
|
||
<Label | ||
for={$ids.input} | ||
class={cn($errors && "text-destructive", className)} | ||
{...$$restProps} | ||
> | ||
<slot /> | ||
</Label> |
Oops, something went wrong.