@bysages/svelte 0.2.3 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -2
- package/dist/{ai-BOUoSSjw.mjs → AiLoader-0jlig3fe.mjs} +2 -34
- package/dist/Input-CZhcEeFU.mjs +75 -0
- package/dist/{spinner-EpUWE3Hu.mjs → Spinner-sd__23WT.mjs} +1 -6
- package/dist/{TabsRoot-BMMO3B77.mjs → TabsRoot-DXd41HqW.mjs} +5 -1
- package/dist/{avatar-BHYqgq4d.mjs → avatar-LR0CZ1Iz.mjs} +5 -1
- package/dist/bento-BTvt7gsB.mjs +73 -0
- package/dist/block-ui-CpiV9qza.mjs +50 -0
- package/dist/browser-gmPTH6mJ.mjs +146 -0
- package/dist/{cascade-select-C-eBcN_4.mjs → cascade-select-B-4Z6oWe.mjs} +6 -6
- package/dist/components/ai/index.d.mts +3 -2
- package/dist/components/ai/index.mjs +27 -2
- package/dist/components/ai-action/index.d.mts +1 -1
- package/dist/components/ai-action/index.mjs +1 -1
- package/dist/components/ai-message/index.d.mts +1 -1
- package/dist/components/ai-message/index.mjs +1 -1
- package/dist/components/ai-prompt-input/index.d.mts +1 -1
- package/dist/components/ai-prompt-input/index.mjs +1 -1
- package/dist/components/ai-reasoning/index.d.mts +1 -1
- package/dist/components/ai-reasoning/index.mjs +1 -1
- package/dist/components/ai-response/index.d.mts +1 -1
- package/dist/components/ai-response/index.mjs +1 -1
- package/dist/components/ai-source/index.d.mts +1 -1
- package/dist/components/ai-source/index.mjs +1 -1
- package/dist/components/ai-suggestion/index.d.mts +1 -1
- package/dist/components/ai-suggestion/index.mjs +1 -1
- package/dist/components/ai-tool/index.d.mts +1 -1
- package/dist/components/ai-tool/index.mjs +1 -1
- package/dist/components/avatar/index.d.mts +1 -1
- package/dist/components/avatar/index.mjs +1 -1
- package/dist/components/bento/index.d.mts +2 -0
- package/dist/components/bento/index.mjs +2 -0
- package/dist/components/block-ui/index.d.mts +2 -0
- package/dist/components/block-ui/index.mjs +2 -0
- package/dist/components/browser/index.d.mts +9 -0
- package/dist/components/browser/index.mjs +2 -0
- package/dist/components/cascade-select/index.mjs +1 -1
- package/dist/components/data-view/index.d.mts +2 -0
- package/dist/components/data-view/index.mjs +2 -0
- package/dist/components/deferred-content/index.d.mts +2 -0
- package/dist/components/deferred-content/index.mjs +2 -0
- package/dist/components/descriptions/index.d.mts +1 -1
- package/dist/components/descriptions/index.mjs +1 -1
- package/dist/components/dock/index.d.mts +2 -0
- package/dist/components/dock/index.mjs +2 -0
- package/dist/components/form/index.d.mts +2 -2
- package/dist/components/form/index.mjs +2 -2
- package/dist/components/icon/index.d.mts +1 -1
- package/dist/components/icon/index.mjs +1 -1
- package/dist/components/input/index.d.mts +1 -1
- package/dist/components/input/index.mjs +1 -1
- package/dist/components/order-list/index.d.mts +2 -0
- package/dist/components/order-list/index.mjs +2 -0
- package/dist/components/result/index.d.mts +12 -0
- package/dist/components/result/index.mjs +2 -0
- package/dist/components/select/index.d.mts +2 -7
- package/dist/components/select/index.mjs +2 -14
- package/dist/components/spinner/index.mjs +6 -1
- package/dist/components/spotlight/index.d.mts +2 -0
- package/dist/components/spotlight/index.mjs +2 -0
- package/dist/components/table/index.mjs +1 -1
- package/dist/components/tabs/index.d.mts +1 -1
- package/dist/components/tabs/index.mjs +1 -1
- package/dist/components/terminal/index.d.mts +2 -0
- package/dist/components/terminal/index.mjs +2 -0
- package/dist/components/timeline/index.d.mts +1 -1
- package/dist/components/timeline/index.mjs +1 -1
- package/dist/components/toolbar/index.d.mts +2 -0
- package/dist/components/toolbar/index.mjs +2 -0
- package/dist/components/tree-select/index.mjs +1 -1
- package/dist/components/user/index.d.mts +2 -0
- package/dist/components/user/index.mjs +2 -0
- package/dist/components/virtual-list/index.d.mts +2 -0
- package/dist/components/virtual-list/index.mjs +2 -0
- package/dist/data-view-B3TY3rYl.mjs +167 -0
- package/dist/deferred-content-CO9YsKMQ.mjs +65 -0
- package/dist/{descriptions-Cv3x5qLW.mjs → descriptions-DgkA_9B-.mjs} +14 -8
- package/dist/dock-CKGRnXWu.mjs +84 -0
- package/dist/{form-De-ZwM1P.mjs → form-BTL9S1gn.mjs} +4 -4
- package/dist/{icon-B6_cYYzO.mjs → icon-D7AeDq0M.mjs} +7 -6
- package/dist/index-0k-VxNRm.d.mts +15 -0
- package/dist/{index-NJ21Q4f4.d.mts → index-BEfqqxjl.d.mts} +11 -1
- package/dist/index-BmFfkztS.d.mts +14 -0
- package/dist/{index-BgLAlGbg.d.mts → index-BoR_54C_.d.mts} +3 -0
- package/dist/index-BolxaoaW.d.mts +18 -0
- package/dist/index-CAb_-2Bn.d.mts +21 -0
- package/dist/{index-Cd5VU1DI.d.mts → index-CV1LSzq5.d.mts} +3 -0
- package/dist/index-CmskeLd_.d.mts +23 -0
- package/dist/index-CnrohEXe.d.mts +24 -0
- package/dist/{index-BjVEomHj.d.mts → index-CtbGSRNw.d.mts} +719 -3781
- package/dist/{index-Nt0a2iYy.d.mts → index-D1U7Svy2.d.mts} +2 -2
- package/dist/index-D6eYSdmD.d.mts +28 -0
- package/dist/index-D9UBDdoA.d.mts +17 -0
- package/dist/index-DBbjFiDd.d.mts +20 -0
- package/dist/index-DGOBhwXN.d.mts +18 -0
- package/dist/{index-DrXCIscJ.d.mts → index-DjaHpB21.d.mts} +3 -0
- package/dist/index-KoqiUxmN.d.mts +20 -0
- package/dist/{index-BnvnT-GQ.d.mts → index-_kQsvJKo.d.mts} +6 -2
- package/dist/index-mshFOd-j.d.mts +20 -0
- package/dist/index.d.mts +24 -10
- package/dist/index.mjs +26 -12
- package/dist/order-list-q7VlsbmU.mjs +120 -0
- package/dist/result-4Oee2ndu.mjs +159 -0
- package/dist/select-rkY0qJKI.mjs +95 -0
- package/dist/spotlight-DMC5E1eS.mjs +51 -0
- package/dist/{table-C0AcH5Dw.mjs → table-BnNK4_su.mjs} +1 -1
- package/dist/terminal-B3b4KzoN.mjs +78 -0
- package/dist/{timeline-BV4eahUx.mjs → timeline-1yPOTbtY.mjs} +4 -2
- package/dist/toolbar-SNwuRrJr.mjs +68 -0
- package/dist/{tree-select-aHymj8Zu.mjs → tree-select-BSf4a_En.mjs} +1 -1
- package/dist/user-BjJSjDYV.mjs +100 -0
- package/dist/virtual-list-psKQ_NVr.mjs +59 -0
- package/package.json +28 -7
- package/dist/Input-Biz4J1B6.mjs +0 -39
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component, Snippet } from "svelte";
|
|
2
|
-
import { SvelteFormApi, createField, createForm } from "@tanstack/svelte-form";
|
|
2
|
+
import { SvelteFormApi, createField, createField as useField, createForm, createForm as useForm } from "@tanstack/svelte-form";
|
|
3
3
|
import { HTMLAttributes } from "svelte/elements";
|
|
4
4
|
//#region src/components/form/context.d.ts
|
|
5
5
|
/** The seam this family passes the engine through — the members the
|
|
@@ -1806,4 +1806,4 @@ declare global {
|
|
|
1806
1806
|
declare const Form: import("svelte").Component<FormProps, {}, "">;
|
|
1807
1807
|
declare const FormField: import("svelte").Component<FormFieldProps, {}, "">;
|
|
1808
1808
|
//#endregion
|
|
1809
|
-
export { createForm as a,
|
|
1809
|
+
export { createForm as a, FormApi as c, FormProps as d, AnyFormApi$1 as f, createField as i, FieldApi as l, FormField as n, useField as o, SvelteFormApi as r, useForm as s, Form as t, FormFieldProps as u };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { t as SelectRoot } from "./SelectRoot-l-rb18FH.mjs";
|
|
2
|
+
import { Select } from "@ark-ui/svelte/select";
|
|
3
|
+
import { HTMLAttributes } from "svelte/elements";
|
|
4
|
+
//#region src/components/select/native-props.d.ts
|
|
5
|
+
interface NativeSelectOption {
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface NativeSelectProps extends Omit<HTMLAttributes<HTMLSpanElement>, "size" | "children"> {
|
|
11
|
+
/** Two-way bindable — the chosen value. */
|
|
12
|
+
value?: string;
|
|
13
|
+
options: NativeSelectOption[];
|
|
14
|
+
/** One rung of the control-height ladder. */
|
|
15
|
+
size?: "sm" | "md" | "lg";
|
|
16
|
+
invalid?: boolean;
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/components/select/index.d.ts
|
|
22
|
+
declare const Select$1: Omit<typeof Select, "Root"> & {
|
|
23
|
+
Root: typeof SelectRoot;
|
|
24
|
+
};
|
|
25
|
+
/** The platform's own list wearing the control recipe. */
|
|
26
|
+
declare const NativeSelect: import("svelte").Component<NativeSelectProps, {}, "value">;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { NativeSelectProps as i, Select$1 as n, NativeSelectOption as r, NativeSelect as t };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HTMLAttributes } from "svelte/elements";
|
|
2
|
+
//#region src/components/terminal/props.d.ts
|
|
3
|
+
interface TerminalProps extends Omit<HTMLAttributes<HTMLDivElement>, "oncommand"> {
|
|
4
|
+
/** The transcript, oldest line first. */
|
|
5
|
+
lines?: string[];
|
|
6
|
+
/** The sigil at the head of the entry line. */
|
|
7
|
+
prompt?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
onCommand?: (text: string) => void;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/terminal/index.d.ts
|
|
14
|
+
/** A quiet console: the transcript above, the prompt line below. */
|
|
15
|
+
declare const Terminal: import("svelte").Component<TerminalProps, {}, "">;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { TerminalProps as n, Terminal as t };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HTMLAttributes } from "svelte/elements";
|
|
2
|
+
//#region src/components/user/props.d.ts
|
|
3
|
+
interface UserProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/** The person's name — the loud line. */
|
|
5
|
+
name: string;
|
|
6
|
+
/** The quiet echo beneath the name: a role, a title, an address. */
|
|
7
|
+
description?: string;
|
|
8
|
+
/** Seal diameter: one rung of the Avatar's own ladder. */
|
|
9
|
+
size?: "sm" | "md" | "lg";
|
|
10
|
+
src?: string;
|
|
11
|
+
shape?: "circle" | "square";
|
|
12
|
+
children?: import("svelte").Snippet;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/components/user/index.d.ts
|
|
16
|
+
/** A person on one line: the seal before the words, the name and its
|
|
17
|
+
* quiet echo beneath. */
|
|
18
|
+
declare const User: import("svelte").Component<UserProps, {}, "">;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { UserProps as n, User as t };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Snippet } from "svelte";
|
|
2
|
+
import { HTMLAttributes } from "svelte/elements";
|
|
3
|
+
//#region src/components/virtual-list/props.d.ts
|
|
4
|
+
interface VirtualListProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
items: unknown[];
|
|
6
|
+
/** The height every row occupies — fixed rows keep it simple. */
|
|
7
|
+
itemHeight?: number;
|
|
8
|
+
/** The viewport height the ledger scrolls within. */
|
|
9
|
+
height?: number | string;
|
|
10
|
+
/** Renders one record into its positioned row. */
|
|
11
|
+
renderItem?: Snippet<[unknown, number]>;
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/components/virtual-list/index.d.ts
|
|
15
|
+
/** A ledger that only mounts the rows on stage. */
|
|
16
|
+
declare const VirtualList: import("svelte").Component<VirtualListProps, {}, "">;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { VirtualListProps as n, VirtualList as t };
|
|
@@ -8,6 +8,9 @@ interface InputProps extends HTMLAttributes<HTMLInputElement> {
|
|
|
8
8
|
/** Standing alone this styles the control invalid; inside a Field
|
|
9
9
|
* the context's invalid state joins in. */
|
|
10
10
|
invalid?: boolean;
|
|
11
|
+
/** Entry mask - `9` digit, `a` letter, `*` either, anything else is
|
|
12
|
+
* literal. e.g. `"999-99-9999"`, `"(999) 999-9999"`. */
|
|
13
|
+
mask?: string;
|
|
11
14
|
}
|
|
12
15
|
//#endregion
|
|
13
16
|
//#region src/components/input/index.d.ts
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Snippet } from "svelte";
|
|
2
|
+
import { HTMLAttributes } from "svelte/elements";
|
|
3
|
+
//#region src/components/data-view/props.d.ts
|
|
4
|
+
interface DataViewProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
items: unknown[];
|
|
6
|
+
/** Ledger rows or a lattice of cards. */
|
|
7
|
+
layout?: "list" | "grid";
|
|
8
|
+
/** Records per page; leave unset to show everything at once. */
|
|
9
|
+
pageSize?: number;
|
|
10
|
+
/** Renders one record; the view lays the returned nodes out. */
|
|
11
|
+
renderItem?: Snippet<[unknown, number]>;
|
|
12
|
+
header?: Snippet;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/components/data-view/index.d.ts
|
|
16
|
+
/** One vessel, two layouts: a ledger or a lattice, paged with the
|
|
17
|
+
* pagination family's own parts. */
|
|
18
|
+
declare const DataView: import("svelte").Component<DataViewProps, {}, "">;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { DataViewProps as n, DataView as t };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Snippet } from "svelte";
|
|
2
|
+
import { IconifyIcon } from "@bysages/core/icons";
|
|
2
3
|
import { HTMLAttributes } from "svelte/elements";
|
|
3
4
|
//#region src/components/icon/props.d.ts
|
|
4
5
|
interface IconProps extends HTMLAttributes<HTMLSpanElement> {
|
|
@@ -8,8 +9,11 @@ interface IconProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
8
9
|
/** The accessible name. Without it the icon is presentation-only and
|
|
9
10
|
* hidden from the accessibility tree. */
|
|
10
11
|
label?: string;
|
|
11
|
-
/** A glyph from the registry. Ignored when children
|
|
12
|
-
* explicit glyph always wins
|
|
12
|
+
/** A glyph from the registry, imported directly. Ignored when children
|
|
13
|
+
* are given — an explicit glyph always wins. */
|
|
14
|
+
glyph?: IconifyIcon;
|
|
15
|
+
/** A registry name — only the whitelisted set the wrappers draw
|
|
16
|
+
* themselves. Ignored when `glyph` or children are given. */
|
|
13
17
|
name?: string;
|
|
14
18
|
children?: Snippet;
|
|
15
19
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Snippet } from "svelte";
|
|
2
|
+
import { HTMLAttributes } from "svelte/elements";
|
|
3
|
+
//#region src/components/toolbar/props.d.ts
|
|
4
|
+
interface ToolbarProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/** Accessible name when more than one toolbar shares a page. */
|
|
6
|
+
label?: string;
|
|
7
|
+
/** Tools at the leading edge; `children` land here when no start is
|
|
8
|
+
* given. */
|
|
9
|
+
start?: Snippet;
|
|
10
|
+
/** Tools at the trailing edge. */
|
|
11
|
+
end?: Snippet;
|
|
12
|
+
children?: Snippet;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/components/toolbar/index.d.ts
|
|
16
|
+
/** A workbench rail: the start tools at the leading edge, the end
|
|
17
|
+
* tools at the trailing. */
|
|
18
|
+
declare const Toolbar: import("svelte").Component<ToolbarProps, {}, "">;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { ToolbarProps as n, Toolbar as t };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as SourceDocumentUIPart, c as TextUIPart, d as UIMessagePart, f as AiPartProps, i as ReasoningUIPart, l as ToolUIPart, n as DataUIPart, o as SourceUrlUIPart, r as FileUIPart, s as StepStartUIPart, t as Ai, u as UIMessage } from "./index-BjVEomHj.mjs";
|
|
2
1
|
import { t as useMentions } from "./use-mentions-DeF_38di.mjs";
|
|
2
|
+
import { i as Ai$1, n as AiContent, r as AiActions, t as AiLoader } from "./AiLoader-0jlig3fe.mjs";
|
|
3
3
|
import { Accordion } from "./components/accordion/index.mjs";
|
|
4
4
|
import { n as AffixProps, t as Affix } from "./index-k0ac5WNj.mjs";
|
|
5
5
|
import { t as ActionProps } from "./props-BvDM6-cm.mjs";
|
|
6
|
-
import { AiAction } from "./components/ai-action/index.mjs";
|
|
6
|
+
import { Action as AiAction } from "./components/ai-action/index.mjs";
|
|
7
7
|
import { a as AttachmentsProps, i as AttachmentStatus, n as Attachments, r as AttachmentProps, t as Attachment } from "./index-wDHiUpr6.mjs";
|
|
8
8
|
import { n as MessageRole, t as MessageProps } from "./props-CIwO25eA.mjs";
|
|
9
9
|
import { AiMessage } from "./components/ai-message/index.mjs";
|
|
@@ -20,16 +20,20 @@ import { t as SuggestionProps } from "./props-Dr7ABUbp.mjs";
|
|
|
20
20
|
import { AiSuggestion } from "./components/ai-suggestion/index.mjs";
|
|
21
21
|
import { n as ToolStatus, t as ToolProps } from "./props-B9YcQX8X.mjs";
|
|
22
22
|
import { AiTool } from "./components/ai-tool/index.mjs";
|
|
23
|
+
import { a as SourceDocumentUIPart, c as TextUIPart, d as UIMessagePart, f as AiPartProps, i as ReasoningUIPart, l as ToolUIPart, n as DataUIPart, o as SourceUrlUIPart, r as FileUIPart, s as StepStartUIPart, t as Ai, u as UIMessage } from "./index-CtbGSRNw.mjs";
|
|
23
24
|
import { i as AlertStatus, n as AlertPartProps, r as AlertProps, t as Alert } from "./index-DH0ecZNW.mjs";
|
|
24
25
|
import { AngleSlider } from "./components/angle-slider/index.mjs";
|
|
25
26
|
import { n as AspectRatioProps, t as AspectRatio } from "./index-B1iBag3L.mjs";
|
|
26
27
|
import { n as AutoCompleteProps, t as AutoComplete } from "./index-CY4EuxyF.mjs";
|
|
27
28
|
import { n as AvatarGroupProps, t as AvatarGroup } from "./index-DfTAYXUT.mjs";
|
|
28
|
-
import { t as Avatar } from "./index-
|
|
29
|
+
import { t as Avatar } from "./index-CV1LSzq5.mjs";
|
|
29
30
|
import { n as BackTopProps, t as BackTop } from "./index-CM6inLqu.mjs";
|
|
30
31
|
import { n as BadgeProps, t as Badge } from "./index-oI4U-72X.mjs";
|
|
31
32
|
import { a as BannerStatus, i as BannerProps, n as BannerCloseProps, r as BannerPartProps, t as Banner } from "./index-BkK_8C_c.mjs";
|
|
33
|
+
import { n as BentoProps, t as Bento } from "./index-CmskeLd_.mjs";
|
|
34
|
+
import { n as BlockUIProps, t as BlockUI } from "./index-BmFfkztS.mjs";
|
|
32
35
|
import { a as BreadcrumbListProps, i as BreadcrumbLinkProps, n as BreadcrumbCurrentProps, o as BreadcrumbProps, r as BreadcrumbItemProps, s as BreadcrumbSeparatorProps, t as Breadcrumb } from "./index-Cl8v2k0X.mjs";
|
|
36
|
+
import { Browser } from "./components/browser/index.mjs";
|
|
33
37
|
import { n as ButtonGroupProps, t as ButtonGroup } from "./index-XHTt8I1B.mjs";
|
|
34
38
|
import { n as ButtonProps, t as Button } from "./index-OElK7gw7.mjs";
|
|
35
39
|
import { n as CalendarProps, t as Calendar } from "./index-CLoTtvcO.mjs";
|
|
@@ -49,10 +53,13 @@ import { n as CommandEntry, r as CommandProps, t as Command } from "./index-D_cE
|
|
|
49
53
|
import { n as CommentProps, t as Comment } from "./index-zZy5ZnA5.mjs";
|
|
50
54
|
import { a as useConfig, i as ConfigDensity, n as ConfigProviderProps, r as ConfigContext, t as ConfigProvider } from "./index-DTAcdUAd.mjs";
|
|
51
55
|
import { n as ContainerProps, t as Container } from "./index-8JoOZcM6.mjs";
|
|
56
|
+
import { n as DataViewProps, t as DataView } from "./index-KoqiUxmN.mjs";
|
|
52
57
|
import { DateInput } from "./components/date-input/index.mjs";
|
|
53
58
|
import { DatePicker } from "./components/date-picker/index.mjs";
|
|
54
|
-
import { n as
|
|
59
|
+
import { n as DeferredContentProps, t as DeferredContent } from "./index-BolxaoaW.mjs";
|
|
60
|
+
import { n as DescriptionsPartProps, r as DescriptionsRootProps, t as Descriptions } from "./index-BEfqqxjl.mjs";
|
|
55
61
|
import { Dialog, DialogOpenChangeDetails } from "./components/dialog/index.mjs";
|
|
62
|
+
import { n as DockProps, t as Dock } from "./index-CnrohEXe.mjs";
|
|
56
63
|
import { DownloadTrigger, DownloadTriggerBaseProps, DownloadTriggerProps, DownloadableData, UseDownloadProps, UseDownloadReturn, useDownload } from "./components/download-trigger/index.mjs";
|
|
57
64
|
import { Drawer } from "./components/drawer/index.mjs";
|
|
58
65
|
import { n as DynamicInputProps, t as DynamicInput } from "./index-ZUvVz2Fd.mjs";
|
|
@@ -65,18 +72,18 @@ import { FileUpload } from "./components/file-upload/index.mjs";
|
|
|
65
72
|
import { a as FloatButtonPlacement, i as FloatButtonItemProps, n as FLOAT_BUTTON_KEY, o as FloatButtonProps, r as FloatButtonContext, s as FloatButtonTriggerProps, t as FloatButton } from "./index-D8F1dVDW.mjs";
|
|
66
73
|
import { FloatingPanel } from "./components/floating-panel/index.mjs";
|
|
67
74
|
import { FocusTrap, FocusTrapBaseProps, FocusTrapProps } from "./components/focus-trap/index.mjs";
|
|
68
|
-
import { a as createForm, c as
|
|
75
|
+
import { a as createForm, c as FormApi, d as FormProps, f as AnyFormApi, i as createField, l as FieldApi, n as FormField, o as useField, r as SvelteFormApi, s as useForm, t as Form, u as FormFieldProps } from "./index-D1U7Svy2.mjs";
|
|
69
76
|
import { Format } from "./components/format/index.mjs";
|
|
70
77
|
import { Frame } from "./components/frame/index.mjs";
|
|
71
78
|
import { n as GridProps, t as Grid } from "./index-YCVah82j.mjs";
|
|
72
79
|
import { Highlight } from "./components/highlight/index.mjs";
|
|
73
80
|
import { HoverCard } from "./components/hover-card/index.mjs";
|
|
74
|
-
import { n as IconProps, t as Icon } from "./index-
|
|
81
|
+
import { n as IconProps, t as Icon } from "./index-_kQsvJKo.mjs";
|
|
75
82
|
import { ImageCropper } from "./components/image-cropper/index.mjs";
|
|
76
83
|
import { n as ImageViewerProps, t as ImageViewer } from "./index-CiHanb4T.mjs";
|
|
77
84
|
import { n as ImageProps, t as Image } from "./index-DAesWvpj.mjs";
|
|
78
85
|
import { n as InputGroupAddonProps, r as InputGroupProps, t as InputGroup } from "./index-DKfQGayE.mjs";
|
|
79
|
-
import { n as InputProps, t as Input } from "./index-
|
|
86
|
+
import { n as InputProps, t as Input } from "./index-DjaHpB21.mjs";
|
|
80
87
|
import { JsonTreeView } from "./components/json-tree-view/index.mjs";
|
|
81
88
|
import { n as KbdProps, t as Kbd } from "./index-CaVBzPln.mjs";
|
|
82
89
|
import { a as LayoutSiderProps, i as LayoutRegionProps, n as LayoutContext, r as LayoutProps, t as Layout } from "./index-BahdqXg4.mjs";
|
|
@@ -90,6 +97,7 @@ import { i as MenubarProps, n as MenubarEntry, r as MenubarGroup, t as Menubar }
|
|
|
90
97
|
import { n as MeterPartProps, r as MeterRootProps, t as Meter } from "./index-DlHvtlYT.mjs";
|
|
91
98
|
import { NavigationMenu } from "./components/navigation-menu/index.mjs";
|
|
92
99
|
import { NumberInput } from "./components/number-input/index.mjs";
|
|
100
|
+
import { n as OrderListProps, r as OrderOption, t as OrderList } from "./index-CAb_-2Bn.mjs";
|
|
93
101
|
import { n as PageHeaderPartProps, t as PageHeader } from "./index-CWNmeq0b.mjs";
|
|
94
102
|
import { Pagination } from "./components/pagination/index.mjs";
|
|
95
103
|
import { PasswordInput } from "./components/password-input/index.mjs";
|
|
@@ -102,9 +110,10 @@ import { Progress } from "./components/progress/index.mjs";
|
|
|
102
110
|
import { QrCode } from "./components/qr-code/index.mjs";
|
|
103
111
|
import { RadioGroup } from "./components/radio-group/index.mjs";
|
|
104
112
|
import { RatingGroup } from "./components/rating-group/index.mjs";
|
|
113
|
+
import { Result } from "./components/result/index.mjs";
|
|
105
114
|
import { ScrollArea } from "./components/scroll-area/index.mjs";
|
|
106
115
|
import { SegmentGroup } from "./components/segment-group/index.mjs";
|
|
107
|
-
import { Select } from "./
|
|
116
|
+
import { i as NativeSelectProps, n as Select, r as NativeSelectOption, t as NativeSelect } from "./index-D6eYSdmD.mjs";
|
|
108
117
|
import { n as SeparatorProps, t as Separator } from "./index--K4P_QKU.mjs";
|
|
109
118
|
import { SignaturePad } from "./components/signature-pad/index.mjs";
|
|
110
119
|
import { n as SkeletonProps, t as Skeleton } from "./index-D88v0BF1.mjs";
|
|
@@ -112,6 +121,7 @@ import { Slider } from "./components/slider/index.mjs";
|
|
|
112
121
|
import { n as SpinnerProps, t as Spinner } from "./index-BIIMyeLK.mjs";
|
|
113
122
|
import { n as SplitButtonEntry, r as SplitButtonProps, t as SplitButton } from "./index-C84DUNp9.mjs";
|
|
114
123
|
import { Splitter } from "./components/splitter/index.mjs";
|
|
124
|
+
import { n as SpotlightProps, t as Spotlight } from "./index-0k-VxNRm.mjs";
|
|
115
125
|
import { n as StackProps, t as Stack } from "./index-nfkt_cP_.mjs";
|
|
116
126
|
import { n as StatDeltaProps, r as StatPartProps, t as Stat } from "./index-CRdyjHjx.mjs";
|
|
117
127
|
import { Steps } from "./components/steps/index.mjs";
|
|
@@ -120,19 +130,23 @@ import { Switch } from "./components/switch/index.mjs";
|
|
|
120
130
|
import { a as createColumnHelper, i as SortingState, n as DataTable, o as DataTableProps, r as FlexRender, t as ColumnDef } from "./index-Dr-T8jsb.mjs";
|
|
121
131
|
import { Tabs } from "./components/tabs/index.mjs";
|
|
122
132
|
import { TagsInput } from "./components/tags-input/index.mjs";
|
|
133
|
+
import { n as TerminalProps, t as Terminal } from "./index-D9UBDdoA.mjs";
|
|
123
134
|
import { n as TextareaProps, t as Textarea } from "./index-D0lEVqZc.mjs";
|
|
124
|
-
import { a as TimelineProps, i as TimelineMarkerProps, n as TimelineContentProps, r as TimelineItemProps, t as Timeline } from "./index-
|
|
135
|
+
import { a as TimelineProps, i as TimelineMarkerProps, n as TimelineContentProps, r as TimelineItemProps, t as Timeline } from "./index-BoR_54C_.mjs";
|
|
125
136
|
import { Timer } from "./components/timer/index.mjs";
|
|
126
137
|
import { CreateToasterReturn, Toast, Toaster, createToaster } from "./components/toast/index.mjs";
|
|
127
138
|
import { Toc } from "./components/toc/index.mjs";
|
|
128
139
|
import { ToggleGroup } from "./components/toggle-group/index.mjs";
|
|
129
140
|
import { Toggle } from "./components/toggle/index.mjs";
|
|
141
|
+
import { n as ToolbarProps, t as Toolbar } from "./index-mshFOd-j.mjs";
|
|
130
142
|
import { Tooltip } from "./components/tooltip/index.mjs";
|
|
131
143
|
import { Tour, TourInteractOutsideEvent, TourPointerDownOutsideEvent, TourStepDetails, useTour } from "./components/tour/index.mjs";
|
|
132
144
|
import { n as TransferItem, r as TransferProps, t as Transfer } from "./index-Cd4UxWsz.mjs";
|
|
133
145
|
import { n as TreeSelectNode, r as TreeSelectProps, t as TreeSelect } from "./index-Bj2IsU9D.mjs";
|
|
134
146
|
import { n as TreeViewRootProps, t as TreeView } from "./index-D6PrX-hf.mjs";
|
|
135
147
|
import { n as TypographyPartProps, t as Typography } from "./index-CeIQyZkc.mjs";
|
|
148
|
+
import { n as UserProps, t as User } from "./index-DBbjFiDd.mjs";
|
|
149
|
+
import { n as VirtualListProps, t as VirtualList } from "./index-DGOBhwXN.mjs";
|
|
136
150
|
import { n as WatermarkProps, t as Watermark } from "./index-CjNUtqX_.mjs";
|
|
137
151
|
export * from "@bysages/core";
|
|
138
|
-
export { Accordion, type ActionProps, Affix, type AffixProps, Ai,
|
|
152
|
+
export { Accordion, AiAction as Action, AiAction, type ActionProps, Affix, type AffixProps, Ai, AiActions, Attachment as AiAttachment, Attachment, Attachments as AiAttachments, Attachments, AiContent, Ai$1 as AiConversation, AiLoader, AiMessage, AiMessage as Message, type AiPartProps, AiPromptInput, AiPromptInput as PromptInput, AiReasoning, AiReasoning as Reasoning, AiResponse, AiResponse as Response, AiSource, AiSource as Source, AiSources, AiSources as Sources, AiSuggestion, AiSuggestion as Suggestion, AiTool, AiTool as Tool, Alert, type AlertPartProps, type AlertProps, type AlertStatus, AngleSlider, type AnyFormApi, AspectRatio, type AspectRatioProps, type AttachmentProps, type AttachmentStatus, type AttachmentsProps, AutoComplete, type AutoCompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, BackTop, type BackTopProps, Badge, type BadgeProps, Banner, type BannerCloseProps, type BannerPartProps, type BannerProps, type BannerStatus, Bento, type BentoProps, BlockUI, type BlockUIProps, Breadcrumb, type BreadcrumbCurrentProps, type BreadcrumbItemProps, type BreadcrumbLinkProps, type BreadcrumbListProps, type BreadcrumbProps, type BreadcrumbSeparatorProps, Browser, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Calendar, type CalendarProps, Card, type CardDescriptionProps, type CardPartProps, type CardProps, type CardTitleProps, Carousel, CascadeSelect, type CascadeSelectNode, type CascadeSelectProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxOption, Chip, type ChipProps, ClientOnly, type ClientOnlyProps, Clipboard, type ClipboardRootProps, Collapsible, type CollectionItem, type CollectionOptions, ColorPicker, type ColumnDef, Combobox, Command, type CommandEntry, type CommandProps, Comment, type CommentProps, type ConfigContext, type ConfigDensity, ConfigProvider, type ConfigProviderProps, Container, type ContainerProps, type CreateToasterReturn, DataTable, type DataTableProps, type DataUIPart, DataView, type DataViewProps, DateInput, DatePicker, DeferredContent, type DeferredContentProps, Descriptions, type DescriptionsPartProps, type DescriptionsRootProps, Dialog, type DialogOpenChangeDetails, Dock, type DockProps, DownloadTrigger, type DownloadTriggerBaseProps, type DownloadTriggerProps, type DownloadableData, Drawer, DynamicInput, type DynamicInputProps, Editable, Ellipsis, type EllipsisProps, Empty, type EmptyDescriptionProps, type EmptyPartProps, type EmptyProps, type EmptyTitleProps, FLOAT_BUTTON_KEY, Field, type FieldApi, Fieldset, type FilePathTreeNode, type FileUIPart, FileUpload, type FlatTreeNode, FlexRender, FloatButton, type FloatButtonContext, type FloatButtonItemProps, type FloatButtonPlacement, type FloatButtonProps, type FloatButtonTriggerProps, FloatingPanel, FocusTrap, type FocusTrapBaseProps, type FocusTrapProps, Form, type FormApi, FormField, type FormFieldProps, type FormProps, Format, Frame, Grid, type GridCollection, type GridCollectionOptions, type GridProps, Highlight, HoverCard, Icon, type IconProps, Image, ImageCropper, type ImageProps, ImageViewer, type ImageViewerProps, Input, InputGroup, type InputGroupAddonProps, type InputGroupProps, type InputProps, JsonTreeView, Kbd, type KbdProps, Layout, type LayoutContext, type LayoutProps, type LayoutRegionProps, type LayoutSiderProps, Link, type LinkProps, List, type ListActionsProps, type ListCollection, type ListContentProps, type ListItemProps, type ListLeadingProps, type ListProps, Listbox, type ListboxRootProps, Marquee, Masonry, type MasonryProps, type MentionEntry, Mentions, type MentionsProps, MentionsVessel, type MentionsVesselProps, Menu, Menubar, type MenubarEntry, type MenubarGroup, type MenubarProps, type MessageProps, type MessageRole, Meter, type MeterPartProps, type MeterRootProps, NativeSelect, type NativeSelectOption, type NativeSelectProps, NavigationMenu, NumberInput, OrderList, type OrderListProps, type OrderOption, PageHeader, type PageHeaderPartProps, Pagination, PasswordInput, PinInput, Popconfirm, type PopconfirmProps, Popover, Presence, type PresenceProps, PresenceProvider, Progress, ProgressGroup, type ProgressGroupProps, type ProgressSegment, type PromptInputProps, QrCode, RadioGroup, RatingGroup, type ReasoningProps, type ReasoningUIPart, type ResponseProps, Result, ScrollArea, SegmentGroup, Select, Separator, type SeparatorProps, SignaturePad, Skeleton, type SkeletonProps, Slider, type SortingState, type SourceDocumentUIPart, type SourceProps, type SourceUrlUIPart, type SourcesProps, Spinner, type SpinnerProps, SplitButton, type SplitButtonEntry, type SplitButtonProps, Splitter, Spotlight, type SpotlightProps, Stack, type StackProps, Stat, type StatDeltaProps, type StatPartProps, type StepStartUIPart, Steps, type SuggestionProps, type SvelteFormApi, Swap, Switch, Tabs, TagsInput, Terminal, type TerminalProps, type TextUIPart, Textarea, type TextareaProps, Timeline, type TimelineContentProps, type TimelineItemProps, type TimelineMarkerProps, type TimelineProps, Timer, Toast, Toaster, Toc, Toggle, ToggleGroup, type ToolProps, type ToolStatus, type ToolUIPart, Toolbar, type ToolbarProps, Tooltip, Tour, type TourInteractOutsideEvent, type TourPointerDownOutsideEvent, type TourStepDetails, Transfer, type TransferItem, type TransferProps, type TreeCollection, type TreeCollectionOptions, type TreeNode, TreeSelect, type TreeSelectNode, type TreeSelectProps, TreeView, type TreeViewRootProps, Typography, type TypographyPartProps, type UIMessage, type UIMessagePart, type UseAsyncListProps, type UseAsyncListReturn, type UseDownloadProps, type UseDownloadReturn, type UseListCollectionProps, type UseListCollectionReturn, type UseListSelectionProps, type UseListSelectionReturn, type UseMentionsHandlers, type UseMentionsOptions, type UsePresenceContext, type UsePresenceProps, type UsePresenceReturn, User, type UserProps, VirtualList, type VirtualListProps, Watermark, type WatermarkProps, createColumnHelper, createField, createFileTreeCollection, createForm, createGridCollection, createListCollection, createToaster, createTreeCollection, splitPresenceProps, useAsyncList, useConfig, useDownload, useField, useForm, useListCollection, useListSelection, useMentions, usePresence, usePresenceContext, useTour };
|
package/dist/index.mjs
CHANGED
|
@@ -13,22 +13,24 @@ import { t as AiResponse } from "./ai-response-D5IkRFMN.mjs";
|
|
|
13
13
|
import { n as AiSources, t as AiSource } from "./ai-source-CvglcFw1.mjs";
|
|
14
14
|
import { t as AiSuggestion } from "./ai-suggestion-zGAQ1kkf.mjs";
|
|
15
15
|
import { t as AiTool } from "./ai-tool-DY_iNbMk.mjs";
|
|
16
|
-
import {
|
|
16
|
+
import { i as Ai$1, n as AiContent, r as AiActions, t as AiLoader } from "./AiLoader-0jlig3fe.mjs";
|
|
17
|
+
import { Ai } from "./components/ai/index.mjs";
|
|
17
18
|
import { n as Attachments, t as Attachment } from "./ai-attachments-Y0Tf6UFL.mjs";
|
|
18
19
|
import { t as Alert } from "./alert-Xp8I8IY9.mjs";
|
|
19
20
|
import { t as AutoComplete } from "./autocomplete-D7ZZ7Xpb.mjs";
|
|
20
21
|
import { AngleSlider } from "./components/angle-slider/index.mjs";
|
|
21
22
|
import { t as AspectRatio } from "./aspect-ratio-COOgu44A.mjs";
|
|
22
|
-
import { t as Avatar } from "./avatar-
|
|
23
|
+
import { t as Avatar } from "./avatar-LR0CZ1Iz.mjs";
|
|
23
24
|
import { t as AvatarGroup } from "./avatar-group-BgIxNuVj.mjs";
|
|
24
25
|
import { t as BackTop } from "./back-top-rbP0aP47.mjs";
|
|
25
26
|
import { t as Badge } from "./badge-DKa-8Pv0.mjs";
|
|
27
|
+
import { t as BlockUI } from "./block-ui-CpiV9qza.mjs";
|
|
26
28
|
import { t as Breadcrumb } from "./breadcrumb-C01pAq93.mjs";
|
|
27
29
|
import { t as ButtonGroup } from "./button-group-CVLqPMlR.mjs";
|
|
28
30
|
import { t as Banner } from "./banner-LEPWtGlY.mjs";
|
|
29
31
|
import { t as Calendar } from "./calendar-0tSnHuLj.mjs";
|
|
30
32
|
import { t as Card } from "./card-Bc3B7MYz.mjs";
|
|
31
|
-
import { t as CascadeSelect } from "./cascade-select-
|
|
33
|
+
import { t as CascadeSelect } from "./cascade-select-B-4Z6oWe.mjs";
|
|
32
34
|
import { Carousel } from "./components/carousel/index.mjs";
|
|
33
35
|
import { Checkbox } from "./components/checkbox/index.mjs";
|
|
34
36
|
import { t as CheckboxGroup } from "./checkbox-group-ARW_z7gp.mjs";
|
|
@@ -42,9 +44,11 @@ import { t as Command } from "./command-fZuTfbz4.mjs";
|
|
|
42
44
|
import { t as Comment } from "./comment-C91xgrtK.mjs";
|
|
43
45
|
import { n as useConfig, t as ConfigProvider } from "./config-provider-DW5wVzFr.mjs";
|
|
44
46
|
import { t as Container } from "./container-Cmiu_3W5.mjs";
|
|
47
|
+
import { t as DataView } from "./data-view-B3TY3rYl.mjs";
|
|
45
48
|
import { DateInput } from "./components/date-input/index.mjs";
|
|
49
|
+
import { t as DeferredContent } from "./deferred-content-CO9YsKMQ.mjs";
|
|
46
50
|
import { DatePicker } from "./components/date-picker/index.mjs";
|
|
47
|
-
import { t as Descriptions } from "./descriptions-
|
|
51
|
+
import { t as Descriptions } from "./descriptions-DgkA_9B-.mjs";
|
|
48
52
|
import { Dialog } from "./components/dialog/index.mjs";
|
|
49
53
|
import { DownloadTrigger, useDownload } from "./components/download-trigger/index.mjs";
|
|
50
54
|
import { Drawer } from "./components/drawer/index.mjs";
|
|
@@ -60,11 +64,11 @@ import { FloatingPanel } from "./components/floating-panel/index.mjs";
|
|
|
60
64
|
import { FocusTrap } from "./components/focus-trap/index.mjs";
|
|
61
65
|
import { Format } from "./components/format/index.mjs";
|
|
62
66
|
import { Frame } from "./components/frame/index.mjs";
|
|
63
|
-
import { i as createForm, n as FormField, r as createField, t as Form } from "./form-
|
|
67
|
+
import { a as useField, i as createForm, n as FormField, o as useForm, r as createField, t as Form } from "./form-BTL9S1gn.mjs";
|
|
64
68
|
import { t as Grid } from "./grid-DNgTWYSL.mjs";
|
|
65
69
|
import { Highlight } from "./components/highlight/index.mjs";
|
|
66
70
|
import { HoverCard } from "./components/hover-card/index.mjs";
|
|
67
|
-
import { t as Icon } from "./icon-
|
|
71
|
+
import { t as Icon } from "./icon-D7AeDq0M.mjs";
|
|
68
72
|
import { t as Image } from "./image-1Lgj8xhS.mjs";
|
|
69
73
|
import { ImageCropper } from "./components/image-cropper/index.mjs";
|
|
70
74
|
import { t as ImageViewer } from "./image-viewer-Dv3_Iyu8.mjs";
|
|
@@ -81,6 +85,7 @@ import { Menu } from "./components/menu/index.mjs";
|
|
|
81
85
|
import { t as Menubar } from "./menubar-Crrkg2tZ.mjs";
|
|
82
86
|
import { t as Meter } from "./meter-BgsJ2g-v.mjs";
|
|
83
87
|
import { NavigationMenu } from "./components/navigation-menu/index.mjs";
|
|
88
|
+
import { t as OrderList } from "./order-list-q7VlsbmU.mjs";
|
|
84
89
|
import { NumberInput } from "./components/number-input/index.mjs";
|
|
85
90
|
import { Pagination } from "./components/pagination/index.mjs";
|
|
86
91
|
import { PasswordInput } from "./components/password-input/index.mjs";
|
|
@@ -95,7 +100,7 @@ import { RadioGroup } from "./components/radio-group/index.mjs";
|
|
|
95
100
|
import { RatingGroup } from "./components/rating-group/index.mjs";
|
|
96
101
|
import { ScrollArea } from "./components/scroll-area/index.mjs";
|
|
97
102
|
import { SegmentGroup } from "./components/segment-group/index.mjs";
|
|
98
|
-
import { Select } from "./
|
|
103
|
+
import { n as Select, t as NativeSelect } from "./select-rkY0qJKI.mjs";
|
|
99
104
|
import { t as Separator } from "./separator-4JWXConE.mjs";
|
|
100
105
|
import { SignaturePad } from "./components/signature-pad/index.mjs";
|
|
101
106
|
import { t as Skeleton } from "./skeleton-DOfOrlmL.mjs";
|
|
@@ -104,27 +109,36 @@ import { t as SplitButton } from "./split-button-CGjPB9DQ.mjs";
|
|
|
104
109
|
import { Splitter } from "./components/splitter/index.mjs";
|
|
105
110
|
import { t as Stack } from "./stack-DCKrejZp.mjs";
|
|
106
111
|
import { t as PageHeader } from "./page-header-DKpKUkTe.mjs";
|
|
107
|
-
import {
|
|
112
|
+
import { Spinner } from "./components/spinner/index.mjs";
|
|
108
113
|
import { t as Stat } from "./stat-5cTU1vyI.mjs";
|
|
109
114
|
import { Steps } from "./components/steps/index.mjs";
|
|
110
115
|
import { Swap } from "./components/swap/index.mjs";
|
|
111
116
|
import { Switch } from "./components/switch/index.mjs";
|
|
112
|
-
import { n as FlexRender, r as createColumnHelper, t as DataTable } from "./table-
|
|
117
|
+
import { n as FlexRender, r as createColumnHelper, t as DataTable } from "./table-BnNK4_su.mjs";
|
|
113
118
|
import { Tabs } from "./components/tabs/index.mjs";
|
|
119
|
+
import { t as Terminal } from "./terminal-B3b4KzoN.mjs";
|
|
114
120
|
import { TagsInput } from "./components/tags-input/index.mjs";
|
|
115
121
|
import { t as Textarea } from "./textarea-DzDc678j.mjs";
|
|
116
|
-
import { t as Timeline } from "./timeline-
|
|
122
|
+
import { t as Timeline } from "./timeline-1yPOTbtY.mjs";
|
|
117
123
|
import { Timer } from "./components/timer/index.mjs";
|
|
118
124
|
import { Toast, Toaster, createToaster } from "./components/toast/index.mjs";
|
|
119
125
|
import { Toc } from "./components/toc/index.mjs";
|
|
120
126
|
import { Toggle } from "./components/toggle/index.mjs";
|
|
127
|
+
import { t as Toolbar } from "./toolbar-SNwuRrJr.mjs";
|
|
121
128
|
import { t as Typography } from "./typography-Cygr9XaD.mjs";
|
|
122
129
|
import { t as Transfer } from "./transfer-0IAuhFCe.mjs";
|
|
123
130
|
import { ToggleGroup } from "./components/toggle-group/index.mjs";
|
|
124
131
|
import { Tooltip } from "./components/tooltip/index.mjs";
|
|
125
132
|
import { Tour, useTour } from "./components/tour/index.mjs";
|
|
126
|
-
import { t as TreeSelect } from "./tree-select-
|
|
133
|
+
import { t as TreeSelect } from "./tree-select-BSf4a_En.mjs";
|
|
127
134
|
import { TreeView } from "./components/tree-view/index.mjs";
|
|
135
|
+
import { t as User } from "./user-BjJSjDYV.mjs";
|
|
136
|
+
import { t as VirtualList } from "./virtual-list-psKQ_NVr.mjs";
|
|
128
137
|
import { t as Watermark } from "./watermark-C2d3-EAM.mjs";
|
|
138
|
+
import { t as Spotlight } from "./spotlight-DMC5E1eS.mjs";
|
|
139
|
+
import { t as Dock } from "./dock-CKGRnXWu.mjs";
|
|
140
|
+
import { t as Browser } from "./browser-gmPTH6mJ.mjs";
|
|
141
|
+
import { t as Bento } from "./bento-BTvt7gsB.mjs";
|
|
142
|
+
import { t as Result } from "./result-4Oee2ndu.mjs";
|
|
129
143
|
export * from "@bysages/core";
|
|
130
|
-
export { Accordion, Affix, Ai,
|
|
144
|
+
export { Accordion, AiAction as Action, AiAction, Affix, Ai, AiActions, Attachment as AiAttachment, Attachment, Attachments as AiAttachments, Attachments, AiContent, Ai$1 as AiConversation, AiLoader, AiMessage, AiMessage as Message, AiPromptInput, AiPromptInput as PromptInput, AiReasoning, AiReasoning as Reasoning, AiResponse, AiResponse as Response, AiSource, AiSource as Source, AiSources, AiSources as Sources, AiSuggestion, AiSuggestion as Suggestion, AiTool, AiTool as Tool, Alert, AngleSlider, AspectRatio, AutoComplete, Avatar, AvatarGroup, BackTop, Badge, Banner, Bento, BlockUI, Breadcrumb, Browser, Button, ButtonGroup, Calendar, Card, Carousel, CascadeSelect, Checkbox, CheckboxGroup, Chip, ClientOnly, Clipboard, Collapsible, ColorPicker, Combobox, Command, Comment, ConfigProvider, Container, DataTable, DataView, DateInput, DatePicker, DeferredContent, Descriptions, Dialog, Dock, DownloadTrigger, Drawer, DynamicInput, Editable, Ellipsis, Empty, FLOAT_BUTTON_KEY, Field, Fieldset, FileUpload, FlexRender, FloatButton, FloatingPanel, FocusTrap, Form, FormField, Format, Frame, Grid, Highlight, HoverCard, Icon, Image, ImageCropper, ImageViewer, Input, InputGroup, JsonTreeView, Kbd, Layout, Link, List, Listbox, Marquee, Masonry, Mentions, MentionsVessel, Menu, Menubar, Meter, NativeSelect, NavigationMenu, NumberInput, OrderList, PageHeader, Pagination, PasswordInput, PinInput, Popconfirm, Popover, Presence, PresenceProvider, Progress, ProgressGroup, QrCode, RadioGroup, RatingGroup, Result, ScrollArea, SegmentGroup, Select, Separator, SignaturePad, Skeleton, Slider, Spinner, SplitButton, Splitter, Spotlight, Stack, Stat, Steps, Swap, Switch, Tabs, TagsInput, Terminal, Textarea, Timeline, Timer, Toast, Toaster, Toc, Toggle, ToggleGroup, Toolbar, Tooltip, Tour, Transfer, TreeSelect, TreeView, Typography, User, VirtualList, Watermark, createColumnHelper, createField, createFileTreeCollection, createForm, createGridCollection, createListCollection, createToaster, createTreeCollection, splitPresenceProps, useAsyncList, useConfig, useDownload, useField, useForm, useListCollection, useListSelection, useMentions, usePresence, usePresenceContext, useTour };
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import "svelte/internal/disclose-version";
|
|
3
|
+
import * as $ from "svelte/internal/client";
|
|
4
|
+
//#region src/components/order-list/OrderList.svelte
|
|
5
|
+
var rest_excludes = /* @__PURE__ */ new Set([
|
|
6
|
+
"$$slots",
|
|
7
|
+
"$$events",
|
|
8
|
+
"$$legacy",
|
|
9
|
+
"value",
|
|
10
|
+
"options",
|
|
11
|
+
"label"
|
|
12
|
+
]);
|
|
13
|
+
var root = $.from_html(`<li role="option" aria-selected="true" draggable="" data-scope="order-list" data-part="item"><span data-scope="order-list" data-part="grip" aria-hidden="true">⋮⋮</span> <span data-scope="order-list" data-part="label"> </span> <span data-scope="order-list" data-part="controls"><button type="button" aria-label="Move to top" data-scope="order-list" data-part="move"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m18 15-6-6-6 6"></path><path d="M5 4h14"></path></svg></button> <button type="button" aria-label="Move up" data-scope="order-list" data-part="move"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m18 15-6-6-6 6"></path></svg></button> <button type="button" aria-label="Move down" data-scope="order-list" data-part="move"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"></path></svg></button> <button type="button" aria-label="Move to bottom" data-scope="order-list" data-part="move"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"></path><path d="M5 20h14"></path></svg></button></span></li>`);
|
|
14
|
+
var root_1 = $.from_html(`<div><ol data-scope="order-list" data-part="list"></ol></div>`);
|
|
15
|
+
function OrderList$1($$anchor, $$props) {
|
|
16
|
+
$.push($$props, true);
|
|
17
|
+
injectComponentStyle("order-list");
|
|
18
|
+
let value = $.prop($$props, "value", 31, () => $.proxy([])), rest = $.rest_props($$props, rest_excludes);
|
|
19
|
+
let dragging = $.state(null);
|
|
20
|
+
let dropLine = $.state(null);
|
|
21
|
+
const rows = $.derived(() => value().map((entry) => $$props.options.find((option) => option.value === entry)).filter((option) => option != null));
|
|
22
|
+
function move(entry, offset) {
|
|
23
|
+
const next = [...value()];
|
|
24
|
+
const from = next.indexOf(entry);
|
|
25
|
+
const to = Math.max(0, Math.min(next.length - 1, from + offset));
|
|
26
|
+
if (from === to) return;
|
|
27
|
+
next.splice(to, 0, ...next.splice(from, 1));
|
|
28
|
+
value(next);
|
|
29
|
+
}
|
|
30
|
+
function reset() {
|
|
31
|
+
$.set(dragging, null);
|
|
32
|
+
$.set(dropLine, null);
|
|
33
|
+
}
|
|
34
|
+
function drop() {
|
|
35
|
+
const entry = $.get(dragging);
|
|
36
|
+
if (entry == null) return;
|
|
37
|
+
const seam = $.get(dropLine);
|
|
38
|
+
const from = value().indexOf(entry);
|
|
39
|
+
if (seam && seam.index === from) return reset();
|
|
40
|
+
const next = value().filter((candidate) => candidate !== entry);
|
|
41
|
+
let at = seam ? seam.before ? seam.index : seam.index + 1 : next.length;
|
|
42
|
+
if (from < at) at -= 1;
|
|
43
|
+
next.splice(Math.max(0, Math.min(next.length, at)), 0, entry);
|
|
44
|
+
value(next);
|
|
45
|
+
reset();
|
|
46
|
+
}
|
|
47
|
+
var div = root_1();
|
|
48
|
+
var event_handler = (event) => {
|
|
49
|
+
const host = event.currentTarget;
|
|
50
|
+
if (!event.relatedTarget || !host.contains(event.relatedTarget)) $.set(dropLine, null);
|
|
51
|
+
};
|
|
52
|
+
$.attribute_effect(div, () => ({
|
|
53
|
+
...rest,
|
|
54
|
+
role: "listbox",
|
|
55
|
+
"aria-label": $$props.label,
|
|
56
|
+
"aria-multiselectable": false,
|
|
57
|
+
"data-scope": "order-list",
|
|
58
|
+
"data-part": "root",
|
|
59
|
+
ondragleave: event_handler
|
|
60
|
+
}));
|
|
61
|
+
var ol = $.child(div);
|
|
62
|
+
$.each(ol, 23, () => $.get(rows), (option) => option.value, ($$anchor, option, index) => {
|
|
63
|
+
var li = root();
|
|
64
|
+
var span = $.sibling($.child(li), 2);
|
|
65
|
+
var text = $.only_child(span, true);
|
|
66
|
+
var span_1 = $.sibling(span, 2);
|
|
67
|
+
var button = $.child(span_1);
|
|
68
|
+
var button_1 = $.sibling(button, 2);
|
|
69
|
+
var button_2 = $.sibling(button_1, 2);
|
|
70
|
+
var button_3 = $.sibling(button_2, 2);
|
|
71
|
+
$.reset(span_1);
|
|
72
|
+
$.reset(li);
|
|
73
|
+
$.template_effect(() => {
|
|
74
|
+
$.set_attribute(li, "data-dragging", $.get(dragging) === $.get(option).value ? "" : void 0);
|
|
75
|
+
$.set_attribute(li, "data-drop-line", $.get(dropLine) && $.get(dropLine).index === $.get(index) ? $.get(dropLine).before ? "top" : "bottom" : void 0);
|
|
76
|
+
$.set_text(text, $.get(option).label);
|
|
77
|
+
button.disabled = $.get(index) === 0;
|
|
78
|
+
button_1.disabled = $.get(index) === 0;
|
|
79
|
+
button_2.disabled = $.get(index) === $.get(rows).length - 1;
|
|
80
|
+
button_3.disabled = $.get(index) === $.get(rows).length - 1;
|
|
81
|
+
});
|
|
82
|
+
$.event("dragstart", li, (event) => {
|
|
83
|
+
$.set(dragging, $.get(option).value, true);
|
|
84
|
+
event.dataTransfer?.setData("text/plain", $.get(option).value);
|
|
85
|
+
if (event.dataTransfer) event.dataTransfer.effectAllowed = "move";
|
|
86
|
+
});
|
|
87
|
+
$.event("dragend", li, reset);
|
|
88
|
+
$.event("dragover", li, (event) => {
|
|
89
|
+
event.preventDefault();
|
|
90
|
+
if (event.dataTransfer) event.dataTransfer.dropEffect = "move";
|
|
91
|
+
const rect = event.currentTarget.getBoundingClientRect();
|
|
92
|
+
const before = event.clientY < rect.top + rect.height / 2;
|
|
93
|
+
$.set(dropLine, $.get(dragging) != null && !($.get(option).value === $.get(dragging) && before) ? {
|
|
94
|
+
index: $.get(index),
|
|
95
|
+
before
|
|
96
|
+
} : null, true);
|
|
97
|
+
});
|
|
98
|
+
$.event("drop", li, (event) => {
|
|
99
|
+
event.preventDefault();
|
|
100
|
+
drop();
|
|
101
|
+
});
|
|
102
|
+
$.delegated("click", button, () => move($.get(option).value, -$.get(index)));
|
|
103
|
+
$.delegated("click", button_1, () => move($.get(option).value, -1));
|
|
104
|
+
$.delegated("click", button_2, () => move($.get(option).value, 1));
|
|
105
|
+
$.delegated("click", button_3, () => move($.get(option).value, $.get(rows).length - 1 - $.get(index)));
|
|
106
|
+
$.append($$anchor, li);
|
|
107
|
+
});
|
|
108
|
+
$.reset(ol);
|
|
109
|
+
$.reset(div);
|
|
110
|
+
$.append($$anchor, div);
|
|
111
|
+
$.pop();
|
|
112
|
+
}
|
|
113
|
+
$.delegate(["click"]);
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region src/components/order-list/index.ts
|
|
116
|
+
/** A ledger the reader may rewrite: rows move by grip or by the side
|
|
117
|
+
* arrows; the value is the order. */
|
|
118
|
+
const OrderList = OrderList$1;
|
|
119
|
+
//#endregion
|
|
120
|
+
export { OrderList as t };
|