@bysages/svelte 0.2.3 → 0.3.1
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-BEiPYOfW.mjs} +13 -40
- package/dist/{FileUploadRoot-IVcTAZp-.mjs → FileUploadTrigger-BgAcpLXx.mjs} +39 -3
- package/dist/Input-CZhcEeFU.mjs +75 -0
- package/dist/JsonTreeViewTree-CqRP_PwV.mjs +71 -0
- package/dist/{spinner-EpUWE3Hu.mjs → Spinner-DGAzGJ_8.mjs} +7 -9
- package/dist/{StepsRoot-Dg_3-lRb.mjs → StepsRoot-C_FYfShw.mjs} +27 -1
- package/dist/{TabsRoot-BMMO3B77.mjs → TabsRoot-DXd41HqW.mjs} +5 -1
- package/dist/TocIndicator-DPnZxTJ2.mjs +30 -0
- package/dist/TreeViewRoot-RBynRAly.mjs +108 -0
- package/dist/{ai-attachments-Y0Tf6UFL.mjs → ai-attachments-C0YVIKUc.mjs} +6 -2
- package/dist/{ai-prompt-input-BmyKyadu.mjs → ai-prompt-input-vh89e9EX.mjs} +67 -50
- package/dist/{ai-response-D5IkRFMN.mjs → ai-response-BPQPjMlC.mjs} +7 -3
- package/dist/{autocomplete-D7ZZ7Xpb.mjs → autocomplete-Dhuhqp-6.mjs} +10 -7
- package/dist/{avatar-BHYqgq4d.mjs → avatar-LR0CZ1Iz.mjs} +5 -1
- package/dist/{banner-LEPWtGlY.mjs → banner-Bj3FFB-O.mjs} +7 -4
- package/dist/bento-BTvt7gsB.mjs +73 -0
- package/dist/block-ui-CxsMoEoa.mjs +50 -0
- package/dist/{breadcrumb-C01pAq93.mjs → breadcrumb-CtBjVdxv.mjs} +6 -3
- package/dist/browser-gmPTH6mJ.mjs +146 -0
- package/dist/{calendar-0tSnHuLj.mjs → calendar-BMXmRdwJ.mjs} +1 -1
- package/dist/{cascade-select-C-eBcN_4.mjs → cascade-select-CfvWchiN.mjs} +32 -18
- package/dist/{command-fZuTfbz4.mjs → command-CZRC1T-6.mjs} +14 -8
- 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-attachments/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 +2 -2
- 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 +2 -2
- 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/autocomplete/index.mjs +1 -1
- package/dist/components/avatar/index.d.mts +1 -1
- package/dist/components/avatar/index.mjs +1 -1
- package/dist/components/banner/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/breadcrumb/index.mjs +1 -1
- package/dist/components/browser/index.d.mts +9 -0
- package/dist/components/browser/index.mjs +2 -0
- package/dist/components/calendar/index.mjs +1 -1
- package/dist/components/cascade-select/index.mjs +1 -1
- package/dist/components/command/index.mjs +1 -1
- package/dist/components/config-provider/index.d.mts +1 -1
- package/dist/components/config-provider/index.mjs +2 -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/dynamic-input/index.mjs +1 -1
- package/dist/components/file-upload/index.d.mts +3 -2
- package/dist/components/file-upload/index.mjs +3 -2
- package/dist/components/float-button/index.mjs +1 -1
- 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/image/index.d.mts +1 -1
- package/dist/components/image/index.mjs +1 -1
- package/dist/components/image-viewer/index.d.mts +1 -1
- package/dist/components/image-viewer/index.mjs +1 -1
- package/dist/components/input/index.d.mts +1 -1
- package/dist/components/input/index.mjs +1 -1
- package/dist/components/json-tree-view/index.d.mts +4 -4
- package/dist/components/json-tree-view/index.mjs +5 -1
- package/dist/components/layout/index.mjs +1 -1
- package/dist/components/list/index.mjs +1 -1
- package/dist/components/menubar/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/split-button/index.mjs +1 -1
- package/dist/components/spotlight/index.d.mts +2 -0
- package/dist/components/spotlight/index.mjs +2 -0
- package/dist/components/steps/index.d.mts +3 -2
- package/dist/components/steps/index.mjs +3 -2
- 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/toc/index.d.mts +4 -1
- package/dist/components/toc/index.mjs +5 -1
- package/dist/components/toolbar/index.d.mts +2 -0
- package/dist/components/toolbar/index.mjs +2 -0
- package/dist/components/transfer/index.mjs +1 -1
- package/dist/components/tree-select/index.mjs +1 -1
- package/dist/components/tree-view/index.d.mts +1 -1
- package/dist/components/tree-view/index.mjs +4 -2
- 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/{config-provider-DW5wVzFr.mjs → config-provider-CZJyd3MX.mjs} +6 -14
- package/dist/context-Da-QMQRq.mjs +14 -0
- package/dist/data-view-BORK23XZ.mjs +179 -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/{dynamic-input-B3IBAoLs.mjs → dynamic-input-D1a-5vy-.mjs} +6 -1
- package/dist/{float-button-CZAda2SI.mjs → float-button-BLIHnw2u.mjs} +3 -1
- package/dist/{form-De-ZwM1P.mjs → form-BTL9S1gn.mjs} +4 -4
- package/dist/{icon-B6_cYYzO.mjs → icon-D7AeDq0M.mjs} +7 -6
- package/dist/{image-1Lgj8xhS.mjs → image-u_H4LtAC.mjs} +4 -0
- package/dist/{image-viewer-Dv3_Iyu8.mjs → image-viewer-DzoEcVSn.mjs} +20 -4
- package/dist/index-0k-VxNRm.d.mts +15 -0
- package/dist/{index-NJ21Q4f4.d.mts → index-BEfqqxjl.d.mts} +11 -1
- package/dist/{index-D6PrX-hf.d.mts → index-BJvo4qep.d.mts} +4 -2
- package/dist/{index-DTAcdUAd.d.mts → index-BkGvErBJ.d.mts} +5 -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-DAesWvpj.d.mts → index-D1tQgtT0.d.mts} +4 -0
- 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-CiHanb4T.d.mts → index-DG4OAuIf.d.mts} +4 -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 +28 -14
- package/dist/index.mjs +45 -30
- package/dist/{layout-WRo4P9-_.mjs → layout-GfxGYYhg.mjs} +7 -4
- package/dist/{list-B23lA_sc.mjs → list-BgEM9H3z.mjs} +2 -1
- package/dist/{menubar-Crrkg2tZ.mjs → menubar-2MPo9w5z.mjs} +1 -0
- package/dist/messages-DNzA55pH.mjs +17 -0
- package/dist/order-list-D3EhH7EX.mjs +129 -0
- package/dist/result-4Oee2ndu.mjs +159 -0
- package/dist/select-8ume4i2e.mjs +99 -0
- package/dist/{split-button-CGjPB9DQ.mjs → split-button-DnmVc_J0.mjs} +5 -3
- package/dist/spotlight-DMC5E1eS.mjs +51 -0
- package/dist/{table-C0AcH5Dw.mjs → table-BsdqRuvj.mjs} +63 -44
- package/dist/terminal-Dgw5JEz4.mjs +80 -0
- package/dist/{timeline-BV4eahUx.mjs → timeline-1yPOTbtY.mjs} +4 -2
- package/dist/toolbar-SNwuRrJr.mjs +68 -0
- package/dist/{transfer-0IAuhFCe.mjs → transfer-C0FLA8W1.mjs} +16 -5
- package/dist/{tree-select-aHymj8Zu.mjs → tree-select-CSYSYZDN.mjs} +72 -71
- package/dist/user-BjJSjDYV.mjs +100 -0
- package/dist/virtual-list-_10ypBUP.mjs +60 -0
- package/package.json +28 -7
- package/dist/Input-Biz4J1B6.mjs +0 -39
- package/dist/TreeViewRoot-ConQj9TX.mjs +0 -37
|
@@ -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 };
|
|
@@ -5,6 +5,10 @@ interface ImageProps extends HTMLAttributes<HTMLElement> {
|
|
|
5
5
|
src: string;
|
|
6
6
|
alt?: string;
|
|
7
7
|
fit?: "cover" | "contain" | "fill" | "none";
|
|
8
|
+
/** Intrinsic width passed to the image, so layout is stable while it loads. */
|
|
9
|
+
width?: number | string;
|
|
10
|
+
/** Intrinsic height passed to the image, so layout is stable while it loads. */
|
|
11
|
+
height?: number | string;
|
|
8
12
|
loading?: "lazy" | "eager";
|
|
9
13
|
/** What a broken source leaves — the quiet placeholder glyph by
|
|
10
14
|
* default. */
|
|
@@ -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 };
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
interface ImageViewerProps {
|
|
3
3
|
src: string;
|
|
4
4
|
alt?: string;
|
|
5
|
+
/** Intrinsic width passed to the preview image, so layout is stable while it loads. */
|
|
6
|
+
width?: number | string;
|
|
7
|
+
/** Intrinsic height passed to the preview image, so layout is stable while it loads. */
|
|
8
|
+
height?: number | string;
|
|
5
9
|
/** Whether the lightbox is up. Bind it (`bind:open`) to control the
|
|
6
10
|
* viewer; left alone it keeps the state to itself. */
|
|
7
11
|
open?: boolean;
|
|
@@ -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-BEiPYOfW.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";
|
|
@@ -47,12 +51,15 @@ import { ColorPicker } from "./components/color-picker/index.mjs";
|
|
|
47
51
|
import { Combobox } from "./components/combobox/index.mjs";
|
|
48
52
|
import { n as CommandEntry, r as CommandProps, t as Command } from "./index-D_cE3qK2.mjs";
|
|
49
53
|
import { n as CommentProps, t as Comment } from "./index-zZy5ZnA5.mjs";
|
|
50
|
-
import { a as useConfig, i as ConfigDensity, n as ConfigProviderProps, r as ConfigContext, t as ConfigProvider } from "./index-
|
|
54
|
+
import { a as useConfig, i as ConfigDensity, n as ConfigProviderProps, r as ConfigContext, t as ConfigProvider } from "./index-BkGvErBJ.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
|
-
import { n as ImageViewerProps, t as ImageViewer } from "./index-
|
|
77
|
-
import { n as ImageProps, t as Image } from "./index-
|
|
83
|
+
import { n as ImageViewerProps, t as ImageViewer } from "./index-DG4OAuIf.mjs";
|
|
84
|
+
import { n as ImageProps, t as Image } from "./index-D1tQgtT0.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
|
-
import { n as TreeViewRootProps, t as TreeView } from "./index-
|
|
146
|
+
import { n as TreeViewRootProps, t as TreeView } from "./index-BJvo4qep.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
|
@@ -6,29 +6,32 @@ import { t as AiMessage } from "./ai-message-DBs1fdFm.mjs";
|
|
|
6
6
|
import { Field } from "./components/field/index.mjs";
|
|
7
7
|
import { n as MentionsVessel, t as Mentions } from "./mentions-DjhgNRmY.mjs";
|
|
8
8
|
import { t as useMentions } from "./use-mentions-DeF_38di.mjs";
|
|
9
|
-
import {
|
|
9
|
+
import { n as useConfig } from "./context-Da-QMQRq.mjs";
|
|
10
|
+
import { t as AiPromptInput } from "./ai-prompt-input-vh89e9EX.mjs";
|
|
10
11
|
import { Collapsible } from "./components/collapsible/index.mjs";
|
|
11
12
|
import { t as AiReasoning } from "./ai-reasoning-C4YsB2hQ.mjs";
|
|
12
|
-
import { t as AiResponse } from "./ai-response-
|
|
13
|
+
import { t as AiResponse } from "./ai-response-BPQPjMlC.mjs";
|
|
13
14
|
import { n as AiSources, t as AiSource } from "./ai-source-CvglcFw1.mjs";
|
|
14
15
|
import { t as AiSuggestion } from "./ai-suggestion-zGAQ1kkf.mjs";
|
|
15
16
|
import { t as AiTool } from "./ai-tool-DY_iNbMk.mjs";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
17
|
+
import { i as Ai$1, n as AiContent, r as AiActions, t as AiLoader } from "./AiLoader-BEiPYOfW.mjs";
|
|
18
|
+
import { Ai } from "./components/ai/index.mjs";
|
|
19
|
+
import { n as Attachments, t as Attachment } from "./ai-attachments-C0YVIKUc.mjs";
|
|
18
20
|
import { t as Alert } from "./alert-Xp8I8IY9.mjs";
|
|
19
|
-
import { t as AutoComplete } from "./autocomplete-
|
|
21
|
+
import { t as AutoComplete } from "./autocomplete-Dhuhqp-6.mjs";
|
|
20
22
|
import { AngleSlider } from "./components/angle-slider/index.mjs";
|
|
21
23
|
import { t as AspectRatio } from "./aspect-ratio-COOgu44A.mjs";
|
|
22
|
-
import { t as Avatar } from "./avatar-
|
|
24
|
+
import { t as Avatar } from "./avatar-LR0CZ1Iz.mjs";
|
|
23
25
|
import { t as AvatarGroup } from "./avatar-group-BgIxNuVj.mjs";
|
|
24
26
|
import { t as BackTop } from "./back-top-rbP0aP47.mjs";
|
|
25
27
|
import { t as Badge } from "./badge-DKa-8Pv0.mjs";
|
|
26
|
-
import { t as
|
|
28
|
+
import { t as BlockUI } from "./block-ui-CxsMoEoa.mjs";
|
|
29
|
+
import { t as Breadcrumb } from "./breadcrumb-CtBjVdxv.mjs";
|
|
27
30
|
import { t as ButtonGroup } from "./button-group-CVLqPMlR.mjs";
|
|
28
|
-
import { t as Banner } from "./banner-
|
|
29
|
-
import { t as Calendar } from "./calendar-
|
|
31
|
+
import { t as Banner } from "./banner-Bj3FFB-O.mjs";
|
|
32
|
+
import { t as Calendar } from "./calendar-BMXmRdwJ.mjs";
|
|
30
33
|
import { t as Card } from "./card-Bc3B7MYz.mjs";
|
|
31
|
-
import { t as CascadeSelect } from "./cascade-select-
|
|
34
|
+
import { t as CascadeSelect } from "./cascade-select-CfvWchiN.mjs";
|
|
32
35
|
import { Carousel } from "./components/carousel/index.mjs";
|
|
33
36
|
import { Checkbox } from "./components/checkbox/index.mjs";
|
|
34
37
|
import { t as CheckboxGroup } from "./checkbox-group-ARW_z7gp.mjs";
|
|
@@ -38,49 +41,52 @@ import { Clipboard } from "./components/clipboard/index.mjs";
|
|
|
38
41
|
import { createFileTreeCollection, createGridCollection, createListCollection, createTreeCollection, useAsyncList, useListCollection, useListSelection } from "./components/collection/index.mjs";
|
|
39
42
|
import { ColorPicker } from "./components/color-picker/index.mjs";
|
|
40
43
|
import { Combobox } from "./components/combobox/index.mjs";
|
|
41
|
-
import { t as Command } from "./command-
|
|
44
|
+
import { t as Command } from "./command-CZRC1T-6.mjs";
|
|
42
45
|
import { t as Comment } from "./comment-C91xgrtK.mjs";
|
|
43
|
-
import {
|
|
46
|
+
import { t as ConfigProvider } from "./config-provider-CZJyd3MX.mjs";
|
|
44
47
|
import { t as Container } from "./container-Cmiu_3W5.mjs";
|
|
48
|
+
import { t as DataView } from "./data-view-BORK23XZ.mjs";
|
|
45
49
|
import { DateInput } from "./components/date-input/index.mjs";
|
|
50
|
+
import { t as DeferredContent } from "./deferred-content-CO9YsKMQ.mjs";
|
|
46
51
|
import { DatePicker } from "./components/date-picker/index.mjs";
|
|
47
|
-
import { t as Descriptions } from "./descriptions-
|
|
52
|
+
import { t as Descriptions } from "./descriptions-DgkA_9B-.mjs";
|
|
48
53
|
import { Dialog } from "./components/dialog/index.mjs";
|
|
49
54
|
import { DownloadTrigger, useDownload } from "./components/download-trigger/index.mjs";
|
|
50
55
|
import { Drawer } from "./components/drawer/index.mjs";
|
|
51
56
|
import { Input } from "./components/input/index.mjs";
|
|
52
|
-
import { t as DynamicInput } from "./dynamic-input-
|
|
57
|
+
import { t as DynamicInput } from "./dynamic-input-D1a-5vy-.mjs";
|
|
53
58
|
import { Editable } from "./components/editable/index.mjs";
|
|
54
59
|
import { t as Ellipsis } from "./ellipsis-CLaZ9Grh.mjs";
|
|
55
60
|
import { t as Empty } from "./empty-wwcTI107.mjs";
|
|
56
61
|
import { Fieldset } from "./components/fieldset/index.mjs";
|
|
57
62
|
import { FileUpload } from "./components/file-upload/index.mjs";
|
|
58
|
-
import { n as FLOAT_BUTTON_KEY, t as FloatButton } from "./float-button-
|
|
63
|
+
import { n as FLOAT_BUTTON_KEY, t as FloatButton } from "./float-button-BLIHnw2u.mjs";
|
|
59
64
|
import { FloatingPanel } from "./components/floating-panel/index.mjs";
|
|
60
65
|
import { FocusTrap } from "./components/focus-trap/index.mjs";
|
|
61
66
|
import { Format } from "./components/format/index.mjs";
|
|
62
67
|
import { Frame } from "./components/frame/index.mjs";
|
|
63
|
-
import { i as createForm, n as FormField, r as createField, t as Form } from "./form-
|
|
68
|
+
import { a as useField, i as createForm, n as FormField, o as useForm, r as createField, t as Form } from "./form-BTL9S1gn.mjs";
|
|
64
69
|
import { t as Grid } from "./grid-DNgTWYSL.mjs";
|
|
65
70
|
import { Highlight } from "./components/highlight/index.mjs";
|
|
66
71
|
import { HoverCard } from "./components/hover-card/index.mjs";
|
|
67
|
-
import { t as Icon } from "./icon-
|
|
68
|
-
import { t as Image } from "./image-
|
|
72
|
+
import { t as Icon } from "./icon-D7AeDq0M.mjs";
|
|
73
|
+
import { t as Image } from "./image-u_H4LtAC.mjs";
|
|
69
74
|
import { ImageCropper } from "./components/image-cropper/index.mjs";
|
|
70
|
-
import { t as ImageViewer } from "./image-viewer-
|
|
75
|
+
import { t as ImageViewer } from "./image-viewer-DzoEcVSn.mjs";
|
|
71
76
|
import { t as InputGroup } from "./input-group-DeKewnvZ.mjs";
|
|
72
77
|
import { JsonTreeView } from "./components/json-tree-view/index.mjs";
|
|
73
78
|
import { t as Kbd } from "./kbd-LXHpi4GM.mjs";
|
|
74
|
-
import { t as Layout } from "./layout-
|
|
79
|
+
import { t as Layout } from "./layout-GfxGYYhg.mjs";
|
|
75
80
|
import { t as Link } from "./link-CuNiatc7.mjs";
|
|
76
|
-
import { t as List } from "./list-
|
|
81
|
+
import { t as List } from "./list-BgEM9H3z.mjs";
|
|
77
82
|
import { Listbox } from "./components/listbox/index.mjs";
|
|
78
83
|
import { Marquee } from "./components/marquee/index.mjs";
|
|
79
84
|
import { t as Masonry } from "./masonry-B4-v4kJ0.mjs";
|
|
80
85
|
import { Menu } from "./components/menu/index.mjs";
|
|
81
|
-
import { t as Menubar } from "./menubar-
|
|
86
|
+
import { t as Menubar } from "./menubar-2MPo9w5z.mjs";
|
|
82
87
|
import { t as Meter } from "./meter-BgsJ2g-v.mjs";
|
|
83
88
|
import { NavigationMenu } from "./components/navigation-menu/index.mjs";
|
|
89
|
+
import { t as OrderList } from "./order-list-D3EhH7EX.mjs";
|
|
84
90
|
import { NumberInput } from "./components/number-input/index.mjs";
|
|
85
91
|
import { Pagination } from "./components/pagination/index.mjs";
|
|
86
92
|
import { PasswordInput } from "./components/password-input/index.mjs";
|
|
@@ -95,36 +101,45 @@ import { RadioGroup } from "./components/radio-group/index.mjs";
|
|
|
95
101
|
import { RatingGroup } from "./components/rating-group/index.mjs";
|
|
96
102
|
import { ScrollArea } from "./components/scroll-area/index.mjs";
|
|
97
103
|
import { SegmentGroup } from "./components/segment-group/index.mjs";
|
|
98
|
-
import { Select } from "./
|
|
104
|
+
import { n as Select, t as NativeSelect } from "./select-8ume4i2e.mjs";
|
|
99
105
|
import { t as Separator } from "./separator-4JWXConE.mjs";
|
|
100
106
|
import { SignaturePad } from "./components/signature-pad/index.mjs";
|
|
101
107
|
import { t as Skeleton } from "./skeleton-DOfOrlmL.mjs";
|
|
102
108
|
import { Slider } from "./components/slider/index.mjs";
|
|
103
|
-
import { t as SplitButton } from "./split-button-
|
|
109
|
+
import { t as SplitButton } from "./split-button-DnmVc_J0.mjs";
|
|
104
110
|
import { Splitter } from "./components/splitter/index.mjs";
|
|
105
111
|
import { t as Stack } from "./stack-DCKrejZp.mjs";
|
|
106
112
|
import { t as PageHeader } from "./page-header-DKpKUkTe.mjs";
|
|
107
|
-
import {
|
|
113
|
+
import { Spinner } from "./components/spinner/index.mjs";
|
|
108
114
|
import { t as Stat } from "./stat-5cTU1vyI.mjs";
|
|
109
115
|
import { Steps } from "./components/steps/index.mjs";
|
|
110
116
|
import { Swap } from "./components/swap/index.mjs";
|
|
111
117
|
import { Switch } from "./components/switch/index.mjs";
|
|
112
|
-
import { n as FlexRender, r as createColumnHelper, t as DataTable } from "./table-
|
|
118
|
+
import { n as FlexRender, r as createColumnHelper, t as DataTable } from "./table-BsdqRuvj.mjs";
|
|
113
119
|
import { Tabs } from "./components/tabs/index.mjs";
|
|
120
|
+
import { t as Terminal } from "./terminal-Dgw5JEz4.mjs";
|
|
114
121
|
import { TagsInput } from "./components/tags-input/index.mjs";
|
|
115
122
|
import { t as Textarea } from "./textarea-DzDc678j.mjs";
|
|
116
|
-
import { t as Timeline } from "./timeline-
|
|
123
|
+
import { t as Timeline } from "./timeline-1yPOTbtY.mjs";
|
|
117
124
|
import { Timer } from "./components/timer/index.mjs";
|
|
118
125
|
import { Toast, Toaster, createToaster } from "./components/toast/index.mjs";
|
|
119
126
|
import { Toc } from "./components/toc/index.mjs";
|
|
120
127
|
import { Toggle } from "./components/toggle/index.mjs";
|
|
128
|
+
import { t as Toolbar } from "./toolbar-SNwuRrJr.mjs";
|
|
121
129
|
import { t as Typography } from "./typography-Cygr9XaD.mjs";
|
|
122
|
-
import { t as Transfer } from "./transfer-
|
|
130
|
+
import { t as Transfer } from "./transfer-C0FLA8W1.mjs";
|
|
123
131
|
import { ToggleGroup } from "./components/toggle-group/index.mjs";
|
|
124
132
|
import { Tooltip } from "./components/tooltip/index.mjs";
|
|
125
133
|
import { Tour, useTour } from "./components/tour/index.mjs";
|
|
126
|
-
import { t as TreeSelect } from "./tree-select-
|
|
134
|
+
import { t as TreeSelect } from "./tree-select-CSYSYZDN.mjs";
|
|
127
135
|
import { TreeView } from "./components/tree-view/index.mjs";
|
|
136
|
+
import { t as User } from "./user-BjJSjDYV.mjs";
|
|
137
|
+
import { t as VirtualList } from "./virtual-list-_10ypBUP.mjs";
|
|
128
138
|
import { t as Watermark } from "./watermark-C2d3-EAM.mjs";
|
|
139
|
+
import { t as Spotlight } from "./spotlight-DMC5E1eS.mjs";
|
|
140
|
+
import { t as Dock } from "./dock-CKGRnXWu.mjs";
|
|
141
|
+
import { t as Browser } from "./browser-gmPTH6mJ.mjs";
|
|
142
|
+
import { t as Bento } from "./bento-BTvt7gsB.mjs";
|
|
143
|
+
import { t as Result } from "./result-4Oee2ndu.mjs";
|
|
129
144
|
export * from "@bysages/core";
|
|
130
|
-
export { Accordion, Affix, Ai,
|
|
145
|
+
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 };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as useComponentMessages } from "./messages-DNzA55pH.mjs";
|
|
1
2
|
import { injectComponentStyle } from "@bysages/core";
|
|
2
3
|
import "svelte/internal/disclose-version";
|
|
3
4
|
import * as $ from "svelte/internal/client";
|
|
@@ -128,12 +129,13 @@ var rest_excludes = /* @__PURE__ */ new Set([
|
|
|
128
129
|
"maxWidth",
|
|
129
130
|
"children"
|
|
130
131
|
]);
|
|
131
|
-
var root = $.from_html(`<div data-scope="layout" data-part="sider-resize" role="separator" aria-orientation="vertical"
|
|
132
|
+
var root = $.from_html(`<div data-scope="layout" data-part="sider-resize" role="separator" aria-orientation="vertical"></div>`);
|
|
132
133
|
var root_1 = $.from_html(`<aside><!> <!></aside>`);
|
|
133
134
|
function LayoutSider($$anchor, $$props) {
|
|
134
135
|
$.push($$props, true);
|
|
135
136
|
injectComponentStyle("layout");
|
|
136
137
|
let collapsed = $.prop($$props, "collapsed", 11, false), width = $.prop($$props, "width", 15, "16rem"), collapsedWidth = $.prop($$props, "collapsedWidth", 3, "3.5rem"), resizable = $.prop($$props, "resizable", 3, false), minWidth = $.prop($$props, "minWidth", 3, "12rem"), maxWidth = $.prop($$props, "maxWidth", 3, "24rem"), rest = $.rest_props($$props, rest_excludes);
|
|
138
|
+
const messages = useComponentMessages();
|
|
137
139
|
const layout = useLayout();
|
|
138
140
|
/** One step of the arrow-key resize, in px. */
|
|
139
141
|
const RESIZE_STEP = 16;
|
|
@@ -187,10 +189,11 @@ function LayoutSider($$anchor, $$props) {
|
|
|
187
189
|
var consequent = ($$anchor) => {
|
|
188
190
|
var div = root();
|
|
189
191
|
$.set_attribute(div, "tabindex", 0);
|
|
190
|
-
$.template_effect(($0) => {
|
|
192
|
+
$.template_effect(($0, $1) => {
|
|
191
193
|
$.set_attribute(div, "data-dragging", $.get(dragging) ? "" : void 0);
|
|
192
|
-
$.set_attribute(div, "aria-
|
|
193
|
-
|
|
194
|
+
$.set_attribute(div, "aria-label", $0);
|
|
195
|
+
$.set_attribute(div, "aria-valuenow", $1);
|
|
196
|
+
}, [() => messages().sidebar.resize, () => $.get(rail) ? Math.round($.get(rail).getBoundingClientRect().width) : 0]);
|
|
194
197
|
$.delegated("pointerdown", div, onPointerDown);
|
|
195
198
|
$.delegated("pointermove", div, onPointerMove);
|
|
196
199
|
$.delegated("pointerup", div, onPointerUp);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { n as useConfig } from "./context-Da-QMQRq.mjs";
|
|
2
|
+
import { resolveComponentMessages } from "@bysages/core";
|
|
3
|
+
//#region src/components/config-provider/messages.ts
|
|
4
|
+
/** Resolve the nearest provider's locale and overrides into one complete
|
|
5
|
+
* message table; calling the selector keeps each read live with provider
|
|
6
|
+
* props. */
|
|
7
|
+
function useComponentMessages() {
|
|
8
|
+
const config = useConfig();
|
|
9
|
+
return () => resolveComponentMessages(config.locale ?? "en", config.messages);
|
|
10
|
+
}
|
|
11
|
+
/** Substitute `{name}` leaves with caller values; unknown leaves stay
|
|
12
|
+
* visible so a typo cannot turn an accessible name silent. */
|
|
13
|
+
function formatMessage(template, values) {
|
|
14
|
+
return template.replace(/\{(\w+)\}/g, (match, key) => key in values ? String(values[key]) : match);
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { useComponentMessages as n, formatMessage as t };
|