-
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.
Implemented Launch Shortcuts and a button to write ClientAppSettings.…
…json
- Loading branch information
1 parent
5d45ce7
commit f0fda57
Showing
12 changed files
with
385 additions
and
201 deletions.
There are no files selected for viewing
Binary file not shown.
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,15 @@ | ||
import { Tooltip as TooltipPrimitive } from "bits-ui"; | ||
import Content from "./tooltip-content.svelte"; | ||
|
||
const Root = TooltipPrimitive.Root; | ||
const Trigger = TooltipPrimitive.Trigger; | ||
|
||
export { | ||
Root, | ||
Trigger, | ||
Content, | ||
// | ||
Root as Tooltip, | ||
Content as TooltipContent, | ||
Trigger as TooltipTrigger, | ||
}; |
28 changes: 28 additions & 0 deletions
28
frontend/src/lib/components/ui/tooltip/tooltip-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 { Tooltip as TooltipPrimitive } from "bits-ui"; | ||
import { cn, flyAndScale } from "$lib/utils.js"; | ||
type $$Props = TooltipPrimitive.ContentProps; | ||
let className: $$Props["class"] = undefined; | ||
export let sideOffset: $$Props["sideOffset"] = 4; | ||
export let transition: $$Props["transition"] = flyAndScale; | ||
export let transitionConfig: $$Props["transitionConfig"] = { | ||
y: 8, | ||
duration: 150, | ||
}; | ||
export { className as class }; | ||
</script> | ||
|
||
<TooltipPrimitive.Content | ||
{transition} | ||
{transitionConfig} | ||
{sideOffset} | ||
class={cn( | ||
"z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md", | ||
className | ||
)} | ||
{...$$restProps} | ||
> | ||
<slot /> | ||
</TooltipPrimitive.Content> |
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,7 @@ | ||
/// <reference types="svelte" /> | ||
/// <reference types="vite/client" /> | ||
declare module '*.svelte' | ||
declare module '*.svelte' | ||
declare module '*.icns' { | ||
const src: string | ||
export default src | ||
} |
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.