@connectorvol/tree 1.1.0 → 1.2.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/package.json +30 -29
- package/dist/(classes)/chessTree.svelte.d.ts +0 -51
- package/dist/(classes)/chessTree.svelte.js +0 -160
- package/dist/(components)/ImportToPgn.svelte +0 -16
- package/dist/(components)/ImportToPgn.svelte.d.ts +0 -7
- package/dist/(components)/Move.svelte +0 -285
- package/dist/(components)/Move.svelte.d.ts +0 -14
- package/dist/(components)/MoveWithIcon.svelte +0 -48
- package/dist/(components)/MoveWithIcon.svelte.d.ts +0 -14
- package/dist/(components)/PieceIcon.svelte +0 -44
- package/dist/(components)/PieceIcon.svelte.d.ts +0 -15
- package/dist/(components)/TreeViewer.svelte +0 -82
- package/dist/(components)/TreeViewer.svelte.d.ts +0 -17
- package/dist/(components)/TreeViewerPanelManager.svelte +0 -246
- package/dist/(components)/TreeViewerPanelManager.svelte.d.ts +0 -13
- package/dist/(constants)/png.d.ts +0 -11
- package/dist/(constants)/png.js +0 -126
- package/dist/(models)/chessTreeNode.d.ts +0 -15
- package/dist/(models)/chessTreeNode.js +0 -1
- package/dist/(models)/pgnNodeCustomData.d.ts +0 -10
- package/dist/(models)/pgnNodeCustomData.js +0 -1
- package/dist/(utils)/context.d.ts +0 -13
- package/dist/(utils)/context.js +0 -17
- package/dist/(utils)/createPgnFromTree.d.ts +0 -2
- package/dist/(utils)/createPgnFromTree.js +0 -5
- package/dist/(utils)/parseSanMove.d.ts +0 -27
- package/dist/(utils)/parseSanMove.js +0 -84
- package/dist/(utils)/scrollToActiveMove.d.ts +0 -7
- package/dist/(utils)/scrollToActiveMove.js +0 -72
- package/dist/(utils)/scrollToStart.d.ts +0 -6
- package/dist/(utils)/scrollToStart.js +0 -46
- package/dist/(utils)/transformNag.d.ts +0 -1
- package/dist/(utils)/transformNag.js +0 -34
- package/dist/(utils)/transformPgnToChessNode.d.ts +0 -7
- package/dist/(utils)/transformPgnToChessNode.js +0 -56
- package/dist/components/ui/button/button.svelte +0 -82
- package/dist/components/ui/button/button.svelte.d.ts +0 -64
- package/dist/components/ui/button/index.d.ts +0 -2
- package/dist/components/ui/button/index.js +0 -4
- package/dist/components/ui/button-group/button-group-separator.svelte +0 -20
- package/dist/components/ui/button-group/button-group-separator.svelte.d.ts +0 -13
- package/dist/components/ui/button-group/button-group-text.svelte +0 -30
- package/dist/components/ui/button-group/button-group-text.svelte.d.ts +0 -11
- package/dist/components/ui/button-group/button-group.svelte +0 -46
- package/dist/components/ui/button-group/button-group.svelte.d.ts +0 -26
- package/dist/components/ui/button-group/index.d.ts +0 -4
- package/dist/components/ui/button-group/index.js +0 -6
- package/dist/components/ui/context-menu/context-menu-checkbox-item.svelte +0 -38
- package/dist/components/ui/context-menu/context-menu-checkbox-item.svelte.d.ts +0 -9
- package/dist/components/ui/context-menu/context-menu-content.svelte +0 -25
- package/dist/components/ui/context-menu/context-menu-content.svelte.d.ts +0 -7
- package/dist/components/ui/context-menu/context-menu-group-heading.svelte +0 -21
- package/dist/components/ui/context-menu/context-menu-group-heading.svelte.d.ts +0 -7
- package/dist/components/ui/context-menu/context-menu-group.svelte +0 -7
- package/dist/components/ui/context-menu/context-menu-group.svelte.d.ts +0 -4
- package/dist/components/ui/context-menu/context-menu-item.svelte +0 -27
- package/dist/components/ui/context-menu/context-menu-item.svelte.d.ts +0 -8
- package/dist/components/ui/context-menu/context-menu-label.svelte +0 -24
- package/dist/components/ui/context-menu/context-menu-label.svelte.d.ts +0 -8
- package/dist/components/ui/context-menu/context-menu-radio-group.svelte +0 -16
- package/dist/components/ui/context-menu/context-menu-radio-group.svelte.d.ts +0 -4
- package/dist/components/ui/context-menu/context-menu-radio-item.svelte +0 -31
- package/dist/components/ui/context-menu/context-menu-radio-item.svelte.d.ts +0 -4
- package/dist/components/ui/context-menu/context-menu-separator.svelte +0 -17
- package/dist/components/ui/context-menu/context-menu-separator.svelte.d.ts +0 -4
- package/dist/components/ui/context-menu/context-menu-shortcut.svelte +0 -20
- package/dist/components/ui/context-menu/context-menu-shortcut.svelte.d.ts +0 -5
- package/dist/components/ui/context-menu/context-menu-sub-content.svelte +0 -20
- package/dist/components/ui/context-menu/context-menu-sub-content.svelte.d.ts +0 -4
- package/dist/components/ui/context-menu/context-menu-sub-trigger.svelte +0 -29
- package/dist/components/ui/context-menu/context-menu-sub-trigger.svelte.d.ts +0 -8
- package/dist/components/ui/context-menu/context-menu-trigger.svelte +0 -7
- package/dist/components/ui/context-menu/context-menu-trigger.svelte.d.ts +0 -4
- package/dist/components/ui/context-menu/index.d.ts +0 -16
- package/dist/components/ui/context-menu/index.js +0 -19
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +0 -41
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte.d.ts +0 -9
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte +0 -27
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte.d.ts +0 -7
- package/dist/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte +0 -22
- package/dist/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte.d.ts +0 -8
- package/dist/components/ui/dropdown-menu/dropdown-menu-group.svelte +0 -7
- package/dist/components/ui/dropdown-menu/dropdown-menu-group.svelte.d.ts +0 -4
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte +0 -27
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte.d.ts +0 -8
- package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte +0 -24
- package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte.d.ts +0 -8
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte +0 -16
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte.d.ts +0 -4
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +0 -31
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte.d.ts +0 -4
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte +0 -17
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte.d.ts +0 -4
- package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte +0 -20
- package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte.d.ts +0 -5
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +0 -20
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +0 -4
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +0 -29
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +0 -7
- package/dist/components/ui/dropdown-menu/dropdown-menu-trigger.svelte +0 -7
- package/dist/components/ui/dropdown-menu/dropdown-menu-trigger.svelte.d.ts +0 -4
- package/dist/components/ui/dropdown-menu/index.js +0 -17
- package/dist/components/ui/separator/index.d.ts +0 -2
- package/dist/components/ui/separator/index.js +0 -4
- package/dist/components/ui/separator/separator.svelte +0 -21
- package/dist/components/ui/separator/separator.svelte.d.ts +0 -4
- package/dist/components/ui/sonner/index.d.ts +0 -1
- package/dist/components/ui/sonner/index.js +0 -1
- package/dist/components/ui/sonner/sonner.svelte +0 -13
- package/dist/components/ui/sonner/sonner.svelte.d.ts +0 -4
- package/dist/index.d.ts +0 -8
- package/dist/index.js +0 -7
- package/dist/utils.d.ts +0 -12
- package/dist/utils.js +0 -5
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
3
|
-
import { cn } from "../../../utils.js";
|
|
4
|
-
import type { ComponentProps } from "svelte";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
inset,
|
|
10
|
-
...restProps
|
|
11
|
-
}: ComponentProps<typeof DropdownMenuPrimitive.GroupHeading> & {
|
|
12
|
-
inset?: boolean;
|
|
13
|
-
} = $props();
|
|
14
|
-
</script>
|
|
15
|
-
|
|
16
|
-
<DropdownMenuPrimitive.GroupHeading
|
|
17
|
-
bind:ref
|
|
18
|
-
data-slot="dropdown-menu-group-heading"
|
|
19
|
-
data-inset={inset}
|
|
20
|
-
class={cn("px-2 py-1.5 text-sm font-semibold data-[inset]:pl-8", className)}
|
|
21
|
-
{...restProps}
|
|
22
|
-
/>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
2
|
-
import type { ComponentProps } from "svelte";
|
|
3
|
-
type $$ComponentProps = ComponentProps<typeof DropdownMenuPrimitive.GroupHeading> & {
|
|
4
|
-
inset?: boolean;
|
|
5
|
-
};
|
|
6
|
-
declare const DropdownMenuGroupHeading: import("svelte").Component<$$ComponentProps, {}, "ref">;
|
|
7
|
-
type DropdownMenuGroupHeading = ReturnType<typeof DropdownMenuGroupHeading>;
|
|
8
|
-
export default DropdownMenuGroupHeading;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
3
|
-
|
|
4
|
-
let { ref = $bindable(null), ...restProps }: DropdownMenuPrimitive.GroupProps = $props();
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<DropdownMenuPrimitive.Group bind:ref data-slot="dropdown-menu-group" {...restProps} />
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { cn } from "../../../utils.js";
|
|
3
|
-
import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
inset,
|
|
9
|
-
variant = "default",
|
|
10
|
-
...restProps
|
|
11
|
-
}: DropdownMenuPrimitive.ItemProps & {
|
|
12
|
-
inset?: boolean;
|
|
13
|
-
variant?: "default" | "destructive";
|
|
14
|
-
} = $props();
|
|
15
|
-
</script>
|
|
16
|
-
|
|
17
|
-
<DropdownMenuPrimitive.Item
|
|
18
|
-
bind:ref
|
|
19
|
-
data-slot="dropdown-menu-item"
|
|
20
|
-
data-inset={inset}
|
|
21
|
-
data-variant={variant}
|
|
22
|
-
class={cn(
|
|
23
|
-
"data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:data-highlighted:bg-destructive/10 dark:data-[variant=destructive]:data-highlighted:bg-destructive/20 data-[variant=destructive]:data-highlighted:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
24
|
-
className
|
|
25
|
-
)}
|
|
26
|
-
{...restProps}
|
|
27
|
-
/>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
2
|
-
type $$ComponentProps = DropdownMenuPrimitive.ItemProps & {
|
|
3
|
-
inset?: boolean;
|
|
4
|
-
variant?: "default" | "destructive";
|
|
5
|
-
};
|
|
6
|
-
declare const DropdownMenuItem: import("svelte").Component<$$ComponentProps, {}, "ref">;
|
|
7
|
-
type DropdownMenuItem = ReturnType<typeof DropdownMenuItem>;
|
|
8
|
-
export default DropdownMenuItem;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { cn, type WithElementRef } from "../../../utils.js";
|
|
3
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
inset,
|
|
9
|
-
children,
|
|
10
|
-
...restProps
|
|
11
|
-
}: WithElementRef<HTMLAttributes<HTMLDivElement>> & {
|
|
12
|
-
inset?: boolean;
|
|
13
|
-
} = $props();
|
|
14
|
-
</script>
|
|
15
|
-
|
|
16
|
-
<div
|
|
17
|
-
bind:this={ref}
|
|
18
|
-
data-slot="dropdown-menu-label"
|
|
19
|
-
data-inset={inset}
|
|
20
|
-
class={cn("px-2 py-1.5 text-sm font-semibold data-[inset]:pl-8", className)}
|
|
21
|
-
{...restProps}
|
|
22
|
-
>
|
|
23
|
-
{@render children?.()}
|
|
24
|
-
</div>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type WithElementRef } from "../../../utils.js";
|
|
2
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
-
type $$ComponentProps = WithElementRef<HTMLAttributes<HTMLDivElement>> & {
|
|
4
|
-
inset?: boolean;
|
|
5
|
-
};
|
|
6
|
-
declare const DropdownMenuLabel: import("svelte").Component<$$ComponentProps, {}, "ref">;
|
|
7
|
-
type DropdownMenuLabel = ReturnType<typeof DropdownMenuLabel>;
|
|
8
|
-
export default DropdownMenuLabel;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
3
|
-
|
|
4
|
-
let {
|
|
5
|
-
ref = $bindable(null),
|
|
6
|
-
value = $bindable(),
|
|
7
|
-
...restProps
|
|
8
|
-
}: DropdownMenuPrimitive.RadioGroupProps = $props();
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
<DropdownMenuPrimitive.RadioGroup
|
|
12
|
-
bind:ref
|
|
13
|
-
bind:value
|
|
14
|
-
data-slot="dropdown-menu-radio-group"
|
|
15
|
-
{...restProps}
|
|
16
|
-
/>
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
2
|
-
declare const DropdownMenuRadioGroup: import("svelte").Component<DropdownMenuPrimitive.RadioGroupProps, {}, "ref" | "value">;
|
|
3
|
-
type DropdownMenuRadioGroup = ReturnType<typeof DropdownMenuRadioGroup>;
|
|
4
|
-
export default DropdownMenuRadioGroup;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
3
|
-
import CircleIcon from "@lucide/svelte/icons/circle";
|
|
4
|
-
import { cn, type WithoutChild } from "../../../utils.js";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
children: childrenProp,
|
|
10
|
-
...restProps
|
|
11
|
-
}: WithoutChild<DropdownMenuPrimitive.RadioItemProps> = $props();
|
|
12
|
-
</script>
|
|
13
|
-
|
|
14
|
-
<DropdownMenuPrimitive.RadioItem
|
|
15
|
-
bind:ref
|
|
16
|
-
data-slot="dropdown-menu-radio-item"
|
|
17
|
-
class={cn(
|
|
18
|
-
"focus:bg-accent focus:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
19
|
-
className
|
|
20
|
-
)}
|
|
21
|
-
{...restProps}
|
|
22
|
-
>
|
|
23
|
-
{#snippet children({ checked })}
|
|
24
|
-
<span class="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">
|
|
25
|
-
{#if checked}
|
|
26
|
-
<CircleIcon class="size-2 fill-current" />
|
|
27
|
-
{/if}
|
|
28
|
-
</span>
|
|
29
|
-
{@render childrenProp?.({ checked })}
|
|
30
|
-
{/snippet}
|
|
31
|
-
</DropdownMenuPrimitive.RadioItem>
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
2
|
-
declare const DropdownMenuRadioItem: import("svelte").Component<Omit<DropdownMenuPrimitive.RadioItemProps, "child">, {}, "ref">;
|
|
3
|
-
type DropdownMenuRadioItem = ReturnType<typeof DropdownMenuRadioItem>;
|
|
4
|
-
export default DropdownMenuRadioItem;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
3
|
-
import { cn } from "../../../utils.js";
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
...restProps
|
|
9
|
-
}: DropdownMenuPrimitive.SeparatorProps = $props();
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<DropdownMenuPrimitive.Separator
|
|
13
|
-
bind:ref
|
|
14
|
-
data-slot="dropdown-menu-separator"
|
|
15
|
-
class={cn("bg-border -mx-1 my-1 h-px", className)}
|
|
16
|
-
{...restProps}
|
|
17
|
-
/>
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
2
|
-
declare const DropdownMenuSeparator: import("svelte").Component<DropdownMenuPrimitive.SeparatorProps, {}, "ref">;
|
|
3
|
-
type DropdownMenuSeparator = ReturnType<typeof DropdownMenuSeparator>;
|
|
4
|
-
export default DropdownMenuSeparator;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
3
|
-
import { cn, type WithElementRef } from "../../../utils.js";
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
children,
|
|
9
|
-
...restProps
|
|
10
|
-
}: WithElementRef<HTMLAttributes<HTMLSpanElement>> = $props();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<span
|
|
14
|
-
bind:this={ref}
|
|
15
|
-
data-slot="dropdown-menu-shortcut"
|
|
16
|
-
class={cn("text-muted-foreground ml-auto text-xs tracking-widest", className)}
|
|
17
|
-
{...restProps}
|
|
18
|
-
>
|
|
19
|
-
{@render children?.()}
|
|
20
|
-
</span>
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes } from "svelte/elements";
|
|
2
|
-
import { type WithElementRef } from "../../../utils.js";
|
|
3
|
-
declare const DropdownMenuShortcut: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLSpanElement>>, {}, "ref">;
|
|
4
|
-
type DropdownMenuShortcut = ReturnType<typeof DropdownMenuShortcut>;
|
|
5
|
-
export default DropdownMenuShortcut;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
3
|
-
import { cn } from "../../../utils.js";
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
...restProps
|
|
9
|
-
}: DropdownMenuPrimitive.SubContentProps = $props();
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<DropdownMenuPrimitive.SubContent
|
|
13
|
-
bind:ref
|
|
14
|
-
data-slot="dropdown-menu-sub-content"
|
|
15
|
-
class={cn(
|
|
16
|
-
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--bits-dropdown-menu-content-transform-origin) z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg",
|
|
17
|
-
className
|
|
18
|
-
)}
|
|
19
|
-
{...restProps}
|
|
20
|
-
/>
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
2
|
-
declare const DropdownMenuSubContent: import("svelte").Component<DropdownMenuPrimitive.SubContentProps, {}, "ref">;
|
|
3
|
-
type DropdownMenuSubContent = ReturnType<typeof DropdownMenuSubContent>;
|
|
4
|
-
export default DropdownMenuSubContent;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
3
|
-
import ChevronRightIcon from "@lucide/svelte/icons/chevron-right";
|
|
4
|
-
import { cn } from "../../../utils.js";
|
|
5
|
-
|
|
6
|
-
let {
|
|
7
|
-
ref = $bindable(null),
|
|
8
|
-
class: className,
|
|
9
|
-
inset,
|
|
10
|
-
children,
|
|
11
|
-
...restProps
|
|
12
|
-
}: DropdownMenuPrimitive.SubTriggerProps & {
|
|
13
|
-
inset?: boolean;
|
|
14
|
-
} = $props();
|
|
15
|
-
</script>
|
|
16
|
-
|
|
17
|
-
<DropdownMenuPrimitive.SubTrigger
|
|
18
|
-
bind:ref
|
|
19
|
-
data-slot="dropdown-menu-sub-trigger"
|
|
20
|
-
data-inset={inset}
|
|
21
|
-
class={cn(
|
|
22
|
-
"data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground outline-hidden [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
23
|
-
className
|
|
24
|
-
)}
|
|
25
|
-
{...restProps}
|
|
26
|
-
>
|
|
27
|
-
{@render children?.()}
|
|
28
|
-
<ChevronRightIcon class="ml-auto size-4" />
|
|
29
|
-
</DropdownMenuPrimitive.SubTrigger>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
2
|
-
type $$ComponentProps = DropdownMenuPrimitive.SubTriggerProps & {
|
|
3
|
-
inset?: boolean;
|
|
4
|
-
};
|
|
5
|
-
declare const DropdownMenuSubTrigger: import("svelte").Component<$$ComponentProps, {}, "ref">;
|
|
6
|
-
type DropdownMenuSubTrigger = ReturnType<typeof DropdownMenuSubTrigger>;
|
|
7
|
-
export default DropdownMenuSubTrigger;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
3
|
-
|
|
4
|
-
let { ref = $bindable(null), ...restProps }: DropdownMenuPrimitive.TriggerProps = $props();
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<DropdownMenuPrimitive.Trigger bind:ref data-slot="dropdown-menu-trigger" {...restProps} />
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
2
|
-
declare const DropdownMenuTrigger: import("svelte").Component<DropdownMenuPrimitive.TriggerProps, {}, "ref">;
|
|
3
|
-
type DropdownMenuTrigger = ReturnType<typeof DropdownMenuTrigger>;
|
|
4
|
-
export default DropdownMenuTrigger;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
|
|
2
|
-
import CheckboxItem from "./dropdown-menu-checkbox-item.svelte";
|
|
3
|
-
import Content from "./dropdown-menu-content.svelte";
|
|
4
|
-
import Group from "./dropdown-menu-group.svelte";
|
|
5
|
-
import Item from "./dropdown-menu-item.svelte";
|
|
6
|
-
import Label from "./dropdown-menu-label.svelte";
|
|
7
|
-
import RadioGroup from "./dropdown-menu-radio-group.svelte";
|
|
8
|
-
import RadioItem from "./dropdown-menu-radio-item.svelte";
|
|
9
|
-
import Separator from "./dropdown-menu-separator.svelte";
|
|
10
|
-
import Shortcut from "./dropdown-menu-shortcut.svelte";
|
|
11
|
-
import Trigger from "./dropdown-menu-trigger.svelte";
|
|
12
|
-
import SubContent from "./dropdown-menu-sub-content.svelte";
|
|
13
|
-
import SubTrigger from "./dropdown-menu-sub-trigger.svelte";
|
|
14
|
-
import GroupHeading from "./dropdown-menu-group-heading.svelte";
|
|
15
|
-
const Sub = DropdownMenuPrimitive.Sub;
|
|
16
|
-
const Root = DropdownMenuPrimitive.Root;
|
|
17
|
-
export { CheckboxItem, Content, Root as DropdownMenu, CheckboxItem as DropdownMenuCheckboxItem, Content as DropdownMenuContent, Group as DropdownMenuGroup, Item as DropdownMenuItem, Label as DropdownMenuLabel, RadioGroup as DropdownMenuRadioGroup, RadioItem as DropdownMenuRadioItem, Separator as DropdownMenuSeparator, Shortcut as DropdownMenuShortcut, Sub as DropdownMenuSub, SubContent as DropdownMenuSubContent, SubTrigger as DropdownMenuSubTrigger, Trigger as DropdownMenuTrigger, GroupHeading as DropdownMenuGroupHeading, Group, GroupHeading, Item, Label, RadioGroup, RadioItem, Root, Separator, Shortcut, Sub, SubContent, SubTrigger, Trigger, };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Separator as SeparatorPrimitive } from "bits-ui";
|
|
3
|
-
import { cn } from "../../../utils.js";
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
ref = $bindable(null),
|
|
7
|
-
class: className,
|
|
8
|
-
"data-slot": dataSlot = "separator",
|
|
9
|
-
...restProps
|
|
10
|
-
}: SeparatorPrimitive.RootProps = $props();
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<SeparatorPrimitive.Root
|
|
14
|
-
bind:ref
|
|
15
|
-
data-slot={dataSlot}
|
|
16
|
-
class={cn(
|
|
17
|
-
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px",
|
|
18
|
-
className
|
|
19
|
-
)}
|
|
20
|
-
{...restProps}
|
|
21
|
-
/>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Toaster } from "./sonner.svelte";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Toaster } from "./sonner.svelte";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { Toaster as Sonner, type ToasterProps as SonnerProps } from "svelte-sonner";
|
|
3
|
-
import { mode } from "mode-watcher";
|
|
4
|
-
|
|
5
|
-
let { ...restProps }: SonnerProps = $props();
|
|
6
|
-
</script>
|
|
7
|
-
|
|
8
|
-
<Sonner
|
|
9
|
-
theme={mode.current}
|
|
10
|
-
class="toaster group"
|
|
11
|
-
style="--normal-bg: var(--color-popover); --normal-text: var(--color-popover-foreground); --normal-border: var(--color-border);"
|
|
12
|
-
{...restProps}
|
|
13
|
-
/>
|
package/dist/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ChessTree } from "./(classes)/chessTree.svelte.js";
|
|
2
|
-
import type { ChessTreeNode, TChessTree } from "./(models)/chessTreeNode.js";
|
|
3
|
-
import { transformPgnToChessNode } from "./(utils)/transformPgnToChessNode.js";
|
|
4
|
-
import TreeViewer from "./(components)/TreeViewer.svelte";
|
|
5
|
-
import ImportToPgn from "./(components)/ImportToPgn.svelte";
|
|
6
|
-
import { createPgnFromTree } from "./(utils)/createPgnFromTree.js";
|
|
7
|
-
import TreeViewerPanelManager from "./(components)/TreeViewerPanelManager.svelte";
|
|
8
|
-
export { ChessTree, type ChessTreeNode, type TChessTree, transformPgnToChessNode, TreeViewer, ImportToPgn, createPgnFromTree, TreeViewerPanelManager, };
|
package/dist/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ChessTree } from "./(classes)/chessTree.svelte.js";
|
|
2
|
-
import { transformPgnToChessNode } from "./(utils)/transformPgnToChessNode.js";
|
|
3
|
-
import TreeViewer from "./(components)/TreeViewer.svelte";
|
|
4
|
-
import ImportToPgn from "./(components)/ImportToPgn.svelte";
|
|
5
|
-
import { createPgnFromTree } from "./(utils)/createPgnFromTree.js";
|
|
6
|
-
import TreeViewerPanelManager from "./(components)/TreeViewerPanelManager.svelte";
|
|
7
|
-
export { ChessTree, transformPgnToChessNode, TreeViewer, ImportToPgn, createPgnFromTree, TreeViewerPanelManager, };
|
package/dist/utils.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type ClassValue } from "clsx";
|
|
2
|
-
export declare function cn(...inputs: ClassValue[]): string;
|
|
3
|
-
export type WithoutChild<T> = T extends {
|
|
4
|
-
child?: any;
|
|
5
|
-
} ? Omit<T, "child"> : T;
|
|
6
|
-
export type WithoutChildren<T> = T extends {
|
|
7
|
-
children?: any;
|
|
8
|
-
} ? Omit<T, "children"> : T;
|
|
9
|
-
export type WithoutChildrenOrChild<T> = WithoutChildren<WithoutChild<T>>;
|
|
10
|
-
export type WithElementRef<T, U extends HTMLElement = HTMLElement> = T & {
|
|
11
|
-
ref?: U | null;
|
|
12
|
-
};
|