uisv 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion.svelte +108 -0
- package/dist/components/accordion.svelte.d.ts +58 -0
- package/dist/components/alert.svelte +271 -0
- package/dist/components/alert.svelte.d.ts +23 -0
- package/dist/components/badge.svelte +225 -0
- package/dist/components/badge.svelte.d.ts +19 -0
- package/dist/components/banner.svelte +254 -0
- package/dist/components/banner.svelte.d.ts +23 -0
- package/dist/components/button/button.svelte +105 -0
- package/dist/components/button/button.svelte.d.ts +4 -0
- package/dist/components/button/index.d.ts +48 -0
- package/dist/components/button/index.js +4 -0
- package/dist/components/button/style.d.ts +148 -0
- package/dist/components/button/style.js +248 -0
- package/dist/components/card.svelte +70 -0
- package/dist/components/card.svelte.d.ts +17 -0
- package/dist/components/checkbox-group.svelte +258 -0
- package/dist/components/checkbox-group.svelte.d.ts +26 -0
- package/dist/components/checkbox.svelte +175 -0
- package/dist/components/checkbox.svelte.d.ts +27 -0
- package/dist/components/chip.svelte +82 -0
- package/dist/components/chip.svelte.d.ts +17 -0
- package/dist/components/color-picker.svelte +48 -0
- package/dist/components/color-picker.svelte.d.ts +10 -0
- package/dist/components/h1.svelte +15 -0
- package/dist/components/h1.svelte.d.ts +3 -0
- package/dist/components/h2.svelte +19 -0
- package/dist/components/h2.svelte.d.ts +3 -0
- package/dist/components/h3.svelte +16 -0
- package/dist/components/h3.svelte.d.ts +3 -0
- package/dist/components/h4.svelte +19 -0
- package/dist/components/h4.svelte.d.ts +3 -0
- package/dist/components/h5.svelte +19 -0
- package/dist/components/h5.svelte.d.ts +3 -0
- package/dist/components/h6.svelte +19 -0
- package/dist/components/h6.svelte.d.ts +3 -0
- package/dist/components/index.d.ts +42 -0
- package/dist/components/index.js +42 -0
- package/dist/components/input/index.d.ts +54 -0
- package/dist/components/input/index.js +2 -0
- package/dist/components/input/input.svelte +103 -0
- package/dist/components/input/input.svelte.d.ts +4 -0
- package/dist/components/input/style.d.ts +316 -0
- package/dist/components/input/style.js +128 -0
- package/dist/components/input-time/index.d.ts +375 -0
- package/dist/components/input-time/index.js +144 -0
- package/dist/components/input-time/input-time.svelte +39 -0
- package/dist/components/input-time/input-time.svelte.d.ts +4 -0
- package/dist/components/kbd.svelte +239 -0
- package/dist/components/kbd.svelte.d.ts +40 -0
- package/dist/components/p.svelte +9 -0
- package/dist/components/p.svelte.d.ts +3 -0
- package/dist/components/pin-input.svelte +162 -0
- package/dist/components/pin-input.svelte.d.ts +25 -0
- package/dist/components/placeholder.svelte +34 -0
- package/dist/components/placeholder.svelte.d.ts +3 -0
- package/dist/components/popover.svelte +151 -0
- package/dist/components/popover.svelte.d.ts +88 -0
- package/dist/components/progress.svelte +124 -0
- package/dist/components/progress.svelte.d.ts +21 -0
- package/dist/components/select.svelte +171 -0
- package/dist/components/select.svelte.d.ts +50 -0
- package/dist/components/slider.svelte +172 -0
- package/dist/components/slider.svelte.d.ts +44 -0
- package/dist/components/switch.svelte +180 -0
- package/dist/components/switch.svelte.d.ts +27 -0
- package/dist/components/tabs.svelte +246 -0
- package/dist/components/tabs.svelte.d.ts +34 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3 -0
- package/dist/utilities.svelte.d.ts +24 -0
- package/dist/utilities.svelte.js +47 -0
- package/dist/vite.d.ts +51 -0
- package/dist/vite.js +157 -0
- package/package.json +2 -2
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
<script module lang="ts">
|
|
2
|
+
import { isSnippet, type PropColor, type ButtonProps, Button } from '../index.js';
|
|
3
|
+
import type { Component, Snippet } from 'svelte';
|
|
4
|
+
import type { ClassNameValue } from 'tailwind-merge';
|
|
5
|
+
import { tv } from 'tailwind-variants';
|
|
6
|
+
import { defu } from 'defu';
|
|
7
|
+
import { useId } from 'bits-ui';
|
|
8
|
+
|
|
9
|
+
export type BannerProps = {
|
|
10
|
+
title: string | Snippet;
|
|
11
|
+
icon?: string | Snippet | Component;
|
|
12
|
+
color?: PropColor;
|
|
13
|
+
variant?: 'solid' | 'outline' | 'soft' | 'subtle';
|
|
14
|
+
actions?: ButtonProps[];
|
|
15
|
+
close?: boolean | ButtonProps;
|
|
16
|
+
href?: string;
|
|
17
|
+
target?: string;
|
|
18
|
+
ui?: {
|
|
19
|
+
base?: ClassNameValue;
|
|
20
|
+
icon?: ClassNameValue;
|
|
21
|
+
description?: ClassNameValue;
|
|
22
|
+
title?: ClassNameValue;
|
|
23
|
+
};
|
|
24
|
+
onclose?: () => void | Promise<void>;
|
|
25
|
+
};
|
|
26
|
+
</script>
|
|
27
|
+
|
|
28
|
+
<script lang="ts">
|
|
29
|
+
let {
|
|
30
|
+
title,
|
|
31
|
+
close,
|
|
32
|
+
icon,
|
|
33
|
+
href,
|
|
34
|
+
target,
|
|
35
|
+
actions = [],
|
|
36
|
+
color = 'primary',
|
|
37
|
+
variant = 'solid',
|
|
38
|
+
ui = {},
|
|
39
|
+
onclose = () => {},
|
|
40
|
+
}: BannerProps = $props();
|
|
41
|
+
const id = useId();
|
|
42
|
+
|
|
43
|
+
const close_props = $derived.by(() => {
|
|
44
|
+
return defu(typeof close === 'boolean' ? {} : close, {
|
|
45
|
+
icon: 'i-lucide-x',
|
|
46
|
+
variant: 'link',
|
|
47
|
+
color: variant === 'solid' ? 'surface' : color,
|
|
48
|
+
ui: {
|
|
49
|
+
icon: variant === 'solid' ? 'text-white' : '',
|
|
50
|
+
},
|
|
51
|
+
} as ButtonProps);
|
|
52
|
+
});
|
|
53
|
+
const classes = $derived.by(() =>
|
|
54
|
+
tv({
|
|
55
|
+
slots: {
|
|
56
|
+
base: 'flex items-center gap-2 font-sans p-4',
|
|
57
|
+
icon: 'pi size-6',
|
|
58
|
+
actions: '',
|
|
59
|
+
title: '',
|
|
60
|
+
},
|
|
61
|
+
variants: {
|
|
62
|
+
color: {
|
|
63
|
+
primary: '',
|
|
64
|
+
surface: '',
|
|
65
|
+
info: '',
|
|
66
|
+
success: '',
|
|
67
|
+
warning: '',
|
|
68
|
+
error: '',
|
|
69
|
+
},
|
|
70
|
+
variant: {
|
|
71
|
+
solid: {
|
|
72
|
+
base: 'text-white',
|
|
73
|
+
description: 'text-white/90',
|
|
74
|
+
},
|
|
75
|
+
outline: 'border',
|
|
76
|
+
soft: '',
|
|
77
|
+
subtle: 'border',
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
compoundVariants: [
|
|
81
|
+
{
|
|
82
|
+
variant: 'solid',
|
|
83
|
+
color: 'primary',
|
|
84
|
+
class: 'bg-primary-500',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
variant: 'solid',
|
|
88
|
+
color: 'surface',
|
|
89
|
+
class: 'bg-surface-900',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
variant: 'solid',
|
|
93
|
+
color: 'info',
|
|
94
|
+
class: 'bg-info-500',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
variant: 'solid',
|
|
98
|
+
color: 'success',
|
|
99
|
+
class: 'bg-success-500',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
variant: 'solid',
|
|
103
|
+
color: 'warning',
|
|
104
|
+
class: 'bg-warning-500',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
variant: 'solid',
|
|
108
|
+
color: 'error',
|
|
109
|
+
class: 'bg-error-500',
|
|
110
|
+
},
|
|
111
|
+
|
|
112
|
+
{
|
|
113
|
+
variant: 'outline',
|
|
114
|
+
color: 'primary',
|
|
115
|
+
class: 'border-primary-300 text-primary-500',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
variant: 'outline',
|
|
119
|
+
color: 'surface',
|
|
120
|
+
class: 'border-surface-300 text-surface-900',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
variant: 'outline',
|
|
124
|
+
color: 'info',
|
|
125
|
+
class: 'border-info-300 text-info-500',
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
variant: 'outline',
|
|
129
|
+
color: 'success',
|
|
130
|
+
class: 'border-success-300 text-success-500',
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
variant: 'outline',
|
|
134
|
+
color: 'warning',
|
|
135
|
+
class: 'border-warning-300 text-warning-500',
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
variant: 'outline',
|
|
139
|
+
color: 'error',
|
|
140
|
+
class: 'border-error-300 text-error-500',
|
|
141
|
+
},
|
|
142
|
+
|
|
143
|
+
{
|
|
144
|
+
variant: 'soft',
|
|
145
|
+
color: 'primary',
|
|
146
|
+
class: 'bg-primary-100 text-primary-500',
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
variant: 'soft',
|
|
150
|
+
color: 'surface',
|
|
151
|
+
class: 'bg-surface-50 text-surface-900',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
variant: 'soft',
|
|
155
|
+
color: 'info',
|
|
156
|
+
class: 'bg-info-50 text-info-500',
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
variant: 'soft',
|
|
160
|
+
color: 'success',
|
|
161
|
+
class: 'bg-success-50 text-success-500',
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
variant: 'soft',
|
|
165
|
+
color: 'warning',
|
|
166
|
+
class: 'bg-warning-50 text-warning-500',
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
variant: 'soft',
|
|
170
|
+
color: 'error',
|
|
171
|
+
class: 'bg-error-50 text-error-500',
|
|
172
|
+
},
|
|
173
|
+
|
|
174
|
+
{
|
|
175
|
+
variant: 'subtle',
|
|
176
|
+
color: 'primary',
|
|
177
|
+
class: 'bg-primary-100 text-primary-500 border-primary-300',
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
variant: 'subtle',
|
|
181
|
+
color: 'surface',
|
|
182
|
+
class: 'bg-surface-50 text-surface-900 border-surface-300',
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
variant: 'subtle',
|
|
186
|
+
color: 'info',
|
|
187
|
+
class: 'bg-info-50 text-info-500 border-info-300',
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
variant: 'subtle',
|
|
191
|
+
color: 'success',
|
|
192
|
+
class: 'bg-success-50 text-success-500 border-success-300',
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
variant: 'subtle',
|
|
196
|
+
color: 'warning',
|
|
197
|
+
class: 'bg-warning-50 text-warning-500 border-warning-300',
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
variant: 'subtle',
|
|
201
|
+
color: 'error',
|
|
202
|
+
class: 'bg-error-50 text-error-500 border-error-300',
|
|
203
|
+
},
|
|
204
|
+
],
|
|
205
|
+
})({ color, variant }),
|
|
206
|
+
);
|
|
207
|
+
</script>
|
|
208
|
+
|
|
209
|
+
<svelte:element
|
|
210
|
+
this={href ? 'a' : 'button'}
|
|
211
|
+
{href}
|
|
212
|
+
{target}
|
|
213
|
+
class={classes.base({ class: [ui.base] })}
|
|
214
|
+
>
|
|
215
|
+
<div class="flex flex-grow gap-2 text-sm items-center">
|
|
216
|
+
{#if icon}
|
|
217
|
+
<div class="size-6">
|
|
218
|
+
{#if typeof icon === 'string'}
|
|
219
|
+
<div class={classes.icon({ class: [icon] })}></div>
|
|
220
|
+
{:else if isSnippet(icon)}
|
|
221
|
+
{@render icon()}
|
|
222
|
+
{:else}
|
|
223
|
+
{@const Icon = icon}
|
|
224
|
+
<Icon />
|
|
225
|
+
{/if}
|
|
226
|
+
</div>
|
|
227
|
+
{/if}
|
|
228
|
+
|
|
229
|
+
<div class={classes.title({ class: [ui.title] })}>
|
|
230
|
+
{#if isSnippet(title)}
|
|
231
|
+
{@render title()}
|
|
232
|
+
{:else}
|
|
233
|
+
{title}
|
|
234
|
+
{/if}
|
|
235
|
+
</div>
|
|
236
|
+
|
|
237
|
+
{#if actions.length > 0}
|
|
238
|
+
{#each actions as action (action.label)}
|
|
239
|
+
<Button
|
|
240
|
+
{...defu(action, {
|
|
241
|
+
size: 'xs',
|
|
242
|
+
color: 'surface',
|
|
243
|
+
} as ButtonProps)}
|
|
244
|
+
/>
|
|
245
|
+
{/each}
|
|
246
|
+
{/if}
|
|
247
|
+
</div>
|
|
248
|
+
|
|
249
|
+
{#if close}
|
|
250
|
+
<div>
|
|
251
|
+
<Button {...close_props} onclick={onclose} />
|
|
252
|
+
</div>
|
|
253
|
+
{/if}
|
|
254
|
+
</svelte:element>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type PropColor, type ButtonProps } from '../index.js';
|
|
2
|
+
import type { Component, Snippet } from 'svelte';
|
|
3
|
+
import type { ClassNameValue } from 'tailwind-merge';
|
|
4
|
+
export type BannerProps = {
|
|
5
|
+
title: string | Snippet;
|
|
6
|
+
icon?: string | Snippet | Component;
|
|
7
|
+
color?: PropColor;
|
|
8
|
+
variant?: 'solid' | 'outline' | 'soft' | 'subtle';
|
|
9
|
+
actions?: ButtonProps[];
|
|
10
|
+
close?: boolean | ButtonProps;
|
|
11
|
+
href?: string;
|
|
12
|
+
target?: string;
|
|
13
|
+
ui?: {
|
|
14
|
+
base?: ClassNameValue;
|
|
15
|
+
icon?: ClassNameValue;
|
|
16
|
+
description?: ClassNameValue;
|
|
17
|
+
title?: ClassNameValue;
|
|
18
|
+
};
|
|
19
|
+
onclose?: () => void | Promise<void>;
|
|
20
|
+
};
|
|
21
|
+
declare const Banner: Component<BannerProps, {}, "">;
|
|
22
|
+
type Banner = ReturnType<typeof Banner>;
|
|
23
|
+
export default Banner;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
// import { FORM_LOADING_CONTEXT_KEY } from '../../utils/keys.js';
|
|
3
|
+
import { isSnippet, type ButtonProps, BUTTON_VARIANTS } from '../../index.js';
|
|
4
|
+
|
|
5
|
+
// let form_loading = getContext<{ value: boolean } | undefined>(FORM_LOADING_CONTEXT_KEY);
|
|
6
|
+
let {
|
|
7
|
+
ref = $bindable(),
|
|
8
|
+
size = 'md',
|
|
9
|
+
variant = 'solid',
|
|
10
|
+
color = 'primary',
|
|
11
|
+
iconposition = 'left',
|
|
12
|
+
children,
|
|
13
|
+
// active,
|
|
14
|
+
// activecolor,
|
|
15
|
+
// activevariant,
|
|
16
|
+
block,
|
|
17
|
+
label,
|
|
18
|
+
loadingauto,
|
|
19
|
+
onclick,
|
|
20
|
+
ui = {},
|
|
21
|
+
disabled,
|
|
22
|
+
href,
|
|
23
|
+
icon,
|
|
24
|
+
loading,
|
|
25
|
+
loadingicon,
|
|
26
|
+
target,
|
|
27
|
+
type,
|
|
28
|
+
}: ButtonProps = $props();
|
|
29
|
+
|
|
30
|
+
let internal_loading = $state(false);
|
|
31
|
+
const is_loading = $derived.by(() => {
|
|
32
|
+
if (loading) return true;
|
|
33
|
+
if (loadingauto) return internal_loading;
|
|
34
|
+
return false;
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
const classes = $derived(
|
|
38
|
+
BUTTON_VARIANTS({ variant, color, size, block, disabled: disabled || is_loading }),
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
const only_icon = $derived(!(children || label) && !!icon);
|
|
42
|
+
|
|
43
|
+
async function onClickWrapper(event: MouseEvent) {
|
|
44
|
+
if (!onclick) return;
|
|
45
|
+
internal_loading = true;
|
|
46
|
+
|
|
47
|
+
await onclick(event);
|
|
48
|
+
|
|
49
|
+
internal_loading = false;
|
|
50
|
+
}
|
|
51
|
+
</script>
|
|
52
|
+
|
|
53
|
+
{#if href}
|
|
54
|
+
<a
|
|
55
|
+
{href}
|
|
56
|
+
{target}
|
|
57
|
+
class={classes.base({
|
|
58
|
+
class: [only_icon ? 'px-0 aspect-square justify-center' : '', 'cursor-pointer', ui.base],
|
|
59
|
+
})}
|
|
60
|
+
onclick={onClickWrapper}
|
|
61
|
+
>
|
|
62
|
+
{@render Content()}
|
|
63
|
+
</a>
|
|
64
|
+
{:else}
|
|
65
|
+
<button
|
|
66
|
+
{type}
|
|
67
|
+
disabled={disabled || is_loading}
|
|
68
|
+
class={classes.base({
|
|
69
|
+
class: [only_icon ? 'px-0 aspect-square justify-center' : '', ui.base],
|
|
70
|
+
})}
|
|
71
|
+
onclick={onClickWrapper}
|
|
72
|
+
>
|
|
73
|
+
{@render Content()}
|
|
74
|
+
</button>
|
|
75
|
+
{/if}
|
|
76
|
+
|
|
77
|
+
{#snippet Content()}
|
|
78
|
+
{#if iconposition === 'left'}
|
|
79
|
+
{@render Icon()}
|
|
80
|
+
{/if}
|
|
81
|
+
|
|
82
|
+
{#if label}
|
|
83
|
+
{label}
|
|
84
|
+
{:else}
|
|
85
|
+
{@render children?.()}
|
|
86
|
+
{/if}
|
|
87
|
+
|
|
88
|
+
{#if iconposition !== 'left'}
|
|
89
|
+
{@render Icon()}
|
|
90
|
+
{/if}
|
|
91
|
+
{/snippet}
|
|
92
|
+
|
|
93
|
+
{#snippet Icon()}
|
|
94
|
+
{@const IconCom = is_loading ? loadingicon || '-ph-lucide-loader-circle' : icon}
|
|
95
|
+
|
|
96
|
+
{#if IconCom}
|
|
97
|
+
{#if typeof IconCom === 'string'}
|
|
98
|
+
<div class={classes.icon({ class: [is_loading && 'animate-spin', IconCom, ui.icon] })}></div>
|
|
99
|
+
{:else if isSnippet(IconCom)}
|
|
100
|
+
{@render IconCom()}
|
|
101
|
+
{:else}
|
|
102
|
+
<IconCom />
|
|
103
|
+
{/if}
|
|
104
|
+
{/if}
|
|
105
|
+
{/snippet}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type Component, type Snippet } from 'svelte';
|
|
2
|
+
import { type PropColor } from '../../index.js';
|
|
3
|
+
import type { ClassNameValue } from 'tailwind-merge';
|
|
4
|
+
export * from './style.js';
|
|
5
|
+
export { default as Button } from './button.svelte';
|
|
6
|
+
export type ButtonProps = {
|
|
7
|
+
/** The underlying DOM element being rendered. You can bind to this to get a reference to the element. */
|
|
8
|
+
ref?: HTMLButtonElement | HTMLAnchorElement;
|
|
9
|
+
/** Where to display the linked URL, as the name for a browsing context. */
|
|
10
|
+
target?: null | '_blank' | '_parent' | '_self' | '_top' | (string & {});
|
|
11
|
+
/** Force the link to be active independent of the current route. */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** The type of the button when not a link. */
|
|
14
|
+
type?: 'submit' | 'reset' | 'button' | null | undefined;
|
|
15
|
+
/** When true, the icon will be displayed on the right side. */
|
|
16
|
+
loadingicon?: string | Snippet | Component;
|
|
17
|
+
/** When true, the loading icon will be displayed. */
|
|
18
|
+
loading?: boolean;
|
|
19
|
+
/** The position of the icon, including the loading icon */
|
|
20
|
+
iconposition?: 'left' | 'right';
|
|
21
|
+
/** Icon when `loading` is `false` */
|
|
22
|
+
icon?: string | Snippet | Component;
|
|
23
|
+
/** Route Location the link should navigate to when clicked on. */
|
|
24
|
+
href?: string;
|
|
25
|
+
label?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @defaultValue 'primary'
|
|
28
|
+
*/
|
|
29
|
+
color?: PropColor;
|
|
30
|
+
/**
|
|
31
|
+
* @defaultValue 'solid'
|
|
32
|
+
*/
|
|
33
|
+
variant?: 'link' | 'solid' | 'outline' | 'soft' | 'subtle' | 'ghost';
|
|
34
|
+
/**
|
|
35
|
+
* @defaultValue 'md'
|
|
36
|
+
*/
|
|
37
|
+
size?: 'md' | 'xs' | 'sm' | 'lg' | 'xl';
|
|
38
|
+
/** Render the button full width. */
|
|
39
|
+
block?: boolean;
|
|
40
|
+
/** Set loading state automatically based on the `@click` promise state */
|
|
41
|
+
loadingauto?: boolean;
|
|
42
|
+
onclick?: (event: MouseEvent) => void | Promise<void>;
|
|
43
|
+
ui?: {
|
|
44
|
+
base?: ClassNameValue;
|
|
45
|
+
icon?: ClassNameValue;
|
|
46
|
+
};
|
|
47
|
+
children?: Snippet;
|
|
48
|
+
};
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
export declare const BUTTON_VARIANTS: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
color: {
|
|
3
|
+
primary: string;
|
|
4
|
+
surface: string;
|
|
5
|
+
error: string;
|
|
6
|
+
success: string;
|
|
7
|
+
info: string;
|
|
8
|
+
warning: string;
|
|
9
|
+
};
|
|
10
|
+
variant: {
|
|
11
|
+
link: string;
|
|
12
|
+
solid: string;
|
|
13
|
+
outline: string;
|
|
14
|
+
soft: string;
|
|
15
|
+
subtle: string;
|
|
16
|
+
ghost: string;
|
|
17
|
+
};
|
|
18
|
+
size: {
|
|
19
|
+
xs: {
|
|
20
|
+
base: string;
|
|
21
|
+
icon: string;
|
|
22
|
+
};
|
|
23
|
+
sm: {
|
|
24
|
+
base: string;
|
|
25
|
+
icon: string;
|
|
26
|
+
};
|
|
27
|
+
md: {
|
|
28
|
+
base: string;
|
|
29
|
+
icon: string;
|
|
30
|
+
};
|
|
31
|
+
lg: {
|
|
32
|
+
base: string;
|
|
33
|
+
icon: string;
|
|
34
|
+
};
|
|
35
|
+
xl: {
|
|
36
|
+
base: string;
|
|
37
|
+
icon: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
block: {
|
|
41
|
+
true: string;
|
|
42
|
+
};
|
|
43
|
+
disabled: {
|
|
44
|
+
true: string;
|
|
45
|
+
false: string;
|
|
46
|
+
};
|
|
47
|
+
}, {
|
|
48
|
+
icon: string;
|
|
49
|
+
base: string;
|
|
50
|
+
}, undefined, {
|
|
51
|
+
color: {
|
|
52
|
+
primary: string;
|
|
53
|
+
surface: string;
|
|
54
|
+
error: string;
|
|
55
|
+
success: string;
|
|
56
|
+
info: string;
|
|
57
|
+
warning: string;
|
|
58
|
+
};
|
|
59
|
+
variant: {
|
|
60
|
+
link: string;
|
|
61
|
+
solid: string;
|
|
62
|
+
outline: string;
|
|
63
|
+
soft: string;
|
|
64
|
+
subtle: string;
|
|
65
|
+
ghost: string;
|
|
66
|
+
};
|
|
67
|
+
size: {
|
|
68
|
+
xs: {
|
|
69
|
+
base: string;
|
|
70
|
+
icon: string;
|
|
71
|
+
};
|
|
72
|
+
sm: {
|
|
73
|
+
base: string;
|
|
74
|
+
icon: string;
|
|
75
|
+
};
|
|
76
|
+
md: {
|
|
77
|
+
base: string;
|
|
78
|
+
icon: string;
|
|
79
|
+
};
|
|
80
|
+
lg: {
|
|
81
|
+
base: string;
|
|
82
|
+
icon: string;
|
|
83
|
+
};
|
|
84
|
+
xl: {
|
|
85
|
+
base: string;
|
|
86
|
+
icon: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
block: {
|
|
90
|
+
true: string;
|
|
91
|
+
};
|
|
92
|
+
disabled: {
|
|
93
|
+
true: string;
|
|
94
|
+
false: string;
|
|
95
|
+
};
|
|
96
|
+
}, {
|
|
97
|
+
icon: string;
|
|
98
|
+
base: string;
|
|
99
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
100
|
+
color: {
|
|
101
|
+
primary: string;
|
|
102
|
+
surface: string;
|
|
103
|
+
error: string;
|
|
104
|
+
success: string;
|
|
105
|
+
info: string;
|
|
106
|
+
warning: string;
|
|
107
|
+
};
|
|
108
|
+
variant: {
|
|
109
|
+
link: string;
|
|
110
|
+
solid: string;
|
|
111
|
+
outline: string;
|
|
112
|
+
soft: string;
|
|
113
|
+
subtle: string;
|
|
114
|
+
ghost: string;
|
|
115
|
+
};
|
|
116
|
+
size: {
|
|
117
|
+
xs: {
|
|
118
|
+
base: string;
|
|
119
|
+
icon: string;
|
|
120
|
+
};
|
|
121
|
+
sm: {
|
|
122
|
+
base: string;
|
|
123
|
+
icon: string;
|
|
124
|
+
};
|
|
125
|
+
md: {
|
|
126
|
+
base: string;
|
|
127
|
+
icon: string;
|
|
128
|
+
};
|
|
129
|
+
lg: {
|
|
130
|
+
base: string;
|
|
131
|
+
icon: string;
|
|
132
|
+
};
|
|
133
|
+
xl: {
|
|
134
|
+
base: string;
|
|
135
|
+
icon: string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
block: {
|
|
139
|
+
true: string;
|
|
140
|
+
};
|
|
141
|
+
disabled: {
|
|
142
|
+
true: string;
|
|
143
|
+
false: string;
|
|
144
|
+
};
|
|
145
|
+
}, {
|
|
146
|
+
icon: string;
|
|
147
|
+
base: string;
|
|
148
|
+
}, undefined, unknown, unknown, undefined>>;
|