diff --git a/frontend/src/lib/components/ArgInfo.svelte b/frontend/src/lib/components/ArgInfo.svelte index 54de7ef5b4..feadd419cd 100644 --- a/frontend/src/lib/components/ArgInfo.svelte +++ b/frontend/src/lib/components/ArgInfo.svelte @@ -8,9 +8,13 @@ import Tooltip from './Tooltip.svelte' import { Button, DrawerContent } from './common' - export let value: any - let jsonViewer: Drawer - let jsonViewerContent: any | undefined + interface Props { + value: any + } + + let { value }: Props = $props() + let jsonViewer: Drawer | undefined = $state() + let jsonViewerContent: any | undefined = $state() function isString(value: any) { return typeof value === 'string' || value instanceof String @@ -61,17 +65,17 @@ {:else if isString(value) && value.startsWith('$res:')} { + onclick={async () => { await getResource(value.substring('$res:'.length)) - jsonViewer.toggleDrawer() + jsonViewer?.toggleDrawer() }}>{value} {:else if isString(value) && value.startsWith('$var:')} { + onclick={async () => { await getVariable(value.substring('$res:'.length)) - jsonViewer.toggleDrawer() + jsonViewer?.toggleDrawer() }}>{value} {:else if typeof value !== 'object'} @@ -80,9 +84,9 @@ {#if JSON.stringify(value).length > 80} { + onclick={() => { jsonViewerContent = value - jsonViewer.toggleDrawer() + jsonViewer?.toggleDrawer() }}>See expanded {/if} @@ -92,9 +96,9 @@ {#if JSON.stringify(value).length > 120} { + onclick={() => { jsonViewerContent = value - jsonViewer.toggleDrawer() + jsonViewer?.toggleDrawer() }}> {/if} diff --git a/frontend/src/lib/components/DraftBadge.svelte b/frontend/src/lib/components/DraftBadge.svelte index fa9dc3a57d..e14cebb545 100644 --- a/frontend/src/lib/components/DraftBadge.svelte +++ b/frontend/src/lib/components/DraftBadge.svelte @@ -2,19 +2,27 @@ import Popover from './Popover.svelte' import { Badge } from './common' - export let has_draft: boolean = false - export let draft_only: boolean = false + interface Props { + has_draft?: boolean + draft_only?: boolean + } + + let { has_draft = false, draft_only = false }: Props = $props() {#if has_draft} {#if draft_only} - Never deployed and is only a draft + {#snippet text()} + Never deployed and is only a draft + {/snippet} Draft only {:else} - Is deployed and has a draft + {#snippet text()} + Is deployed and has a draft + {/snippet} +Draft {/if} diff --git a/frontend/src/lib/components/apps/components/helpers/RefreshButton.svelte b/frontend/src/lib/components/apps/components/helpers/RefreshButton.svelte index 71c5e2dbd3..fc25b2e382 100644 --- a/frontend/src/lib/components/apps/components/helpers/RefreshButton.svelte +++ b/frontend/src/lib/components/apps/components/helpers/RefreshButton.svelte @@ -6,19 +6,24 @@ import Popover from '$lib/components/Popover.svelte' import type { AppViewerContext, CancelablePromise } from '../../types' - export let id: string - export let loading: boolean + interface Props { + id: string + loading: boolean + } + + let { id, loading }: Props = $props() const { runnableComponents } = getContext('AppViewerContext') - let buttonHover = false - let cancelCallbacks: (CancelablePromise)[] | undefined = undefined + let buttonHover = $state(false) + let cancelCallbacks: CancelablePromise[] | undefined = $state(undefined) (buttonHover = true)} on:mouseleave={() => (buttonHover = false)} + on:mouseenter={() => (buttonHover = true)} + on:mouseleave={() => (buttonHover = false)} startIcon={{ - icon: loading ? !buttonHover ? LoaderIcon : RefreshCwOff : RefreshCw, + icon: loading ? (!buttonHover ? LoaderIcon : RefreshCwOff) : RefreshCw, classes: twMerge( loading && !buttonHover ? 'animate-spin text-blue-800' : '', 'transition-all text-gray-500 dark:text-white' @@ -29,14 +34,14 @@ btnClasses={twMerge(loading ? ' bg-blue-100 dark:bg-blue-400' : '', 'transition-all')} on:click={() => { if (buttonHover && loading) { - cancelCallbacks?.forEach((cb) => cb.cancel()) + cancelCallbacks?.forEach((cb) => cb.cancel()) } else { - cancelCallbacks = $runnableComponents[id]?.cb?.map((cb) => cb()) + cancelCallbacks = $runnableComponents[id]?.cb?.map((cb) => cb()) } }} iconOnly /> - + {#snippet text()} {#if loading} {#if buttonHover} Stop Refreshing @@ -46,5 +51,5 @@ {:else} Refresh {/if} - + {/snippet} diff --git a/frontend/src/lib/components/common/kbd/Kbd.svelte b/frontend/src/lib/components/common/kbd/Kbd.svelte index 27de0f7686..002f4e8c16 100644 --- a/frontend/src/lib/components/common/kbd/Kbd.svelte +++ b/frontend/src/lib/components/common/kbd/Kbd.svelte @@ -2,9 +2,21 @@ import { isMac } from '$lib/utils' import { twMerge } from 'tailwind-merge' - export let kbdClass = '' - export let small = false - export let isModifier: boolean = false + interface Props { + kbdClass?: string + small?: boolean + isModifier?: boolean + class?: string + children?: import('svelte').Snippet + } + + let { + kbdClass = $bindable(''), + small = false, + isModifier = false, + class: classNames = '', + children + }: Props = $props() if (small) { kbdClass = twMerge( @@ -20,12 +32,12 @@ - + {@render children?.()} diff --git a/frontend/src/lib/components/common/languageIcons/Bash.svelte b/frontend/src/lib/components/common/languageIcons/Bash.svelte index b4da143788..e535d15289 100644 --- a/frontend/src/lib/components/common/languageIcons/Bash.svelte +++ b/frontend/src/lib/components/common/languageIcons/Bash.svelte @@ -1,18 +1,29 @@ - - - - - + + + + + diff --git a/frontend/src/lib/components/common/languageIcons/Go.svelte b/frontend/src/lib/components/common/languageIcons/Go.svelte index 3e1f4581d4..3c2f4c339d 100644 --- a/frontend/src/lib/components/common/languageIcons/Go.svelte +++ b/frontend/src/lib/components/common/languageIcons/Go.svelte @@ -1,16 +1,15 @@ - + - export let width = 16 - export let height = 16 + /** + * @typedef {Object} Props + * @property {number} [width] + * @property {number} [height] + */ + + /** @type {Props} */ + let { width = 16, height = 16 } = $props() diff --git a/frontend/src/lib/components/common/languageIcons/LanguageIcon.svelte b/frontend/src/lib/components/common/languageIcons/LanguageIcon.svelte index 6a3de43bf9..3cfb57fee5 100644 --- a/frontend/src/lib/components/common/languageIcons/LanguageIcon.svelte +++ b/frontend/src/lib/components/common/languageIcons/LanguageIcon.svelte @@ -24,7 +24,8 @@ import JavaIcon from '$lib/components/icons/JavaIcon.svelte' import DuckDbIcon from '$lib/components/icons/DuckDbIcon.svelte' - export let lang: + interface Props { + lang: | SupportedLanguage | 'mysql' | 'bun' @@ -33,10 +34,20 @@ | 'fetch' | 'docker' | 'powershell' - | 'bunnative' - export let width = 30 - export let height = 30 - export let scale = 1 + | 'bunnative'; + width?: number; + height?: number; + scale?: number; + [key: string]: any + } + + let { + lang, + width = 30, + height = 30, + scale = 1, + ...rest + }: Props = $props(); const languageLabel: Record - {#if lang === 'deno'} - export let width = 16 - export let height = 16 + - export let width = 16 - export let height = 16 + import { Calendar, Mail, Webhook, Unplug, Database, Terminal } from 'lucide-svelte' import { Loader2 } from 'lucide-svelte' - import { type ComponentType } from 'svelte' + import { type Component, type ComponentType } from 'svelte' import { Route } from 'lucide-svelte' import { getContext } from 'svelte' import { type TriggerContext } from '$lib/components/triggers' @@ -44,7 +44,11 @@ let menuOpen = $state(false) const triggerTypeConfig: { - [key in TriggerType]: { icon: ComponentType; countKey?: string; disabled?: boolean } + [key in TriggerType]: { + icon: ComponentType | Component + countKey?: string + disabled?: boolean + } } = { webhook: { icon: Webhook, countKey: 'webhook_count' }, schedule: { icon: Calendar, countKey: 'schedule_count' }, diff --git a/frontend/src/lib/components/icons/ActivitypubIcon.svelte b/frontend/src/lib/components/icons/ActivitypubIcon.svelte index efe8f989b3..0185d98f3a 100644 --- a/frontend/src/lib/components/icons/ActivitypubIcon.svelte +++ b/frontend/src/lib/components/icons/ActivitypubIcon.svelte @@ -1,6 +1,10 @@ - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); Asana \ No newline at end of file diff --git a/frontend/src/lib/components/icons/AwsEcrIcon.svelte b/frontend/src/lib/components/icons/AwsEcrIcon.svelte index 9d1bf7f0c0..2801712f62 100644 --- a/frontend/src/lib/components/icons/AwsEcrIcon.svelte +++ b/frontend/src/lib/components/icons/AwsEcrIcon.svelte @@ -1,6 +1,10 @@ - export let size: number = 16 - export let color: string | undefined = undefined - let clazz = '' - export { clazz as class } + interface Props { + size?: number; + color?: string | undefined; + class?: string; + } + + let { size = 16, color = undefined, class: clazz = '' }: Props = $props(); + - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let size: number = 16 - export let style: string = 'fill: white;' - let clazz = '' - export { clazz as class } + interface Props { + size?: number; + style?: string; + class?: string; + } + + let { size = 16, style = 'fill: white;', class: clazz = '' }: Props = $props(); + - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); diff --git a/frontend/src/lib/components/icons/BigQueryIcon.svelte b/frontend/src/lib/components/icons/BigQueryIcon.svelte index a12761bd19..10d099f75d 100644 --- a/frontend/src/lib/components/icons/BigQueryIcon.svelte +++ b/frontend/src/lib/components/icons/BigQueryIcon.svelte @@ -1,6 +1,10 @@ - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); diff --git a/frontend/src/lib/components/icons/BunIcon.svelte b/frontend/src/lib/components/icons/BunIcon.svelte index 9228e7ce1d..ef845d4834 100644 --- a/frontend/src/lib/components/icons/BunIcon.svelte +++ b/frontend/src/lib/components/icons/BunIcon.svelte @@ -1,6 +1,10 @@ - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); diff --git a/frontend/src/lib/components/icons/CSharpIcon.svelte b/frontend/src/lib/components/icons/CSharpIcon.svelte index 36cd1777f3..703c692036 100644 --- a/frontend/src/lib/components/icons/CSharpIcon.svelte +++ b/frontend/src/lib/components/icons/CSharpIcon.svelte @@ -1,6 +1,10 @@ - diff --git a/frontend/src/lib/components/icons/CalcomIcon.svelte b/frontend/src/lib/components/icons/CalcomIcon.svelte index 3dce2d516c..e11dc76d24 100644 --- a/frontend/src/lib/components/icons/CalcomIcon.svelte +++ b/frontend/src/lib/components/icons/CalcomIcon.svelte @@ -1,6 +1,10 @@ - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); diff --git a/frontend/src/lib/components/icons/DatadogIcon.svelte b/frontend/src/lib/components/icons/DatadogIcon.svelte index 74af0888bc..f1e8e02776 100644 --- a/frontend/src/lib/components/icons/DatadogIcon.svelte +++ b/frontend/src/lib/components/icons/DatadogIcon.svelte @@ -1,6 +1,10 @@ - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); diff --git a/frontend/src/lib/components/icons/DenoIcon.svelte b/frontend/src/lib/components/icons/DenoIcon.svelte index e29de9524b..86dca42410 100644 --- a/frontend/src/lib/components/icons/DenoIcon.svelte +++ b/frontend/src/lib/components/icons/DenoIcon.svelte @@ -1,6 +1,10 @@ - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let width = 16 - export let height = 16 + diff --git a/frontend/src/lib/components/icons/DynatraceIcon.svelte b/frontend/src/lib/components/icons/DynatraceIcon.svelte index 0bd4e035ae..e8d57c58ce 100644 --- a/frontend/src/lib/components/icons/DynatraceIcon.svelte +++ b/frontend/src/lib/components/icons/DynatraceIcon.svelte @@ -1,6 +1,10 @@ diff --git a/frontend/src/lib/components/icons/EdgeDbIcon.svelte b/frontend/src/lib/components/icons/EdgeDbIcon.svelte index d40dfefa67..2b94ecb6d0 100644 --- a/frontend/src/lib/components/icons/EdgeDbIcon.svelte +++ b/frontend/src/lib/components/icons/EdgeDbIcon.svelte @@ -1,6 +1,10 @@ - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); diff --git a/frontend/src/lib/components/icons/GdriveIcon.svelte b/frontend/src/lib/components/icons/GdriveIcon.svelte index 34e9e34219..eff87a3645 100644 --- a/frontend/src/lib/components/icons/GdriveIcon.svelte +++ b/frontend/src/lib/components/icons/GdriveIcon.svelte @@ -1,6 +1,10 @@ - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); diff --git a/frontend/src/lib/components/icons/GithubIcon.svelte b/frontend/src/lib/components/icons/GithubIcon.svelte index 3c94d82af0..2f08b8e045 100644 --- a/frontend/src/lib/components/icons/GithubIcon.svelte +++ b/frontend/src/lib/components/icons/GithubIcon.svelte @@ -1,6 +1,10 @@ - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let size: number = 16 + interface Props { + size?: number; + } + + let { size = 16 }: Props = $props(); - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); diff --git a/frontend/src/lib/components/icons/GraphqlIcon.svelte b/frontend/src/lib/components/icons/GraphqlIcon.svelte index c33ea33751..292bdbad20 100644 --- a/frontend/src/lib/components/icons/GraphqlIcon.svelte +++ b/frontend/src/lib/components/icons/GraphqlIcon.svelte @@ -1,6 +1,10 @@ - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); diff --git a/frontend/src/lib/components/icons/HttpIcon.svelte b/frontend/src/lib/components/icons/HttpIcon.svelte index bf91087e6b..eb0833ed0e 100644 --- a/frontend/src/lib/components/icons/HttpIcon.svelte +++ b/frontend/src/lib/components/icons/HttpIcon.svelte @@ -1,6 +1,10 @@ - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); diff --git a/frontend/src/lib/components/icons/IpinfoIcon.svelte b/frontend/src/lib/components/icons/IpinfoIcon.svelte index 0eaa23a983..fad040eb6a 100644 --- a/frontend/src/lib/components/icons/IpinfoIcon.svelte +++ b/frontend/src/lib/components/icons/IpinfoIcon.svelte @@ -1,6 +1,10 @@ diff --git a/frontend/src/lib/components/icons/JavaIcon.svelte b/frontend/src/lib/components/icons/JavaIcon.svelte index 868aeeccaa..7bdf2ad235 100644 --- a/frontend/src/lib/components/icons/JavaIcon.svelte +++ b/frontend/src/lib/components/icons/JavaIcon.svelte @@ -1,6 +1,10 @@ - diff --git a/frontend/src/lib/components/icons/JavaScriptIcon.svelte b/frontend/src/lib/components/icons/JavaScriptIcon.svelte index 23dce0a347..c6a4c75b71 100644 --- a/frontend/src/lib/components/icons/JavaScriptIcon.svelte +++ b/frontend/src/lib/components/icons/JavaScriptIcon.svelte @@ -1,6 +1,10 @@ - diff --git a/frontend/src/lib/components/icons/JiraIcon.svelte b/frontend/src/lib/components/icons/JiraIcon.svelte index a40a9c06bc..6e1319240e 100644 --- a/frontend/src/lib/components/icons/JiraIcon.svelte +++ b/frontend/src/lib/components/icons/JiraIcon.svelte @@ -1,6 +1,10 @@ - export let height = '24px' - export let width = '24px' + - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); diff --git a/frontend/src/lib/components/icons/KafkaIcon.svelte b/frontend/src/lib/components/icons/KafkaIcon.svelte index 20324a3395..ce3e1f23f9 100644 --- a/frontend/src/lib/components/icons/KafkaIcon.svelte +++ b/frontend/src/lib/components/icons/KafkaIcon.svelte @@ -1,8 +1,11 @@ - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); diff --git a/frontend/src/lib/components/icons/LinkdingIcon.svelte b/frontend/src/lib/components/icons/LinkdingIcon.svelte index d5af77333f..cc68b23733 100644 --- a/frontend/src/lib/components/icons/LinkdingIcon.svelte +++ b/frontend/src/lib/components/icons/LinkdingIcon.svelte @@ -1,6 +1,10 @@ diff --git a/frontend/src/lib/components/icons/LinkedinIcon.svelte b/frontend/src/lib/components/icons/LinkedinIcon.svelte index f2c79ee54a..c139c66ea4 100644 --- a/frontend/src/lib/components/icons/LinkedinIcon.svelte +++ b/frontend/src/lib/components/icons/LinkedinIcon.svelte @@ -1,6 +1,10 @@ diff --git a/frontend/src/lib/components/icons/MSSqlServerIcon.svelte b/frontend/src/lib/components/icons/MSSqlServerIcon.svelte index 24fdcda841..0ad4d45ea1 100644 --- a/frontend/src/lib/components/icons/MSSqlServerIcon.svelte +++ b/frontend/src/lib/components/icons/MSSqlServerIcon.svelte @@ -1,6 +1,10 @@ diff --git a/frontend/src/lib/components/icons/MSTeamsIcon.svelte b/frontend/src/lib/components/icons/MSTeamsIcon.svelte index c1b67498b2..0caf1558ed 100644 --- a/frontend/src/lib/components/icons/MSTeamsIcon.svelte +++ b/frontend/src/lib/components/icons/MSTeamsIcon.svelte @@ -1,6 +1,10 @@ \ No newline at end of file diff --git a/frontend/src/lib/components/icons/Mail.svelte b/frontend/src/lib/components/icons/Mail.svelte index ea112f8f8d..7593f2f228 100644 --- a/frontend/src/lib/components/icons/Mail.svelte +++ b/frontend/src/lib/components/icons/Mail.svelte @@ -1,6 +1,10 @@ - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); diff --git a/frontend/src/lib/components/icons/MailgunIcon.svelte b/frontend/src/lib/components/icons/MailgunIcon.svelte index c06d13b167..e66c234e92 100644 --- a/frontend/src/lib/components/icons/MailgunIcon.svelte +++ b/frontend/src/lib/components/icons/MailgunIcon.svelte @@ -1,6 +1,10 @@ diff --git a/frontend/src/lib/components/icons/MastodonIcon.svelte b/frontend/src/lib/components/icons/MastodonIcon.svelte index a71f7a50df..36bd6576ce 100644 --- a/frontend/src/lib/components/icons/MastodonIcon.svelte +++ b/frontend/src/lib/components/icons/MastodonIcon.svelte @@ -1,6 +1,10 @@ - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); diff --git a/frontend/src/lib/components/icons/MqttIcon.svelte b/frontend/src/lib/components/icons/MqttIcon.svelte index 05b7fa8a7d..293af03a92 100644 --- a/frontend/src/lib/components/icons/MqttIcon.svelte +++ b/frontend/src/lib/components/icons/MqttIcon.svelte @@ -1,8 +1,12 @@ - export let size: number = 16 - export let color: string | undefined = undefined - let clazz = '' - export { clazz as class } + interface Props { + size?: number; + color?: string | undefined; + class?: string; + } + + let { size = 16, color = undefined, class: clazz = '' }: Props = $props(); + - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = 24 - export let width = 24 + diff --git a/frontend/src/lib/components/icons/OpenaiIcon.svelte b/frontend/src/lib/components/icons/OpenaiIcon.svelte index d21d281c65..cd7d441b7d 100644 --- a/frontend/src/lib/components/icons/OpenaiIcon.svelte +++ b/frontend/src/lib/components/icons/OpenaiIcon.svelte @@ -1,6 +1,10 @@ - export let height = '24px' - export let width = '24px' + - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let size = 24 + interface Props { + size?: number; + } + + let { size = 24 }: Props = $props(); diff --git a/frontend/src/lib/components/icons/PineconeIcon.svelte b/frontend/src/lib/components/icons/PineconeIcon.svelte index 7cba578545..06010a30f6 100644 --- a/frontend/src/lib/components/icons/PineconeIcon.svelte +++ b/frontend/src/lib/components/icons/PineconeIcon.svelte @@ -1,6 +1,10 @@ - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); diff --git a/frontend/src/lib/components/icons/QRCodeIcon.svelte b/frontend/src/lib/components/icons/QRCodeIcon.svelte index 3a004f3c32..f7d2aacfd6 100644 --- a/frontend/src/lib/components/icons/QRCodeIcon.svelte +++ b/frontend/src/lib/components/icons/QRCodeIcon.svelte @@ -1,7 +1,11 @@ diff --git a/frontend/src/lib/components/icons/QuickbooksIcon.svelte b/frontend/src/lib/components/icons/QuickbooksIcon.svelte index 2561789c4e..aec9eebc79 100644 --- a/frontend/src/lib/components/icons/QuickbooksIcon.svelte +++ b/frontend/src/lib/components/icons/QuickbooksIcon.svelte @@ -1,6 +1,10 @@ \ No newline at end of file diff --git a/frontend/src/lib/components/icons/ReactIcon.svelte b/frontend/src/lib/components/icons/ReactIcon.svelte index fc286af4e0..791235b5df 100644 --- a/frontend/src/lib/components/icons/ReactIcon.svelte +++ b/frontend/src/lib/components/icons/ReactIcon.svelte @@ -1,6 +1,10 @@ - diff --git a/frontend/src/lib/components/icons/RedditIcon.svelte b/frontend/src/lib/components/icons/RedditIcon.svelte index e0a31d4566..e5b65d7fc7 100644 --- a/frontend/src/lib/components/icons/RedditIcon.svelte +++ b/frontend/src/lib/components/icons/RedditIcon.svelte @@ -1,6 +1,10 @@ diff --git a/frontend/src/lib/components/icons/ResendIcon.svelte b/frontend/src/lib/components/icons/ResendIcon.svelte index 18d061f8a6..28e51bc152 100644 --- a/frontend/src/lib/components/icons/ResendIcon.svelte +++ b/frontend/src/lib/components/icons/ResendIcon.svelte @@ -1,6 +1,10 @@ diff --git a/frontend/src/lib/components/icons/RestIcon.svelte b/frontend/src/lib/components/icons/RestIcon.svelte index bf91087e6b..eb0833ed0e 100644 --- a/frontend/src/lib/components/icons/RestIcon.svelte +++ b/frontend/src/lib/components/icons/RestIcon.svelte @@ -1,6 +1,10 @@ - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - // You can pass props for flexibility (e.g., size, color) - export let size = 24 + - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let size = '24' + interface Props { + size?: string + class?: string + } + + let { size = '24', class: classNames = '' }: Props = $props() - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); diff --git a/frontend/src/lib/components/icons/SquareIcon.svelte b/frontend/src/lib/components/icons/SquareIcon.svelte index 1df73a388b..2720650c74 100644 --- a/frontend/src/lib/components/icons/SquareIcon.svelte +++ b/frontend/src/lib/components/icons/SquareIcon.svelte @@ -1,6 +1,10 @@ diff --git a/frontend/src/lib/components/icons/StripeIcon.svelte b/frontend/src/lib/components/icons/StripeIcon.svelte index db3f6ae34b..a06e39c1c9 100644 --- a/frontend/src/lib/components/icons/StripeIcon.svelte +++ b/frontend/src/lib/components/icons/StripeIcon.svelte @@ -1,6 +1,10 @@ diff --git a/frontend/src/lib/components/icons/SupabaseIcon.svelte b/frontend/src/lib/components/icons/SupabaseIcon.svelte index 0299482fcf..5e2bed8b61 100644 --- a/frontend/src/lib/components/icons/SupabaseIcon.svelte +++ b/frontend/src/lib/components/icons/SupabaseIcon.svelte @@ -1,6 +1,10 @@ diff --git a/frontend/src/lib/components/icons/SurrealdbIcon.svelte b/frontend/src/lib/components/icons/SurrealdbIcon.svelte index 8a12c6ec32..c882c7ba53 100644 --- a/frontend/src/lib/components/icons/SurrealdbIcon.svelte +++ b/frontend/src/lib/components/icons/SurrealdbIcon.svelte @@ -1,6 +1,10 @@ diff --git a/frontend/src/lib/components/icons/SvelteIcon.svelte b/frontend/src/lib/components/icons/SvelteIcon.svelte index 6f6dfcc528..c0de67a482 100644 --- a/frontend/src/lib/components/icons/SvelteIcon.svelte +++ b/frontend/src/lib/components/icons/SvelteIcon.svelte @@ -1,6 +1,10 @@ - diff --git a/frontend/src/lib/components/icons/TelegramIcon.svelte b/frontend/src/lib/components/icons/TelegramIcon.svelte index 6d06b2bccd..eaa6118e55 100644 --- a/frontend/src/lib/components/icons/TelegramIcon.svelte +++ b/frontend/src/lib/components/icons/TelegramIcon.svelte @@ -1,6 +1,10 @@ diff --git a/frontend/src/lib/components/icons/TogglIcon.svelte b/frontend/src/lib/components/icons/TogglIcon.svelte index 3b4a1a74a5..f621ae5c38 100644 --- a/frontend/src/lib/components/icons/TogglIcon.svelte +++ b/frontend/src/lib/components/icons/TogglIcon.svelte @@ -1,6 +1,10 @@ - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); \ No newline at end of file diff --git a/frontend/src/lib/components/icons/TwilioIcon.svelte b/frontend/src/lib/components/icons/TwilioIcon.svelte index 1e56b9c95e..88a9ff9613 100644 --- a/frontend/src/lib/components/icons/TwilioIcon.svelte +++ b/frontend/src/lib/components/icons/TwilioIcon.svelte @@ -1,6 +1,10 @@ diff --git a/frontend/src/lib/components/icons/TypeformIcon.svelte b/frontend/src/lib/components/icons/TypeformIcon.svelte index 0e3ad844f5..c9f0101c0b 100644 --- a/frontend/src/lib/components/icons/TypeformIcon.svelte +++ b/frontend/src/lib/components/icons/TypeformIcon.svelte @@ -1,6 +1,10 @@ - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); diff --git a/frontend/src/lib/components/icons/VueIcon.svelte b/frontend/src/lib/components/icons/VueIcon.svelte index a04b3dd918..30856c5144 100644 --- a/frontend/src/lib/components/icons/VueIcon.svelte +++ b/frontend/src/lib/components/icons/VueIcon.svelte @@ -1,6 +1,10 @@ - diff --git a/frontend/src/lib/components/icons/WebdavIcon.svelte b/frontend/src/lib/components/icons/WebdavIcon.svelte index 31a1213ac6..b2175f8c01 100644 --- a/frontend/src/lib/components/icons/WebdavIcon.svelte +++ b/frontend/src/lib/components/icons/WebdavIcon.svelte @@ -1,6 +1,10 @@ diff --git a/frontend/src/lib/components/icons/WindmillIcon.svelte b/frontend/src/lib/components/icons/WindmillIcon.svelte index 2aef2fd20b..500691faab 100644 --- a/frontend/src/lib/components/icons/WindmillIcon.svelte +++ b/frontend/src/lib/components/icons/WindmillIcon.svelte @@ -1,27 +1,32 @@ {#if customIcon.white || customIcon.normal} {#if white} - + {:else} - + {/if} {:else} {#if customIcon.white || customIcon.normal} @@ -114,7 +130,7 @@ alt="Windmill Custom icon" width={size} height={size} - class={$$props.class} + class={classNames} /> {:else} {/if} {:else} - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); - export let height = '24px' - export let width = '24px' + interface Props { + height?: string; + width?: string; + } + + let { height = '24px', width = '24px' }: Props = $props(); diff --git a/frontend/src/lib/components/icons/ZendeskIcon.svelte b/frontend/src/lib/components/icons/ZendeskIcon.svelte index 59603738ee..c52b7295f2 100644 --- a/frontend/src/lib/components/icons/ZendeskIcon.svelte +++ b/frontend/src/lib/components/icons/ZendeskIcon.svelte @@ -1,6 +1,10 @@ diff --git a/frontend/src/lib/components/icons/ZitadelIcon.svelte b/frontend/src/lib/components/icons/ZitadelIcon.svelte index 456d456c5f..4548180b9b 100644 --- a/frontend/src/lib/components/icons/ZitadelIcon.svelte +++ b/frontend/src/lib/components/icons/ZitadelIcon.svelte @@ -1,6 +1,10 @@ diff --git a/frontend/src/lib/components/icons/brands/Auth0.svelte b/frontend/src/lib/components/icons/brands/Auth0.svelte index 43e0a89880..8d6696411c 100644 --- a/frontend/src/lib/components/icons/brands/Auth0.svelte +++ b/frontend/src/lib/components/icons/brands/Auth0.svelte @@ -1,8 +1,12 @@ - export let size: number = 16 - export let style: string = 'fill: white;' - let clazz = '' - export { clazz as class } + interface Props { + size?: number; + style?: string; + class?: string; + } + + let { size = 16, style = 'fill: white;', class: clazz = '' }: Props = $props(); + - export let size: number = 16 - export let style: string = 'fill: white;' - let clazz = '' - export { clazz as class } + interface Props { + size?: number; + style?: string; + class?: string; + } + + let { size = 16, style = 'fill: white;', class: clazz = '' }: Props = $props(); + - export let size: number = 16 - export let style: string = 'fill: white;' - let clazz = '' - export { clazz as class } + interface Props { + size?: number; + style?: string; + class?: string; + } + + let { size = 16, style = 'fill: white;', class: clazz = '' }: Props = $props(); + - export let size: number = 16 - export let style: string = 'fill: white;' - let clazz = '' - export { clazz as class } + interface Props { + size?: number; + style?: string; + class?: string; + } + + let { size = 16, style = 'fill: white;', class: clazz = '' }: Props = $props(); + - export let size: number = 16 - export let style: string = 'fill: white;' - let clazz = '' - export { clazz as class } + interface Props { + size?: number; + style?: string; + class?: string; + } + + let { size = 16, style = 'fill: white;', class: clazz = '' }: Props = $props(); + - export let size: number = 16 - export let style: string = 'fill: white;' - let clazz = '' - export { clazz as class } + interface Props { + size?: number; + style?: string; + class?: string; + } + + let { size = 16, style = 'fill: white;', class: clazz = '' }: Props = $props(); +