-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60f0796
commit 7a532c7
Showing
81 changed files
with
2,570 additions
and
835 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 @@ | ||
{"advanced":{},"presets":{"ff_fps":[4824],"ff_lightning":{"label":"Voxel","value":"voxel"},"ff_engine":{"label":"Vulkan (MoltenVK)","value":"vulkan"},"ff_menu":{"label":"Default","value":"default"},"ff_display":true,"ff_graphics":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 @@ | ||
[{"flag":"Added","enabled":true},{"flag":"Addedaweaee","enabled":true},{"flag":"FFBROO","enabled":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 @@ | ||
{"activity":{"notify_location":true,"notify_place":true},"rpc":{"rpc_activity":true,"rpc_time":true,"rpc_join":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
Binary file not shown.
This file was deleted.
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
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 was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
frontend/src/lib/components/ui/alert-dialog/alert-dialog-action.svelte
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 { AlertDialog as AlertDialogPrimitive } from "bits-ui"; | ||
import { buttonVariants } from "$lib/components/ui/button/index.js"; | ||
import { cn } from "$lib/utils.js"; | ||
type $$Props = AlertDialogPrimitive.ActionProps; | ||
type $$Events = AlertDialogPrimitive.ActionEvents; | ||
let className: $$Props["class"] = undefined; | ||
export { className as class }; | ||
</script> | ||
|
||
<AlertDialogPrimitive.Action | ||
class={cn(buttonVariants(), className)} | ||
{...$$restProps} | ||
on:click | ||
on:keydown | ||
let:builder | ||
> | ||
<slot {builder} /> | ||
</AlertDialogPrimitive.Action> |
21 changes: 21 additions & 0 deletions
21
frontend/src/lib/components/ui/alert-dialog/alert-dialog-cancel.svelte
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 { AlertDialog as AlertDialogPrimitive } from "bits-ui"; | ||
import { buttonVariants } from "$lib/components/ui/button/index.js"; | ||
import { cn } from "$lib/utils.js"; | ||
type $$Props = AlertDialogPrimitive.CancelProps; | ||
type $$Events = AlertDialogPrimitive.CancelEvents; | ||
let className: $$Props["class"] = undefined; | ||
export { className as class }; | ||
</script> | ||
|
||
<AlertDialogPrimitive.Cancel | ||
class={cn(buttonVariants({ variant: "outline" }), "mt-2 sm:mt-0", className)} | ||
{...$$restProps} | ||
on:click | ||
on:keydown | ||
let:builder | ||
> | ||
<slot {builder} /> | ||
</AlertDialogPrimitive.Cancel> |
28 changes: 28 additions & 0 deletions
28
frontend/src/lib/components/ui/alert-dialog/alert-dialog-content.svelte
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 { AlertDialog as AlertDialogPrimitive } from "bits-ui"; | ||
import * as AlertDialog from "./index.js"; | ||
import { cn, flyAndScale } from "$lib/utils.js"; | ||
type $$Props = AlertDialogPrimitive.ContentProps; | ||
export let transition: $$Props["transition"] = flyAndScale; | ||
export let transitionConfig: $$Props["transitionConfig"] = undefined; | ||
let className: $$Props["class"] = undefined; | ||
export { className as class }; | ||
</script> | ||
|
||
<AlertDialog.Portal> | ||
<AlertDialog.Overlay /> | ||
<AlertDialogPrimitive.Content | ||
{transition} | ||
{transitionConfig} | ||
class={cn( | ||
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg sm:rounded-lg md:w-full", | ||
className | ||
)} | ||
{...$$restProps} | ||
> | ||
<slot /> | ||
</AlertDialogPrimitive.Content> | ||
</AlertDialog.Portal> |
16 changes: 16 additions & 0 deletions
16
frontend/src/lib/components/ui/alert-dialog/alert-dialog-description.svelte
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 { AlertDialog as AlertDialogPrimitive } from "bits-ui"; | ||
import { cn } from "$lib/utils.js"; | ||
type $$Props = AlertDialogPrimitive.DescriptionProps; | ||
let className: $$Props["class"] = undefined; | ||
export { className as class }; | ||
</script> | ||
|
||
<AlertDialogPrimitive.Description | ||
class={cn("text-sm text-muted-foreground", className)} | ||
{...$$restProps} | ||
> | ||
<slot /> | ||
</AlertDialogPrimitive.Description> |
16 changes: 16 additions & 0 deletions
16
frontend/src/lib/components/ui/alert-dialog/alert-dialog-footer.svelte
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 type { HTMLAttributes } from "svelte/elements"; | ||
import { cn } from "$lib/utils.js"; | ||
type $$Props = HTMLAttributes<HTMLDivElement>; | ||
let className: $$Props["class"] = undefined; | ||
export { className as class }; | ||
</script> | ||
|
||
<div | ||
class={cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)} | ||
{...$$restProps} | ||
> | ||
<slot /> | ||
</div> |
13 changes: 13 additions & 0 deletions
13
frontend/src/lib/components/ui/alert-dialog/alert-dialog-header.svelte
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.js"; | ||
type $$Props = HTMLAttributes<HTMLDivElement>; | ||
let className: $$Props["class"] = undefined; | ||
export { className as class }; | ||
</script> | ||
|
||
<div class={cn("flex flex-col space-y-2 text-center sm:text-left", className)} {...$$restProps}> | ||
<slot /> | ||
</div> |
21 changes: 21 additions & 0 deletions
21
frontend/src/lib/components/ui/alert-dialog/alert-dialog-overlay.svelte
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 { AlertDialog as AlertDialogPrimitive } from "bits-ui"; | ||
import { fade } from "svelte/transition"; | ||
import { cn } from "$lib/utils.js"; | ||
type $$Props = AlertDialogPrimitive.OverlayProps; | ||
let className: $$Props["class"] = undefined; | ||
export let transition: $$Props["transition"] = fade; | ||
export let transitionConfig: $$Props["transitionConfig"] = { | ||
duration: 150, | ||
}; | ||
export { className as class }; | ||
</script> | ||
|
||
<AlertDialogPrimitive.Overlay | ||
{transition} | ||
{transitionConfig} | ||
class={cn("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm ", className)} | ||
{...$$restProps} | ||
/> |
9 changes: 9 additions & 0 deletions
9
frontend/src/lib/components/ui/alert-dialog/alert-dialog-portal.svelte
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 { AlertDialog as AlertDialogPrimitive } from "bits-ui"; | ||
type $$Props = AlertDialogPrimitive.PortalProps; | ||
</script> | ||
|
||
<AlertDialogPrimitive.Portal {...$$restProps}> | ||
<slot /> | ||
</AlertDialogPrimitive.Portal> |
14 changes: 14 additions & 0 deletions
14
frontend/src/lib/components/ui/alert-dialog/alert-dialog-title.svelte
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 @@ | ||
<script lang="ts"> | ||
import { AlertDialog as AlertDialogPrimitive } from "bits-ui"; | ||
import { cn } from "$lib/utils.js"; | ||
type $$Props = AlertDialogPrimitive.TitleProps; | ||
let className: $$Props["class"] = undefined; | ||
export let level: $$Props["level"] = "h3"; | ||
export { className as class }; | ||
</script> | ||
|
||
<AlertDialogPrimitive.Title class={cn("text-lg font-semibold", className)} {level} {...$$restProps}> | ||
<slot /> | ||
</AlertDialogPrimitive.Title> |
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,40 @@ | ||
import { AlertDialog as AlertDialogPrimitive } from "bits-ui"; | ||
|
||
import Title from "./alert-dialog-title.svelte"; | ||
import Action from "./alert-dialog-action.svelte"; | ||
import Cancel from "./alert-dialog-cancel.svelte"; | ||
import Portal from "./alert-dialog-portal.svelte"; | ||
import Footer from "./alert-dialog-footer.svelte"; | ||
import Header from "./alert-dialog-header.svelte"; | ||
import Overlay from "./alert-dialog-overlay.svelte"; | ||
import Content from "./alert-dialog-content.svelte"; | ||
import Description from "./alert-dialog-description.svelte"; | ||
|
||
const Root = AlertDialogPrimitive.Root; | ||
const Trigger = AlertDialogPrimitive.Trigger; | ||
|
||
export { | ||
Root, | ||
Title, | ||
Action, | ||
Cancel, | ||
Portal, | ||
Footer, | ||
Header, | ||
Trigger, | ||
Overlay, | ||
Content, | ||
Description, | ||
// | ||
Root as AlertDialog, | ||
Title as AlertDialogTitle, | ||
Action as AlertDialogAction, | ||
Cancel as AlertDialogCancel, | ||
Portal as AlertDialogPortal, | ||
Footer as AlertDialogFooter, | ||
Header as AlertDialogHeader, | ||
Trigger as AlertDialogTrigger, | ||
Overlay as AlertDialogOverlay, | ||
Content as AlertDialogContent, | ||
Description as AlertDialogDescription, | ||
}; |
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 @@ | ||
<script lang="ts"> | ||
import { Button as ButtonPrimitive } from "bits-ui"; | ||
import { type Events, type Props, buttonVariants } from "./index.js"; | ||
import { cn } from "$lib/utils.js"; | ||
type $$Props = Props; | ||
type $$Events = Events; | ||
let className: $$Props["class"] = undefined; | ||
export let variant: $$Props["variant"] = "default"; | ||
export let size: $$Props["size"] = "default"; | ||
export let builders: $$Props["builders"] = []; | ||
export { className as class }; | ||
</script> | ||
|
||
<ButtonPrimitive.Root | ||
{builders} | ||
class={cn(buttonVariants({ variant, size, className }))} | ||
type="button" | ||
{...$$restProps} | ||
on:click | ||
on:keydown | ||
> | ||
<slot /> | ||
</ButtonPrimitive.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,49 @@ | ||
import { type VariantProps, tv } from "tailwind-variants"; | ||
import type { Button as ButtonPrimitive } from "bits-ui"; | ||
import Root from "./button.svelte"; | ||
|
||
const buttonVariants = tv({ | ||
base: "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", | ||
variants: { | ||
variant: { | ||
default: "bg-primary text-primary-foreground hover:bg-primary/90", | ||
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90", | ||
outline: | ||
"border border-input bg-background hover:bg-accent hover:text-accent-foreground", | ||
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80", | ||
ghost: "hover:bg-accent hover:text-accent-foreground", | ||
link: "text-primary underline-offset-4 hover:underline", | ||
}, | ||
size: { | ||
default: "h-10 px-4 py-2", | ||
sm: "h-9 rounded-md px-3", | ||
lg: "h-11 rounded-md px-8", | ||
icon: "h-10 w-10", | ||
}, | ||
}, | ||
defaultVariants: { | ||
variant: "default", | ||
size: "default", | ||
}, | ||
}); | ||
|
||
type Variant = VariantProps<typeof buttonVariants>["variant"]; | ||
type Size = VariantProps<typeof buttonVariants>["size"]; | ||
|
||
type Props = ButtonPrimitive.Props & { | ||
variant?: Variant; | ||
size?: Size; | ||
}; | ||
|
||
type Events = ButtonPrimitive.Events; | ||
|
||
export { | ||
Root, | ||
type Props, | ||
type Events, | ||
// | ||
Root as Button, | ||
type Props as ButtonProps, | ||
type Events as ButtonEvents, | ||
buttonVariants, | ||
}; |
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,35 @@ | ||
<script lang="ts"> | ||
import { Checkbox as CheckboxPrimitive } from "bits-ui"; | ||
import Check from "lucide-svelte/icons/check"; | ||
import Minus from "lucide-svelte/icons/minus"; | ||
import { cn } from "$lib/utils.js"; | ||
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( | ||
"peer box-content 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-[disabled=true]:cursor-not-allowed data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[disabled=true]:opacity-50", | ||
className | ||
)} | ||
bind:checked | ||
{...$$restProps} | ||
on:click | ||
> | ||
<CheckboxPrimitive.Indicator | ||
class={cn("flex h-4 w-4 items-center justify-center text-current")} | ||
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, | ||
}; |
Oops, something went wrong.