@nasa-jpl/stellar-svelte 2.0.0-alpha.12
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/LICENSE +7 -0
- package/README.md +58 -0
- package/dist/components/ui/alert/alert-description.svelte +8 -0
- package/dist/components/ui/alert/alert-description.svelte.d.ts +19 -0
- package/dist/components/ui/alert/alert-title.svelte +13 -0
- package/dist/components/ui/alert/alert-title.svelte.d.ts +22 -0
- package/dist/components/ui/alert/alert.svelte +10 -0
- package/dist/components/ui/alert/alert.svelte.d.ts +22 -0
- package/dist/components/ui/alert/index.d.ts +43 -0
- package/dist/components/ui/alert/index.js +19 -0
- package/dist/components/ui/alert-dialog/alert-dialog-action.svelte +16 -0
- package/dist/components/ui/alert-dialog/alert-dialog-action.svelte.d.ts +23 -0
- package/dist/components/ui/alert-dialog/alert-dialog-cancel.svelte +16 -0
- package/dist/components/ui/alert-dialog/alert-dialog-cancel.svelte.d.ts +23 -0
- package/dist/components/ui/alert-dialog/alert-dialog-content.svelte +23 -0
- package/dist/components/ui/alert-dialog/alert-dialog-content.svelte.d.ts +19 -0
- package/dist/components/ui/alert-dialog/alert-dialog-description.svelte +12 -0
- package/dist/components/ui/alert-dialog/alert-dialog-description.svelte.d.ts +19 -0
- package/dist/components/ui/alert-dialog/alert-dialog-footer.svelte +11 -0
- package/dist/components/ui/alert-dialog/alert-dialog-footer.svelte.d.ts +19 -0
- package/dist/components/ui/alert-dialog/alert-dialog-header.svelte +8 -0
- package/dist/components/ui/alert-dialog/alert-dialog-header.svelte.d.ts +19 -0
- package/dist/components/ui/alert-dialog/alert-dialog-overlay.svelte +17 -0
- package/dist/components/ui/alert-dialog/alert-dialog-overlay.svelte.d.ts +17 -0
- package/dist/components/ui/alert-dialog/alert-dialog-portal.svelte +6 -0
- package/dist/components/ui/alert-dialog/alert-dialog-portal.svelte.d.ts +19 -0
- package/dist/components/ui/alert-dialog/alert-dialog-title.svelte +10 -0
- package/dist/components/ui/alert-dialog/alert-dialog-title.svelte.d.ts +19 -0
- package/dist/components/ui/alert-dialog/index.d.ts +13 -0
- package/dist/components/ui/alert-dialog/index.js +15 -0
- package/dist/components/ui/aspect-ratio/aspect-ratio.svelte +7 -0
- package/dist/components/ui/aspect-ratio/aspect-ratio.svelte.d.ts +19 -0
- package/dist/components/ui/aspect-ratio/index.d.ts +2 -0
- package/dist/components/ui/aspect-ratio/index.js +2 -0
- package/dist/components/ui/badge/badge.svelte +16 -0
- package/dist/components/ui/badge/badge.svelte.d.ts +24 -0
- package/dist/components/ui/badge/index.d.ts +53 -0
- package/dist/components/ui/badge/index.js +16 -0
- package/dist/components/ui/breadcrumb/breadcrumb-ellipsis.svelte +17 -0
- package/dist/components/ui/breadcrumb/breadcrumb-ellipsis.svelte.d.ts +19 -0
- package/dist/components/ui/breadcrumb/breadcrumb-item.svelte +9 -0
- package/dist/components/ui/breadcrumb/breadcrumb-item.svelte.d.ts +21 -0
- package/dist/components/ui/breadcrumb/breadcrumb-link.svelte +21 -0
- package/dist/components/ui/breadcrumb/breadcrumb-link.svelte.d.ts +24 -0
- package/dist/components/ui/breadcrumb/breadcrumb-list.svelte +16 -0
- package/dist/components/ui/breadcrumb/breadcrumb-list.svelte.d.ts +21 -0
- package/dist/components/ui/breadcrumb/breadcrumb-page.svelte +16 -0
- package/dist/components/ui/breadcrumb/breadcrumb-page.svelte.d.ts +23 -0
- package/dist/components/ui/breadcrumb/breadcrumb-separator.svelte +18 -0
- package/dist/components/ui/breadcrumb/breadcrumb-separator.svelte.d.ts +21 -0
- package/dist/components/ui/breadcrumb/breadcrumb.svelte +8 -0
- package/dist/components/ui/breadcrumb/breadcrumb.svelte.d.ts +21 -0
- package/dist/components/ui/breadcrumb/index.d.ts +8 -0
- package/dist/components/ui/breadcrumb/index.js +10 -0
- package/dist/components/ui/button/button.svelte +20 -0
- package/dist/components/ui/button/button.svelte.d.ts +16 -0
- package/dist/components/ui/button/index.d.ts +117 -0
- package/dist/components/ui/button/index.js +28 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +30 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte.d.ts +15 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte +22 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte.d.ts +15 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte +24 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte.d.ts +17 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte +13 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte.d.ts +23 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte +7 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte.d.ts +19 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +30 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte.d.ts +15 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte +10 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte.d.ts +17 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte +8 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte.d.ts +19 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +25 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +15 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +25 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +21 -0
- package/dist/components/ui/dropdown-menu/index.d.ts +16 -0
- package/dist/components/ui/dropdown-menu/index.js +18 -0
- package/dist/components/ui/popover/index.d.ts +6 -0
- package/dist/components/ui/popover/index.js +8 -0
- package/dist/components/ui/popover/popover-content.svelte +19 -0
- package/dist/components/ui/popover/popover-content.svelte.d.ts +19 -0
- package/dist/components/ui/theme-switcher/button.svelte +20 -0
- package/dist/components/ui/theme-switcher/button.svelte.d.ts +14 -0
- package/dist/components/ui/theme-switcher/index.d.ts +4 -0
- package/dist/components/ui/theme-switcher/index.js +4 -0
- package/dist/components/ui/theme-switcher/theme-switcher-button.svelte +15 -0
- package/dist/components/ui/theme-switcher/theme-switcher-button.svelte.d.ts +16 -0
- package/dist/components/ui/theme-switcher/theme-switcher-dropdown.svelte +25 -0
- package/dist/components/ui/theme-switcher/theme-switcher-dropdown.svelte.d.ts +16 -0
- package/dist/components/ui/typography/H1.svelte +8 -0
- package/dist/components/ui/typography/H1.svelte.d.ts +21 -0
- package/dist/components/ui/typography/H2.svelte +8 -0
- package/dist/components/ui/typography/H2.svelte.d.ts +21 -0
- package/dist/components/ui/typography/H3.svelte +8 -0
- package/dist/components/ui/typography/H3.svelte.d.ts +21 -0
- package/dist/components/ui/typography/H4.svelte +8 -0
- package/dist/components/ui/typography/H4.svelte.d.ts +21 -0
- package/dist/components/ui/typography/P.svelte +8 -0
- package/dist/components/ui/typography/P.svelte.d.ts +21 -0
- package/dist/components/ui/typography/index.d.ts +6 -0
- package/dist/components/ui/typography/index.js +6 -0
- package/dist/index.css +1792 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +12 -0
- package/dist/utils.d.ts +11 -0
- package/dist/utils.js +38 -0
- package/eslint.config.js +33 -0
- package/package.json +70 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script>import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
2
|
+
import { cn } from "../../../utils.js";
|
|
3
|
+
let className = void 0;
|
|
4
|
+
export let inset = void 0;
|
|
5
|
+
export { className as class };
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<DropdownMenuPrimitive.Item
|
|
9
|
+
class={cn(
|
|
10
|
+
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:opacity-50",
|
|
11
|
+
inset && "pl-8",
|
|
12
|
+
className
|
|
13
|
+
)}
|
|
14
|
+
{...$$restProps}
|
|
15
|
+
on:click
|
|
16
|
+
on:keydown
|
|
17
|
+
on:focusin
|
|
18
|
+
on:focusout
|
|
19
|
+
on:pointerdown
|
|
20
|
+
on:pointerleave
|
|
21
|
+
on:pointermove
|
|
22
|
+
>
|
|
23
|
+
<slot />
|
|
24
|
+
</DropdownMenuPrimitive.Item>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: DropdownMenuPrimitive.ItemProps & {
|
|
5
|
+
inset?: boolean;
|
|
6
|
+
};
|
|
7
|
+
slots: {
|
|
8
|
+
default: {};
|
|
9
|
+
};
|
|
10
|
+
events: DropdownMenuPrimitive.ItemEvents;
|
|
11
|
+
};
|
|
12
|
+
export type DropdownMenuItemProps = typeof __propDef.props;
|
|
13
|
+
export type DropdownMenuItemEvents = typeof __propDef.events;
|
|
14
|
+
export type DropdownMenuItemSlots = typeof __propDef.slots;
|
|
15
|
+
export default class DropdownMenuItem extends SvelteComponent<DropdownMenuItemProps, DropdownMenuItemEvents, DropdownMenuItemSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script>import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
2
|
+
import { cn } from "../../../utils.js";
|
|
3
|
+
let className = void 0;
|
|
4
|
+
export let inset = void 0;
|
|
5
|
+
export { className as class };
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<DropdownMenuPrimitive.Label
|
|
9
|
+
class={cn("px-2 py-1.5 text-sm font-semibold", inset && "pl-8", className)}
|
|
10
|
+
{...$$restProps}
|
|
11
|
+
>
|
|
12
|
+
<slot />
|
|
13
|
+
</DropdownMenuPrimitive.Label>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
asChild?: boolean | undefined;
|
|
5
|
+
el?: HTMLDivElement | undefined;
|
|
6
|
+
} & import("bits-ui/dist/internal").HTMLDivAttributes & {
|
|
7
|
+
inset?: boolean;
|
|
8
|
+
};
|
|
9
|
+
events: {
|
|
10
|
+
[evt: string]: CustomEvent<any>;
|
|
11
|
+
};
|
|
12
|
+
slots: {
|
|
13
|
+
default: {};
|
|
14
|
+
};
|
|
15
|
+
exports?: {} | undefined;
|
|
16
|
+
bindings?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
export type DropdownMenuLabelProps = typeof __propDef.props;
|
|
19
|
+
export type DropdownMenuLabelEvents = typeof __propDef.events;
|
|
20
|
+
export type DropdownMenuLabelSlots = typeof __propDef.slots;
|
|
21
|
+
export default class DropdownMenuLabel extends SvelteComponent<DropdownMenuLabelProps, DropdownMenuLabelEvents, DropdownMenuLabelSlots> {
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: DropdownMenuPrimitive.RadioGroupProps;
|
|
5
|
+
events: {
|
|
6
|
+
[evt: string]: CustomEvent<any>;
|
|
7
|
+
};
|
|
8
|
+
slots: {
|
|
9
|
+
default: {};
|
|
10
|
+
};
|
|
11
|
+
exports?: {} | undefined;
|
|
12
|
+
bindings?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
export type DropdownMenuRadioGroupProps = typeof __propDef.props;
|
|
15
|
+
export type DropdownMenuRadioGroupEvents = typeof __propDef.events;
|
|
16
|
+
export type DropdownMenuRadioGroupSlots = typeof __propDef.slots;
|
|
17
|
+
export default class DropdownMenuRadioGroup extends SvelteComponent<DropdownMenuRadioGroupProps, DropdownMenuRadioGroupEvents, DropdownMenuRadioGroupSlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<script>import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
2
|
+
import Circle from "lucide-svelte/icons/circle";
|
|
3
|
+
import { cn } from "../../../utils.js";
|
|
4
|
+
let className = void 0;
|
|
5
|
+
export let value;
|
|
6
|
+
export { className as class };
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<DropdownMenuPrimitive.RadioItem
|
|
10
|
+
class={cn(
|
|
11
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:opacity-50",
|
|
12
|
+
className
|
|
13
|
+
)}
|
|
14
|
+
{value}
|
|
15
|
+
{...$$restProps}
|
|
16
|
+
on:click
|
|
17
|
+
on:keydown
|
|
18
|
+
on:focusin
|
|
19
|
+
on:focusout
|
|
20
|
+
on:pointerdown
|
|
21
|
+
on:pointerleave
|
|
22
|
+
on:pointermove
|
|
23
|
+
>
|
|
24
|
+
<span class="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
|
25
|
+
<DropdownMenuPrimitive.RadioIndicator>
|
|
26
|
+
<Circle class="h-2 w-2 fill-current" />
|
|
27
|
+
</DropdownMenuPrimitive.RadioIndicator>
|
|
28
|
+
</span>
|
|
29
|
+
<slot />
|
|
30
|
+
</DropdownMenuPrimitive.RadioItem>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: DropdownMenuPrimitive.RadioItemProps;
|
|
5
|
+
slots: {
|
|
6
|
+
default: {};
|
|
7
|
+
};
|
|
8
|
+
events: DropdownMenuPrimitive.RadioItemEvents;
|
|
9
|
+
};
|
|
10
|
+
export type DropdownMenuRadioItemProps = typeof __propDef.props;
|
|
11
|
+
export type DropdownMenuRadioItemEvents = typeof __propDef.events;
|
|
12
|
+
export type DropdownMenuRadioItemSlots = typeof __propDef.slots;
|
|
13
|
+
export default class DropdownMenuRadioItem extends SvelteComponent<DropdownMenuRadioItemProps, DropdownMenuRadioItemEvents, DropdownMenuRadioItemSlots> {
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<script>import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
2
|
+
import { cn } from "../../../utils.js";
|
|
3
|
+
let className = void 0;
|
|
4
|
+
export { className as class };
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<DropdownMenuPrimitive.Separator
|
|
8
|
+
class={cn("-mx-1 my-1 h-px bg-muted", className)}
|
|
9
|
+
{...$$restProps}
|
|
10
|
+
/>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: DropdownMenuPrimitive.SeparatorProps;
|
|
5
|
+
events: {
|
|
6
|
+
[evt: string]: CustomEvent<any>;
|
|
7
|
+
};
|
|
8
|
+
slots: {};
|
|
9
|
+
exports?: {} | undefined;
|
|
10
|
+
bindings?: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
export type DropdownMenuSeparatorProps = typeof __propDef.props;
|
|
13
|
+
export type DropdownMenuSeparatorEvents = typeof __propDef.events;
|
|
14
|
+
export type DropdownMenuSeparatorSlots = typeof __propDef.slots;
|
|
15
|
+
export default class DropdownMenuSeparator extends SvelteComponent<DropdownMenuSeparatorProps, DropdownMenuSeparatorEvents, DropdownMenuSeparatorSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: HTMLAttributes<HTMLSpanElement>;
|
|
5
|
+
events: {
|
|
6
|
+
[evt: string]: CustomEvent<any>;
|
|
7
|
+
};
|
|
8
|
+
slots: {
|
|
9
|
+
default: {};
|
|
10
|
+
};
|
|
11
|
+
exports?: {} | undefined;
|
|
12
|
+
bindings?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
export type DropdownMenuShortcutProps = typeof __propDef.props;
|
|
15
|
+
export type DropdownMenuShortcutEvents = typeof __propDef.events;
|
|
16
|
+
export type DropdownMenuShortcutSlots = typeof __propDef.slots;
|
|
17
|
+
export default class DropdownMenuShortcut extends SvelteComponent<DropdownMenuShortcutProps, DropdownMenuShortcutEvents, DropdownMenuShortcutSlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<script>import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
2
|
+
import { cn, flyAndScale } from "../../../utils.js";
|
|
3
|
+
let className = void 0;
|
|
4
|
+
export let transition = flyAndScale;
|
|
5
|
+
export let transitionConfig = {
|
|
6
|
+
x: -10,
|
|
7
|
+
y: 0
|
|
8
|
+
};
|
|
9
|
+
export { className as class };
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<DropdownMenuPrimitive.SubContent
|
|
13
|
+
{transition}
|
|
14
|
+
{transitionConfig}
|
|
15
|
+
class={cn(
|
|
16
|
+
"z-50 min-w-[8rem] rounded-md border bg-popover p-1 text-popover-foreground shadow-lg focus:outline-none",
|
|
17
|
+
className
|
|
18
|
+
)}
|
|
19
|
+
{...$$restProps}
|
|
20
|
+
on:keydown
|
|
21
|
+
on:focusout
|
|
22
|
+
on:pointermove
|
|
23
|
+
>
|
|
24
|
+
<slot />
|
|
25
|
+
</DropdownMenuPrimitive.SubContent>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: DropdownMenuPrimitive.ContentProps;
|
|
5
|
+
slots: {
|
|
6
|
+
default: {};
|
|
7
|
+
};
|
|
8
|
+
events: DropdownMenuPrimitive.SubContentEvents;
|
|
9
|
+
};
|
|
10
|
+
export type DropdownMenuSubContentProps = typeof __propDef.props;
|
|
11
|
+
export type DropdownMenuSubContentEvents = typeof __propDef.events;
|
|
12
|
+
export type DropdownMenuSubContentSlots = typeof __propDef.slots;
|
|
13
|
+
export default class DropdownMenuSubContent extends SvelteComponent<DropdownMenuSubContentProps, DropdownMenuSubContentEvents, DropdownMenuSubContentSlots> {
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<script>import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
2
|
+
import ChevronRight from "lucide-svelte/icons/chevron-right";
|
|
3
|
+
import { cn } from "../../../utils.js";
|
|
4
|
+
let className = void 0;
|
|
5
|
+
export let inset = void 0;
|
|
6
|
+
export { className as class };
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<DropdownMenuPrimitive.SubTrigger
|
|
10
|
+
class={cn(
|
|
11
|
+
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[highlighted]:bg-accent data-[state=open]:bg-accent data-[highlighted]:text-accent-foreground data-[state=open]:text-accent-foreground",
|
|
12
|
+
inset && "pl-8",
|
|
13
|
+
className
|
|
14
|
+
)}
|
|
15
|
+
{...$$restProps}
|
|
16
|
+
on:click
|
|
17
|
+
on:keydown
|
|
18
|
+
on:focusin
|
|
19
|
+
on:focusout
|
|
20
|
+
on:pointerleave
|
|
21
|
+
on:pointermove
|
|
22
|
+
>
|
|
23
|
+
<slot />
|
|
24
|
+
<ChevronRight class="ml-auto h-4 w-4" />
|
|
25
|
+
</DropdownMenuPrimitive.SubTrigger>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
disabled?: boolean | undefined;
|
|
6
|
+
asChild?: boolean | undefined;
|
|
7
|
+
el?: HTMLDivElement | undefined;
|
|
8
|
+
} & import("bits-ui/dist/internal").HTMLDivAttributes & {
|
|
9
|
+
inset?: boolean;
|
|
10
|
+
};
|
|
11
|
+
slots: {
|
|
12
|
+
default: {};
|
|
13
|
+
};
|
|
14
|
+
events: DropdownMenuPrimitive.SubTriggerEvents;
|
|
15
|
+
};
|
|
16
|
+
export type DropdownMenuSubTriggerProps = typeof __propDef.props;
|
|
17
|
+
export type DropdownMenuSubTriggerEvents = typeof __propDef.events;
|
|
18
|
+
export type DropdownMenuSubTriggerSlots = typeof __propDef.slots;
|
|
19
|
+
export default class DropdownMenuSubTrigger extends SvelteComponent<DropdownMenuSubTriggerProps, DropdownMenuSubTriggerEvents, DropdownMenuSubTriggerSlots> {
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
2
|
+
import Item from "./dropdown-menu-item.svelte";
|
|
3
|
+
import Label from "./dropdown-menu-label.svelte";
|
|
4
|
+
import Content from "./dropdown-menu-content.svelte";
|
|
5
|
+
import Shortcut from "./dropdown-menu-shortcut.svelte";
|
|
6
|
+
import RadioItem from "./dropdown-menu-radio-item.svelte";
|
|
7
|
+
import Separator from "./dropdown-menu-separator.svelte";
|
|
8
|
+
import RadioGroup from "./dropdown-menu-radio-group.svelte";
|
|
9
|
+
import SubContent from "./dropdown-menu-sub-content.svelte";
|
|
10
|
+
import SubTrigger from "./dropdown-menu-sub-trigger.svelte";
|
|
11
|
+
import CheckboxItem from "./dropdown-menu-checkbox-item.svelte";
|
|
12
|
+
declare const Sub: typeof DropdownMenuPrimitive.Sub;
|
|
13
|
+
declare const Root: typeof DropdownMenuPrimitive.Root;
|
|
14
|
+
declare const Trigger: typeof DropdownMenuPrimitive.Trigger;
|
|
15
|
+
declare const Group: typeof DropdownMenuPrimitive.Group;
|
|
16
|
+
export { Sub, Root, Item, Label, Group, Trigger, Content, Shortcut, Separator, RadioItem, SubContent, SubTrigger, RadioGroup, CheckboxItem, Root as DropdownMenu, Sub as DropdownMenuSub, Item as DropdownMenuItem, Label as DropdownMenuLabel, Group as DropdownMenuGroup, Content as DropdownMenuContent, Trigger as DropdownMenuTrigger, Shortcut as DropdownMenuShortcut, RadioItem as DropdownMenuRadioItem, Separator as DropdownMenuSeparator, RadioGroup as DropdownMenuRadioGroup, SubContent as DropdownMenuSubContent, SubTrigger as DropdownMenuSubTrigger, CheckboxItem as DropdownMenuCheckboxItem, };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
2
|
+
import Item from "./dropdown-menu-item.svelte";
|
|
3
|
+
import Label from "./dropdown-menu-label.svelte";
|
|
4
|
+
import Content from "./dropdown-menu-content.svelte";
|
|
5
|
+
import Shortcut from "./dropdown-menu-shortcut.svelte";
|
|
6
|
+
import RadioItem from "./dropdown-menu-radio-item.svelte";
|
|
7
|
+
import Separator from "./dropdown-menu-separator.svelte";
|
|
8
|
+
import RadioGroup from "./dropdown-menu-radio-group.svelte";
|
|
9
|
+
import SubContent from "./dropdown-menu-sub-content.svelte";
|
|
10
|
+
import SubTrigger from "./dropdown-menu-sub-trigger.svelte";
|
|
11
|
+
import CheckboxItem from "./dropdown-menu-checkbox-item.svelte";
|
|
12
|
+
const Sub = DropdownMenuPrimitive.Sub;
|
|
13
|
+
const Root = DropdownMenuPrimitive.Root;
|
|
14
|
+
const Trigger = DropdownMenuPrimitive.Trigger;
|
|
15
|
+
const Group = DropdownMenuPrimitive.Group;
|
|
16
|
+
export { Sub, Root, Item, Label, Group, Trigger, Content, Shortcut, Separator, RadioItem, SubContent, SubTrigger, RadioGroup, CheckboxItem,
|
|
17
|
+
//
|
|
18
|
+
Root as DropdownMenu, Sub as DropdownMenuSub, Item as DropdownMenuItem, Label as DropdownMenuLabel, Group as DropdownMenuGroup, Content as DropdownMenuContent, Trigger as DropdownMenuTrigger, Shortcut as DropdownMenuShortcut, RadioItem as DropdownMenuRadioItem, Separator as DropdownMenuSeparator, RadioGroup as DropdownMenuRadioGroup, SubContent as DropdownMenuSubContent, SubTrigger as DropdownMenuSubTrigger, CheckboxItem as DropdownMenuCheckboxItem, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Popover as PopoverPrimitive } from "bits-ui";
|
|
2
|
+
import Content from "./popover-content.svelte";
|
|
3
|
+
declare const Root: typeof PopoverPrimitive.Root;
|
|
4
|
+
declare const Trigger: typeof PopoverPrimitive.Trigger;
|
|
5
|
+
declare const Close: typeof PopoverPrimitive.Close;
|
|
6
|
+
export { Root, Content, Trigger, Close, Root as Popover, Content as PopoverContent, Trigger as PopoverTrigger, Close as PopoverClose, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Popover as PopoverPrimitive } from "bits-ui";
|
|
2
|
+
import Content from "./popover-content.svelte";
|
|
3
|
+
const Root = PopoverPrimitive.Root;
|
|
4
|
+
const Trigger = PopoverPrimitive.Trigger;
|
|
5
|
+
const Close = PopoverPrimitive.Close;
|
|
6
|
+
export { Root, Content, Trigger, Close,
|
|
7
|
+
//
|
|
8
|
+
Root as Popover, Content as PopoverContent, Trigger as PopoverTrigger, Close as PopoverClose, };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<script>import { Popover as PopoverPrimitive } from "bits-ui";
|
|
2
|
+
import { cn, flyAndScale } from "../../../utils.js";
|
|
3
|
+
let className = void 0;
|
|
4
|
+
export let transition = flyAndScale;
|
|
5
|
+
export let transitionConfig = void 0;
|
|
6
|
+
export { className as class };
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<PopoverPrimitive.Content
|
|
10
|
+
{transition}
|
|
11
|
+
{transitionConfig}
|
|
12
|
+
class={cn(
|
|
13
|
+
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none",
|
|
14
|
+
className
|
|
15
|
+
)}
|
|
16
|
+
{...$$restProps}
|
|
17
|
+
>
|
|
18
|
+
<slot />
|
|
19
|
+
</PopoverPrimitive.Content>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import { Popover as PopoverPrimitive } from "bits-ui";
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: PopoverPrimitive.ContentProps;
|
|
5
|
+
events: {
|
|
6
|
+
[evt: string]: CustomEvent<any>;
|
|
7
|
+
};
|
|
8
|
+
slots: {
|
|
9
|
+
default: {};
|
|
10
|
+
};
|
|
11
|
+
exports?: {} | undefined;
|
|
12
|
+
bindings?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
export type PopoverContentProps = typeof __propDef.props;
|
|
15
|
+
export type PopoverContentEvents = typeof __propDef.events;
|
|
16
|
+
export type PopoverContentSlots = typeof __propDef.slots;
|
|
17
|
+
export default class PopoverContent extends SvelteComponent<PopoverContentProps, PopoverContentEvents, PopoverContentSlots> {
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<script>import { Button as ButtonPrimitive } from "bits-ui";
|
|
2
|
+
import { buttonVariants } from "./index.js";
|
|
3
|
+
import { cn } from "../../../utils.js";
|
|
4
|
+
let className = void 0;
|
|
5
|
+
export let variant = "default";
|
|
6
|
+
export let size = "default";
|
|
7
|
+
export let builders = [];
|
|
8
|
+
export { className as class };
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<ButtonPrimitive.Root
|
|
12
|
+
{builders}
|
|
13
|
+
class={cn(buttonVariants({ variant, size, className }))}
|
|
14
|
+
type="button"
|
|
15
|
+
{...$$restProps}
|
|
16
|
+
on:click
|
|
17
|
+
on:keydown
|
|
18
|
+
>
|
|
19
|
+
<slot />
|
|
20
|
+
</ButtonPrimitive.Root>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Props;
|
|
4
|
+
slots: {
|
|
5
|
+
default: {};
|
|
6
|
+
};
|
|
7
|
+
events: Events;
|
|
8
|
+
};
|
|
9
|
+
export type ButtonProps = typeof __propDef.props;
|
|
10
|
+
export type ButtonEvents = typeof __propDef.events;
|
|
11
|
+
export type ButtonSlots = typeof __propDef.slots;
|
|
12
|
+
export default class Button extends SvelteComponent<ButtonProps, ButtonEvents, ButtonSlots> {
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<script>import Sun from "lucide-svelte/icons/sun";
|
|
2
|
+
import Moon from "lucide-svelte/icons/moon";
|
|
3
|
+
import { toggleMode } from "mode-watcher";
|
|
4
|
+
import { Button } from "../button/index.js";
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<Button on:click={toggleMode} variant="outline" size="icon">
|
|
8
|
+
<Sun
|
|
9
|
+
class="h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"
|
|
10
|
+
/>
|
|
11
|
+
<Moon
|
|
12
|
+
class="absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"
|
|
13
|
+
/>
|
|
14
|
+
<span class="sr-only">Toggle theme</span>
|
|
15
|
+
</Button>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
exports?: {} | undefined;
|
|
9
|
+
bindings?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
export type ThemeSwitcherButtonProps = typeof __propDef.props;
|
|
12
|
+
export type ThemeSwitcherButtonEvents = typeof __propDef.events;
|
|
13
|
+
export type ThemeSwitcherButtonSlots = typeof __propDef.slots;
|
|
14
|
+
export default class ThemeSwitcherButton extends SvelteComponent<ThemeSwitcherButtonProps, ThemeSwitcherButtonEvents, ThemeSwitcherButtonSlots> {
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<script>import Sun from "lucide-svelte/icons/sun";
|
|
2
|
+
import Moon from "lucide-svelte/icons/moon";
|
|
3
|
+
import { resetMode, setMode } from "mode-watcher";
|
|
4
|
+
import * as DropdownMenu from "../dropdown-menu/index.js";
|
|
5
|
+
import { Button } from "../button/index.js";
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<DropdownMenu.Root>
|
|
9
|
+
<DropdownMenu.Trigger asChild let:builder>
|
|
10
|
+
<Button builders={[builder]} variant="outline" size="icon">
|
|
11
|
+
<Sun
|
|
12
|
+
class="h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"
|
|
13
|
+
/>
|
|
14
|
+
<Moon
|
|
15
|
+
class="absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"
|
|
16
|
+
/>
|
|
17
|
+
<span class="sr-only">Toggle theme</span>
|
|
18
|
+
</Button>
|
|
19
|
+
</DropdownMenu.Trigger>
|
|
20
|
+
<DropdownMenu.Content align="end">
|
|
21
|
+
<DropdownMenu.Item on:click={() => setMode('light')}>Light</DropdownMenu.Item>
|
|
22
|
+
<DropdownMenu.Item on:click={() => setMode('dark')}>Dark</DropdownMenu.Item>
|
|
23
|
+
<DropdownMenu.Item on:click={() => resetMode()}>System</DropdownMenu.Item>
|
|
24
|
+
</DropdownMenu.Content>
|
|
25
|
+
</DropdownMenu.Root>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: Record<string, never>;
|
|
4
|
+
events: {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
};
|
|
7
|
+
slots: {};
|
|
8
|
+
exports?: {} | undefined;
|
|
9
|
+
bindings?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
export type ThemeSwitcherDropdownProps = typeof __propDef.props;
|
|
12
|
+
export type ThemeSwitcherDropdownEvents = typeof __propDef.events;
|
|
13
|
+
export type ThemeSwitcherDropdownSlots = typeof __propDef.slots;
|
|
14
|
+
export default class ThemeSwitcherDropdown extends SvelteComponent<ThemeSwitcherDropdownProps, ThemeSwitcherDropdownEvents, ThemeSwitcherDropdownSlots> {
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
class?: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {
|
|
11
|
+
default: {};
|
|
12
|
+
};
|
|
13
|
+
exports?: undefined;
|
|
14
|
+
bindings?: undefined;
|
|
15
|
+
};
|
|
16
|
+
export type H1Props = typeof __propDef.props;
|
|
17
|
+
export type H1Events = typeof __propDef.events;
|
|
18
|
+
export type H1Slots = typeof __propDef.slots;
|
|
19
|
+
export default class H1 extends SvelteComponent<H1Props, H1Events, H1Slots> {
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
class?: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {
|
|
11
|
+
default: {};
|
|
12
|
+
};
|
|
13
|
+
exports?: undefined;
|
|
14
|
+
bindings?: undefined;
|
|
15
|
+
};
|
|
16
|
+
export type H2Props = typeof __propDef.props;
|
|
17
|
+
export type H2Events = typeof __propDef.events;
|
|
18
|
+
export type H2Slots = typeof __propDef.slots;
|
|
19
|
+
export default class H2 extends SvelteComponent<H2Props, H2Events, H2Slots> {
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
class?: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {
|
|
11
|
+
default: {};
|
|
12
|
+
};
|
|
13
|
+
exports?: undefined;
|
|
14
|
+
bindings?: undefined;
|
|
15
|
+
};
|
|
16
|
+
export type H3Props = typeof __propDef.props;
|
|
17
|
+
export type H3Events = typeof __propDef.events;
|
|
18
|
+
export type H3Slots = typeof __propDef.slots;
|
|
19
|
+
export default class H3 extends SvelteComponent<H3Props, H3Events, H3Slots> {
|
|
20
|
+
}
|
|
21
|
+
export {};
|