kosui 0.0.25 → 0.0.27
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/alert/alert.svelte +1 -1
- package/dist/alert/alert.svelte.d.ts +1 -1
- package/dist/autocomplete/autocomplete-content.svelte +5 -5
- package/dist/autocomplete/autocomplete-content.svelte.d.ts +4 -4
- package/dist/autocomplete/autocomplete-context.svelte.d.ts +1 -1
- package/dist/autocomplete/autocomplete-context.svelte.js +2 -2
- package/dist/autocomplete/autocomplete-input.svelte +3 -4
- package/dist/autocomplete/autocomplete-input.svelte.d.ts +1 -1
- package/dist/autocomplete/autocomplete-item.svelte +5 -5
- package/dist/autocomplete/autocomplete-item.svelte.d.ts +3 -3
- package/dist/autocomplete/autocomplete.svelte +3 -3
- package/dist/autocomplete/autocomplete.svelte.d.ts +2 -2
- package/dist/autocomplete/index.d.ts +1 -0
- package/dist/autocomplete/index.js +1 -0
- package/dist/avatar/avatar.svelte +1 -1
- package/dist/avatar/avatar.svelte.d.ts +1 -1
- package/dist/badge/badge.svelte +1 -1
- package/dist/badge/badge.svelte.d.ts +1 -1
- package/dist/box/box.svelte +4 -4
- package/dist/box/box.svelte.d.ts +4 -4
- package/dist/breadcrumbs/breadcrumbs.svelte +2 -2
- package/dist/breadcrumbs/breadcrumbs.svelte.d.ts +2 -2
- package/dist/button/button.svelte +7 -7
- package/dist/button/button.svelte.d.ts +5 -5
- package/dist/chip/chip.svelte +2 -3
- package/dist/chip/chip.svelte.d.ts +2 -2
- package/dist/command/action.svelte.d.ts +1 -1
- package/dist/command/action.svelte.js +1 -0
- package/dist/command/command-content.svelte +2 -2
- package/dist/command/command-content.svelte.d.ts +2 -2
- package/dist/command/command-context.svelte.d.ts +1 -1
- package/dist/command/command-context.svelte.js +1 -1
- package/dist/command/command-input.svelte +5 -5
- package/dist/command/command-input.svelte.d.ts +3 -3
- package/dist/command/command-item.svelte +5 -5
- package/dist/command/command-item.svelte.d.ts +3 -3
- package/dist/command/command-search.svelte +1 -2
- package/dist/command/command-search.svelte.d.ts +1 -1
- package/dist/command/command.svelte +3 -3
- package/dist/command/command.svelte.d.ts +2 -2
- package/dist/command/commander.svelte +6 -6
- package/dist/command/commander.svelte.d.ts +1 -1
- package/dist/command/index.d.ts +7 -6
- package/dist/command/index.js +5 -4
- package/dist/common/divider.svelte +2 -2
- package/dist/common/divider.svelte.d.ts +2 -2
- package/dist/common/header.svelte +4 -4
- package/dist/common/header.svelte.d.ts +4 -4
- package/dist/common/item-context.svelte.js +3 -3
- package/dist/dialog/dialog-button.svelte +2 -2
- package/dist/dialog/dialog-button.svelte.d.ts +2 -2
- package/dist/dialog/dialog.svelte +4 -4
- package/dist/dialog/dialog.svelte.d.ts +3 -3
- package/dist/dialog/dialoguer-context.svelte.d.ts +6 -6
- package/dist/dialog/dialoguer-context.svelte.js +3 -0
- package/dist/dialog/dialoguer.svelte +7 -7
- package/dist/dialog/dialoguer.svelte.d.ts +1 -1
- package/dist/dialog/index.d.ts +1 -1
- package/dist/dialog/index.js +1 -1
- package/dist/event-manager.d.ts +1 -1
- package/dist/event-manager.js +2 -2
- package/dist/fab/fab.svelte +2 -2
- package/dist/fab/fab.svelte.d.ts +2 -2
- package/dist/fab/index.d.ts +1 -1
- package/dist/index.d.ts +30 -30
- package/dist/index.js +30 -30
- package/dist/input/input.svelte +4 -4
- package/dist/input/input.svelte.d.ts +3 -3
- package/dist/link/link.svelte +3 -3
- package/dist/link/link.svelte.d.ts +3 -3
- package/dist/markdown/markdown-blockquote.svelte +3 -3
- package/dist/markdown/markdown-blockquote.svelte.d.ts +3 -3
- package/dist/markdown/markdown-br.svelte +3 -3
- package/dist/markdown/markdown-br.svelte.d.ts +3 -3
- package/dist/markdown/markdown-code.svelte +3 -3
- package/dist/markdown/markdown-code.svelte.d.ts +3 -3
- package/dist/markdown/markdown-codespan.svelte +3 -3
- package/dist/markdown/markdown-codespan.svelte.d.ts +3 -3
- package/dist/markdown/markdown-context.svelte.d.ts +1 -1
- package/dist/markdown/markdown-context.svelte.js +1 -0
- package/dist/markdown/markdown-def.svelte +3 -3
- package/dist/markdown/markdown-def.svelte.d.ts +3 -3
- package/dist/markdown/markdown-del.svelte +3 -3
- package/dist/markdown/markdown-del.svelte.d.ts +3 -3
- package/dist/markdown/markdown-em.svelte +3 -3
- package/dist/markdown/markdown-em.svelte.d.ts +3 -3
- package/dist/markdown/markdown-escape.svelte +1 -1
- package/dist/markdown/markdown-escape.svelte.d.ts +1 -1
- package/dist/markdown/markdown-heading.svelte +3 -3
- package/dist/markdown/markdown-heading.svelte.d.ts +3 -3
- package/dist/markdown/markdown-hr.svelte +3 -3
- package/dist/markdown/markdown-hr.svelte.d.ts +3 -3
- package/dist/markdown/markdown-html.svelte +2 -2
- package/dist/markdown/markdown-html.svelte.d.ts +2 -2
- package/dist/markdown/markdown-image.svelte +3 -3
- package/dist/markdown/markdown-image.svelte.d.ts +3 -3
- package/dist/markdown/markdown-link.svelte +3 -3
- package/dist/markdown/markdown-link.svelte.d.ts +3 -3
- package/dist/markdown/markdown-list-item.svelte +3 -3
- package/dist/markdown/markdown-list-item.svelte.d.ts +3 -3
- package/dist/markdown/markdown-list.svelte +3 -3
- package/dist/markdown/markdown-list.svelte.d.ts +3 -3
- package/dist/markdown/markdown-paragraph.svelte +3 -3
- package/dist/markdown/markdown-paragraph.svelte.d.ts +3 -3
- package/dist/markdown/markdown-space.svelte +2 -2
- package/dist/markdown/markdown-space.svelte.d.ts +2 -2
- package/dist/markdown/markdown-strong.svelte +3 -3
- package/dist/markdown/markdown-strong.svelte.d.ts +3 -3
- package/dist/markdown/markdown-table-cell.svelte +6 -3
- package/dist/markdown/markdown-table-cell.svelte.d.ts +3 -3
- package/dist/markdown/markdown-table.svelte +6 -4
- package/dist/markdown/markdown-table.svelte.d.ts +3 -3
- package/dist/markdown/markdown-text.svelte +2 -2
- package/dist/markdown/markdown-text.svelte.d.ts +2 -2
- package/dist/markdown/markdown-token.svelte +1 -1
- package/dist/markdown/markdown-tokens.svelte +2 -2
- package/dist/markdown/markdown-tokens.svelte.d.ts +1 -1
- package/dist/markdown/markdown.svelte +8 -8
- package/dist/markdown/markdown.svelte.d.ts +2 -2
- package/dist/menu/index.d.ts +2 -1
- package/dist/menu/index.js +2 -1
- package/dist/menu/menu-actions.svelte +2 -2
- package/dist/menu/menu-actions.svelte.d.ts +1 -1
- package/dist/menu/menu-content.svelte +6 -6
- package/dist/menu/menu-content.svelte.d.ts +4 -4
- package/dist/menu/menu-context.svelte.js +4 -4
- package/dist/menu/menu-item.svelte +6 -6
- package/dist/menu/menu-item.svelte.d.ts +3 -3
- package/dist/menu/menu-trigger-button.svelte +4 -4
- package/dist/menu/menu-trigger-button.svelte.d.ts +1 -1
- package/dist/menu/menu-trigger.svelte +6 -6
- package/dist/menu/menu-trigger.svelte.d.ts +3 -3
- package/dist/menu/menu.svelte +3 -3
- package/dist/menu/menu.svelte.d.ts +2 -2
- package/dist/modal/modal.svelte +6 -6
- package/dist/modal/modal.svelte.d.ts +3 -3
- package/dist/popover/popover.svelte +9 -9
- package/dist/popover/popover.svelte.d.ts +2 -2
- package/dist/portal/index.d.ts +2 -1
- package/dist/portal/index.js +1 -0
- package/dist/portal/portal.svelte +7 -4
- package/dist/portal/portal.svelte.d.ts +2 -2
- package/dist/portal/proxy.svelte +7 -4
- package/dist/portal/proxy.svelte.d.ts +3 -3
- package/dist/progress/circular-progress.svelte +8 -7
- package/dist/progress/circular-progress.svelte.d.ts +3 -3
- package/dist/progress/index.d.ts +1 -1
- package/dist/progress/index.js +1 -1
- package/dist/shortcut/index.d.ts +1 -1
- package/dist/shortcut/index.js +1 -1
- package/dist/shortcut/shortcut-badge.svelte +4 -4
- package/dist/shortcut/shortcut-badge.svelte.d.ts +3 -3
- package/dist/skeleton/skeleton.svelte +2 -2
- package/dist/skeleton/skeleton.svelte.d.ts +2 -2
- package/dist/switch/index.d.ts +1 -0
- package/dist/switch/index.js +1 -0
- package/dist/switch/switch-thumb.svelte +52 -0
- package/dist/switch/switch-thumb.svelte.d.ts +7 -0
- package/dist/switch/switch.svelte +36 -52
- package/dist/switch/switch.svelte.d.ts +7 -4
- package/dist/textarea/textarea.svelte +3 -3
- package/dist/textarea/textarea.svelte.d.ts +3 -3
- package/dist/toggle/index.d.ts +3 -2
- package/dist/toggle/index.js +3 -2
- package/dist/toggle/toggle-button.svelte +6 -6
- package/dist/toggle/toggle-button.svelte.d.ts +4 -4
- package/dist/toggle/toggle-group.svelte +3 -3
- package/dist/toggle/toggle-group.svelte.d.ts +2 -2
- package/dist/tooltip/tooltip.svelte +2 -2
- package/dist/tooltip/tooltip.svelte.d.ts +2 -2
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -0
- package/package.json +4 -2
package/dist/alert/alert.svelte
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import
|
|
2
|
+
import { getAutocompleteContext } from "./index.js";
|
|
3
|
+
import { baseClasses, type Variants } from "../base.js";
|
|
4
|
+
import { Popover, type PopoverProps } from "../popover/index.js";
|
|
5
|
+
import { type ClassName } from "../utils.js";
|
|
6
|
+
import { type Snippet } from "svelte";
|
|
3
7
|
import { twMerge } from "tailwind-merge";
|
|
4
|
-
import { baseClasses, type Variants } from "../base";
|
|
5
|
-
import { Popover, type PopoverProps } from "../popover";
|
|
6
|
-
import type { ClassName } from "../utils";
|
|
7
|
-
import { getAutocompleteContext } from "./autocomplete-context.svelte";
|
|
8
8
|
|
|
9
9
|
export type AutocompleteProps = {
|
|
10
10
|
children: Snippet;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { type
|
|
3
|
-
import { type
|
|
4
|
-
import type
|
|
1
|
+
import { type Variants } from "../base.js";
|
|
2
|
+
import { type PopoverProps } from "../popover/index.js";
|
|
3
|
+
import { type ClassName } from "../utils.js";
|
|
4
|
+
import { type Snippet } from "svelte";
|
|
5
5
|
export type AutocompleteProps = {
|
|
6
6
|
children: Snippet;
|
|
7
7
|
} & ClassName & Variants & Omit<PopoverProps, "children">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { Bindable } from "../bindable.svelte.js";
|
|
2
|
+
import { ItemContext } from "../common/index.js";
|
|
1
3
|
import { getContext, setContext } from "svelte";
|
|
2
|
-
import { Bindable } from "../bindable.svelte";
|
|
3
|
-
import { ItemContext } from "../common";
|
|
4
4
|
export class AutocompleteContext extends ItemContext {
|
|
5
5
|
#open = new Bindable(false);
|
|
6
6
|
#anchorEl = new Bindable(undefined);
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { getAutocompleteContext } from "./index.js";
|
|
3
|
+
import { Input, type InputProps } from "../input/index.js";
|
|
4
|
+
import { mergeComponentProps } from "../merge-props.js";
|
|
4
5
|
|
|
5
6
|
export type AutocompleteInputProps = InputProps;
|
|
6
7
|
</script>
|
|
7
8
|
|
|
8
9
|
<script lang="ts">
|
|
9
|
-
import { mergeComponentProps } from "../merge-props";
|
|
10
|
-
|
|
11
10
|
let {
|
|
12
11
|
el = $bindable(),
|
|
13
12
|
value = $bindable(""),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type InputProps } from "
|
|
1
|
+
import { type InputProps } from "../input/index.js";
|
|
2
2
|
export type AutocompleteInputProps = InputProps;
|
|
3
3
|
declare const AutocompleteInput: import("svelte").Component<InputProps, {}, "el" | "value">;
|
|
4
4
|
type AutocompleteInput = ReturnType<typeof AutocompleteInput>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
+
import { getAutocompleteContext } from "./index.js";
|
|
3
|
+
import { baseClasses, type Variants } from "../base.js";
|
|
4
|
+
import { mergeProps } from "../merge-props.js";
|
|
5
|
+
import { type ClassName, type ElementRef } from "../utils.js";
|
|
2
6
|
import { type Snippet } from "svelte";
|
|
3
|
-
import type
|
|
7
|
+
import { type HTMLAttributes } from "svelte/elements";
|
|
4
8
|
import { twMerge } from "tailwind-merge";
|
|
5
|
-
import { baseClasses, type Variants } from "../base";
|
|
6
|
-
import { mergeProps } from "../merge-props";
|
|
7
|
-
import { type ClassName, type ElementRef } from "../utils";
|
|
8
|
-
import { getAutocompleteContext } from "./autocomplete-context.svelte";
|
|
9
9
|
|
|
10
10
|
export type AutocompleteItemProps = {
|
|
11
11
|
onSelect?: (el: HTMLElement) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { type Variants } from "../base.js";
|
|
2
|
+
import { type ClassName, type ElementRef } from "../utils.js";
|
|
1
3
|
import { type Snippet } from "svelte";
|
|
2
|
-
import type
|
|
3
|
-
import { type Variants } from "../base";
|
|
4
|
-
import { type ClassName, type ElementRef } from "../utils";
|
|
4
|
+
import { type HTMLAttributes } from "svelte/elements";
|
|
5
5
|
export type AutocompleteItemProps = {
|
|
6
6
|
onSelect?: (el: HTMLElement) => void;
|
|
7
7
|
children: Snippet;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import type { Snippet } from "svelte";
|
|
3
|
-
import type { ClassName } from "../utils";
|
|
4
2
|
import {
|
|
5
3
|
AutocompleteContext,
|
|
6
4
|
setAutocompleteContext,
|
|
7
|
-
} from "./
|
|
5
|
+
} from "./index.js";
|
|
6
|
+
import { type ClassName } from "../utils.js";
|
|
7
|
+
import { type Snippet } from "svelte";
|
|
8
8
|
|
|
9
9
|
export type AutocompleteProps = {
|
|
10
10
|
children: Snippet;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as AutocompleteContent } from "./autocomplete-content.svelte";
|
|
2
|
+
export { AutocompleteContext, getAutocompleteContext, setAutocompleteContext, } from "./autocomplete-context.svelte.js";
|
|
2
3
|
export { default as AutocompleteInput } from "./autocomplete-input.svelte";
|
|
3
4
|
export { default as AutocompleteItem } from "./autocomplete-item.svelte";
|
|
4
5
|
export { default as Autocomplete } from "./autocomplete.svelte";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as AutocompleteContent } from "./autocomplete-content.svelte";
|
|
2
|
+
export { AutocompleteContext, getAutocompleteContext, setAutocompleteContext, } from "./autocomplete-context.svelte.js";
|
|
2
3
|
export { default as AutocompleteInput } from "./autocomplete-input.svelte";
|
|
3
4
|
export { default as AutocompleteItem } from "./autocomplete-item.svelte";
|
|
4
5
|
export { default as Autocomplete } from "./autocomplete.svelte";
|
package/dist/badge/badge.svelte
CHANGED
package/dist/box/box.svelte
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
2
|
+
import { baseClasses, type Variants } from "../base.js";
|
|
3
|
+
import { noop, type ClassName, type ElementRef } from "../utils.js";
|
|
4
|
+
import { type Snippet } from "svelte";
|
|
5
|
+
import { type HTMLAttributes } from "svelte/elements";
|
|
4
6
|
import { twMerge } from "tailwind-merge";
|
|
5
|
-
import { baseClasses, type Variants } from "../base";
|
|
6
|
-
import { noop, type ClassName, type ElementRef } from "../utils";
|
|
7
7
|
|
|
8
8
|
export type BoxProps = {
|
|
9
9
|
centered?: boolean;
|
package/dist/box/box.svelte.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
3
|
-
import { type
|
|
4
|
-
import { type
|
|
1
|
+
import { type Variants } from "../base.js";
|
|
2
|
+
import { type ClassName, type ElementRef } from "../utils.js";
|
|
3
|
+
import { type Snippet } from "svelte";
|
|
4
|
+
import { type HTMLAttributes } from "svelte/elements";
|
|
5
5
|
export type BoxProps = {
|
|
6
6
|
centered?: boolean;
|
|
7
7
|
backdrop?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import { Link, type LinkProps } from "
|
|
3
|
-
import type
|
|
2
|
+
import { Link, type LinkProps } from "../link/index.js";
|
|
3
|
+
import { type Snippet } from "svelte";
|
|
4
4
|
import { twMerge } from "tailwind-merge";
|
|
5
5
|
|
|
6
6
|
type Crumb = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script lang="ts" module>
|
|
2
|
-
import type
|
|
3
|
-
import
|
|
4
|
-
import type
|
|
2
|
+
import { baseClasses, type Variants } from "../base.js";
|
|
3
|
+
import { mergeProps } from "../merge-props.js";
|
|
4
|
+
import { Tooltip, type TooltipTriggerProps } from "../tooltip/index.js";
|
|
5
|
+
import { noop, type ClassName, type ElementRef } from "../utils.js";
|
|
6
|
+
import { type Icon } from "@lucide/svelte";
|
|
7
|
+
import { type Snippet } from "svelte";
|
|
8
|
+
import { type HTMLButtonAttributes } from "svelte/elements";
|
|
5
9
|
import { twMerge } from "tailwind-merge";
|
|
6
|
-
import { baseClasses, type Variants } from "../base";
|
|
7
|
-
import { mergeProps } from "../merge-props";
|
|
8
|
-
import { Tooltip, type TooltipTriggerProps } from "../tooltip";
|
|
9
|
-
import { noop, type ClassName, type ElementRef } from "../utils";
|
|
10
10
|
|
|
11
11
|
export type ButtonProps = {
|
|
12
12
|
icon?: typeof Icon;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
4
|
-
import { type
|
|
5
|
-
import { type
|
|
1
|
+
import { type Variants } from "../base.js";
|
|
2
|
+
import { type ClassName, type ElementRef } from "../utils.js";
|
|
3
|
+
import { type Icon } from "@lucide/svelte";
|
|
4
|
+
import { type Snippet } from "svelte";
|
|
5
|
+
import { type HTMLButtonAttributes } from "svelte/elements";
|
|
6
6
|
export type ButtonProps = {
|
|
7
7
|
icon?: typeof Icon;
|
|
8
8
|
size?: number;
|
package/dist/chip/chip.svelte
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts" module>
|
|
2
|
+
import { Box, type BoxProps } from "../box/index.js";
|
|
2
3
|
import { X } from "@lucide/svelte";
|
|
3
|
-
import type
|
|
4
|
+
import { type Snippet } from "svelte";
|
|
4
5
|
import { twMerge } from "tailwind-merge";
|
|
5
6
|
|
|
6
7
|
export type ChipProps = {
|
|
@@ -12,8 +13,6 @@
|
|
|
12
13
|
</script>
|
|
13
14
|
|
|
14
15
|
<script lang="ts">
|
|
15
|
-
import { Box, type BoxProps } from "../box";
|
|
16
|
-
|
|
17
16
|
let {
|
|
18
17
|
title,
|
|
19
18
|
onClick,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type BoxProps } from "../box/index.js";
|
|
2
|
+
import { type Snippet } from "svelte";
|
|
2
3
|
export type ChipProps = {
|
|
3
4
|
title?: string;
|
|
4
5
|
onClick?: (event: MouseEvent | KeyboardEvent) => void;
|
|
5
6
|
onDelete?: (event: MouseEvent | KeyboardEvent) => void;
|
|
6
7
|
children: Snippet;
|
|
7
8
|
} & BoxProps;
|
|
8
|
-
import { type BoxProps } from "../box";
|
|
9
9
|
declare const Chip: import("svelte").Component<ChipProps, {}, "el">;
|
|
10
10
|
type Chip = ReturnType<typeof Chip>;
|
|
11
11
|
export default Chip;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import type
|
|
2
|
+
import { type ClassName } from "../utils.js";
|
|
3
|
+
import { type Snippet } from "svelte";
|
|
3
4
|
import { twMerge } from "tailwind-merge";
|
|
4
|
-
import type { ClassName } from "../utils";
|
|
5
5
|
|
|
6
6
|
export type CommandContentProps = { children: Snippet } & ClassName;
|
|
7
7
|
</script>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import type
|
|
2
|
+
import { baseClasses, type Variants } from "../base.js";
|
|
3
|
+
import { getCommandContext } from "./index.js";
|
|
4
|
+
import { mergeProps } from "../merge-props.js";
|
|
5
|
+
import { type ClassName, type ElementRef } from "../utils.js";
|
|
6
|
+
import { type HTMLInputAttributes } from "svelte/elements";
|
|
3
7
|
import { twMerge } from "tailwind-merge";
|
|
4
|
-
import { baseClasses, type Variants } from "../base";
|
|
5
|
-
import { mergeProps } from "../merge-props";
|
|
6
|
-
import type { ClassName, ElementRef } from "../utils";
|
|
7
|
-
import { getCommandContext } from "./command-context.svelte";
|
|
8
8
|
|
|
9
9
|
export type CommandInputProps = {} & ElementRef &
|
|
10
10
|
ClassName &
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { type
|
|
3
|
-
import
|
|
1
|
+
import { type Variants } from "../base.js";
|
|
2
|
+
import { type ClassName, type ElementRef } from "../utils.js";
|
|
3
|
+
import { type HTMLInputAttributes } from "svelte/elements";
|
|
4
4
|
export type CommandInputProps = {} & ElementRef & ClassName & Variants & HTMLInputAttributes;
|
|
5
5
|
declare const CommandInput: import("svelte").Component<CommandInputProps, {}, "value">;
|
|
6
6
|
type CommandInput = ReturnType<typeof CommandInput>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
+
import { baseClasses, type Variants } from "../base.js";
|
|
3
|
+
import { getCommandContext } from "./index.js";
|
|
4
|
+
import { mergeProps } from "../merge-props.js";
|
|
5
|
+
import { type ClassName, type ElementRef } from "../utils.js";
|
|
2
6
|
import { type Snippet } from "svelte";
|
|
3
|
-
import type
|
|
7
|
+
import { type HTMLAttributes } from "svelte/elements";
|
|
4
8
|
import { twMerge } from "tailwind-merge";
|
|
5
|
-
import { baseClasses, type Variants } from "../base";
|
|
6
|
-
import { mergeProps } from "../merge-props";
|
|
7
|
-
import { type ClassName, type ElementRef } from "../utils";
|
|
8
|
-
import { getCommandContext } from "./command-context.svelte";
|
|
9
9
|
|
|
10
10
|
export type CommandItemProps = {
|
|
11
11
|
onSelect?: (el: HTMLElement) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { type Variants } from "../base.js";
|
|
2
|
+
import { type ClassName, type ElementRef } from "../utils.js";
|
|
1
3
|
import { type Snippet } from "svelte";
|
|
2
|
-
import type
|
|
3
|
-
import { type Variants } from "../base";
|
|
4
|
-
import { type ClassName, type ElementRef } from "../utils";
|
|
4
|
+
import { type HTMLAttributes } from "svelte/elements";
|
|
5
5
|
export type CommandItemProps = {
|
|
6
6
|
onSelect?: (el: HTMLElement) => void;
|
|
7
7
|
children: Snippet<[]>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
+
import { CommandInput, type CommandInputProps } from "./index.js";
|
|
2
3
|
import { SearchIcon } from "@lucide/svelte";
|
|
3
|
-
import { CommandInput } from ".";
|
|
4
|
-
import type { CommandInputProps } from "./command-input.svelte";
|
|
5
4
|
|
|
6
5
|
export type CommandSearchProps = {} & CommandInputProps;
|
|
7
6
|
</script>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type CommandInputProps } from "./index.js";
|
|
2
2
|
export type CommandSearchProps = {} & CommandInputProps;
|
|
3
3
|
declare const CommandSearch: import("svelte").Component<CommandSearchProps, {}, "value">;
|
|
4
4
|
type CommandSearch = ReturnType<typeof CommandSearch>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import
|
|
2
|
+
import { CommandContext, setCommandContext } from "./index.js";
|
|
3
|
+
import { type ClassName } from "../utils.js";
|
|
4
|
+
import { type Snippet } from "svelte";
|
|
3
5
|
import { twMerge } from "tailwind-merge";
|
|
4
|
-
import type { ClassName } from "../utils";
|
|
5
|
-
import { CommandContext, setCommandContext } from "./command-context.svelte";
|
|
6
6
|
|
|
7
7
|
export type CommandProps = {
|
|
8
8
|
children: Snippet<[]>;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import { match } from "../utils";
|
|
3
|
-
import { Check, ChevronRight } from "@lucide/svelte";
|
|
4
2
|
import {
|
|
5
3
|
Action,
|
|
6
4
|
Command,
|
|
@@ -9,10 +7,12 @@
|
|
|
9
7
|
CommandItem,
|
|
10
8
|
CommandSearch,
|
|
11
9
|
Registry,
|
|
12
|
-
} from ".";
|
|
13
|
-
import { events } from "
|
|
14
|
-
import { Modal } from "../modal";
|
|
15
|
-
import { Shortcut, ShortcutBadge } from "../shortcut";
|
|
10
|
+
} from "./index.js";
|
|
11
|
+
import { events } from "../index.js";
|
|
12
|
+
import { Modal } from "../modal/index.js";
|
|
13
|
+
import { Shortcut, ShortcutBadge } from "../shortcut/index.js";
|
|
14
|
+
import { match } from "../utils.js";
|
|
15
|
+
import { Check, ChevronRight } from "@lucide/svelte";
|
|
16
16
|
|
|
17
17
|
export type CommanderProps = {
|
|
18
18
|
open?: boolean;
|
package/dist/command/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export { Divider as CommandDivider, Header as CommandHeader } from "../common";
|
|
1
|
+
export { Divider as CommandDivider, Header as CommandHeader, } from "../common/index.js";
|
|
2
2
|
export { Action, Registry } from "./action.svelte";
|
|
3
3
|
export { default as CommandContent } from "./command-content.svelte";
|
|
4
|
-
export {
|
|
5
|
-
export { default as
|
|
6
|
-
export { default as
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as
|
|
4
|
+
export { CommandContext, getCommandContext, setCommandContext, } from "./command-context.svelte.js";
|
|
5
|
+
export { default as CommandInput, type CommandInputProps, } from "./command-input.svelte";
|
|
6
|
+
export { default as CommandItem, type CommandItemProps, } from "./command-item.svelte";
|
|
7
|
+
export { default as CommandSearch, type CommandSearchProps, } from "./command-search.svelte";
|
|
8
|
+
export { default as Command, type CommandProps } from "./command.svelte";
|
|
9
|
+
export { default as Commander, type CommanderProps } from "./commander.svelte";
|
package/dist/command/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export { Divider as CommandDivider, Header as CommandHeader } from "../common";
|
|
1
|
+
export { Divider as CommandDivider, Header as CommandHeader, } from "../common/index.js";
|
|
2
2
|
export { Action, Registry } from "./action.svelte";
|
|
3
3
|
export { default as CommandContent } from "./command-content.svelte";
|
|
4
|
-
export {
|
|
5
|
-
export { default as
|
|
6
|
-
export { default as
|
|
4
|
+
export { CommandContext, getCommandContext, setCommandContext, } from "./command-context.svelte.js";
|
|
5
|
+
export { default as CommandInput, } from "./command-input.svelte";
|
|
6
|
+
export { default as CommandItem, } from "./command-item.svelte";
|
|
7
|
+
export { default as CommandSearch, } from "./command-search.svelte";
|
|
7
8
|
export { default as Command } from "./command.svelte";
|
|
8
9
|
export { default as Commander } from "./commander.svelte";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import type
|
|
2
|
+
import { type ClassName } from "../utils.js";
|
|
3
|
+
import { type HTMLAttributes } from "svelte/elements";
|
|
3
4
|
import { twMerge } from "tailwind-merge";
|
|
4
|
-
import type { ClassName } from "../utils";
|
|
5
5
|
|
|
6
6
|
export type DividerProps = {} & ClassName & HTMLAttributes<HTMLHRElement>;
|
|
7
7
|
</script>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
1
|
+
import { type ClassName } from "../utils.js";
|
|
2
|
+
import { type HTMLAttributes } from "svelte/elements";
|
|
3
3
|
export type DividerProps = {} & ClassName & HTMLAttributes<HTMLHRElement>;
|
|
4
4
|
declare const Divider: import("svelte").Component<DividerProps, {}, "">;
|
|
5
5
|
type Divider = ReturnType<typeof Divider>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
2
|
+
import { baseClasses, type Variants } from "../base.js";
|
|
3
|
+
import { type ClassName } from "../utils.js";
|
|
4
|
+
import { type Snippet } from "svelte";
|
|
5
|
+
import { type HTMLAttributes } from "svelte/elements";
|
|
4
6
|
import { twMerge } from "tailwind-merge";
|
|
5
|
-
import { baseClasses, type Variants } from "../base";
|
|
6
|
-
import type { ClassName } from "../utils";
|
|
7
7
|
|
|
8
8
|
export type HeaderProps = {
|
|
9
9
|
children: Snippet;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
3
|
-
import { type
|
|
4
|
-
import type
|
|
1
|
+
import { type Variants } from "../base.js";
|
|
2
|
+
import { type ClassName } from "../utils.js";
|
|
3
|
+
import { type Snippet } from "svelte";
|
|
4
|
+
import { type HTMLAttributes } from "svelte/elements";
|
|
5
5
|
export type HeaderProps = {
|
|
6
6
|
children: Snippet;
|
|
7
7
|
} & ClassName & Variants & HTMLAttributes<HTMLDivElement>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Bindable } from "../bindable.svelte";
|
|
2
|
-
import { OrderedHTMLElements } from "../ordered-html-elements";
|
|
3
|
-
import { Shortcut } from "../shortcut";
|
|
1
|
+
import { Bindable } from "../bindable.svelte.js";
|
|
2
|
+
import { OrderedHTMLElements } from "../ordered-html-elements.js";
|
|
3
|
+
import { Shortcut } from "../shortcut/index.js";
|
|
4
4
|
export class ItemContext {
|
|
5
5
|
#input = new Bindable("");
|
|
6
6
|
#items = new OrderedHTMLElements();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import type
|
|
3
|
-
import {
|
|
2
|
+
import { Button, type ButtonProps } from "../button/index.js";
|
|
3
|
+
import { type Snippet } from "svelte";
|
|
4
4
|
|
|
5
5
|
export type DialogButtonProps<T> = {
|
|
6
6
|
value: T | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { type
|
|
1
|
+
import { type ButtonProps } from "../button/index.js";
|
|
2
|
+
import { type Snippet } from "svelte";
|
|
3
3
|
export type DialogButtonProps<T> = {
|
|
4
4
|
value: T | undefined;
|
|
5
5
|
autofocus?: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import
|
|
3
|
-
import type
|
|
2
|
+
import { mergeComponentProps } from "../merge-props.js";
|
|
3
|
+
import { Modal, type ModalProps } from "../modal/index.js";
|
|
4
|
+
import { type Icon } from "@lucide/svelte";
|
|
5
|
+
import { type Snippet } from "svelte";
|
|
4
6
|
import { twMerge } from "tailwind-merge";
|
|
5
|
-
import { mergeComponentProps } from "../merge-props";
|
|
6
|
-
import { Modal, type ModalProps } from "../modal";
|
|
7
7
|
|
|
8
8
|
export type DialogProps<T> = {
|
|
9
9
|
ref?: HTMLDialogElement;
|