update dependencies, update eslint config, update optional ts props types

This commit is contained in:
Gregor Vostrak
2025-01-29 17:58:03 +01:00
parent 00e2518196
commit 18ab1f714b
128 changed files with 2926 additions and 3127 deletions

View File

@@ -6,9 +6,9 @@ import { twMerge } from 'tailwind-merge';
const props = withDefaults(
defineProps<{
type: HtmlButtonType;
type?: HtmlButtonType;
icon?: Component;
loading: boolean;
loading?: boolean;
}>(),
{
type: 'submit',
@@ -28,8 +28,8 @@ const props = withDefaults(
">
<LoadingSpinner v-if="loading"></LoadingSpinner>
<component
v-if="props.icon && !loading"
:is="props.icon"
v-if="props.icon && !loading"
class="text-text-secondary w-4 -ml-0.5 mr-1"></component>
<span>
<slot />

View File

@@ -6,10 +6,10 @@ import LoadingSpinner from '../LoadingSpinner.vue';
const props = withDefaults(
defineProps<{
type: HtmlButtonType;
type?: HtmlButtonType;
icon?: Component;
size: 'small' | 'base';
loading: boolean;
size?: 'small' | 'base';
loading?: boolean;
class?: string;
}>(),
{
@@ -42,8 +42,8 @@ const sizeClasses = {
">
<LoadingSpinner v-if="loading"></LoadingSpinner>
<component
v-if="props.icon && !loading"
:is="props.icon"
v-if="props.icon && !loading"
class="text-text-tertiary w-4 -ml-0.5 mr-1"></component>
<span>
<slot />