mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-29 00:03:09 +00:00
* feat(frontend): wip * wip * wip * wip * wip * add toggle * correctly handle monaco theme * wip * wip * wip * wip * wip * feat(frontend): Dark mode v0 * feat(frontend): Adap AI gen poppup * feat(frontend): Adap script metadata labels * feat(frontend): Fix unreadable texts * feat(frontend): Fix unreadable texts * feat(frontend): Fix unreadable texts * feat(frontend): Fix ressource picker * feat(frontend): Fix unreadable texts * feat(frontend): Fix unreadable texts * feat(frontend): Fix unreadable texts * feat(frontend): Add theme toggle in the login page * feat(frontend): Fix unreadable texts * feat(frontend): Fix language selection * feat(frontend): Fix FlowStatusViewer colors * feat(frontend): Fix divide colors * feat(frontend): Fix flow graph buttons * feat(frontend): add theme toggle in login modal * feat(frontend): small ui fix * feat(frontend): fix graph dark mode toggle
35 lines
1.1 KiB
Svelte
35 lines
1.1 KiB
Svelte
<script lang="ts">
|
|
import { faInfoCircle } from '@fortawesome/free-solid-svg-icons'
|
|
import Icon from 'svelte-awesome'
|
|
import type { PopoverPlacement } from './Popover.model'
|
|
import Popover from './Popover.svelte'
|
|
import { ExternalLink } from 'lucide-svelte'
|
|
|
|
export let light = false
|
|
export let scale = 0.8
|
|
export let wrapperClass = ''
|
|
export let placement: PopoverPlacement | undefined = undefined
|
|
export let documentationLink: string | undefined = undefined
|
|
</script>
|
|
|
|
<Popover notClickable {placement} class={wrapperClass}>
|
|
<Icon
|
|
class="{light
|
|
? 'text-gray-400 dark:text-gray-200 hover:text-tertiary dark:hover:text-gray-300'
|
|
: ' text-tertiary dark:text-gray-300 hover:text-tertiary dark:hover:text-gray-400'} cursor-pointer transition-all font-thin flex h-4 p-0.5 w-4 justify-center items-center {$$props.class}"
|
|
data={faInfoCircle}
|
|
{scale}
|
|
/>
|
|
<svelte:fragment slot="text">
|
|
<slot />
|
|
{#if documentationLink}
|
|
<a href={documentationLink} target="_blank" class="text-blue-300 text-xs">
|
|
<div class="flex flex-row gap-2 mt-4">
|
|
See documentation
|
|
<ExternalLink size="16" />
|
|
</div>
|
|
</a>
|
|
{/if}
|
|
</svelte:fragment>
|
|
</Popover>
|