12 implement twilio sms #37

Merged
BenjaminPalko merged 26 commits from 12-implement-twilio-sms into master 2025-01-02 20:11:28 -05:00
Showing only changes of commit 01704b5a88 - Show all commits

View file

@ -1,12 +1,13 @@
<script lang="ts">
import type { DaisyColor, DaisySize } from '$lib/types';
import type { Snippet } from 'svelte';
type Props = {
bordered?: boolean;
color?: Omit<DaisyColor, 'neutral'>;
disabled?: boolean;
error?: string;
label?: string;
error?: string | Snippet;
label?: string | Snippet;
size?: DaisySize;
};
let { bordered, color, disabled, error, label, size }: Props = $props();
@ -14,7 +15,6 @@
<label class="form-control w-full max-w-lg">
<div class="label">
{#if label}
<span
class="label-text"
class:text-primary={color === 'primary'}
@ -23,12 +23,21 @@
class:text-info={color === 'info'}
class:text-success={color === 'success'}
class:text-warning={color === 'warning'}
class:text-error={color === 'error' || error}>{label}</span
class:text-error={color === 'error' || error}
>
{#if typeof label === 'string'}
{label}
{:else if label}
{@render label()}
{/if}
{#if error}
<span class="label-text-alt font-semibold text-error">{error}</span>
</span>
<span class="label-text-alt font-semibold text-error">
{#if typeof error === 'string'}
{error}
{:else if error}
{@render error()}
{/if}
</span>
</div>
<textarea
class="textarea"