kosui 0.0.27 → 0.0.29
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 +174 -19
- package/dist/alert/alert.svelte.d.ts +26 -3
- package/dist/alert/index.d.ts +1 -1
- package/dist/alert/index.js +1 -1
- package/dist/autocomplete/autocomplete-content.svelte +2 -2
- package/dist/autocomplete/autocomplete-content.svelte.d.ts +2 -2
- package/dist/autocomplete/autocomplete-item.svelte +3 -3
- package/dist/autocomplete/autocomplete-item.svelte.d.ts +3 -3
- package/dist/autocomplete/autocomplete.svelte +2 -2
- package/dist/autocomplete/autocomplete.svelte.d.ts +2 -2
- package/dist/base.d.ts +3 -3
- package/dist/base.js +3 -2
- package/dist/box/box.svelte +2 -2
- package/dist/box/box.svelte.d.ts +2 -2
- package/dist/breadcrumbs/breadcrumbs.svelte +1 -1
- package/dist/breadcrumbs/breadcrumbs.svelte.d.ts +1 -1
- package/dist/button/button.svelte +3 -3
- package/dist/button/button.svelte.d.ts +3 -3
- package/dist/chip/chip.svelte +1 -1
- package/dist/chip/chip.svelte.d.ts +1 -1
- package/dist/command/action.svelte.d.ts +1 -1
- package/dist/command/action.svelte.js +0 -1
- package/dist/command/command-content.svelte +2 -2
- package/dist/command/command-content.svelte.d.ts +2 -2
- package/dist/command/command-input.svelte +2 -2
- package/dist/command/command-input.svelte.d.ts +2 -2
- package/dist/command/command-item.svelte +3 -3
- package/dist/command/command-item.svelte.d.ts +3 -3
- package/dist/command/command.svelte +2 -2
- package/dist/command/command.svelte.d.ts +2 -2
- package/dist/common/divider.svelte +2 -2
- package/dist/common/divider.svelte.d.ts +2 -2
- package/dist/common/header.svelte +3 -3
- package/dist/common/header.svelte.d.ts +3 -3
- package/dist/dialog/dialog-button.svelte +1 -1
- package/dist/dialog/dialog-button.svelte.d.ts +1 -1
- package/dist/dialog/dialog.svelte +2 -2
- package/dist/dialog/dialog.svelte.d.ts +2 -2
- package/dist/dialog/dialoguer-context.svelte.d.ts +3 -3
- package/dist/dialog/dialoguer-context.svelte.js +0 -3
- package/dist/dialog/dialoguer.svelte +1 -1
- package/dist/dialog/dialoguer.svelte.d.ts +1 -1
- package/dist/fab/fab.svelte +1 -1
- package/dist/fab/fab.svelte.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/input/input.svelte +1 -1
- package/dist/input/input.svelte.d.ts +4 -4
- package/dist/link/link.svelte +1 -1
- package/dist/link/link.svelte.d.ts +1 -1
- 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 +0 -1
- 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 +2 -2
- package/dist/markdown/markdown-escape.svelte.d.ts +2 -2
- 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 +3 -6
- package/dist/markdown/markdown-table-cell.svelte.d.ts +3 -3
- package/dist/markdown/markdown-table.svelte +2 -2
- package/dist/markdown/markdown-table.svelte.d.ts +2 -2
- 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-token.svelte.d.ts +1 -1
- package/dist/markdown/markdown-tokens.svelte +1 -1
- package/dist/markdown/markdown-tokens.svelte.d.ts +1 -1
- package/dist/markdown/markdown.svelte +1 -1
- package/dist/markdown/markdown.svelte.d.ts +1 -1
- package/dist/menu/menu-actions.svelte +1 -1
- package/dist/menu/menu-actions.svelte.d.ts +1 -1
- package/dist/menu/menu-content.svelte +2 -2
- package/dist/menu/menu-content.svelte.d.ts +2 -2
- package/dist/menu/menu-item.svelte +3 -3
- package/dist/menu/menu-item.svelte.d.ts +3 -3
- package/dist/menu/menu-trigger.svelte +4 -4
- package/dist/menu/menu-trigger.svelte.d.ts +4 -4
- package/dist/menu/menu.svelte +2 -2
- package/dist/menu/menu.svelte.d.ts +2 -2
- package/dist/modal/modal.svelte +3 -3
- package/dist/modal/modal.svelte.d.ts +3 -3
- package/dist/popover/popover.svelte +2 -2
- package/dist/popover/popover.svelte.d.ts +2 -2
- package/dist/portal/proxy.svelte +1 -1
- package/dist/portal/proxy.svelte.d.ts +1 -1
- package/dist/progress/circular-progress.svelte +1 -1
- package/dist/progress/circular-progress.svelte.d.ts +1 -1
- package/dist/shortcut/shortcut-badge.svelte +2 -2
- package/dist/shortcut/shortcut-badge.svelte.d.ts +2 -2
- package/dist/shortcut/shortcut.d.ts +2 -0
- package/dist/shortcut/shortcut.js +2 -0
- package/dist/skeleton/skeleton.svelte +1 -1
- package/dist/skeleton/skeleton.svelte.d.ts +1 -1
- package/dist/slider/index.d.ts +8 -0
- package/dist/slider/index.js +8 -0
- package/dist/slider/slider-context.svelte.d.ts +50 -0
- package/dist/slider/slider-context.svelte.js +198 -0
- package/dist/slider/slider-handle-label-arrow.svelte +18 -0
- package/dist/slider/slider-handle-label-arrow.svelte.d.ts +6 -0
- package/dist/slider/slider-handle-label.svelte +35 -0
- package/dist/slider/slider-handle-label.svelte.d.ts +6 -0
- package/dist/slider/slider-handle.svelte +54 -0
- package/dist/slider/slider-handle.svelte.d.ts +6 -0
- package/dist/slider/slider-mark-dot.svelte +25 -0
- package/dist/slider/slider-mark-dot.svelte.d.ts +6 -0
- package/dist/slider/slider-mark-label.svelte +37 -0
- package/dist/slider/slider-mark-label.svelte.d.ts +9 -0
- package/dist/slider/slider-mark.svelte +33 -0
- package/dist/slider/slider-mark.svelte.d.ts +9 -0
- package/dist/slider/slider.svelte +249 -0
- package/dist/slider/slider.svelte.d.ts +41 -0
- package/dist/switch/switch-thumb.svelte +2 -2
- package/dist/switch/switch-thumb.svelte.d.ts +2 -2
- package/dist/switch/switch.svelte +3 -3
- package/dist/switch/switch.svelte.d.ts +6 -6
- package/dist/textarea/textarea.svelte +2 -2
- package/dist/textarea/textarea.svelte.d.ts +5 -5
- package/dist/toggle/toggle-button.svelte +3 -3
- package/dist/toggle/toggle-button.svelte.d.ts +3 -3
- package/dist/toggle/toggle-group.svelte +2 -2
- package/dist/toggle/toggle-group.svelte.d.ts +2 -2
- package/dist/tooltip/tooltip.svelte +6 -5
- package/dist/tooltip/tooltip.svelte.d.ts +2 -2
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +0 -1
- package/package.json +5 -5
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
type DialoguerButtonProps,
|
|
6
6
|
} from "./index.js";
|
|
7
7
|
import { Input } from "../input/index.js";
|
|
8
|
-
import {
|
|
8
|
+
import type { Snippet } from "svelte";
|
|
9
9
|
import DialogButton from "./dialog-button.svelte";
|
|
10
10
|
import Dialog from "./dialog.svelte";
|
|
11
11
|
|
package/dist/fab/fab.svelte
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { Button, type ButtonProps } from "../button/index.js";
|
|
3
|
-
import {
|
|
3
|
+
import type { ElementRef } from "../utils.js";
|
|
4
4
|
import { twMerge } from "tailwind-merge";
|
|
5
5
|
|
|
6
6
|
export type FabProps = {} & ElementRef & ButtonProps;
|
package/dist/fab/fab.svelte.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ButtonProps } from "../button/index.js";
|
|
2
|
-
import {
|
|
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/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export * from "./portal/index.js";
|
|
|
33
33
|
export * from "./progress/index.js";
|
|
34
34
|
export * from "./shortcut/index.js";
|
|
35
35
|
export * from "./skeleton/index.js";
|
|
36
|
+
export * from "./slider/index.js";
|
|
36
37
|
export * from "./switch/index.js";
|
|
37
38
|
export * from "./textarea/index.js";
|
|
38
39
|
export * from "./toggle/index.js";
|
package/dist/index.js
CHANGED
|
@@ -33,6 +33,7 @@ export * from "./portal/index.js";
|
|
|
33
33
|
export * from "./progress/index.js";
|
|
34
34
|
export * from "./shortcut/index.js";
|
|
35
35
|
export * from "./skeleton/index.js";
|
|
36
|
+
export * from "./slider/index.js";
|
|
36
37
|
export * from "./switch/index.js";
|
|
37
38
|
export * from "./textarea/index.js";
|
|
38
39
|
export * from "./toggle/index.js";
|
package/dist/input/input.svelte
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
type SizeProp,
|
|
12
12
|
} from "../base.js";
|
|
13
13
|
import { noop, type ClassName, type ElementRef } from "../utils.js";
|
|
14
|
-
import {
|
|
14
|
+
import type { HTMLInputAttributes } from "svelte/elements";
|
|
15
15
|
import { twMerge } from "tailwind-merge";
|
|
16
16
|
|
|
17
17
|
export const INPUT_VARIANTS = ["outlined", "filled", "inherit"] as const;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { type Color, type ColorProp, type Radius, type RadiusProp, type Size, type SizeProp } from "../base.js";
|
|
2
2
|
import { type ClassName, type ElementRef } from "../utils.js";
|
|
3
|
-
import {
|
|
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 = {
|
|
7
7
|
variant?: InputVariant;
|
|
8
8
|
};
|
|
9
|
-
export declare const INPUT_COLORS: readonly ["primary", "secondary", "tertiary", "error", "inherit"];
|
|
9
|
+
export declare const INPUT_COLORS: readonly ["primary", "secondary", "tertiary", "error", "plain", "inherit"];
|
|
10
10
|
export type InputColor = Color;
|
|
11
11
|
export type InputColorProp = ColorProp;
|
|
12
|
-
export declare const INPUT_SIZES: readonly ["xs", "sm", "md", "lg", "xl"
|
|
12
|
+
export declare const INPUT_SIZES: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
13
13
|
export type InputSize = Size;
|
|
14
14
|
export type InputSizeProp = SizeProp;
|
|
15
|
-
export declare const INPUT_RADII: readonly ["xs", "sm", "md", "lg", "xl", "
|
|
15
|
+
export declare const INPUT_RADII: readonly ["none", "xs", "sm", "md", "lg", "xl", "full"];
|
|
16
16
|
export type InputRadius = Radius;
|
|
17
17
|
export type InputRadiusProp = RadiusProp;
|
|
18
18
|
export type InputProps = ElementRef & ClassName & InputVariantProp & InputSizeProp & InputRadiusProp & InputColorProp & Omit<HTMLInputAttributes, "size">;
|
package/dist/link/link.svelte
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
2
|
import { baseClasses, type Variants } from "../base.js";
|
|
3
3
|
import { noop, type ClassName, type ElementRef } from "../utils.js";
|
|
4
|
-
import {
|
|
4
|
+
import type { Snippet } from "svelte";
|
|
5
5
|
import type {
|
|
6
6
|
HTMLAnchorAttributes,
|
|
7
7
|
HTMLButtonAttributes,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Variants } from "../base.js";
|
|
2
2
|
import { type ClassName, type ElementRef } from "../utils.js";
|
|
3
|
-
import {
|
|
3
|
+
import type { Snippet } from "svelte";
|
|
4
4
|
import type { HTMLAnchorAttributes, HTMLButtonAttributes } from "svelte/elements";
|
|
5
5
|
export type LinkProps = {
|
|
6
6
|
children: Snippet;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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 {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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 {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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 {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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 {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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 {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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 {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { MarkdownComponentProps } from "./index.js";
|
|
3
|
+
import type { Tokens } from "marked";
|
|
4
4
|
|
|
5
5
|
let { token }: MarkdownComponentProps<Tokens.Escape> = $props();
|
|
6
6
|
</script>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { MarkdownComponentProps } from "./index.js";
|
|
2
|
+
import type { Tokens } from "marked";
|
|
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 {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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 {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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 {
|
|
3
|
-
import {
|
|
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 {
|
|
2
|
-
import {
|
|
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 {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { MarkdownComponentProps } from "./index.js";
|
|
2
|
+
import type { Tokens } from "marked";
|
|
3
|
+
import type { HTMLImgAttributes } from "svelte/elements";
|
|
4
4
|
type $$ComponentProps = MarkdownComponentProps<Tokens.Image> & HTMLImgAttributes;
|
|
5
5
|
declare const MarkdownImage: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
6
6
|
type MarkdownImage = ReturnType<typeof MarkdownImage>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import type { MarkdownComponentProps } from "./index.js";
|
|
3
|
+
import type { Tokens } from "marked";
|
|
4
|
+
import type { HTMLAnchorAttributes } from "svelte/elements";
|
|
5
5
|
|
|
6
6
|
let {
|
|
7
7
|
token,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { MarkdownComponentProps } from "./index.js";
|
|
2
|
+
import type { Tokens } from "marked";
|
|
3
|
+
import type { HTMLAnchorAttributes } from "svelte/elements";
|
|
4
4
|
type $$ComponentProps = MarkdownComponentProps<Tokens.Link> & HTMLAnchorAttributes;
|
|
5
5
|
declare const MarkdownLink: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
6
6
|
type MarkdownLink = ReturnType<typeof MarkdownLink>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import type { MarkdownComponentProps } from "./index.js";
|
|
3
|
+
import type { Tokens } from "marked";
|
|
4
|
+
import type { HTMLLiAttributes } from "svelte/elements";
|
|
5
5
|
|
|
6
6
|
let {
|
|
7
7
|
children,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { MarkdownComponentProps } from "./index.js";
|
|
2
|
+
import type { Tokens } from "marked";
|
|
3
|
+
import type { HTMLLiAttributes } from "svelte/elements";
|
|
4
4
|
type $$ComponentProps = MarkdownComponentProps<Tokens.ListItem> & HTMLLiAttributes;
|
|
5
5
|
declare const MarkdownListItem: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
6
6
|
type MarkdownListItem = ReturnType<typeof MarkdownListItem>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import type { MarkdownComponentProps } from "./index.js";
|
|
3
|
+
import type { Tokens } from "marked";
|
|
4
|
+
import type { HTMLOlAttributes } from "svelte/elements";
|
|
5
5
|
import MarkdownTokens from "./markdown-tokens.svelte";
|
|
6
6
|
|
|
7
7
|
let {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { MarkdownComponentProps } from "./index.js";
|
|
2
|
+
import type { Tokens } from "marked";
|
|
3
|
+
import type { HTMLOlAttributes } from "svelte/elements";
|
|
4
4
|
type $$ComponentProps = MarkdownComponentProps<Tokens.List> & HTMLOlAttributes;
|
|
5
5
|
declare const MarkdownList: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
6
6
|
type MarkdownList = ReturnType<typeof MarkdownList>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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.Paragraph> & HTMLAttributes<HTMLParagraphElement>;
|
|
5
5
|
declare const MarkdownParagraph: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
6
6
|
type MarkdownParagraph = ReturnType<typeof MarkdownParagraph>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { MarkdownComponentProps } from "./index.js";
|
|
3
|
+
import type { Tokens } from "marked";
|
|
4
4
|
|
|
5
5
|
let { children }: MarkdownComponentProps<Tokens.Space> = $props();
|
|
6
6
|
</script>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { MarkdownComponentProps } from "./index.js";
|
|
2
|
+
import type { Tokens } from "marked";
|
|
3
3
|
declare const MarkdownSpace: import("svelte").Component<MarkdownComponentProps<Tokens.Space>, {}, "">;
|
|
4
4
|
type MarkdownSpace = ReturnType<typeof MarkdownSpace>;
|
|
5
5
|
export default MarkdownSpace;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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.Strong> & HTMLAttributes<HTMLElement>;
|
|
5
5
|
declare const MarkdownStrong: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
6
6
|
type MarkdownStrong = ReturnType<typeof MarkdownStrong>;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
type HTMLTdAttributes,
|
|
6
|
-
type HTMLThAttributes,
|
|
7
|
-
} from "svelte/elements";
|
|
2
|
+
import type { MarkdownComponentProps } from "./index.js";
|
|
3
|
+
import type { MarkedToken, Tokens } from "marked";
|
|
4
|
+
import type { HTMLTdAttributes, HTMLThAttributes } from "svelte/elements";
|
|
8
5
|
import MarkdownTokens from "./markdown-tokens.svelte";
|
|
9
6
|
|
|
10
7
|
let {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { MarkdownComponentProps } from "./index.js";
|
|
2
|
+
import type { Tokens } from "marked";
|
|
3
|
+
import type { HTMLTdAttributes, HTMLThAttributes } from "svelte/elements";
|
|
4
4
|
type $$ComponentProps = MarkdownComponentProps<Tokens.TableCell> & (HTMLThAttributes | HTMLTdAttributes);
|
|
5
5
|
declare const MarkdownTableCell: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
6
6
|
type MarkdownTableCell = ReturnType<typeof MarkdownTableCell>;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
getMarkdownContext,
|
|
4
4
|
type MarkdownComponentProps,
|
|
5
5
|
} from "./index.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import type { Tokens } from "marked";
|
|
7
|
+
import type { HTMLTableAttributes } from "svelte/elements";
|
|
8
8
|
|
|
9
9
|
let {
|
|
10
10
|
token,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type MarkdownComponentProps } from "./index.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { Tokens } from "marked";
|
|
3
|
+
import type { HTMLTableAttributes } from "svelte/elements";
|
|
4
4
|
type $$ComponentProps = MarkdownComponentProps<Tokens.Table> & HTMLTableAttributes;
|
|
5
5
|
declare const MarkdownTable: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
6
6
|
type MarkdownTable = ReturnType<typeof MarkdownTable>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { MarkdownComponentProps } from "./index.js";
|
|
3
|
+
import type { Tokens } from "marked";
|
|
4
4
|
|
|
5
5
|
let { children }: MarkdownComponentProps<Tokens.Text> = $props();
|
|
6
6
|
</script>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { MarkdownComponentProps } from "./index.js";
|
|
2
|
+
import type { Tokens } from "marked";
|
|
3
3
|
declare const MarkdownText: import("svelte").Component<MarkdownComponentProps<Tokens.Text>, {}, "">;
|
|
4
4
|
type MarkdownText = ReturnType<typeof MarkdownText>;
|
|
5
5
|
export default MarkdownText;
|