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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
3
|
-
import { type
|
|
1
|
+
import { type ModalProps } from "../modal/index.js";
|
|
2
|
+
import { type Icon } from "@lucide/svelte";
|
|
3
|
+
import { type Snippet } from "svelte";
|
|
4
4
|
export type DialogProps<T> = {
|
|
5
5
|
ref?: HTMLDialogElement;
|
|
6
6
|
onSelect?: (value: T | undefined) => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Variants } from "../base.js";
|
|
2
|
+
import { type InputProps } from "../input/index.js";
|
|
3
|
+
import { type Icon } from "@lucide/svelte";
|
|
2
4
|
import { type Snippet } from "svelte";
|
|
3
|
-
|
|
4
|
-
import type { InputProps } from "../input";
|
|
5
|
-
export type ButtonProps<T> = {
|
|
5
|
+
export type DialoguerButtonProps<T> = {
|
|
6
6
|
text: string;
|
|
7
7
|
value: T;
|
|
8
8
|
default?: boolean;
|
|
@@ -12,7 +12,7 @@ type ShowDialogProps<T> = {
|
|
|
12
12
|
title?: string;
|
|
13
13
|
inputProps?: InputProps;
|
|
14
14
|
message: Snippet<[]> | string;
|
|
15
|
-
buttons:
|
|
15
|
+
buttons: DialoguerButtonProps<T>[];
|
|
16
16
|
};
|
|
17
17
|
type NoticeDialogProps = {
|
|
18
18
|
icon?: typeof Icon;
|
|
@@ -40,7 +40,7 @@ export declare class DialoguerContext {
|
|
|
40
40
|
icon: typeof Icon | undefined;
|
|
41
41
|
title: string | undefined;
|
|
42
42
|
inputProps: InputProps | undefined;
|
|
43
|
-
buttons:
|
|
43
|
+
buttons: DialoguerButtonProps<unknown>[];
|
|
44
44
|
resolve: (value: unknown) => void;
|
|
45
45
|
open: boolean;
|
|
46
46
|
show<T>(dialog: ShowDialogProps<T>): Promise<T>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type { Snippet } from "svelte";
|
|
3
|
-
import { Input } from "../input";
|
|
4
|
-
import DialogButton from "./dialog-button.svelte";
|
|
5
|
-
import Dialog from "./dialog.svelte";
|
|
6
2
|
import {
|
|
7
3
|
DialoguerContext,
|
|
8
4
|
setDialoguerContext,
|
|
9
|
-
type
|
|
10
|
-
} from "./
|
|
5
|
+
type DialoguerButtonProps,
|
|
6
|
+
} from "./index.js";
|
|
7
|
+
import { Input } from "../input/index.js";
|
|
8
|
+
import { type Snippet } from "svelte";
|
|
9
|
+
import DialogButton from "./dialog-button.svelte";
|
|
10
|
+
import Dialog from "./dialog.svelte";
|
|
11
11
|
|
|
12
12
|
const dialog = setDialoguerContext(new DialoguerContext());
|
|
13
13
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
let value: string = $derived(dialog.inputProps?.value ?? "");
|
|
20
20
|
|
|
21
|
-
function getValue(button:
|
|
21
|
+
function getValue(button: DialoguerButtonProps<unknown>) {
|
|
22
22
|
if (dialog.inputProps === undefined) {
|
|
23
23
|
return button.value;
|
|
24
24
|
}
|
package/dist/dialog/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { default as DialogButton, type DialogButtonProps, } from "./dialog-button.svelte";
|
|
2
2
|
export { default as Dialog, type DialogProps } from "./dialog.svelte";
|
|
3
|
-
export { getDialoguerContext, setDialoguerContext, } from "./dialoguer-context.svelte";
|
|
3
|
+
export { DialoguerContext, getDialoguerContext, setDialoguerContext, type DialoguerButtonProps, } from "./dialoguer-context.svelte";
|
|
4
4
|
export { default as Dialoguer } from "./dialoguer.svelte";
|
package/dist/dialog/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { default as DialogButton, } from "./dialog-button.svelte";
|
|
2
2
|
export { default as Dialog } from "./dialog.svelte";
|
|
3
|
-
export { getDialoguerContext, setDialoguerContext, } from "./dialoguer-context.svelte";
|
|
3
|
+
export { DialoguerContext, getDialoguerContext, setDialoguerContext, } from "./dialoguer-context.svelte";
|
|
4
4
|
export { default as Dialoguer } from "./dialoguer.svelte";
|
package/dist/event-manager.d.ts
CHANGED
package/dist/event-manager.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { runEventHandlers } from "./merge-props.js";
|
|
2
|
+
import { noop } from "./utils.js";
|
|
1
3
|
import { on } from "svelte/events";
|
|
2
|
-
import { runEventHandlers } from "./merge-props";
|
|
3
|
-
import { noop } from "./utils";
|
|
4
4
|
function entries(obj) {
|
|
5
5
|
return Object.entries(obj);
|
|
6
6
|
}
|
package/dist/fab/fab.svelte
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import { Button, type ButtonProps } from "../button/index.js";
|
|
3
|
+
import { type ElementRef } from "../utils.js";
|
|
2
4
|
import { twMerge } from "tailwind-merge";
|
|
3
|
-
import { Button, type ButtonProps } from "../button";
|
|
4
|
-
import { type ElementRef } from "../utils";
|
|
5
5
|
|
|
6
6
|
export type FabProps = {} & ElementRef & ButtonProps;
|
|
7
7
|
|
package/dist/fab/fab.svelte.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ButtonProps } from "../button";
|
|
2
|
-
import { type ElementRef } from "../utils";
|
|
1
|
+
import { type ButtonProps } from "../button/index.js";
|
|
2
|
+
import { type ElementRef } from "../utils.js";
|
|
3
3
|
export type FabProps = {} & ElementRef & ButtonProps;
|
|
4
4
|
declare const Fab: import("svelte").Component<FabProps, {}, "el">;
|
|
5
5
|
type Fab = ReturnType<typeof Fab>;
|
package/dist/fab/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as Fab } from "./fab.svelte";
|
|
1
|
+
export { default as Fab, type FabProps } from "./fab.svelte";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventManager } from "./event-manager";
|
|
1
|
+
import { EventManager } from "./event-manager.js";
|
|
2
2
|
/**
|
|
3
3
|
* A global event manager. Register event listeners with the `on` method.
|
|
4
4
|
* Listeners will execute in LIFO order. Any listener that calls
|
|
@@ -11,33 +11,33 @@ import { EventManager } from "./event-manager";
|
|
|
11
11
|
* });
|
|
12
12
|
*/
|
|
13
13
|
export declare const events: EventManager;
|
|
14
|
-
export * from "./alert";
|
|
15
|
-
export * from "./autocomplete";
|
|
16
|
-
export * from "./avatar";
|
|
17
|
-
export * from "./badge";
|
|
18
|
-
export * from "./box";
|
|
19
|
-
export * from "./breadcrumbs";
|
|
20
|
-
export * from "./button";
|
|
21
|
-
export * from "./chip";
|
|
22
|
-
export * from "./command";
|
|
23
|
-
export * from "./common";
|
|
24
|
-
export * from "./dialog";
|
|
25
|
-
export * from "./fab";
|
|
26
|
-
export * from "./input";
|
|
27
|
-
export * from "./link";
|
|
28
|
-
export * from "./markdown";
|
|
29
|
-
export * from "./menu";
|
|
30
|
-
export * from "./modal";
|
|
31
|
-
export * from "./popover";
|
|
32
|
-
export * from "./portal";
|
|
33
|
-
export * from "./progress";
|
|
34
|
-
export * from "./shortcut";
|
|
35
|
-
export * from "./skeleton";
|
|
36
|
-
export * from "./switch";
|
|
37
|
-
export * from "./textarea";
|
|
38
|
-
export * from "./toggle";
|
|
39
|
-
export * from "./tooltip";
|
|
40
|
-
export * from "./base";
|
|
41
|
-
export * from "./merge-props";
|
|
14
|
+
export * from "./alert/index.js";
|
|
15
|
+
export * from "./autocomplete/index.js";
|
|
16
|
+
export * from "./avatar/index.js";
|
|
17
|
+
export * from "./badge/index.js";
|
|
18
|
+
export * from "./box/index.js";
|
|
19
|
+
export * from "./breadcrumbs/index.js";
|
|
20
|
+
export * from "./button/index.js";
|
|
21
|
+
export * from "./chip/index.js";
|
|
22
|
+
export * from "./command/index.js";
|
|
23
|
+
export * from "./common/index.js";
|
|
24
|
+
export * from "./dialog/index.js";
|
|
25
|
+
export * from "./fab/index.js";
|
|
26
|
+
export * from "./input/index.js";
|
|
27
|
+
export * from "./link/index.js";
|
|
28
|
+
export * from "./markdown/index.js";
|
|
29
|
+
export * from "./menu/index.js";
|
|
30
|
+
export * from "./modal/index.js";
|
|
31
|
+
export * from "./popover/index.js";
|
|
32
|
+
export * from "./portal/index.js";
|
|
33
|
+
export * from "./progress/index.js";
|
|
34
|
+
export * from "./shortcut/index.js";
|
|
35
|
+
export * from "./skeleton/index.js";
|
|
36
|
+
export * from "./switch/index.js";
|
|
37
|
+
export * from "./textarea/index.js";
|
|
38
|
+
export * from "./toggle/index.js";
|
|
39
|
+
export * from "./tooltip/index.js";
|
|
40
|
+
export * from "./base.js";
|
|
41
|
+
export * from "./merge-props.js";
|
|
42
42
|
export * from "./stores.svelte";
|
|
43
|
-
export * from "./utils";
|
|
43
|
+
export * from "./utils.js";
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventManager } from "./event-manager";
|
|
1
|
+
import { EventManager } from "./event-manager.js";
|
|
2
2
|
/**
|
|
3
3
|
* A global event manager. Register event listeners with the `on` method.
|
|
4
4
|
* Listeners will execute in LIFO order. Any listener that calls
|
|
@@ -11,33 +11,33 @@ import { EventManager } from "./event-manager";
|
|
|
11
11
|
* });
|
|
12
12
|
*/
|
|
13
13
|
export const events = new EventManager();
|
|
14
|
-
export * from "./alert";
|
|
15
|
-
export * from "./autocomplete";
|
|
16
|
-
export * from "./avatar";
|
|
17
|
-
export * from "./badge";
|
|
18
|
-
export * from "./box";
|
|
19
|
-
export * from "./breadcrumbs";
|
|
20
|
-
export * from "./button";
|
|
21
|
-
export * from "./chip";
|
|
22
|
-
export * from "./command";
|
|
23
|
-
export * from "./common";
|
|
24
|
-
export * from "./dialog";
|
|
25
|
-
export * from "./fab";
|
|
26
|
-
export * from "./input";
|
|
27
|
-
export * from "./link";
|
|
28
|
-
export * from "./markdown";
|
|
29
|
-
export * from "./menu";
|
|
30
|
-
export * from "./modal";
|
|
31
|
-
export * from "./popover";
|
|
32
|
-
export * from "./portal";
|
|
33
|
-
export * from "./progress";
|
|
34
|
-
export * from "./shortcut";
|
|
35
|
-
export * from "./skeleton";
|
|
36
|
-
export * from "./switch";
|
|
37
|
-
export * from "./textarea";
|
|
38
|
-
export * from "./toggle";
|
|
39
|
-
export * from "./tooltip";
|
|
40
|
-
export * from "./base";
|
|
41
|
-
export * from "./merge-props";
|
|
14
|
+
export * from "./alert/index.js";
|
|
15
|
+
export * from "./autocomplete/index.js";
|
|
16
|
+
export * from "./avatar/index.js";
|
|
17
|
+
export * from "./badge/index.js";
|
|
18
|
+
export * from "./box/index.js";
|
|
19
|
+
export * from "./breadcrumbs/index.js";
|
|
20
|
+
export * from "./button/index.js";
|
|
21
|
+
export * from "./chip/index.js";
|
|
22
|
+
export * from "./command/index.js";
|
|
23
|
+
export * from "./common/index.js";
|
|
24
|
+
export * from "./dialog/index.js";
|
|
25
|
+
export * from "./fab/index.js";
|
|
26
|
+
export * from "./input/index.js";
|
|
27
|
+
export * from "./link/index.js";
|
|
28
|
+
export * from "./markdown/index.js";
|
|
29
|
+
export * from "./menu/index.js";
|
|
30
|
+
export * from "./modal/index.js";
|
|
31
|
+
export * from "./popover/index.js";
|
|
32
|
+
export * from "./portal/index.js";
|
|
33
|
+
export * from "./progress/index.js";
|
|
34
|
+
export * from "./shortcut/index.js";
|
|
35
|
+
export * from "./skeleton/index.js";
|
|
36
|
+
export * from "./switch/index.js";
|
|
37
|
+
export * from "./textarea/index.js";
|
|
38
|
+
export * from "./toggle/index.js";
|
|
39
|
+
export * from "./tooltip/index.js";
|
|
40
|
+
export * from "./base.js";
|
|
41
|
+
export * from "./merge-props.js";
|
|
42
42
|
export * from "./stores.svelte";
|
|
43
|
-
export * from "./utils";
|
|
43
|
+
export * from "./utils.js";
|
package/dist/input/input.svelte
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
<script lang="ts" module>
|
|
2
|
-
import type { HTMLInputAttributes } from "svelte/elements";
|
|
3
|
-
import { twMerge } from "tailwind-merge";
|
|
4
2
|
import {
|
|
5
3
|
COLORS,
|
|
6
4
|
RADII,
|
|
@@ -11,8 +9,10 @@
|
|
|
11
9
|
type RadiusProp,
|
|
12
10
|
type Size,
|
|
13
11
|
type SizeProp,
|
|
14
|
-
} from "../base";
|
|
15
|
-
import { noop, type ClassName, type ElementRef } from "../utils";
|
|
12
|
+
} from "../base.js";
|
|
13
|
+
import { noop, type ClassName, type ElementRef } from "../utils.js";
|
|
14
|
+
import { type HTMLInputAttributes } from "svelte/elements";
|
|
15
|
+
import { twMerge } from "tailwind-merge";
|
|
16
16
|
|
|
17
17
|
export const INPUT_VARIANTS = ["outlined", "filled", "inherit"] as const;
|
|
18
18
|
export type InputVariant = (typeof INPUT_VARIANTS)[number];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { type
|
|
3
|
-
import { type
|
|
1
|
+
import { type Color, type ColorProp, type Radius, type RadiusProp, type Size, type SizeProp } from "../base.js";
|
|
2
|
+
import { type ClassName, type ElementRef } from "../utils.js";
|
|
3
|
+
import { type HTMLInputAttributes } from "svelte/elements";
|
|
4
4
|
export declare const INPUT_VARIANTS: readonly ["outlined", "filled", "inherit"];
|
|
5
5
|
export type InputVariant = (typeof INPUT_VARIANTS)[number];
|
|
6
6
|
export type InputVariantProp = {
|
package/dist/link/link.svelte
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
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";
|
|
3
5
|
import type {
|
|
4
6
|
HTMLAnchorAttributes,
|
|
5
7
|
HTMLButtonAttributes,
|
|
6
8
|
} from "svelte/elements";
|
|
7
9
|
import { twMerge } from "tailwind-merge";
|
|
8
|
-
import { baseClasses, type Variants } from "../base";
|
|
9
|
-
import { noop, type ClassName, type ElementRef } from "../utils";
|
|
10
10
|
|
|
11
11
|
export type LinkProps = {
|
|
12
12
|
children: Snippet;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Variants } from "../base.js";
|
|
2
|
+
import { type ClassName, type ElementRef } from "../utils.js";
|
|
3
|
+
import { type Snippet } from "svelte";
|
|
2
4
|
import type { HTMLAnchorAttributes, HTMLButtonAttributes } from "svelte/elements";
|
|
3
|
-
import { type Variants } from "../base";
|
|
4
|
-
import { type ClassName, type ElementRef } from "../utils";
|
|
5
5
|
export type LinkProps = {
|
|
6
6
|
children: Snippet;
|
|
7
7
|
} & ElementRef & ClassName & Variants & HTMLButtonAttributes & HTMLAnchorAttributes;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
4
|
-
import type
|
|
2
|
+
import { type MarkdownComponentProps } from "./index.js";
|
|
3
|
+
import { type Tokens } from "marked";
|
|
4
|
+
import { type HTMLQuoteAttributes } from "svelte/elements";
|
|
5
5
|
|
|
6
6
|
let {
|
|
7
7
|
children,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
1
|
+
import { type MarkdownComponentProps } from "./index.js";
|
|
2
|
+
import { type Tokens } from "marked";
|
|
3
|
+
import { type HTMLQuoteAttributes } from "svelte/elements";
|
|
4
4
|
type $$ComponentProps = MarkdownComponentProps<Tokens.Blockquote> & HTMLQuoteAttributes;
|
|
5
5
|
declare const MarkdownBlockquote: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
6
6
|
type MarkdownBlockquote = ReturnType<typeof MarkdownBlockquote>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
4
|
-
import type
|
|
2
|
+
import { type MarkdownComponentProps } from "./index.js";
|
|
3
|
+
import { type Tokens } from "marked";
|
|
4
|
+
import { type HTMLAttributes } from "svelte/elements";
|
|
5
5
|
|
|
6
6
|
let {
|
|
7
7
|
...restProps
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
1
|
+
import { type MarkdownComponentProps } from "./index.js";
|
|
2
|
+
import { type Tokens } from "marked";
|
|
3
|
+
import { type HTMLAttributes } from "svelte/elements";
|
|
4
4
|
type $$ComponentProps = MarkdownComponentProps<Tokens.Br> & HTMLAttributes<HTMLBRElement>;
|
|
5
5
|
declare const MarkdownBr: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
6
6
|
type MarkdownBr = ReturnType<typeof MarkdownBr>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
4
|
-
import type
|
|
2
|
+
import { type MarkdownComponentProps } from "./index.js";
|
|
3
|
+
import { type Tokens } from "marked";
|
|
4
|
+
import { type HTMLAttributes } from "svelte/elements";
|
|
5
5
|
|
|
6
6
|
let {
|
|
7
7
|
token,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
1
|
+
import { type MarkdownComponentProps } from "./index.js";
|
|
2
|
+
import { type Tokens } from "marked";
|
|
3
|
+
import { type HTMLAttributes } from "svelte/elements";
|
|
4
4
|
type $$ComponentProps = MarkdownComponentProps<Tokens.Code> & HTMLAttributes<HTMLPreElement>;
|
|
5
5
|
declare const MarkdownCode: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
6
6
|
type MarkdownCode = ReturnType<typeof MarkdownCode>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
4
|
-
import type
|
|
2
|
+
import { type MarkdownComponentProps } from "./index.js";
|
|
3
|
+
import { type Tokens } from "marked";
|
|
4
|
+
import { type HTMLAttributes } from "svelte/elements";
|
|
5
5
|
|
|
6
6
|
let {
|
|
7
7
|
token,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
1
|
+
import { type MarkdownComponentProps } from "./index.js";
|
|
2
|
+
import { type Tokens } from "marked";
|
|
3
|
+
import { type HTMLAttributes } from "svelte/elements";
|
|
4
4
|
type $$ComponentProps = MarkdownComponentProps<Tokens.Codespan> & HTMLAttributes<HTMLElement>;
|
|
5
5
|
declare const MarkdownCodespan: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
6
6
|
type MarkdownCodespan = ReturnType<typeof MarkdownCodespan>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
4
|
-
import type
|
|
2
|
+
import { type MarkdownComponentProps } from "./index.js";
|
|
3
|
+
import { type Tokens } from "marked";
|
|
4
|
+
import { type HTMLAttributes } from "svelte/elements";
|
|
5
5
|
|
|
6
6
|
let {
|
|
7
7
|
children,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
1
|
+
import { type MarkdownComponentProps } from "./index.js";
|
|
2
|
+
import { type Tokens } from "marked";
|
|
3
|
+
import { type HTMLAttributes } from "svelte/elements";
|
|
4
4
|
type $$ComponentProps = MarkdownComponentProps<Tokens.Def> & HTMLAttributes<HTMLElement>;
|
|
5
5
|
declare const MarkdownDef: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
6
6
|
type MarkdownDef = ReturnType<typeof MarkdownDef>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
4
|
-
import type
|
|
2
|
+
import { type MarkdownComponentProps } from "./index.js";
|
|
3
|
+
import { type Tokens } from "marked";
|
|
4
|
+
import { type HTMLDelAttributes } from "svelte/elements";
|
|
5
5
|
|
|
6
6
|
let {
|
|
7
7
|
children,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
1
|
+
import { type MarkdownComponentProps } from "./index.js";
|
|
2
|
+
import { type Tokens } from "marked";
|
|
3
|
+
import { type HTMLDelAttributes } from "svelte/elements";
|
|
4
4
|
type $$ComponentProps = MarkdownComponentProps<Tokens.Del> & HTMLDelAttributes;
|
|
5
5
|
declare const MarkdownDel: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
6
6
|
type MarkdownDel = ReturnType<typeof MarkdownDel>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
4
|
-
import type
|
|
2
|
+
import { type MarkdownComponentProps } from "./index.js";
|
|
3
|
+
import { type Tokens } from "marked";
|
|
4
|
+
import { type HTMLAttributes } from "svelte/elements";
|
|
5
5
|
|
|
6
6
|
let {
|
|
7
7
|
children,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
1
|
+
import { type MarkdownComponentProps } from "./index.js";
|
|
2
|
+
import { type Tokens } from "marked";
|
|
3
|
+
import { type HTMLAttributes } from "svelte/elements";
|
|
4
4
|
type $$ComponentProps = MarkdownComponentProps<Tokens.Em> & HTMLAttributes<HTMLElement>;
|
|
5
5
|
declare const MarkdownEm: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
6
6
|
type MarkdownEm = ReturnType<typeof MarkdownEm>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { type MarkdownComponentProps } from "./index.js";
|
|
1
2
|
import { type Tokens } from "marked";
|
|
2
|
-
import type { MarkdownComponentProps } from ".";
|
|
3
3
|
declare const MarkdownEscape: import("svelte").Component<MarkdownComponentProps<Tokens.Escape>, {}, "">;
|
|
4
4
|
type MarkdownEscape = ReturnType<typeof MarkdownEscape>;
|
|
5
5
|
export default MarkdownEscape;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
4
|
-
import type
|
|
2
|
+
import { type MarkdownComponentProps } from "./index.js";
|
|
3
|
+
import { type Tokens } from "marked";
|
|
4
|
+
import { type HTMLAttributes } from "svelte/elements";
|
|
5
5
|
|
|
6
6
|
let {
|
|
7
7
|
token,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
1
|
+
import { type MarkdownComponentProps } from "./index.js";
|
|
2
|
+
import { type Tokens } from "marked";
|
|
3
|
+
import { type HTMLAttributes } from "svelte/elements";
|
|
4
4
|
type $$ComponentProps = MarkdownComponentProps<Tokens.Heading> & HTMLAttributes<HTMLHeadingElement>;
|
|
5
5
|
declare const MarkdownHeading: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
6
6
|
type MarkdownHeading = ReturnType<typeof MarkdownHeading>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
4
|
-
import type
|
|
2
|
+
import { type MarkdownComponentProps } from "./index.js";
|
|
3
|
+
import { type Tokens } from "marked";
|
|
4
|
+
import { type HTMLAttributes } from "svelte/elements";
|
|
5
5
|
|
|
6
6
|
let {
|
|
7
7
|
...restProps
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
1
|
+
import { type MarkdownComponentProps } from "./index.js";
|
|
2
|
+
import { type Tokens } from "marked";
|
|
3
|
+
import { type HTMLAttributes } from "svelte/elements";
|
|
4
4
|
type $$ComponentProps = MarkdownComponentProps<Tokens.Hr> & HTMLAttributes<HTMLHRElement>;
|
|
5
5
|
declare const MarkdownHr: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
6
6
|
type MarkdownHr = ReturnType<typeof MarkdownHr>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
2
|
+
import { type MarkdownComponentProps } from "./index.js";
|
|
3
|
+
import { type Tokens } from "marked";
|
|
4
4
|
|
|
5
5
|
let { token }: MarkdownComponentProps<Tokens.HTML | Tokens.Tag> = $props();
|
|
6
6
|
</script>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
1
|
+
import { type MarkdownComponentProps } from "./index.js";
|
|
2
|
+
import { type Tokens } from "marked";
|
|
3
3
|
declare const MarkdownHtml: import("svelte").Component<MarkdownComponentProps<Tokens.HTML | Tokens.Tag>, {}, "">;
|
|
4
4
|
type MarkdownHtml = ReturnType<typeof MarkdownHtml>;
|
|
5
5
|
export default MarkdownHtml;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
4
|
-
import type
|
|
2
|
+
import { type MarkdownComponentProps } from "./index.js";
|
|
3
|
+
import { type Tokens } from "marked";
|
|
4
|
+
import { type HTMLImgAttributes } from "svelte/elements";
|
|
5
5
|
|
|
6
6
|
let {
|
|
7
7
|
token,
|