@nasa-jpl/stellar-svelte 2.0.0-alpha.33 → 2.0.0-alpha.36
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/ui/button/index.js +2 -2
- package/dist/components/ui/input/index.d.ts +9 -2
- package/dist/components/ui/input/index.js +9 -3
- package/dist/components/ui/input/input.svelte +28 -23
- package/dist/components/ui/input/input.svelte.d.ts +6 -3
- package/dist/components/ui/select/index.d.ts +33 -7
- package/dist/components/ui/select/index.js +33 -8
- package/dist/components/ui/select/select-content.svelte +19 -16
- package/dist/components/ui/select/select-content.svelte.d.ts +25 -2
- package/dist/components/ui/select/select-item.svelte +27 -24
- package/dist/components/ui/select/select-item.svelte.d.ts +22 -3
- package/dist/components/ui/select/select-label.svelte +6 -7
- package/dist/components/ui/select/select-label.svelte.d.ts +7 -2
- package/dist/components/ui/select/select-trigger.svelte +17 -14
- package/dist/components/ui/select/select-trigger.svelte.d.ts +15 -3
- package/dist/components/ui/toggle/index.d.ts +7 -0
- package/dist/components/ui/toggle/index.js +1 -0
- package/dist/components/ui/toggle-group/index.d.ts +1 -1
- package/dist/components/ui/toggle-group/toggle-group-item.svelte.d.ts +1 -1
- package/dist/components/ui/toggle-group/toggle-group.svelte.d.ts +1 -1
- package/dist/index.css +416 -122
- package/package.json +5 -5
- package/tailwind.config.ts +61 -58
|
@@ -13,8 +13,8 @@ const buttonVariants = tv({
|
|
|
13
13
|
},
|
|
14
14
|
size: {
|
|
15
15
|
default: 'h-6 px-2 py-2',
|
|
16
|
-
xs: 'h-4 px-1 py-0.5 rounded-sm',
|
|
17
|
-
sm: 'h-4 rounded-md px-1 py-2',
|
|
16
|
+
xs: 'h-4 px-1 py-0.5 rounded-sm text-xs',
|
|
17
|
+
sm: 'h-4 rounded-md px-1.5 py-2.5',
|
|
18
18
|
lg: 'h-8 rounded-lg px-4',
|
|
19
19
|
icon: 'h-10 w-10',
|
|
20
20
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Root from
|
|
1
|
+
import Root from './input.svelte';
|
|
2
2
|
export type FormInputEvent<T extends Event = Event> = T & {
|
|
3
3
|
currentTarget: EventTarget & HTMLInputElement;
|
|
4
4
|
};
|
|
@@ -20,4 +20,11 @@ export type InputEvents = {
|
|
|
20
20
|
input: FormInputEvent<InputEvent>;
|
|
21
21
|
wheel: FormInputEvent<WheelEvent>;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
23
|
+
export type InputSize = 'default' | 'sm';
|
|
24
|
+
declare const inputVariants: {
|
|
25
|
+
size: {
|
|
26
|
+
default: string;
|
|
27
|
+
sm: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export { Root as Input, inputVariants, Root, };
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import Root from
|
|
2
|
-
|
|
1
|
+
import Root from './input.svelte';
|
|
2
|
+
const inputVariants = {
|
|
3
|
+
size: {
|
|
4
|
+
default: 'h-10 px-3 py-2',
|
|
5
|
+
sm: 'h-8 px-2 text-xs',
|
|
6
|
+
},
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
3
9
|
//
|
|
4
|
-
Root as Input, };
|
|
10
|
+
Root as Input, inputVariants, Root, };
|
|
@@ -1,32 +1,37 @@
|
|
|
1
1
|
<script>import { cn } from "../../../utils.js";
|
|
2
|
+
import { inputVariants } from "./index.js";
|
|
2
3
|
let className = void 0;
|
|
3
4
|
export let value = void 0;
|
|
5
|
+
export let size = "default";
|
|
4
6
|
export { className as class };
|
|
5
7
|
export let readonly = void 0;
|
|
8
|
+
export let el = void 0;
|
|
6
9
|
</script>
|
|
7
10
|
|
|
8
11
|
<input
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
12
|
+
class={cn(
|
|
13
|
+
'border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex w-full rounded-md border file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
|
|
14
|
+
inputVariants.size[size],
|
|
15
|
+
className,
|
|
16
|
+
)}
|
|
17
|
+
bind:value
|
|
18
|
+
bind:this={el}
|
|
19
|
+
{readonly}
|
|
20
|
+
on:blur
|
|
21
|
+
on:change
|
|
22
|
+
on:click
|
|
23
|
+
on:focus
|
|
24
|
+
on:focusin
|
|
25
|
+
on:focusout
|
|
26
|
+
on:keydown
|
|
27
|
+
on:keypress
|
|
28
|
+
on:keyup
|
|
29
|
+
on:mouseover
|
|
30
|
+
on:mouseenter
|
|
31
|
+
on:mouseleave
|
|
32
|
+
on:mousemove
|
|
33
|
+
on:paste
|
|
34
|
+
on:input
|
|
35
|
+
on:wheel|passive
|
|
36
|
+
{...$$restProps}
|
|
32
37
|
/>
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import type { HTMLInputAttributes } from
|
|
3
|
-
import type { InputEvents } from
|
|
2
|
+
import type { HTMLInputAttributes } from 'svelte/elements';
|
|
3
|
+
import type { InputEvents, InputSize } from './index.js';
|
|
4
4
|
declare const __propDef: {
|
|
5
|
-
props: HTMLInputAttributes
|
|
5
|
+
props: HTMLInputAttributes & {
|
|
6
|
+
el?: HTMLInputElement;
|
|
7
|
+
size?: InputSize;
|
|
8
|
+
};
|
|
6
9
|
slots: {};
|
|
7
10
|
events: InputEvents;
|
|
8
11
|
};
|
|
@@ -1,11 +1,37 @@
|
|
|
1
|
-
import { Select as SelectPrimitive } from
|
|
2
|
-
import
|
|
3
|
-
import Item from
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { Select as SelectPrimitive } from 'bits-ui';
|
|
2
|
+
import Content from './select-content.svelte';
|
|
3
|
+
import Item from './select-item.svelte';
|
|
4
|
+
import Label from './select-label.svelte';
|
|
5
|
+
import Separator from './select-separator.svelte';
|
|
6
|
+
import Trigger from './select-trigger.svelte';
|
|
7
7
|
declare const Root: typeof SelectPrimitive.Root;
|
|
8
8
|
declare const Group: typeof SelectPrimitive.Group;
|
|
9
9
|
declare const Input: typeof SelectPrimitive.Input;
|
|
10
10
|
declare const Value: typeof SelectPrimitive.Value;
|
|
11
|
-
export
|
|
11
|
+
export type SelectSize = 'default' | 'sm' | 'xs';
|
|
12
|
+
declare const selectVariants: {
|
|
13
|
+
size: {
|
|
14
|
+
default: {
|
|
15
|
+
trigger: string;
|
|
16
|
+
content: string;
|
|
17
|
+
item: string;
|
|
18
|
+
label: string;
|
|
19
|
+
icon: string;
|
|
20
|
+
};
|
|
21
|
+
sm: {
|
|
22
|
+
trigger: string;
|
|
23
|
+
content: string;
|
|
24
|
+
item: string;
|
|
25
|
+
label: string;
|
|
26
|
+
icon: string;
|
|
27
|
+
};
|
|
28
|
+
xs: {
|
|
29
|
+
trigger: string;
|
|
30
|
+
content: string;
|
|
31
|
+
item: string;
|
|
32
|
+
label: string;
|
|
33
|
+
icon: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export { Content, Group, Input, Item, Label, Root, Root as Select, Content as SelectContent, Group as SelectGroup, Input as SelectInput, Item as SelectItem, Label as SelectLabel, Separator as SelectSeparator, Trigger as SelectTrigger, Value as SelectValue, selectVariants, Separator, Trigger, Value, };
|
|
@@ -1,13 +1,38 @@
|
|
|
1
|
-
import { Select as SelectPrimitive } from
|
|
2
|
-
import
|
|
3
|
-
import Item from
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { Select as SelectPrimitive } from 'bits-ui';
|
|
2
|
+
import Content from './select-content.svelte';
|
|
3
|
+
import Item from './select-item.svelte';
|
|
4
|
+
import Label from './select-label.svelte';
|
|
5
|
+
import Separator from './select-separator.svelte';
|
|
6
|
+
import Trigger from './select-trigger.svelte';
|
|
7
7
|
const Root = SelectPrimitive.Root;
|
|
8
8
|
const Group = SelectPrimitive.Group;
|
|
9
9
|
const Input = SelectPrimitive.Input;
|
|
10
10
|
const Value = SelectPrimitive.Value;
|
|
11
|
-
|
|
11
|
+
const selectVariants = {
|
|
12
|
+
size: {
|
|
13
|
+
default: {
|
|
14
|
+
trigger: 'h-10 px-3 py-2',
|
|
15
|
+
content: 'p-1',
|
|
16
|
+
item: 'py-1.5 pl-8 pr-2 text-sm',
|
|
17
|
+
label: 'py-1.5 pl-8 pr-2 text-sm',
|
|
18
|
+
icon: 'left-2 h-3.5 w-3.5',
|
|
19
|
+
},
|
|
20
|
+
sm: {
|
|
21
|
+
trigger: 'h-8 px-2 py-1.5 text-sm',
|
|
22
|
+
content: 'p-0.5',
|
|
23
|
+
item: 'py-1 pl-6 pr-1.5 text-sm',
|
|
24
|
+
label: 'py-1 pl-6 pr-1.5 text-sm',
|
|
25
|
+
icon: 'left-1.5 h-3 w-3',
|
|
26
|
+
},
|
|
27
|
+
xs: {
|
|
28
|
+
trigger: 'h-6 px-2 py-1 text-xs',
|
|
29
|
+
content: 'p-0.5',
|
|
30
|
+
item: 'py-1 pl-5 pr-1 text-xs',
|
|
31
|
+
label: 'py-1 pl-5 pr-1 text-xs',
|
|
32
|
+
icon: 'left-1 h-2.5 w-2.5',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
export { Content, Group, Input, Item, Label, Root,
|
|
12
37
|
//
|
|
13
|
-
Root as Select,
|
|
38
|
+
Root as Select, Content as SelectContent, Group as SelectGroup, Input as SelectInput, Item as SelectItem, Label as SelectLabel, Separator as SelectSeparator, Trigger as SelectTrigger, Value as SelectValue, selectVariants, Separator, Trigger, Value, };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
<script>import {
|
|
1
|
+
<script>import { cn, flyAndScale } from "../../../utils.js";
|
|
2
|
+
import { Select as SelectPrimitive } from "bits-ui";
|
|
2
3
|
import { scale } from "svelte/transition";
|
|
3
|
-
import {
|
|
4
|
+
import { selectVariants } from "./index.js";
|
|
4
5
|
export let sideOffset = 4;
|
|
5
6
|
export let inTransition = flyAndScale;
|
|
6
7
|
export let inTransitionConfig = void 0;
|
|
@@ -11,23 +12,25 @@ export let outTransitionConfig = {
|
|
|
11
12
|
duration: 50
|
|
12
13
|
};
|
|
13
14
|
let className = void 0;
|
|
15
|
+
export let size = "default";
|
|
14
16
|
export { className as class };
|
|
15
17
|
</script>
|
|
16
18
|
|
|
17
19
|
<SelectPrimitive.Content
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
20
|
+
{inTransition}
|
|
21
|
+
{inTransitionConfig}
|
|
22
|
+
{outTransition}
|
|
23
|
+
{outTransitionConfig}
|
|
24
|
+
{sideOffset}
|
|
25
|
+
class={cn(
|
|
26
|
+
'bg-popover text-popover-foreground relative z-50 min-w-[8rem] overflow-hidden rounded-md border shadow-md outline-none',
|
|
27
|
+
selectVariants.size[size].content,
|
|
28
|
+
className,
|
|
29
|
+
)}
|
|
30
|
+
{...$$restProps}
|
|
31
|
+
on:keydown
|
|
29
32
|
>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
<div class="w-full p-1">
|
|
34
|
+
<slot />
|
|
35
|
+
</div>
|
|
33
36
|
</SelectPrimitive.Content>
|
|
@@ -1,7 +1,30 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import { Select as SelectPrimitive } from
|
|
2
|
+
import { Select as SelectPrimitive } from 'bits-ui';
|
|
3
|
+
import type { SelectSize } from './index.js';
|
|
3
4
|
declare const __propDef: {
|
|
4
|
-
props:
|
|
5
|
+
props: {
|
|
6
|
+
side?: "top" | "right" | "bottom" | "left" | undefined | undefined;
|
|
7
|
+
align?: "start" | "center" | "end" | undefined | undefined;
|
|
8
|
+
alignOffset?: number | undefined | undefined;
|
|
9
|
+
sideOffset?: number | undefined | undefined;
|
|
10
|
+
sameWidth?: boolean | undefined | undefined;
|
|
11
|
+
avoidCollisions?: boolean | undefined | undefined;
|
|
12
|
+
collisionPadding?: number | undefined | undefined;
|
|
13
|
+
collisionBoundary?: import("bits-ui/dist/bits/floating/_types.js").Boundary | undefined;
|
|
14
|
+
fitViewport?: boolean | undefined | undefined;
|
|
15
|
+
strategy?: "absolute" | "fixed" | undefined | undefined;
|
|
16
|
+
overlap?: boolean | undefined | undefined;
|
|
17
|
+
transition?: import("bits-ui/dist/internal/types.js").Transition | undefined;
|
|
18
|
+
transitionConfig?: any;
|
|
19
|
+
inTransition?: import("bits-ui/dist/internal/types.js").Transition | undefined;
|
|
20
|
+
inTransitionConfig?: any;
|
|
21
|
+
outTransition?: import("bits-ui/dist/internal/types.js").Transition | undefined;
|
|
22
|
+
outTransitionConfig?: any;
|
|
23
|
+
asChild?: boolean | undefined | undefined;
|
|
24
|
+
el?: HTMLDivElement | undefined;
|
|
25
|
+
} & import("bits-ui/dist/internal/types.js").HTMLDivAttributes & {
|
|
26
|
+
size?: SelectSize;
|
|
27
|
+
};
|
|
5
28
|
slots: {
|
|
6
29
|
default: {};
|
|
7
30
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
<script>import
|
|
1
|
+
<script>import { cn } from "../../../utils.js";
|
|
2
2
|
import { Select as SelectPrimitive } from "bits-ui";
|
|
3
|
-
import
|
|
3
|
+
import Check from "lucide-svelte/icons/check";
|
|
4
|
+
import { selectVariants } from "./index.js";
|
|
4
5
|
let className = void 0;
|
|
6
|
+
export let size = "default";
|
|
5
7
|
export let value;
|
|
6
8
|
export let label = void 0;
|
|
7
9
|
export let disabled = void 0;
|
|
@@ -9,27 +11,28 @@ export { className as class };
|
|
|
9
11
|
</script>
|
|
10
12
|
|
|
11
13
|
<SelectPrimitive.Item
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
14
|
+
{value}
|
|
15
|
+
{disabled}
|
|
16
|
+
{label}
|
|
17
|
+
class={cn(
|
|
18
|
+
'data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex w-full cursor-default select-none items-center rounded-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
|
|
19
|
+
selectVariants.size[size].item,
|
|
20
|
+
className,
|
|
21
|
+
)}
|
|
22
|
+
{...$$restProps}
|
|
23
|
+
on:click
|
|
24
|
+
on:keydown
|
|
25
|
+
on:focusin
|
|
26
|
+
on:focusout
|
|
27
|
+
on:pointerleave
|
|
28
|
+
on:pointermove
|
|
26
29
|
>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
<span class={cn('absolute flex items-center justify-center', selectVariants.size[size].icon)}>
|
|
31
|
+
<SelectPrimitive.ItemIndicator>
|
|
32
|
+
<Check class="h-full w-full" />
|
|
33
|
+
</SelectPrimitive.ItemIndicator>
|
|
34
|
+
</span>
|
|
35
|
+
<slot>
|
|
36
|
+
{label || value}
|
|
37
|
+
</slot>
|
|
35
38
|
</SelectPrimitive.Item>
|
|
@@ -1,11 +1,30 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import {
|
|
2
|
+
import type { SelectSize } from './index.js';
|
|
3
3
|
declare const __propDef: {
|
|
4
|
-
props:
|
|
4
|
+
props: {
|
|
5
|
+
value: unknown;
|
|
6
|
+
label?: string | undefined;
|
|
7
|
+
disabled?: boolean | undefined;
|
|
8
|
+
asChild?: boolean | undefined | undefined;
|
|
9
|
+
el?: HTMLDivElement | undefined;
|
|
10
|
+
} & import("bits-ui/dist/internal/types.js").HTMLDivAttributes & {
|
|
11
|
+
size?: SelectSize;
|
|
12
|
+
};
|
|
13
|
+
events: {
|
|
14
|
+
click: import("bits-ui").CustomEventHandler<MouseEvent, HTMLDivElement>;
|
|
15
|
+
keydown: import("bits-ui").CustomEventHandler<KeyboardEvent, HTMLDivElement>;
|
|
16
|
+
focusin: import("bits-ui").CustomEventHandler<FocusEvent, HTMLDivElement>;
|
|
17
|
+
focusout: import("bits-ui").CustomEventHandler<FocusEvent, HTMLDivElement>;
|
|
18
|
+
pointerleave: import("bits-ui").CustomEventHandler<PointerEvent, HTMLDivElement>;
|
|
19
|
+
pointermove: import("bits-ui").CustomEventHandler<PointerEvent, HTMLDivElement>;
|
|
20
|
+
} & {
|
|
21
|
+
[evt: string]: CustomEvent<any>;
|
|
22
|
+
};
|
|
5
23
|
slots: {
|
|
6
24
|
default: {};
|
|
7
25
|
};
|
|
8
|
-
|
|
26
|
+
exports?: {} | undefined;
|
|
27
|
+
bindings?: string | undefined;
|
|
9
28
|
};
|
|
10
29
|
export type SelectItemProps = typeof __propDef.props;
|
|
11
30
|
export type SelectItemEvents = typeof __propDef.events;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
<script>import {
|
|
2
|
-
import {
|
|
1
|
+
<script>import { cn } from "../../../utils.js";
|
|
2
|
+
import { Select as SelectPrimitive } from "bits-ui";
|
|
3
|
+
import { selectVariants } from "./index.js";
|
|
3
4
|
let className = void 0;
|
|
5
|
+
export let size = "default";
|
|
4
6
|
export { className as class };
|
|
5
7
|
</script>
|
|
6
8
|
|
|
7
|
-
<SelectPrimitive.Label
|
|
8
|
-
|
|
9
|
-
{...$$restProps}
|
|
10
|
-
>
|
|
11
|
-
<slot />
|
|
9
|
+
<SelectPrimitive.Label class={cn('font-semibold', selectVariants.size[size].label, className)} {...$$restProps}>
|
|
10
|
+
<slot />
|
|
12
11
|
</SelectPrimitive.Label>
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import {
|
|
2
|
+
import type { SelectSize } from './index.js';
|
|
3
3
|
declare const __propDef: {
|
|
4
|
-
props:
|
|
4
|
+
props: {
|
|
5
|
+
asChild?: boolean | undefined | undefined;
|
|
6
|
+
el?: HTMLDivElement | undefined;
|
|
7
|
+
} & import("bits-ui/dist/internal/types.js").HTMLDivAttributes & {
|
|
8
|
+
size?: SelectSize;
|
|
9
|
+
};
|
|
5
10
|
events: {
|
|
6
11
|
[evt: string]: CustomEvent<any>;
|
|
7
12
|
};
|
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
<script>import {
|
|
1
|
+
<script>import { cn } from "../../../utils.js";
|
|
2
|
+
import { Select as SelectPrimitive } from "bits-ui";
|
|
2
3
|
import ChevronDown from "lucide-svelte/icons/chevron-down";
|
|
3
|
-
import {
|
|
4
|
+
import { selectVariants } from "./index.js";
|
|
4
5
|
let className = void 0;
|
|
6
|
+
export let size = "default";
|
|
5
7
|
export { className as class };
|
|
6
8
|
</script>
|
|
7
9
|
|
|
8
10
|
<SelectPrimitive.Trigger
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
class={cn(
|
|
12
|
+
'border-input bg-background ring-offset-background focus-visible:ring-ring aria-[invalid]:border-destructive data-[placeholder]:[&>span]:text-muted-foreground flex w-full items-center justify-between rounded-md border text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1',
|
|
13
|
+
selectVariants.size[size].trigger,
|
|
14
|
+
className,
|
|
15
|
+
)}
|
|
16
|
+
{...$$restProps}
|
|
17
|
+
let:builder
|
|
18
|
+
on:click
|
|
19
|
+
on:keydown
|
|
17
20
|
>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
<slot {builder} />
|
|
22
|
+
<div>
|
|
23
|
+
<ChevronDown class="h-4 w-4 opacity-50" />
|
|
24
|
+
</div>
|
|
22
25
|
</SelectPrimitive.Trigger>
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import {
|
|
2
|
+
import type { SelectSize } from './index.js';
|
|
3
3
|
declare const __propDef: {
|
|
4
|
-
props:
|
|
4
|
+
props: {
|
|
5
|
+
asChild?: boolean | undefined | undefined;
|
|
6
|
+
el?: HTMLButtonElement | undefined;
|
|
7
|
+
} & import("svelte/elements.js").HTMLButtonAttributes & {
|
|
8
|
+
size?: SelectSize;
|
|
9
|
+
};
|
|
10
|
+
events: {
|
|
11
|
+
click: import("bits-ui").CustomEventHandler<MouseEvent, HTMLButtonElement>;
|
|
12
|
+
keydown: import("bits-ui").CustomEventHandler<KeyboardEvent, HTMLButtonElement>;
|
|
13
|
+
} & {
|
|
14
|
+
[evt: string]: CustomEvent<any>;
|
|
15
|
+
};
|
|
5
16
|
slots: {
|
|
6
17
|
default: {
|
|
7
18
|
builder: {
|
|
@@ -21,7 +32,8 @@ declare const __propDef: {
|
|
|
21
32
|
};
|
|
22
33
|
};
|
|
23
34
|
};
|
|
24
|
-
|
|
35
|
+
exports?: {} | undefined;
|
|
36
|
+
bindings?: string | undefined;
|
|
25
37
|
};
|
|
26
38
|
export type SelectTriggerProps = typeof __propDef.props;
|
|
27
39
|
export type SelectTriggerEvents = typeof __propDef.events;
|
|
@@ -9,6 +9,7 @@ export declare const toggleVariants: import("tailwind-variants").TVReturnType<{
|
|
|
9
9
|
default: string;
|
|
10
10
|
sm: string;
|
|
11
11
|
lg: string;
|
|
12
|
+
xs: string;
|
|
12
13
|
};
|
|
13
14
|
}, undefined, "ring-offset-background hover:bg-muted hover:text-muted-foreground focus-visible:ring-ring data-[state=on]:bg-accent data-[state=on]:text-accent-foreground inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", import("tailwind-variants/dist/config").TVConfig<{
|
|
14
15
|
variant: {
|
|
@@ -19,6 +20,7 @@ export declare const toggleVariants: import("tailwind-variants").TVReturnType<{
|
|
|
19
20
|
default: string;
|
|
20
21
|
sm: string;
|
|
21
22
|
lg: string;
|
|
23
|
+
xs: string;
|
|
22
24
|
};
|
|
23
25
|
}, {
|
|
24
26
|
variant: {
|
|
@@ -29,6 +31,7 @@ export declare const toggleVariants: import("tailwind-variants").TVReturnType<{
|
|
|
29
31
|
default: string;
|
|
30
32
|
sm: string;
|
|
31
33
|
lg: string;
|
|
34
|
+
xs: string;
|
|
32
35
|
};
|
|
33
36
|
}>, {
|
|
34
37
|
variant: {
|
|
@@ -39,6 +42,7 @@ export declare const toggleVariants: import("tailwind-variants").TVReturnType<{
|
|
|
39
42
|
default: string;
|
|
40
43
|
sm: string;
|
|
41
44
|
lg: string;
|
|
45
|
+
xs: string;
|
|
42
46
|
};
|
|
43
47
|
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
44
48
|
variant: {
|
|
@@ -49,6 +53,7 @@ export declare const toggleVariants: import("tailwind-variants").TVReturnType<{
|
|
|
49
53
|
default: string;
|
|
50
54
|
sm: string;
|
|
51
55
|
lg: string;
|
|
56
|
+
xs: string;
|
|
52
57
|
};
|
|
53
58
|
}, undefined, "ring-offset-background hover:bg-muted hover:text-muted-foreground focus-visible:ring-ring data-[state=on]:bg-accent data-[state=on]:text-accent-foreground inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", import("tailwind-variants/dist/config").TVConfig<{
|
|
54
59
|
variant: {
|
|
@@ -59,6 +64,7 @@ export declare const toggleVariants: import("tailwind-variants").TVReturnType<{
|
|
|
59
64
|
default: string;
|
|
60
65
|
sm: string;
|
|
61
66
|
lg: string;
|
|
67
|
+
xs: string;
|
|
62
68
|
};
|
|
63
69
|
}, {
|
|
64
70
|
variant: {
|
|
@@ -69,6 +75,7 @@ export declare const toggleVariants: import("tailwind-variants").TVReturnType<{
|
|
|
69
75
|
default: string;
|
|
70
76
|
sm: string;
|
|
71
77
|
lg: string;
|
|
78
|
+
xs: string;
|
|
72
79
|
};
|
|
73
80
|
}>, unknown, unknown, undefined>>;
|
|
74
81
|
export type Variant = VariantProps<typeof toggleVariants>['variant'];
|
|
@@ -6,6 +6,6 @@ export type ToggleVariants = VariantProps<typeof toggleVariants>;
|
|
|
6
6
|
export declare function setToggleGroupCtx(props: ToggleVariants): void;
|
|
7
7
|
export declare function getToggleGroupCtx(): {
|
|
8
8
|
variant?: "default" | "outline" | undefined;
|
|
9
|
-
size?: "default" | "sm" | "lg" | undefined;
|
|
9
|
+
size?: "default" | "sm" | "lg" | "xs" | undefined;
|
|
10
10
|
};
|
|
11
11
|
export { Item, Root, Root as ToggleGroup, Item as ToggleGroupItem, };
|
|
@@ -7,7 +7,7 @@ declare const __propDef: {
|
|
|
7
7
|
el?: HTMLButtonElement | undefined;
|
|
8
8
|
} & import("svelte/elements.js").HTMLButtonAttributes & {
|
|
9
9
|
variant?: "default" | "outline" | undefined;
|
|
10
|
-
size?: "default" | "sm" | "lg" | undefined;
|
|
10
|
+
size?: "default" | "sm" | "lg" | "xs" | undefined;
|
|
11
11
|
};
|
|
12
12
|
events: {
|
|
13
13
|
[evt: string]: CustomEvent<any>;
|
|
@@ -12,7 +12,7 @@ declare class __sveltets_Render<T extends 'single' | 'multiple'> {
|
|
|
12
12
|
el?: HTMLDivElement | undefined;
|
|
13
13
|
} & import("bits-ui/dist/internal/types.js").HTMLDivAttributes & {
|
|
14
14
|
variant?: "default" | "outline" | undefined;
|
|
15
|
-
size?: "default" | "sm" | "lg" | undefined;
|
|
15
|
+
size?: "default" | "sm" | "lg" | "xs" | undefined;
|
|
16
16
|
};
|
|
17
17
|
events(): {} & {
|
|
18
18
|
[evt: string]: CustomEvent<any>;
|