sv5ui 1.2.0 → 1.4.0
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/README.md +16 -11
- package/dist/CheckboxGroup/CheckboxGroup.svelte +215 -0
- package/dist/CheckboxGroup/CheckboxGroup.svelte.d.ts +5 -0
- package/dist/CheckboxGroup/checkbox-group.types.d.ts +130 -0
- package/dist/CheckboxGroup/checkbox-group.types.js +1 -0
- package/dist/CheckboxGroup/checkbox-group.variants.d.ts +553 -0
- package/dist/CheckboxGroup/checkbox-group.variants.js +231 -0
- package/dist/CheckboxGroup/index.d.ts +2 -0
- package/dist/CheckboxGroup/index.js +1 -0
- package/dist/Collapsible/Collapsible.svelte +69 -0
- package/dist/Collapsible/Collapsible.svelte.d.ts +6 -0
- package/dist/Collapsible/CollapsibleTestWrapper.svelte +17 -0
- package/dist/Collapsible/CollapsibleTestWrapper.svelte.d.ts +4 -0
- package/dist/Collapsible/collapsible.types.d.ts +75 -0
- package/dist/Collapsible/collapsible.types.js +1 -0
- package/dist/Collapsible/collapsible.variants.d.ts +53 -0
- package/dist/Collapsible/collapsible.variants.js +21 -0
- package/dist/Collapsible/index.d.ts +2 -0
- package/dist/Collapsible/index.js +1 -0
- package/dist/Command/Command.svelte +183 -0
- package/dist/Command/Command.svelte.d.ts +6 -0
- package/dist/Command/CommandTestWrapper.svelte +13 -0
- package/dist/Command/CommandTestWrapper.svelte.d.ts +4 -0
- package/dist/Command/command.types.d.ts +98 -0
- package/dist/Command/command.types.js +1 -0
- package/dist/Command/command.variants.d.ts +226 -0
- package/dist/Command/command.variants.js +86 -0
- package/dist/Command/index.d.ts +2 -0
- package/dist/Command/index.js +1 -0
- package/dist/FileUpload/FileUpload.svelte +561 -0
- package/dist/FileUpload/FileUpload.svelte.d.ts +8 -0
- package/dist/FileUpload/file-upload.types.d.ts +164 -0
- package/dist/FileUpload/file-upload.types.js +1 -0
- package/dist/FileUpload/file-upload.variants.d.ts +397 -0
- package/dist/FileUpload/file-upload.variants.js +224 -0
- package/dist/FileUpload/index.d.ts +2 -0
- package/dist/FileUpload/index.js +1 -0
- package/dist/PinInput/PinInput.svelte +150 -0
- package/dist/PinInput/PinInput.svelte.d.ts +6 -0
- package/dist/PinInput/index.d.ts +2 -0
- package/dist/PinInput/index.js +1 -0
- package/dist/PinInput/pin-input.types.d.ts +99 -0
- package/dist/PinInput/pin-input.types.js +1 -0
- package/dist/PinInput/pin-input.variants.d.ts +303 -0
- package/dist/PinInput/pin-input.variants.js +196 -0
- package/dist/Select/select.variants.js +1 -1
- package/dist/SelectMenu/select-menu.variants.js +1 -1
- package/dist/Slider/Slider.svelte +135 -0
- package/dist/Slider/Slider.svelte.d.ts +6 -0
- package/dist/Slider/index.d.ts +2 -0
- package/dist/Slider/index.js +1 -0
- package/dist/Slider/slider.types.d.ts +55 -0
- package/dist/Slider/slider.types.js +1 -0
- package/dist/Slider/slider.variants.d.ts +383 -0
- package/dist/Slider/slider.variants.js +102 -0
- package/dist/Toast/Toaster.svelte +618 -0
- package/dist/Toast/Toaster.svelte.d.ts +5 -0
- package/dist/Toast/index.d.ts +4 -0
- package/dist/Toast/index.js +2 -0
- package/dist/Toast/toast.d.ts +38 -0
- package/dist/Toast/toast.js +73 -0
- package/dist/Toast/toast.types.d.ts +19 -0
- package/dist/Toast/toast.types.js +1 -0
- package/dist/Toast/toast.variants.d.ts +7 -0
- package/dist/Toast/toast.variants.js +5 -0
- package/dist/config.d.ts +5 -0
- package/dist/config.js +6 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +7 -0
- package/dist/theme.css +36 -0
- package/package.json +2 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CommandProps } from './command.types.js';
|
|
2
|
+
export type Props = CommandProps;
|
|
3
|
+
import { Command } from 'bits-ui';
|
|
4
|
+
declare const Command: import("svelte").Component<CommandProps, {}, "search" | "ref" | "value">;
|
|
5
|
+
type Command = ReturnType<typeof Command>;
|
|
6
|
+
export default Command;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Command from './Command.svelte'
|
|
3
|
+
import type { CommandProps } from './command.types.js'
|
|
4
|
+
|
|
5
|
+
let {
|
|
6
|
+
...props
|
|
7
|
+
}: Omit<
|
|
8
|
+
CommandProps,
|
|
9
|
+
'item' | 'itemLeading' | 'itemLabel' | 'itemTrailing' | 'empty' | 'footer'
|
|
10
|
+
> = $props()
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<Command {...props} />
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CommandProps } from './command.types.js';
|
|
2
|
+
declare const CommandTestWrapper: import("svelte").Component<Omit<CommandProps, "footer" | "item" | "empty" | "itemLabel" | "itemTrailing" | "itemLeading">, {}, "">;
|
|
3
|
+
type CommandTestWrapper = ReturnType<typeof CommandTestWrapper>;
|
|
4
|
+
export default CommandTestWrapper;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
import type { ClassNameValue } from 'tailwind-merge';
|
|
3
|
+
import type { CommandRootPropsWithoutHTML } from 'bits-ui';
|
|
4
|
+
import type { CommandSlots, CommandVariantProps } from './command.variants.js';
|
|
5
|
+
/**
|
|
6
|
+
* Configuration for an individual command item.
|
|
7
|
+
*/
|
|
8
|
+
export interface CommandItem {
|
|
9
|
+
/** Unique identifier and search value for this item. */
|
|
10
|
+
value: string;
|
|
11
|
+
/** Display label. */
|
|
12
|
+
label?: string;
|
|
13
|
+
/** Optional description shown below the label. */
|
|
14
|
+
description?: string;
|
|
15
|
+
/** Leading icon name (Iconify). */
|
|
16
|
+
icon?: string;
|
|
17
|
+
/** Additional search aliases for filtering. */
|
|
18
|
+
keywords?: string[];
|
|
19
|
+
/** Whether this item is disabled. */
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/** Callback when item is selected. */
|
|
22
|
+
onSelect?: () => void;
|
|
23
|
+
/** Additional CSS classes for this item. */
|
|
24
|
+
class?: ClassNameValue;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Configuration for a command group.
|
|
28
|
+
*/
|
|
29
|
+
export interface CommandGroup {
|
|
30
|
+
/** Unique group identifier. */
|
|
31
|
+
id: string;
|
|
32
|
+
/** Group heading label. */
|
|
33
|
+
label?: string;
|
|
34
|
+
/** Items in this group. */
|
|
35
|
+
items: CommandItem[];
|
|
36
|
+
}
|
|
37
|
+
export interface CommandItemSlotProps {
|
|
38
|
+
item: CommandItem;
|
|
39
|
+
index: number;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Props for the Command component.
|
|
43
|
+
*
|
|
44
|
+
* Wraps bits-ui Command primitives with a themed, items-based API.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```svelte
|
|
48
|
+
* <Command
|
|
49
|
+
* placeholder="Search..."
|
|
50
|
+
* groups={[
|
|
51
|
+
* { id: 'actions', label: 'Actions', items: [
|
|
52
|
+
* { value: 'new-file', label: 'New File', icon: 'lucide:file-plus' }
|
|
53
|
+
* ]}
|
|
54
|
+
* ]}
|
|
55
|
+
* />
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @see https://bits-ui.com/docs/components/command
|
|
59
|
+
*/
|
|
60
|
+
export interface CommandProps extends Pick<CommandRootPropsWithoutHTML, 'value' | 'onValueChange' | 'filter' | 'shouldFilter' | 'loop' | 'vimBindings' | 'label'> {
|
|
61
|
+
/** Bindable reference to the root DOM element. */
|
|
62
|
+
ref?: HTMLElement | null;
|
|
63
|
+
/** Array of grouped command items. */
|
|
64
|
+
groups?: CommandGroup[];
|
|
65
|
+
/** Placeholder text for the search input. */
|
|
66
|
+
placeholder?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The current search term. Use `bind:search` for two-way binding.
|
|
69
|
+
* @default ''
|
|
70
|
+
*/
|
|
71
|
+
search?: string;
|
|
72
|
+
/** Loading state — shows a loading indicator instead of items. */
|
|
73
|
+
loading?: boolean;
|
|
74
|
+
/** Text shown when no results match the search query. */
|
|
75
|
+
emptyText?: string;
|
|
76
|
+
/** Leading icon for the search input. */
|
|
77
|
+
icon?: string;
|
|
78
|
+
/** Size variant. */
|
|
79
|
+
size?: NonNullable<CommandVariantProps['size']>;
|
|
80
|
+
/** Override classes for component slots. */
|
|
81
|
+
ui?: Partial<Record<CommandSlots, ClassNameValue>>;
|
|
82
|
+
/** Additional CSS classes for the root element. */
|
|
83
|
+
class?: ClassNameValue;
|
|
84
|
+
/** Custom snippet for rendering each item. Replaces default item rendering. */
|
|
85
|
+
item?: Snippet<[CommandItemSlotProps]>;
|
|
86
|
+
/** Custom snippet for the item leading section (icon area). */
|
|
87
|
+
itemLeading?: Snippet<[CommandItemSlotProps]>;
|
|
88
|
+
/** Custom snippet for the item label section. */
|
|
89
|
+
itemLabel?: Snippet<[CommandItemSlotProps]>;
|
|
90
|
+
/** Custom snippet for the item trailing section. */
|
|
91
|
+
itemTrailing?: Snippet<[CommandItemSlotProps]>;
|
|
92
|
+
/** Custom snippet for the empty state. */
|
|
93
|
+
empty?: Snippet<[{
|
|
94
|
+
search: string;
|
|
95
|
+
}]>;
|
|
96
|
+
/** Custom snippet for the footer area below the list. */
|
|
97
|
+
footer?: Snippet;
|
|
98
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { type VariantProps } from 'tailwind-variants';
|
|
2
|
+
export declare const commandVariants: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
size: {
|
|
4
|
+
xs: {
|
|
5
|
+
inputIcon: string;
|
|
6
|
+
input: string;
|
|
7
|
+
inputWrapper: string;
|
|
8
|
+
item: string;
|
|
9
|
+
itemIcon: string;
|
|
10
|
+
groupHeading: string;
|
|
11
|
+
empty: string;
|
|
12
|
+
loading: string;
|
|
13
|
+
};
|
|
14
|
+
sm: {
|
|
15
|
+
inputIcon: string;
|
|
16
|
+
input: string;
|
|
17
|
+
inputWrapper: string;
|
|
18
|
+
item: string;
|
|
19
|
+
itemIcon: string;
|
|
20
|
+
groupHeading: string;
|
|
21
|
+
empty: string;
|
|
22
|
+
loading: string;
|
|
23
|
+
};
|
|
24
|
+
md: {
|
|
25
|
+
inputIcon: string;
|
|
26
|
+
input: string;
|
|
27
|
+
inputWrapper: string;
|
|
28
|
+
item: string;
|
|
29
|
+
itemIcon: string;
|
|
30
|
+
groupHeading: string;
|
|
31
|
+
empty: string;
|
|
32
|
+
loading: string;
|
|
33
|
+
};
|
|
34
|
+
lg: {
|
|
35
|
+
inputIcon: string;
|
|
36
|
+
input: string;
|
|
37
|
+
inputWrapper: string;
|
|
38
|
+
item: string;
|
|
39
|
+
itemIcon: string;
|
|
40
|
+
groupHeading: string;
|
|
41
|
+
empty: string;
|
|
42
|
+
loading: string;
|
|
43
|
+
};
|
|
44
|
+
xl: {
|
|
45
|
+
inputIcon: string;
|
|
46
|
+
input: string;
|
|
47
|
+
inputWrapper: string;
|
|
48
|
+
item: string;
|
|
49
|
+
itemIcon: string;
|
|
50
|
+
groupHeading: string;
|
|
51
|
+
empty: string;
|
|
52
|
+
loading: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
}, {
|
|
56
|
+
root: string;
|
|
57
|
+
inputWrapper: string;
|
|
58
|
+
inputIcon: string;
|
|
59
|
+
input: string;
|
|
60
|
+
list: string;
|
|
61
|
+
empty: string;
|
|
62
|
+
loading: string;
|
|
63
|
+
group: string;
|
|
64
|
+
groupHeading: string;
|
|
65
|
+
groupItems: string;
|
|
66
|
+
separator: string;
|
|
67
|
+
item: string;
|
|
68
|
+
itemIcon: string;
|
|
69
|
+
itemWrapper: string;
|
|
70
|
+
itemLabel: string;
|
|
71
|
+
itemDescription: string;
|
|
72
|
+
itemTrailing: string;
|
|
73
|
+
footer: string;
|
|
74
|
+
}, undefined, {
|
|
75
|
+
size: {
|
|
76
|
+
xs: {
|
|
77
|
+
inputIcon: string;
|
|
78
|
+
input: string;
|
|
79
|
+
inputWrapper: string;
|
|
80
|
+
item: string;
|
|
81
|
+
itemIcon: string;
|
|
82
|
+
groupHeading: string;
|
|
83
|
+
empty: string;
|
|
84
|
+
loading: string;
|
|
85
|
+
};
|
|
86
|
+
sm: {
|
|
87
|
+
inputIcon: string;
|
|
88
|
+
input: string;
|
|
89
|
+
inputWrapper: string;
|
|
90
|
+
item: string;
|
|
91
|
+
itemIcon: string;
|
|
92
|
+
groupHeading: string;
|
|
93
|
+
empty: string;
|
|
94
|
+
loading: string;
|
|
95
|
+
};
|
|
96
|
+
md: {
|
|
97
|
+
inputIcon: string;
|
|
98
|
+
input: string;
|
|
99
|
+
inputWrapper: string;
|
|
100
|
+
item: string;
|
|
101
|
+
itemIcon: string;
|
|
102
|
+
groupHeading: string;
|
|
103
|
+
empty: string;
|
|
104
|
+
loading: string;
|
|
105
|
+
};
|
|
106
|
+
lg: {
|
|
107
|
+
inputIcon: string;
|
|
108
|
+
input: string;
|
|
109
|
+
inputWrapper: string;
|
|
110
|
+
item: string;
|
|
111
|
+
itemIcon: string;
|
|
112
|
+
groupHeading: string;
|
|
113
|
+
empty: string;
|
|
114
|
+
loading: string;
|
|
115
|
+
};
|
|
116
|
+
xl: {
|
|
117
|
+
inputIcon: string;
|
|
118
|
+
input: string;
|
|
119
|
+
inputWrapper: string;
|
|
120
|
+
item: string;
|
|
121
|
+
itemIcon: string;
|
|
122
|
+
groupHeading: string;
|
|
123
|
+
empty: string;
|
|
124
|
+
loading: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
}, {
|
|
128
|
+
root: string;
|
|
129
|
+
inputWrapper: string;
|
|
130
|
+
inputIcon: string;
|
|
131
|
+
input: string;
|
|
132
|
+
list: string;
|
|
133
|
+
empty: string;
|
|
134
|
+
loading: string;
|
|
135
|
+
group: string;
|
|
136
|
+
groupHeading: string;
|
|
137
|
+
groupItems: string;
|
|
138
|
+
separator: string;
|
|
139
|
+
item: string;
|
|
140
|
+
itemIcon: string;
|
|
141
|
+
itemWrapper: string;
|
|
142
|
+
itemLabel: string;
|
|
143
|
+
itemDescription: string;
|
|
144
|
+
itemTrailing: string;
|
|
145
|
+
footer: string;
|
|
146
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
147
|
+
size: {
|
|
148
|
+
xs: {
|
|
149
|
+
inputIcon: string;
|
|
150
|
+
input: string;
|
|
151
|
+
inputWrapper: string;
|
|
152
|
+
item: string;
|
|
153
|
+
itemIcon: string;
|
|
154
|
+
groupHeading: string;
|
|
155
|
+
empty: string;
|
|
156
|
+
loading: string;
|
|
157
|
+
};
|
|
158
|
+
sm: {
|
|
159
|
+
inputIcon: string;
|
|
160
|
+
input: string;
|
|
161
|
+
inputWrapper: string;
|
|
162
|
+
item: string;
|
|
163
|
+
itemIcon: string;
|
|
164
|
+
groupHeading: string;
|
|
165
|
+
empty: string;
|
|
166
|
+
loading: string;
|
|
167
|
+
};
|
|
168
|
+
md: {
|
|
169
|
+
inputIcon: string;
|
|
170
|
+
input: string;
|
|
171
|
+
inputWrapper: string;
|
|
172
|
+
item: string;
|
|
173
|
+
itemIcon: string;
|
|
174
|
+
groupHeading: string;
|
|
175
|
+
empty: string;
|
|
176
|
+
loading: string;
|
|
177
|
+
};
|
|
178
|
+
lg: {
|
|
179
|
+
inputIcon: string;
|
|
180
|
+
input: string;
|
|
181
|
+
inputWrapper: string;
|
|
182
|
+
item: string;
|
|
183
|
+
itemIcon: string;
|
|
184
|
+
groupHeading: string;
|
|
185
|
+
empty: string;
|
|
186
|
+
loading: string;
|
|
187
|
+
};
|
|
188
|
+
xl: {
|
|
189
|
+
inputIcon: string;
|
|
190
|
+
input: string;
|
|
191
|
+
inputWrapper: string;
|
|
192
|
+
item: string;
|
|
193
|
+
itemIcon: string;
|
|
194
|
+
groupHeading: string;
|
|
195
|
+
empty: string;
|
|
196
|
+
loading: string;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
}, {
|
|
200
|
+
root: string;
|
|
201
|
+
inputWrapper: string;
|
|
202
|
+
inputIcon: string;
|
|
203
|
+
input: string;
|
|
204
|
+
list: string;
|
|
205
|
+
empty: string;
|
|
206
|
+
loading: string;
|
|
207
|
+
group: string;
|
|
208
|
+
groupHeading: string;
|
|
209
|
+
groupItems: string;
|
|
210
|
+
separator: string;
|
|
211
|
+
item: string;
|
|
212
|
+
itemIcon: string;
|
|
213
|
+
itemWrapper: string;
|
|
214
|
+
itemLabel: string;
|
|
215
|
+
itemDescription: string;
|
|
216
|
+
itemTrailing: string;
|
|
217
|
+
footer: string;
|
|
218
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
219
|
+
export type CommandVariantProps = VariantProps<typeof commandVariants>;
|
|
220
|
+
export type CommandSlots = keyof ReturnType<typeof commandVariants>;
|
|
221
|
+
export declare const commandDefaults: {
|
|
222
|
+
defaultVariants: {
|
|
223
|
+
size: NonNullable<CommandVariantProps["size"]>;
|
|
224
|
+
};
|
|
225
|
+
slots: Partial<Record<CommandSlots, string>>;
|
|
226
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
export const commandVariants = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
root: 'flex flex-col overflow-hidden',
|
|
5
|
+
inputWrapper: 'flex items-center border-b border-outline-variant px-3',
|
|
6
|
+
inputIcon: 'mr-2 shrink-0 opacity-50',
|
|
7
|
+
input: 'flex h-12 w-full bg-transparent text-sm outline-none placeholder:text-on-surface-variant/50 disabled:cursor-not-allowed disabled:opacity-50',
|
|
8
|
+
list: 'scroll-py-1 overflow-y-auto overflow-x-hidden scrollbar-thin',
|
|
9
|
+
empty: 'py-6 text-center text-sm text-on-surface-variant',
|
|
10
|
+
loading: 'py-6 text-center text-sm text-on-surface-variant',
|
|
11
|
+
group: 'overflow-hidden p-1',
|
|
12
|
+
groupHeading: 'px-2 py-1.5 text-xs font-semibold text-on-surface-variant',
|
|
13
|
+
groupItems: '',
|
|
14
|
+
separator: '-mx-1 h-px bg-outline-variant',
|
|
15
|
+
item: 'relative flex w-full cursor-default select-none items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[selected]:bg-surface-container-highest',
|
|
16
|
+
itemIcon: 'size-4 shrink-0',
|
|
17
|
+
itemWrapper: 'flex min-w-0 flex-1 flex-col',
|
|
18
|
+
itemLabel: 'truncate',
|
|
19
|
+
itemDescription: 'truncate text-xs text-on-surface-variant',
|
|
20
|
+
itemTrailing: 'ms-auto flex items-center gap-1',
|
|
21
|
+
footer: 'border-t border-outline-variant p-1'
|
|
22
|
+
},
|
|
23
|
+
variants: {
|
|
24
|
+
size: {
|
|
25
|
+
xs: {
|
|
26
|
+
inputIcon: 'size-3.5',
|
|
27
|
+
input: 'h-9 text-xs',
|
|
28
|
+
inputWrapper: 'px-2',
|
|
29
|
+
item: 'px-1.5 py-1 text-xs gap-1.5',
|
|
30
|
+
itemIcon: 'size-3.5',
|
|
31
|
+
groupHeading: 'px-1.5 py-1 text-[10px]',
|
|
32
|
+
empty: 'py-4 text-xs',
|
|
33
|
+
loading: 'py-4 text-xs'
|
|
34
|
+
},
|
|
35
|
+
sm: {
|
|
36
|
+
inputIcon: 'size-3.5',
|
|
37
|
+
input: 'h-10 text-xs',
|
|
38
|
+
inputWrapper: 'px-2.5',
|
|
39
|
+
item: 'px-1.5 py-1 text-xs gap-1.5',
|
|
40
|
+
itemIcon: 'size-4',
|
|
41
|
+
groupHeading: 'px-1.5 py-1 text-[10px]',
|
|
42
|
+
empty: 'py-5 text-xs',
|
|
43
|
+
loading: 'py-5 text-xs'
|
|
44
|
+
},
|
|
45
|
+
md: {
|
|
46
|
+
inputIcon: 'size-4',
|
|
47
|
+
input: 'h-12 text-sm',
|
|
48
|
+
inputWrapper: 'px-3',
|
|
49
|
+
item: 'px-2 py-1.5 text-sm gap-2',
|
|
50
|
+
itemIcon: 'size-4',
|
|
51
|
+
groupHeading: 'px-2 py-1.5 text-xs',
|
|
52
|
+
empty: 'py-6 text-sm',
|
|
53
|
+
loading: 'py-6 text-sm'
|
|
54
|
+
},
|
|
55
|
+
lg: {
|
|
56
|
+
inputIcon: 'size-5',
|
|
57
|
+
input: 'h-13 text-sm',
|
|
58
|
+
inputWrapper: 'px-3.5',
|
|
59
|
+
item: 'px-2.5 py-2 text-sm gap-2',
|
|
60
|
+
itemIcon: 'size-5',
|
|
61
|
+
groupHeading: 'px-2.5 py-2 text-xs',
|
|
62
|
+
empty: 'py-7 text-sm',
|
|
63
|
+
loading: 'py-7 text-sm'
|
|
64
|
+
},
|
|
65
|
+
xl: {
|
|
66
|
+
inputIcon: 'size-5',
|
|
67
|
+
input: 'h-14 text-base',
|
|
68
|
+
inputWrapper: 'px-4',
|
|
69
|
+
item: 'px-3 py-2 text-base gap-2.5',
|
|
70
|
+
itemIcon: 'size-5',
|
|
71
|
+
groupHeading: 'px-3 py-2 text-sm',
|
|
72
|
+
empty: 'py-8 text-base',
|
|
73
|
+
loading: 'py-8 text-base'
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
defaultVariants: {
|
|
78
|
+
size: 'md'
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
export const commandDefaults = {
|
|
82
|
+
defaultVariants: {
|
|
83
|
+
size: 'md'
|
|
84
|
+
},
|
|
85
|
+
slots: {}
|
|
86
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Command } from './Command.svelte';
|