@bysages/react 0.4.3 → 0.5.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/dist/ai-B3vbpXlK.mjs +309 -0
- package/dist/ai-prompt-input-k34KssHJ.mjs +401 -0
- package/dist/{ai-response-CjjjprMY.mjs → ai-response-DTxdL5rX.mjs} +9 -11
- package/dist/{chevron-BA7kV9m7.mjs → chevron-DnImlNip.mjs} +2 -3
- package/dist/components/accordion/index.d.mts +1 -2
- package/dist/components/accordion/index.mjs +3 -4
- package/dist/components/affix/index.d.mts +1 -2
- package/dist/components/affix/index.mjs +2 -3
- package/dist/components/ai/index.d.mts +107 -2
- package/dist/components/ai/index.mjs +7 -82
- package/dist/components/ai-action/index.d.mts +0 -2
- package/dist/components/ai-action/index.mjs +2 -3
- package/dist/components/ai-attachments/index.d.mts +0 -2
- package/dist/components/ai-attachments/index.mjs +4 -5
- package/dist/components/ai-message/index.d.mts +2 -14
- package/dist/components/ai-message/index.mjs +5 -4
- package/dist/components/ai-prompt-input/index.d.mts +14 -18
- package/dist/components/ai-prompt-input/index.mjs +1 -126
- package/dist/components/ai-reasoning/index.d.mts +0 -2
- package/dist/components/ai-reasoning/index.mjs +3 -4
- package/dist/components/ai-response/index.d.mts +1 -3
- package/dist/components/ai-response/index.mjs +1 -2
- package/dist/components/ai-source/index.d.mts +0 -2
- package/dist/components/ai-source/index.mjs +2 -3
- package/dist/components/ai-suggestion/index.d.mts +0 -2
- package/dist/components/ai-suggestion/index.mjs +2 -3
- package/dist/components/ai-tool/index.d.mts +2 -24
- package/dist/components/ai-tool/index.mjs +46 -14
- package/dist/components/alert/index.d.mts +1 -2
- package/dist/components/alert/index.mjs +2 -3
- package/dist/components/angle-slider/index.d.mts +1 -2
- package/dist/components/angle-slider/index.mjs +2 -3
- package/dist/components/aspect-ratio/index.d.mts +1 -2
- package/dist/components/aspect-ratio/index.mjs +2 -3
- package/dist/components/autocomplete/index.d.mts +1 -2
- package/dist/components/autocomplete/index.mjs +3 -4
- package/dist/components/avatar/index.d.mts +13 -4
- package/dist/components/avatar/index.mjs +20 -6
- package/dist/components/avatar-group/index.d.mts +1 -2
- package/dist/components/avatar-group/index.mjs +2 -3
- package/dist/components/back-top/index.d.mts +1 -2
- package/dist/components/back-top/index.mjs +3 -4
- package/dist/components/badge/index.d.mts +1 -2
- package/dist/components/badge/index.mjs +2 -3
- package/dist/components/banner/index.d.mts +17 -4
- package/dist/components/banner/index.mjs +21 -6
- package/dist/components/bento/index.d.mts +1 -3
- package/dist/components/bento/index.mjs +1 -2
- package/dist/components/block-ui/index.d.mts +1 -2
- package/dist/components/block-ui/index.mjs +2 -3
- package/dist/components/breadcrumb/index.d.mts +16 -3
- package/dist/components/breadcrumb/index.mjs +22 -5
- package/dist/components/browser/index.d.mts +1 -3
- package/dist/components/browser/index.mjs +1 -2
- package/dist/components/button/index.d.mts +1 -2
- package/dist/components/button/index.mjs +2 -3
- package/dist/components/button-group/index.d.mts +1 -2
- package/dist/components/button-group/index.mjs +1 -2
- package/dist/components/calendar/index.d.mts +1 -2
- package/dist/components/calendar/index.mjs +3 -4
- package/dist/components/card/index.d.mts +1 -3
- package/dist/components/card/index.mjs +1 -2
- package/dist/components/carousel/index.d.mts +1 -2
- package/dist/components/carousel/index.mjs +3 -4
- package/dist/components/cascade-select/index.d.mts +1 -2
- package/dist/components/cascade-select/index.mjs +6 -7
- package/dist/components/checkbox/index.d.mts +1 -2
- package/dist/components/checkbox/index.mjs +3 -4
- package/dist/components/checkbox-group/index.d.mts +1 -2
- package/dist/components/checkbox-group/index.mjs +3 -4
- package/dist/components/chip/index.d.mts +1 -2
- package/dist/components/chip/index.mjs +2 -3
- package/dist/components/client-only/index.d.mts +0 -2
- package/dist/components/client-only/index.mjs +2 -3
- package/dist/components/clipboard/index.d.mts +1 -2
- package/dist/components/clipboard/index.mjs +3 -4
- package/dist/components/collapsible/index.d.mts +1 -2
- package/dist/components/collapsible/index.mjs +3 -4
- package/dist/components/collection/index.mjs +1 -2
- package/dist/components/color-picker/index.d.mts +3 -2
- package/dist/components/color-picker/index.mjs +38 -25
- package/dist/components/combobox/index.d.mts +1 -2
- package/dist/components/combobox/index.mjs +3 -4
- package/dist/components/command/index.d.mts +1 -2
- package/dist/components/command/index.mjs +3 -4
- package/dist/components/comment/index.d.mts +1 -2
- package/dist/components/comment/index.mjs +2 -3
- package/dist/components/config-provider/index.d.mts +1 -2
- package/dist/components/config-provider/index.mjs +2 -3
- package/dist/components/container/index.d.mts +1 -2
- package/dist/components/container/index.mjs +2 -3
- package/dist/components/data-view/index.d.mts +1 -2
- package/dist/components/data-view/index.mjs +3 -4
- package/dist/components/date-input/index.d.mts +0 -2
- package/dist/components/date-input/index.mjs +2 -3
- package/dist/components/date-picker/index.d.mts +0 -2
- package/dist/components/date-picker/index.mjs +3 -4
- package/dist/components/deferred-content/index.d.mts +1 -2
- package/dist/components/deferred-content/index.mjs +2 -3
- package/dist/components/descriptions/index.d.mts +1 -2
- package/dist/components/descriptions/index.mjs +2 -3
- package/dist/components/dialog/index.d.mts +31 -4
- package/dist/components/dialog/index.mjs +41 -10
- package/dist/components/dock/index.d.mts +1 -3
- package/dist/components/dock/index.mjs +1 -2
- package/dist/components/download-trigger/index.d.mts +0 -2
- package/dist/components/download-trigger/index.mjs +2 -3
- package/dist/components/drawer/index.d.mts +1 -2
- package/dist/components/drawer/index.mjs +3 -4
- package/dist/components/dynamic-input/index.d.mts +1 -2
- package/dist/components/dynamic-input/index.mjs +5 -6
- package/dist/components/editable/index.d.mts +1 -2
- package/dist/components/editable/index.mjs +3 -4
- package/dist/components/ellipsis/index.d.mts +1 -2
- package/dist/components/ellipsis/index.mjs +2 -3
- package/dist/components/empty/index.d.mts +1 -3
- package/dist/components/empty/index.mjs +1 -2
- package/dist/components/field/index.d.mts +1 -2
- package/dist/components/field/index.mjs +2 -3
- package/dist/components/fieldset/index.d.mts +1 -2
- package/dist/components/fieldset/index.mjs +2 -3
- package/dist/components/file-upload/index.d.mts +1 -2
- package/dist/components/file-upload/index.mjs +4 -9
- package/dist/components/float-button/index.d.mts +23 -3
- package/dist/components/float-button/index.mjs +30 -5
- package/dist/components/floating-panel/index.d.mts +1 -2
- package/dist/components/floating-panel/index.mjs +8 -4
- package/dist/components/focus-trap/index.d.mts +0 -2
- package/dist/components/focus-trap/index.mjs +2 -3
- package/dist/components/form/index.d.mts +0 -2
- package/dist/components/form/index.mjs +2 -3
- package/dist/components/format/index.d.mts +1 -3
- package/dist/components/format/index.mjs +1 -2
- package/dist/components/frame/index.d.mts +1 -3
- package/dist/components/frame/index.mjs +3 -4
- package/dist/components/grid/index.d.mts +1 -2
- package/dist/components/grid/index.mjs +2 -3
- package/dist/components/highlight/index.d.mts +1 -3
- package/dist/components/highlight/index.mjs +2 -3
- package/dist/components/hover-card/index.d.mts +1 -2
- package/dist/components/hover-card/index.mjs +2 -3
- package/dist/components/icon/index.d.mts +1 -2
- package/dist/components/icon/index.mjs +2 -3
- package/dist/components/image/index.d.mts +1 -2
- package/dist/components/image/index.mjs +3 -4
- package/dist/components/image-cropper/index.d.mts +1 -2
- package/dist/components/image-cropper/index.mjs +2 -3
- package/dist/components/image-viewer/index.d.mts +1 -1
- package/dist/components/image-viewer/index.mjs +1 -2
- package/dist/components/input/index.d.mts +1 -3
- package/dist/components/input/index.mjs +1 -2
- package/dist/components/input-group/index.d.mts +1 -3
- package/dist/components/input-group/index.mjs +1 -2
- package/dist/components/json-tree-view/index.d.mts +1 -2
- package/dist/components/json-tree-view/index.mjs +3 -4
- package/dist/components/kbd/index.d.mts +1 -2
- package/dist/components/kbd/index.mjs +2 -3
- package/dist/components/layout/index.d.mts +1 -2
- package/dist/components/layout/index.mjs +19 -15
- package/dist/components/link/index.d.mts +1 -2
- package/dist/components/link/index.mjs +2 -3
- package/dist/components/list/index.d.mts +1 -2
- package/dist/components/list/index.mjs +1 -2
- package/dist/components/listbox/index.d.mts +0 -2
- package/dist/components/listbox/index.mjs +3 -4
- package/dist/components/marquee/index.d.mts +1 -2
- package/dist/components/marquee/index.mjs +2 -3
- package/dist/components/masonry/index.d.mts +1 -2
- package/dist/components/masonry/index.mjs +2 -3
- package/dist/components/media-player/index.d.mts +1 -1
- package/dist/components/media-player/index.mjs +1 -2
- package/dist/components/mentions/index.d.mts +2 -2
- package/dist/components/mentions/index.mjs +1 -2
- package/dist/components/menu/index.d.mts +1 -2
- package/dist/components/menu/index.mjs +3 -4
- package/dist/components/menubar/index.d.mts +1 -2
- package/dist/components/menubar/index.mjs +2 -3
- package/dist/components/meter/index.d.mts +1 -3
- package/dist/components/meter/index.mjs +1 -2
- package/dist/components/navigation-menu/index.d.mts +1 -2
- package/dist/components/navigation-menu/index.mjs +2 -3
- package/dist/components/number-input/index.d.mts +1 -2
- package/dist/components/number-input/index.mjs +3 -4
- package/dist/components/order-list/index.d.mts +1 -2
- package/dist/components/order-list/index.mjs +4 -5
- package/dist/components/page-header/index.d.mts +1 -3
- package/dist/components/page-header/index.mjs +1 -2
- package/dist/components/pagination/index.d.mts +3 -4
- package/dist/components/pagination/index.mjs +3 -4
- package/dist/components/password-input/index.d.mts +1 -2
- package/dist/components/password-input/index.mjs +3 -4
- package/dist/components/pin-input/index.d.mts +1 -2
- package/dist/components/pin-input/index.mjs +2 -3
- package/dist/components/popconfirm/index.d.mts +2 -3
- package/dist/components/popconfirm/index.mjs +2 -3
- package/dist/components/popover/index.d.mts +1 -1
- package/dist/components/popover/index.mjs +3 -4
- package/dist/components/presence/index.d.mts +0 -2
- package/dist/components/presence/index.mjs +2 -3
- package/dist/components/progress/index.d.mts +1 -2
- package/dist/components/progress/index.mjs +2 -3
- package/dist/components/progress-group/index.d.mts +1 -2
- package/dist/components/progress-group/index.mjs +2 -3
- package/dist/components/qr-code/index.d.mts +1 -2
- package/dist/components/qr-code/index.mjs +2 -3
- package/dist/components/radio-group/index.d.mts +1 -2
- package/dist/components/radio-group/index.mjs +2 -3
- package/dist/components/rating-group/index.d.mts +1 -2
- package/dist/components/rating-group/index.mjs +3 -4
- package/dist/components/result/index.d.mts +1 -2
- package/dist/components/result/index.mjs +2 -3
- package/dist/components/scroll-area/index.d.mts +8 -3
- package/dist/components/scroll-area/index.mjs +7 -6
- package/dist/components/segment-group/index.d.mts +1 -2
- package/dist/components/segment-group/index.mjs +2 -3
- package/dist/components/select/index.d.mts +1 -1
- package/dist/components/select/index.mjs +1 -2
- package/dist/components/separator/index.d.mts +1 -2
- package/dist/components/separator/index.mjs +2 -3
- package/dist/components/signature-pad/index.d.mts +1 -2
- package/dist/components/signature-pad/index.mjs +3 -4
- package/dist/components/skeleton/index.d.mts +1 -2
- package/dist/components/skeleton/index.mjs +2 -3
- package/dist/components/slider/index.d.mts +1 -2
- package/dist/components/slider/index.mjs +2 -3
- package/dist/components/spinner/index.d.mts +1 -2
- package/dist/components/spinner/index.mjs +3 -4
- package/dist/components/split-button/index.d.mts +1 -2
- package/dist/components/split-button/index.mjs +4 -5
- package/dist/components/splitter/index.d.mts +1 -2
- package/dist/components/splitter/index.mjs +2 -3
- package/dist/components/spotlight/index.d.mts +1 -2
- package/dist/components/spotlight/index.mjs +2 -3
- package/dist/components/stack/index.d.mts +1 -2
- package/dist/components/stack/index.mjs +2 -3
- package/dist/components/stat/index.d.mts +1 -3
- package/dist/components/stat/index.mjs +1 -2
- package/dist/components/steps/index.d.mts +0 -2
- package/dist/components/steps/index.mjs +2 -3
- package/dist/components/swap/index.d.mts +1 -2
- package/dist/components/swap/index.mjs +3 -4
- package/dist/components/switch/index.d.mts +1 -2
- package/dist/components/switch/index.mjs +2 -3
- package/dist/components/table/index.d.mts +0 -2
- package/dist/components/table/index.mjs +5 -6
- package/dist/components/tabs/index.d.mts +9 -3
- package/dist/components/tabs/index.mjs +36 -8
- package/dist/components/tag/index.d.mts +1 -2
- package/dist/components/tag/index.mjs +3 -4
- package/dist/components/tags-input/index.d.mts +1 -2
- package/dist/components/tags-input/index.mjs +3 -4
- package/dist/components/terminal/index.d.mts +4 -3
- package/dist/components/terminal/index.mjs +8 -7
- package/dist/components/textarea/index.d.mts +1 -2
- package/dist/components/textarea/index.mjs +2 -3
- package/dist/components/timeline/index.d.mts +1 -2
- package/dist/components/timeline/index.mjs +1 -2
- package/dist/components/timer/index.d.mts +1 -2
- package/dist/components/timer/index.mjs +2 -3
- package/dist/components/toast/index.d.mts +0 -2
- package/dist/components/toast/index.mjs +18 -6
- package/dist/components/toc/index.d.mts +1 -2
- package/dist/components/toc/index.mjs +2 -3
- package/dist/components/toggle/index.d.mts +1 -2
- package/dist/components/toggle/index.mjs +2 -3
- package/dist/components/toggle-group/index.d.mts +1 -2
- package/dist/components/toggle-group/index.mjs +3 -4
- package/dist/components/toolbar/index.d.mts +1 -2
- package/dist/components/toolbar/index.mjs +2 -3
- package/dist/components/tooltip/index.d.mts +1 -2
- package/dist/components/tooltip/index.mjs +2 -3
- package/dist/components/tour/index.d.mts +0 -2
- package/dist/components/tour/index.mjs +2 -3
- package/dist/components/transfer/index.d.mts +1 -2
- package/dist/components/transfer/index.mjs +5 -6
- package/dist/components/tree-select/index.d.mts +2 -3
- package/dist/components/tree-select/index.mjs +5 -6
- package/dist/components/tree-view/index.d.mts +15 -5
- package/dist/components/tree-view/index.mjs +30 -12
- package/dist/components/typography/index.d.mts +1 -3
- package/dist/components/typography/index.mjs +1 -2
- package/dist/components/user/index.d.mts +1 -2
- package/dist/components/user/index.mjs +2 -3
- package/dist/components/virtual-list/index.d.mts +1 -2
- package/dist/components/virtual-list/index.mjs +2 -3
- package/dist/components/watermark/index.d.mts +1 -2
- package/dist/components/watermark/index.mjs +2 -3
- package/dist/{family-DE_GQeeM.mjs → family-Co1YsN4N.mjs} +1 -2
- package/dist/generative/index.d.mts +0 -2
- package/dist/generative/index.mjs +146 -106
- package/dist/{icon-Cri0-7-x.mjs → icon-C9udWCyz.mjs} +1 -2
- package/dist/{id-C37UYLwJ.mjs → id-Ctic_3o8.mjs} +1 -2
- package/dist/{image-viewer-D4FuYrk6.mjs → image-viewer-BYiXpi1X.mjs} +21 -26
- package/dist/{index-Eu-Bttta.d.mts → index-BVdkcSSY.d.mts} +0 -2
- package/dist/index-CjO4Ggf0.d.mts +115 -0
- package/dist/{index-Dj8S4eyJ.d.mts → index-D4C52fI7.d.mts} +0 -4
- package/dist/{index-BcRdWGY-.d.mts → index-DIZEFqJM.d.mts} +0 -8
- package/dist/{index-Bbg4heDO.d.mts → index-DcpvCyt6.d.mts} +63 -18
- package/dist/{index-D_iKc2Uw.d.mts → index-DczfbPCg.d.mts} +0 -4
- package/dist/index-lCsvE2Vl.d.mts +37 -0
- package/dist/index.d.mts +14 -14
- package/dist/index.mjs +10 -10
- package/dist/{input-BDpQ0e6G.mjs → input-YRjehBhU.mjs} +3 -5
- package/dist/{media-player-C0WcjVI-.mjs → media-player-CO2Cczl-.mjs} +7 -12
- package/dist/mentions-De7ChJbl.mjs +335 -0
- package/dist/{messages-1jJWtaYU.mjs → messages-B6n0lVyt.mjs} +1 -2
- package/dist/{select-D_soVdWK.mjs → select-DQ5669_K.mjs} +4 -6
- package/package.json +17 -17
- package/dist/index-B4twHAQC.d.mts +0 -10456
- package/dist/mentions-BwnyvdXz.mjs +0 -213
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { a as ToolValue } from "./index-lCsvE2Vl.mjs";
|
|
2
|
+
import { HTMLAttributes, ReactNode } from "react";
|
|
3
|
+
import { CustomContentUIPart, DataUIPart, DynamicToolUIPart, FileUIPart, ReasoningFileUIPart, ReasoningUIPart, SourceDocumentUIPart, SourceUrlUIPart, StepStartUIPart, TextUIPart, ToolUIPart, UIDataTypes, UIMessage, UITools } from "ai";
|
|
4
|
+
type AiSdkMessage = UIMessage<unknown, UIDataTypes, UITools>;
|
|
5
|
+
type AiSdkMessagePart<MESSAGE extends AiSdkMessage = AiSdkMessage> = MESSAGE["parts"][number];
|
|
6
|
+
type AiSdkTextPart<MESSAGE extends AiSdkMessage = AiSdkMessage> = Extract<AiSdkMessagePart<MESSAGE>, TextUIPart>;
|
|
7
|
+
type AiSdkCustomPart<MESSAGE extends AiSdkMessage = AiSdkMessage> = Extract<AiSdkMessagePart<MESSAGE>, CustomContentUIPart>;
|
|
8
|
+
type AiSdkReasoningPart<MESSAGE extends AiSdkMessage = AiSdkMessage> = Extract<AiSdkMessagePart<MESSAGE>, ReasoningUIPart>;
|
|
9
|
+
type AiSdkReasoningFilePart<MESSAGE extends AiSdkMessage = AiSdkMessage> = Extract<AiSdkMessagePart<MESSAGE>, ReasoningFileUIPart>;
|
|
10
|
+
type AiSdkToolPart<MESSAGE extends AiSdkMessage = AiSdkMessage> = Extract<AiSdkMessagePart<MESSAGE>, ToolUIPart<UITools> | DynamicToolUIPart>;
|
|
11
|
+
type AiSdkSourceUrlPart<MESSAGE extends AiSdkMessage = AiSdkMessage> = Extract<AiSdkMessagePart<MESSAGE>, SourceUrlUIPart>;
|
|
12
|
+
type AiSdkSourceDocumentPart<MESSAGE extends AiSdkMessage = AiSdkMessage> = Extract<AiSdkMessagePart<MESSAGE>, SourceDocumentUIPart>;
|
|
13
|
+
type AiSdkFilePart<MESSAGE extends AiSdkMessage = AiSdkMessage> = Extract<AiSdkMessagePart<MESSAGE>, FileUIPart>;
|
|
14
|
+
type AiSdkDataPart<MESSAGE extends AiSdkMessage = AiSdkMessage> = Extract<AiSdkMessagePart<MESSAGE>, DataUIPart<UIDataTypes>>;
|
|
15
|
+
type AiSdkStepStartPart<MESSAGE extends AiSdkMessage = AiSdkMessage> = Extract<AiSdkMessagePart<MESSAGE>, StepStartUIPart>;
|
|
16
|
+
type AiSdkMediaPart<MESSAGE extends AiSdkMessage = AiSdkMessage> = AiSdkFilePart<MESSAGE> | AiSdkReasoningFilePart<MESSAGE>;
|
|
17
|
+
type AiMediaKind = "image" | "audio" | "video" | "file";
|
|
18
|
+
type AiToolDisplay = {
|
|
19
|
+
name: string;
|
|
20
|
+
status: "pending" | "running" | "completed" | "error" | "denied";
|
|
21
|
+
approval?: "required" | "approved" | "denied";
|
|
22
|
+
input?: ToolValue;
|
|
23
|
+
output?: ToolValue;
|
|
24
|
+
};
|
|
25
|
+
interface AiPartsSlots<MESSAGE extends AiSdkMessage = AiSdkMessage> {
|
|
26
|
+
default?: (props: {
|
|
27
|
+
message: MESSAGE;
|
|
28
|
+
}) => ReactNode;
|
|
29
|
+
text?: (props: {
|
|
30
|
+
part: AiSdkTextPart<MESSAGE>;
|
|
31
|
+
index: number;
|
|
32
|
+
}) => ReactNode;
|
|
33
|
+
custom?: (props: {
|
|
34
|
+
part: AiSdkCustomPart<MESSAGE>;
|
|
35
|
+
index: number;
|
|
36
|
+
}) => ReactNode;
|
|
37
|
+
reasoning?: (props: {
|
|
38
|
+
part: AiSdkReasoningPart<MESSAGE>;
|
|
39
|
+
index: number;
|
|
40
|
+
}) => ReactNode;
|
|
41
|
+
reasoningFile?: (props: {
|
|
42
|
+
part: AiSdkReasoningFilePart<MESSAGE>;
|
|
43
|
+
index: number;
|
|
44
|
+
}) => ReactNode;
|
|
45
|
+
tool?: (props: {
|
|
46
|
+
part: AiSdkToolPart<MESSAGE>;
|
|
47
|
+
index: number;
|
|
48
|
+
}) => ReactNode;
|
|
49
|
+
sourceUrl?: (props: {
|
|
50
|
+
part: AiSdkSourceUrlPart<MESSAGE>;
|
|
51
|
+
index: number;
|
|
52
|
+
}) => ReactNode;
|
|
53
|
+
sourceDocument?: (props: {
|
|
54
|
+
part: AiSdkSourceDocumentPart<MESSAGE>;
|
|
55
|
+
index: number;
|
|
56
|
+
}) => ReactNode;
|
|
57
|
+
file?: (props: {
|
|
58
|
+
part: AiSdkFilePart<MESSAGE>;
|
|
59
|
+
index: number;
|
|
60
|
+
}) => ReactNode;
|
|
61
|
+
data?: (props: {
|
|
62
|
+
part: AiSdkDataPart<MESSAGE>;
|
|
63
|
+
index: number;
|
|
64
|
+
}) => ReactNode;
|
|
65
|
+
stepStart?: (props: {
|
|
66
|
+
part: AiSdkStepStartPart<MESSAGE>;
|
|
67
|
+
index: number;
|
|
68
|
+
}) => ReactNode;
|
|
69
|
+
fallback?: (props: {
|
|
70
|
+
part: AiSdkMessagePart<MESSAGE>;
|
|
71
|
+
index: number;
|
|
72
|
+
}) => ReactNode;
|
|
73
|
+
}
|
|
74
|
+
interface AiPartsProps<MESSAGE extends AiSdkMessage = AiSdkMessage> {
|
|
75
|
+
message: MESSAGE;
|
|
76
|
+
highlighter?: (code: string, lang?: string) => string;
|
|
77
|
+
slots?: AiPartsSlots<MESSAGE>;
|
|
78
|
+
onApprove?: (event: {
|
|
79
|
+
part: AiSdkToolPart<MESSAGE>;
|
|
80
|
+
index: number;
|
|
81
|
+
}) => void;
|
|
82
|
+
onDeny?: (event: {
|
|
83
|
+
part: AiSdkToolPart<MESSAGE>;
|
|
84
|
+
index: number;
|
|
85
|
+
}) => void;
|
|
86
|
+
}
|
|
87
|
+
interface AiMediaProps<MESSAGE extends AiSdkMessage = AiSdkMessage> {
|
|
88
|
+
part?: AiSdkMediaPart<MESSAGE>;
|
|
89
|
+
mediaType?: string;
|
|
90
|
+
url?: string;
|
|
91
|
+
filename?: string;
|
|
92
|
+
alt?: string;
|
|
93
|
+
}
|
|
94
|
+
declare function toolPartDisplay<MESSAGE extends AiSdkMessage = AiSdkMessage>(part: AiSdkToolPart<MESSAGE>): AiToolDisplay;
|
|
95
|
+
declare const AiMedia: ((props: AiMediaProps) => import("react").JSX.Element | null) & {
|
|
96
|
+
Root: (props: AiMediaProps) => import("react").JSX.Element | null;
|
|
97
|
+
};
|
|
98
|
+
declare function AiPartsRenderer<MESSAGE extends AiSdkMessage>(props: AiPartsProps<MESSAGE>): string | number | bigint | true | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element;
|
|
99
|
+
declare const AiParts: typeof AiPartsRenderer & {
|
|
100
|
+
Root: typeof AiPartsRenderer;
|
|
101
|
+
};
|
|
102
|
+
/** Whose stroke this is — the user's words sit in a recessed bubble,
|
|
103
|
+
* the assistant speaks flat on the paper. The message type follows the
|
|
104
|
+
* application's AI SDK `UIMessage` contract. */
|
|
105
|
+
interface MessageProps<MESSAGE extends AiSdkMessage = AiSdkMessage> extends HTMLAttributes<HTMLElement> {
|
|
106
|
+
role?: "user" | "assistant" | "system";
|
|
107
|
+
/** The AI SDK message; its id and role become the article identity. */
|
|
108
|
+
message?: MESSAGE;
|
|
109
|
+
children?: ReactNode;
|
|
110
|
+
}
|
|
111
|
+
declare function MessageImpl<MESSAGE extends AiSdkMessage>({ message, role: roleProp, children, ...rest }: MessageProps<MESSAGE>): import("react").JSX.Element;
|
|
112
|
+
declare const Message: typeof MessageImpl & {
|
|
113
|
+
Root: typeof MessageImpl;
|
|
114
|
+
};
|
|
115
|
+
export { toolPartDisplay as C, AiToolDisplay as S, AiSdkSourceDocumentPart as _, AiMediaProps as a, AiSdkTextPart as b, AiPartsSlots as c, AiSdkFilePart as d, AiSdkMediaPart as f, AiSdkReasoningPart as g, AiSdkReasoningFilePart as h, AiMediaKind as i, AiSdkCustomPart as l, AiSdkMessagePart as m, MessageProps as n, AiParts as o, AiSdkMessage as p, AiMedia as r, AiPartsProps as s, Message as t, AiSdkDataPart as u, AiSdkSourceUrlPart as v, AiSdkToolPart as x, AiSdkStepStartPart as y };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Dialog } from "./components/dialog/index.mjs";
|
|
2
2
|
import { ComponentProps, ReactNode } from "react";
|
|
3
|
-
//#region src/components/image-viewer/preview.d.ts
|
|
4
3
|
interface ImageViewerPreviewProps extends Omit<ComponentProps<"span">, "children"> {
|
|
5
4
|
/** Visible beside the affordance over custom content. */
|
|
6
5
|
label?: string;
|
|
@@ -11,8 +10,6 @@ interface ImageViewerPreviewProps extends Omit<ComponentProps<"span">, "children
|
|
|
11
10
|
/** The default doorway is the curated preview icon; custom content keeps
|
|
12
11
|
* that icon as its hover and focus affordance. */
|
|
13
12
|
declare function ImageViewerPreview({ label, children, "data-part": dataPart, ...rest }: ImageViewerPreviewProps): import("react").JSX.Element;
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region src/components/image-viewer/index.d.ts
|
|
16
13
|
/**
|
|
17
14
|
* Opens the full lightbox from a curated icon by default, or from any
|
|
18
15
|
* wrapped button, image or other doorway. Zoom, rotation, Escape and the scrim
|
|
@@ -37,5 +34,4 @@ declare function ImageViewerImpl({ src, alt, open, zoomable, width, height, chil
|
|
|
37
34
|
declare const ImageViewer: typeof ImageViewerImpl & typeof Dialog & {
|
|
38
35
|
Preview: typeof ImageViewerPreview;
|
|
39
36
|
};
|
|
40
|
-
//#endregion
|
|
41
37
|
export { ImageViewerProps as n, ImageViewer as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, HTMLAttributes, InputHTMLAttributes, ReactNode } from "react";
|
|
2
|
-
//#region src/components/media-player/parts.d.ts
|
|
3
2
|
type MediaPartProps = HTMLAttributes<HTMLElement>;
|
|
4
3
|
type ButtonPartProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
5
4
|
label?: string;
|
|
@@ -34,8 +33,6 @@ declare function PipButton({ label, ...props }: ButtonPartProps): import("react"
|
|
|
34
33
|
declare function FullscreenButton({ label, ...props }: MediaPartProps & {
|
|
35
34
|
label?: string;
|
|
36
35
|
}): import("react").JSX.Element;
|
|
37
|
-
//#endregion
|
|
38
|
-
//#region src/components/media-player/use-media-controls.d.ts
|
|
39
36
|
/** One alternative encoding offered to the browser before playback. */
|
|
40
37
|
interface MediaSourceOption {
|
|
41
38
|
src: string;
|
|
@@ -52,8 +49,6 @@ interface MediaTextTrackOption {
|
|
|
52
49
|
/** A compact clock for player chrome: hours only when the media asks
|
|
53
50
|
* for them, stable digits so the time never jitters the controls. */
|
|
54
51
|
declare function formatMediaTime(seconds: number): string;
|
|
55
|
-
//#endregion
|
|
56
|
-
//#region src/components/media-player/shell.d.ts
|
|
57
52
|
interface MediaPlayerProps extends Omit<HTMLAttributes<HTMLDivElement>, "onPlay" | "onPause" | "onEnded" | "onTimeUpdate" | "onVolumeChange" | "onRateChange" | "onError"> {
|
|
58
53
|
label?: string;
|
|
59
54
|
src?: string;
|
|
@@ -77,8 +72,6 @@ interface MediaPlayerProps extends Omit<HTMLAttributes<HTMLDivElement>, "onPlay"
|
|
|
77
72
|
onRatechange?: (event: Event) => void;
|
|
78
73
|
onError?: (event: Event) => void;
|
|
79
74
|
}
|
|
80
|
-
//#endregion
|
|
81
|
-
//#region src/components/media-player/index.d.ts
|
|
82
75
|
/** Audio and video share one instrument: the same state, the same keys,
|
|
83
76
|
* and the same control rhythm, while each face keeps its native element's
|
|
84
77
|
* own semantics. The parts — Root, Stage, Media, Controls, PlayButton,
|
|
@@ -111,5 +104,4 @@ declare const Video: ((props: MediaPlayerProps) => import("react").JSX.Element)
|
|
|
111
104
|
PipButton: typeof PipButton;
|
|
112
105
|
FullscreenButton: typeof FullscreenButton;
|
|
113
106
|
};
|
|
114
|
-
//#endregion
|
|
115
107
|
export { MediaTextTrackOption as a, MediaSourceOption as i, Video as n, formatMediaTime as o, MediaPlayerProps as r, Audio as t };
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import { t as Popover } from "./index-
|
|
1
|
+
import { t as Popover } from "./index-BVdkcSSY.mjs";
|
|
2
2
|
import { HTMLAttributes } from "react";
|
|
3
|
-
|
|
3
|
+
type MentionCommitKey = "Enter" | "Tab" | " ";
|
|
4
4
|
interface UseMentionsOptions {
|
|
5
|
-
/** The candidates offered once
|
|
5
|
+
/** The candidates offered once a trigger character is typed. */
|
|
6
6
|
items: MentionEntry[];
|
|
7
7
|
/** The character that summons the candidates. */
|
|
8
8
|
trigger?: string;
|
|
9
|
+
/** One or more summoning characters; the longest token closest to the
|
|
10
|
+
* caret wins when several triggers are active. */
|
|
11
|
+
triggers?: string | string[];
|
|
12
|
+
/** Keys that choose the highlighted candidate. */
|
|
13
|
+
commitKeys?: MentionCommitKey[];
|
|
9
14
|
}
|
|
10
15
|
interface UseMentionsHandlers {
|
|
11
16
|
/** The text the field holds right now — read at keystroke time, never
|
|
@@ -13,6 +18,14 @@ interface UseMentionsHandlers {
|
|
|
13
18
|
getText: () => string;
|
|
14
19
|
/** Writes the field's next text: a mention inserted at the token. */
|
|
15
20
|
setText: (value: string) => void;
|
|
21
|
+
/** The absolute text offset of the field caret; a rich editor supplies this.
|
|
22
|
+
* A textarea is read from its own selection when omitted. */
|
|
23
|
+
getCaret?: () => number | undefined;
|
|
24
|
+
/** Called before insertion. Return `false` to record the choice without
|
|
25
|
+
* rewriting composer text — useful for slash commands and context chips. */
|
|
26
|
+
select?: (entry: MentionEntry) => boolean | void;
|
|
27
|
+
/** Replaces default insertion so rich editors can commit their own token. */
|
|
28
|
+
commit?: (entry: MentionEntry) => void;
|
|
16
29
|
}
|
|
17
30
|
/** Whatever carries a key press — a native KeyboardEvent or a React
|
|
18
31
|
* synthetic one; the detector only needs the key's name and the power
|
|
@@ -21,7 +34,7 @@ interface MentionKeyEvent {
|
|
|
21
34
|
key: string;
|
|
22
35
|
preventDefault: () => void;
|
|
23
36
|
}
|
|
24
|
-
/** The
|
|
37
|
+
/** The detection machinery behind a mention field: watch the caret,
|
|
25
38
|
* offer the matching candidates, and answer for the keys that drive
|
|
26
39
|
* them. The field element arrives as a getter because hosts wrap it
|
|
27
40
|
* differently (a bare textarea, a field part's ref).
|
|
@@ -34,17 +47,38 @@ declare function useMentions(options: UseMentionsOptions | (() => UseMentionsOpt
|
|
|
34
47
|
matches: MentionEntry[];
|
|
35
48
|
active: number;
|
|
36
49
|
setActive: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
50
|
+
anchorIndex: import("react").RefObject<number>;
|
|
51
|
+
caretIndex: import("react").RefObject<number>;
|
|
52
|
+
activeTrigger: import("react").RefObject<string>;
|
|
37
53
|
insert: (entry: MentionEntry) => void;
|
|
38
54
|
close: () => void;
|
|
39
55
|
onInput: () => void;
|
|
40
56
|
onKeydown: (event: MentionKeyEvent) => boolean;
|
|
41
57
|
};
|
|
42
|
-
//#endregion
|
|
43
|
-
//#region src/components/mentions/index.d.ts
|
|
44
58
|
interface MentionEntry {
|
|
59
|
+
/** Stable identity for tests, popups and business handlers. */
|
|
60
|
+
id?: string;
|
|
61
|
+
/** The primary words shown in the popup and inserted by default. */
|
|
45
62
|
label: string;
|
|
63
|
+
/** The semantic value reported by the field. */
|
|
46
64
|
value: string;
|
|
65
|
+
/** One line of supporting copy under the label. */
|
|
66
|
+
description?: string;
|
|
67
|
+
/** A curated core icon name. */
|
|
68
|
+
icon?: string;
|
|
69
|
+
/** Optional section heading; entries with the same heading travel together. */
|
|
70
|
+
group?: string;
|
|
71
|
+
/** The consumer's coarse entry type, such as `file`, `agent` or `command`. */
|
|
72
|
+
kind?: string;
|
|
73
|
+
/** A visible candidate the keyboard and pointer cannot choose. */
|
|
74
|
+
disabled?: boolean;
|
|
75
|
+
/** Exact composer text to insert; it bypasses `trigger + label`. */
|
|
76
|
+
insertText?: string;
|
|
77
|
+
/** Extra consumer data carried back through `onSelect`. */
|
|
78
|
+
meta?: Record<string, unknown>;
|
|
47
79
|
}
|
|
80
|
+
type MentionTriggers = string | string[];
|
|
81
|
+
type MentionPlacement = "bottom-start" | "top-start";
|
|
48
82
|
interface MentionsVesselProps {
|
|
49
83
|
id?: string;
|
|
50
84
|
/** The host field's rung, so the rows keep the field's register. */
|
|
@@ -56,7 +90,9 @@ interface MentionsVesselProps {
|
|
|
56
90
|
/** The keyboard's active row. */
|
|
57
91
|
active?: number;
|
|
58
92
|
/** The rectangle the vessel points at — the host's textarea. */
|
|
59
|
-
anchor?:
|
|
93
|
+
anchor?: HTMLElement | null;
|
|
94
|
+
/** Which side of the anchor hosts the candidates. */
|
|
95
|
+
placement?: MentionPlacement;
|
|
60
96
|
/** A candidate was chosen. */
|
|
61
97
|
onInsert?: (entry: MentionEntry) => void;
|
|
62
98
|
/** The pointer moved to a row. */
|
|
@@ -69,16 +105,16 @@ interface MentionsVesselProps {
|
|
|
69
105
|
* its own anatomy (the textarea rides where the host puts it) and the
|
|
70
106
|
* vessel still points at the right place. Shares the detection state
|
|
71
107
|
* with the host through `useMentions`. */
|
|
72
|
-
declare function MentionsVesselImpl({ size, open, matches, active, anchor, onInsert, onActiveChange, onOpenChange, id }: MentionsVesselProps): import("react").JSX.Element;
|
|
108
|
+
declare function MentionsVesselImpl({ size, open, matches, active, anchor, placement, onInsert, onActiveChange, onOpenChange, id }: MentionsVesselProps): import("react").JSX.Element;
|
|
73
109
|
declare const MentionsVessel: typeof MentionsVesselImpl & {
|
|
74
110
|
Root: typeof MentionsVesselImpl;
|
|
75
111
|
};
|
|
76
112
|
/**
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
113
|
+
* Mentions: a textarea that, when the text before the caret ends with a
|
|
114
|
+
* trigger character followed by a token, offers matching candidates in a
|
|
115
|
+
* small anchored vessel. Entries may carry descriptions, icons, groups
|
|
116
|
+
* and consumer metadata. Selecting reports the whole entry; by default it
|
|
117
|
+
* also replaces the token with `trigger + label`.
|
|
82
118
|
*
|
|
83
119
|
* The field is the shared `Field.Textarea` — field wiring (label ids,
|
|
84
120
|
* the invalid state, autoresize) rides on it for free — and the vessel
|
|
@@ -88,14 +124,22 @@ declare const MentionsVessel: typeof MentionsVesselImpl & {
|
|
|
88
124
|
* input) skip this shell and wire `useMentions` plus `MentionsVessel`
|
|
89
125
|
* themselves.
|
|
90
126
|
*/
|
|
91
|
-
interface MentionsProps extends HTMLAttributes<HTMLDivElement> {
|
|
92
|
-
/** The candidates offered once
|
|
127
|
+
interface MentionsProps extends Omit<HTMLAttributes<HTMLDivElement>, "onSelect"> {
|
|
128
|
+
/** The candidates offered once a trigger character is typed. */
|
|
93
129
|
items?: MentionEntry[];
|
|
94
130
|
/** The text held by the field. Supply it to control the field;
|
|
95
131
|
* changes are reported via `onValueChange`. */
|
|
96
132
|
value?: string;
|
|
97
133
|
/** The character that summons the candidates. */
|
|
98
134
|
trigger?: string;
|
|
135
|
+
/** One or more summoning characters, such as `@` and `/`. */
|
|
136
|
+
triggers?: MentionTriggers;
|
|
137
|
+
/** Keep composer text untouched when a candidate is selected. */
|
|
138
|
+
insertOnSelect?: boolean;
|
|
139
|
+
/** Keys that choose the highlighted candidate. */
|
|
140
|
+
commitKeys?: MentionCommitKey[];
|
|
141
|
+
/** Which side of the field hosts the candidates. */
|
|
142
|
+
placement?: MentionPlacement;
|
|
99
143
|
placeholder?: string;
|
|
100
144
|
/** Let the field grow with its text instead of holding `rows`. */
|
|
101
145
|
autoresize?: boolean;
|
|
@@ -106,8 +150,9 @@ interface MentionsProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
106
150
|
size?: "sm" | "md" | "lg";
|
|
107
151
|
/** Reports the field's next text. */
|
|
108
152
|
onValueChange?: (value: string) => void;
|
|
153
|
+
/** Reports the whole selected entry. */
|
|
154
|
+
onSelect?: (entry: MentionEntry) => void;
|
|
109
155
|
}
|
|
110
|
-
declare function MentionsImpl({ items, value, trigger, placeholder, autoresize, invalid, size, onValueChange, children, ...rest }: MentionsProps): import("react").JSX.Element;
|
|
156
|
+
declare function MentionsImpl({ items, value, trigger, triggers, insertOnSelect, commitKeys, placement, placeholder, autoresize, invalid, size, onValueChange, onSelect, children, ...rest }: MentionsProps): import("react").JSX.Element;
|
|
111
157
|
declare const Mentions: typeof MentionsImpl & typeof Popover;
|
|
112
|
-
|
|
113
|
-
export { MentionsVesselProps as a, useMentions as c, MentionsVessel as i, Mentions as n, UseMentionsHandlers as o, MentionsProps as r, UseMentionsOptions as s, MentionEntry as t };
|
|
158
|
+
export { MentionsProps as a, MentionCommitKey as c, useMentions as d, Mentions as i, UseMentionsHandlers as l, MentionPlacement as n, MentionsVessel as o, MentionTriggers as r, MentionsVesselProps as s, MentionEntry as t, UseMentionsOptions as u };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
2
|
import { CollectionItem } from "@ark-ui/react/collection";
|
|
3
3
|
import { Select, SelectRootComponentProps } from "@ark-ui/react/select";
|
|
4
|
-
//#region src/components/select/native.d.ts
|
|
5
4
|
/** One row of the platform's own list. */
|
|
6
5
|
interface NativeSelectOption {
|
|
7
6
|
label: string;
|
|
@@ -23,8 +22,6 @@ interface NativeSelectProps extends Omit<HTMLAttributes<HTMLSpanElement>, "child
|
|
|
23
22
|
onValueChange?: (value: string) => void;
|
|
24
23
|
}
|
|
25
24
|
declare function NativeSelect({ value, options, size, invalid, placeholder, disabled, onValueChange, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ...rest }: NativeSelectProps): import("react").JSX.Element;
|
|
26
|
-
//#endregion
|
|
27
|
-
//#region src/components/select/index.d.ts
|
|
28
25
|
/** Ark's Select, dressed in the paper-and-ink system: the trigger is the
|
|
29
26
|
* whole control and its list dissolves open as a paper vessel, the checked
|
|
30
27
|
* row taking the flat ink fill. The API is Ark's own — Root, Label, Control,
|
|
@@ -67,5 +64,4 @@ declare namespace SelectFacade {
|
|
|
67
64
|
var displayName: string;
|
|
68
65
|
}
|
|
69
66
|
declare const Select$1: typeof SelectFacade & SelectParts;
|
|
70
|
-
//#endregion
|
|
71
67
|
export { NativeSelectProps as a, NativeSelectOption as i, SelectFacadeProps as n, NativeSelect as r, Select$1 as t };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
type ToolStatus = "pending" | "running" | "completed" | "error" | "denied";
|
|
3
|
+
type ToolApproval = "required" | "approved" | "denied";
|
|
4
|
+
type ToolValue = string | number | boolean | null | ToolValue[] | {
|
|
5
|
+
[key: string]: ToolValue;
|
|
6
|
+
};
|
|
7
|
+
/** A tool call: the shared collapsible as the vessel — the name it was
|
|
8
|
+
* reached by and the state it reached in on the trigger, its input and
|
|
9
|
+
* output folded inside. */
|
|
10
|
+
interface ToolProps extends HTMLAttributes<HTMLDivElement> {
|
|
11
|
+
/** The name the tool was reached by — shown raw on the trigger
|
|
12
|
+
* unless a `label` speaks friendlier words ("Searching pages…"). */
|
|
13
|
+
name: string;
|
|
14
|
+
label?: ReactNode;
|
|
15
|
+
/** The state the call reached — pending, running, completed, error,
|
|
16
|
+
* or denied; stamped on the fold and whispered in the status chip. */
|
|
17
|
+
status?: ToolStatus;
|
|
18
|
+
/** The human approval gate, when the call needs one. */
|
|
19
|
+
approval?: ToolApproval;
|
|
20
|
+
/** Custom request display; structured data can ride `inputValue`. */
|
|
21
|
+
input?: ReactNode;
|
|
22
|
+
/** The machine-readable request, formatted automatically. */
|
|
23
|
+
inputValue?: ToolValue;
|
|
24
|
+
/** Custom answer display; structured data can ride `outputValue`. */
|
|
25
|
+
output?: ReactNode;
|
|
26
|
+
/** The machine-readable answer, formatted automatically. */
|
|
27
|
+
outputValue?: ToolValue;
|
|
28
|
+
/** The fold arrives open when set — rides the shared collapsible. */
|
|
29
|
+
defaultOpen?: boolean;
|
|
30
|
+
onApprove?: () => void;
|
|
31
|
+
onDeny?: () => void;
|
|
32
|
+
}
|
|
33
|
+
declare function ToolImpl({ name, label, status, approval, input, inputValue, output, outputValue, defaultOpen, onApprove, onDeny, ...rest }: ToolProps): import("react").JSX.Element;
|
|
34
|
+
declare const Tool: typeof ToolImpl & {
|
|
35
|
+
Root: typeof ToolImpl;
|
|
36
|
+
};
|
|
37
|
+
export { ToolValue as a, ToolStatus as i, ToolApproval as n, ToolProps as r, Tool as t };
|
package/dist/index.d.mts
CHANGED
|
@@ -2,29 +2,29 @@ import { Accordion, AccordionFacadeProps, AccordionItem } from "./components/acc
|
|
|
2
2
|
import { Affix, AffixProps } from "./components/affix/index.mjs";
|
|
3
3
|
import { Action, ActionProps } from "./components/ai-action/index.mjs";
|
|
4
4
|
import { AiAttachment as Attachment, AiAttachments as Attachments, AttachmentProps } from "./components/ai-attachments/index.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { n as
|
|
7
|
-
import {
|
|
5
|
+
import { a as ToolValue, i as ToolStatus, n as ToolApproval, r as ToolProps, t as Tool } from "./index-lCsvE2Vl.mjs";
|
|
6
|
+
import { C as toolPartDisplay, S as AiToolDisplay, _ as AiSdkSourceDocumentPart, a as AiMediaProps, b as AiSdkTextPart, c as AiPartsSlots, d as AiSdkFilePart, f as AiSdkMediaPart, g as AiSdkReasoningPart, h as AiSdkReasoningFilePart, i as AiMediaKind, l as AiSdkCustomPart, m as AiSdkMessagePart, n as MessageProps, o as AiParts, p as AiSdkMessage, r as AiMedia, s as AiPartsProps, t as Message, u as AiSdkDataPart, v as AiSdkSourceUrlPart, x as AiSdkToolPart, y as AiSdkStepStartPart } from "./index-CjO4Ggf0.mjs";
|
|
7
|
+
import { n as PopoverFacadeProps, t as Popover } from "./index-BVdkcSSY.mjs";
|
|
8
|
+
import { a as MentionsProps, c as MentionCommitKey, d as useMentions, i as Mentions, l as UseMentionsHandlers, n as MentionPlacement, o as MentionsVessel, r as MentionTriggers, s as MentionsVesselProps, t as MentionEntry, u as UseMentionsOptions } from "./index-DcpvCyt6.mjs";
|
|
8
9
|
import { AiPromptInput as PromptInput, PromptInputProps } from "./components/ai-prompt-input/index.mjs";
|
|
9
10
|
import { AiReasoning as Reasoning, ReasoningProps } from "./components/ai-reasoning/index.mjs";
|
|
10
11
|
import { AiResponse as Response, ResponseProps } from "./components/ai-response/index.mjs";
|
|
11
12
|
import { AiSource as Source, AiSources as Sources, SourceProps, SourcesProps } from "./components/ai-source/index.mjs";
|
|
12
13
|
import { AiSuggestion as Suggestion, SuggestionProps } from "./components/ai-suggestion/index.mjs";
|
|
13
|
-
import {
|
|
14
|
-
import { a as FileUIPart, c as SourceUrlUIPart, d as ToolUIPart, f as UIMessage, i as DataUIPart, l as StepStartUIPart, n as AiActions, o as ReasoningUIPart, p as UIMessagePart, r as AiContent, s as SourceDocumentUIPart, t as Ai, u as TextUIPart } from "./index-B4twHAQC.mjs";
|
|
14
|
+
import { Ai, AiActions, AiContent, AiConversation, AiJumpToLatest, ChatOnDataCallback, ChatOnErrorCallback, ChatOnFinishCallback, ChatState, ChatStatus, CreateUIMessage, CustomContentUIPart, DataUIPart, DynamicToolUIPart, FileUIPart, InferUITools, ProviderMetadata, ProviderReference, ReasoningFileUIPart, ReasoningUIPart, SourceDocumentUIPart, SourceUrlUIPart, StepStartUIPart, TextUIPart, ToolSet, ToolUIPart, UIDataTypes, UIMessage, UIMessageChunk, UIMessagePart, UITool, UIToolInvocation, UITools } from "./components/ai/index.mjs";
|
|
15
15
|
import { Alert, AlertProps, AlertStatus } from "./components/alert/index.mjs";
|
|
16
16
|
import { AngleSlider, AngleSliderFacadeProps } from "./components/angle-slider/index.mjs";
|
|
17
17
|
import { AspectRatio, AspectRatioProps } from "./components/aspect-ratio/index.mjs";
|
|
18
18
|
import { Combobox } from "./components/combobox/index.mjs";
|
|
19
19
|
import { AutoComplete, AutoCompleteProps } from "./components/autocomplete/index.mjs";
|
|
20
20
|
import { AvatarGroup, AvatarGroupProps } from "./components/avatar-group/index.mjs";
|
|
21
|
-
import { Avatar, AvatarProps, AvatarSize } from "./components/avatar/index.mjs";
|
|
21
|
+
import { Avatar, AvatarFacadeProps, AvatarProps, AvatarSize } from "./components/avatar/index.mjs";
|
|
22
22
|
import { BackTop, BackTopProps } from "./components/back-top/index.mjs";
|
|
23
23
|
import { Badge, BadgeProps } from "./components/badge/index.mjs";
|
|
24
|
-
import { Banner, BannerRootProps, BannerStatus } from "./components/banner/index.mjs";
|
|
24
|
+
import { Banner, BannerFacadeProps, BannerRootProps, BannerStatus } from "./components/banner/index.mjs";
|
|
25
25
|
import { Bento, BentoCell, BentoCellProps, BentoProps, BentoRoot } from "./components/bento/index.mjs";
|
|
26
26
|
import { BlockUI, BlockUIProps } from "./components/block-ui/index.mjs";
|
|
27
|
-
import { Breadcrumb } from "./components/breadcrumb/index.mjs";
|
|
27
|
+
import { Breadcrumb, BreadcrumbFacadeProps, BreadcrumbItem } from "./components/breadcrumb/index.mjs";
|
|
28
28
|
import { Browser, BrowserBody, BrowserDots, BrowserPartProps, BrowserRoot, BrowserTitleBar, BrowserUrlBar } from "./components/browser/index.mjs";
|
|
29
29
|
import { ButtonGroup, ButtonGroupProps } from "./components/button-group/index.mjs";
|
|
30
30
|
import { Button, ButtonProps } from "./components/button/index.mjs";
|
|
@@ -60,7 +60,7 @@ import { Empty } from "./components/empty/index.mjs";
|
|
|
60
60
|
import { Field } from "./components/field/index.mjs";
|
|
61
61
|
import { Fieldset } from "./components/fieldset/index.mjs";
|
|
62
62
|
import { FileUpload } from "./components/file-upload/index.mjs";
|
|
63
|
-
import { FLOAT_BUTTON_CONTEXT, FloatButton, FloatButtonContextValue, FloatButtonPlacement, FloatButtonRootProps, FloatButtonSize } from "./components/float-button/index.mjs";
|
|
63
|
+
import { FLOAT_BUTTON_CONTEXT, FloatButton, FloatButtonAction, FloatButtonContextValue, FloatButtonFacadeProps, FloatButtonPlacement, FloatButtonRootProps, FloatButtonSize } from "./components/float-button/index.mjs";
|
|
64
64
|
import { FloatingPanel, FloatingPanelFacadeProps } from "./components/floating-panel/index.mjs";
|
|
65
65
|
import { FocusTrap, FocusTrapBaseProps, FocusTrapProps } from "./components/focus-trap/index.mjs";
|
|
66
66
|
import { FieldApi, Form, FormApi, FormField, FormFieldProps, FormProps, useField, useForm } from "./components/form/index.mjs";
|
|
@@ -71,7 +71,7 @@ import { Highlight } from "./components/highlight/index.mjs";
|
|
|
71
71
|
import { HoverCard, HoverCardFacadeProps } from "./components/hover-card/index.mjs";
|
|
72
72
|
import { Icon, IconProps } from "./components/icon/index.mjs";
|
|
73
73
|
import { ImageCropper, ImageCropperFacadeProps } from "./components/image-cropper/index.mjs";
|
|
74
|
-
import { n as ImageViewerProps, t as ImageViewer } from "./index-
|
|
74
|
+
import { n as ImageViewerProps, t as ImageViewer } from "./index-D4C52fI7.mjs";
|
|
75
75
|
import { Image, ImageProps } from "./components/image/index.mjs";
|
|
76
76
|
import { InputGroup, InputGroupPartProps } from "./components/input-group/index.mjs";
|
|
77
77
|
import { Input, InputProps } from "./components/input/index.mjs";
|
|
@@ -83,7 +83,7 @@ import { List, ListContentProps, ListRootProps } from "./components/list/index.m
|
|
|
83
83
|
import { Listbox } from "./components/listbox/index.mjs";
|
|
84
84
|
import { Marquee } from "./components/marquee/index.mjs";
|
|
85
85
|
import { Masonry, MasonryProps } from "./components/masonry/index.mjs";
|
|
86
|
-
import { a as MediaTextTrackOption, i as MediaSourceOption, n as Video, o as formatMediaTime, r as MediaPlayerProps, t as Audio } from "./index-
|
|
86
|
+
import { a as MediaTextTrackOption, i as MediaSourceOption, n as Video, o as formatMediaTime, r as MediaPlayerProps, t as Audio } from "./index-DIZEFqJM.mjs";
|
|
87
87
|
import { Menu, MenuFacadeProps, MenuItemOption } from "./components/menu/index.mjs";
|
|
88
88
|
import { Menubar, MenubarEntry, MenubarGroup, MenubarProps } from "./components/menubar/index.mjs";
|
|
89
89
|
import { Meter, MeterRootProps } from "./components/meter/index.mjs";
|
|
@@ -104,7 +104,7 @@ import { RatingGroup, RatingGroupFacadeProps } from "./components/rating-group/i
|
|
|
104
104
|
import { Result, ResultIcon, ResultRoot, ResultRootProps } from "./components/result/index.mjs";
|
|
105
105
|
import { ScrollArea } from "./components/scroll-area/index.mjs";
|
|
106
106
|
import { SegmentGroup, SegmentGroupFacadeProps, SegmentGroupItem } from "./components/segment-group/index.mjs";
|
|
107
|
-
import { a as NativeSelectProps, i as NativeSelectOption, n as SelectFacadeProps, r as NativeSelect, t as Select } from "./index-
|
|
107
|
+
import { a as NativeSelectProps, i as NativeSelectOption, n as SelectFacadeProps, r as NativeSelect, t as Select } from "./index-DczfbPCg.mjs";
|
|
108
108
|
import { Separator, SeparatorProps } from "./components/separator/index.mjs";
|
|
109
109
|
import { SignaturePad } from "./components/signature-pad/index.mjs";
|
|
110
110
|
import { Skeleton, SkeletonProps } from "./components/skeleton/index.mjs";
|
|
@@ -135,10 +135,10 @@ import { Tooltip, TooltipFacadeProps } from "./components/tooltip/index.mjs";
|
|
|
135
135
|
import { Tour, TourFacadeProps, TourInteractOutsideEvent, TourPointerDownOutsideEvent, TourStepDetails, useTour } from "./components/tour/index.mjs";
|
|
136
136
|
import { Transfer, TransferItem, TransferProps } from "./components/transfer/index.mjs";
|
|
137
137
|
import { TreeSelect, TreeSelectNode, TreeSelectProps } from "./components/tree-select/index.mjs";
|
|
138
|
-
import { TreeView } from "./components/tree-view/index.mjs";
|
|
138
|
+
import { TreeView, TreeViewOption } from "./components/tree-view/index.mjs";
|
|
139
139
|
import { Typography } from "./components/typography/index.mjs";
|
|
140
140
|
import { User, UserProps } from "./components/user/index.mjs";
|
|
141
141
|
import { VirtualList, VirtualListProps } from "./components/virtual-list/index.mjs";
|
|
142
142
|
import { Watermark, WatermarkProps } from "./components/watermark/index.mjs";
|
|
143
143
|
export * from "@bysages/core";
|
|
144
|
-
export { Accordion, AccordionFacadeProps, AccordionItem, Action, Action as AiAction, ActionProps, Affix, AffixProps, Ai, AiActions, Attachment as AiAttachment, Attachment, Attachments as AiAttachments, Attachments, AiContent, Message as AiMessage, Message, PromptInput as AiPromptInput, PromptInput, Reasoning as AiReasoning, Reasoning, Response as AiResponse, Response, Source as AiSource, Source, Sources as AiSources, Sources, Suggestion as AiSuggestion, Suggestion, Tool as AiTool, Tool, Alert, AlertProps, AlertStatus, AngleSlider, AngleSliderFacadeProps, AspectRatio, AspectRatioProps, AttachmentProps, Audio, AutoComplete, AutoCompleteProps, Avatar, AvatarGroup, AvatarGroupProps, AvatarProps, AvatarSize, BackTop, BackTopProps, Badge, BadgeProps, Banner, BannerRootProps, BannerStatus, Bento, BentoCell, BentoCellProps, BentoProps, BentoRoot, BlockUI, BlockUIProps, Breadcrumb, Browser, BrowserBody, BrowserDots, BrowserPartProps, BrowserRoot, BrowserTitleBar, BrowserUrlBar, Button, ButtonGroup, ButtonGroupProps, ButtonProps, Calendar, CalendarProps, Card, Carousel, CascadeSelect, CascadeSelectNode, CascadeSelectProps, Checkbox, CheckboxFacadeProps, CheckboxGroup, CheckboxGroupProps, CheckboxOption, Chip, ChipProps, ClientOnly, type ClientOnlyProps, Clipboard, Collapsible, CollapsibleFacadeProps, type CollectionItem, type CollectionOptions, ColorPicker, type ColumnDef, Combobox, Command, CommandEntry, CommandProps, Comment, CommentProps, ConfigContext, ConfigDensity, ConfigProvider, ConfigProviderProps, ConfigScene, Container, ContainerProps, type CreateToasterReturn, DataTable, DataTableProps, type DataUIPart, DataView, DataViewProps, DateInput, type DateInputFocusChangeDetails, type DateInputValueChangeDetails, DatePicker, type DatePickerFocusChangeDetails, type DatePickerOpenChangeDetails, type DatePickerValueChangeDetails, type DatePickerViewChangeDetails, type DatePickerVisibleRangeChangeDetails, DeferredContent, DeferredContentProps, Descriptions, DescriptionsItemData, DescriptionsRoot, DescriptionsRootProps, Dialog, DialogFacadeProps, type DialogOpenChangeDetails, Dock, DockItem, DockItemProps, DockProps, DockRoot, DownloadTrigger, type DownloadTriggerBaseProps, type DownloadTriggerProps, type DownloadableData, Drawer, DrawerFacadeProps, DynamicInput, DynamicInputProps, Editable, Ellipsis, EllipsisProps, Empty, FLOAT_BUTTON_CONTEXT, Field, type FieldApi, Fieldset, type FilePathTreeNode, type FileUIPart, FileUpload, type FlatTreeNode, FlexRender, FloatButton, FloatButtonContextValue, FloatButtonPlacement, FloatButtonRootProps, FloatButtonSize, FloatingPanel, FloatingPanelFacadeProps, FocusTrap, type FocusTrapBaseProps, type FocusTrapProps, Form, type FormApi, FormField, FormFieldProps, FormProps, Format, Frame, Grid, type GridCollection, type GridCollectionOptions, GridProps, Highlight, HoverCard, HoverCardFacadeProps, Icon, IconProps, Image, ImageCropper, ImageCropperFacadeProps, ImageProps, ImageViewer, ImageViewerProps, Input, InputGroup, InputGroupPartProps, InputProps, JsonTreeView, Kbd, KbdProps, Layout, LayoutContextValue, LayoutResizeHandlers, LayoutRootProps, LayoutSiderProps, LayoutSiderState, Link, LinkProps, List, type ListCollection, ListContentProps, ListRootProps, Listbox, Marquee, Masonry, MasonryProps, type MediaPlayerProps, type MediaSourceOption, type MediaTextTrackOption, MentionEntry, Mentions, MentionsProps, MentionsVessel, MentionsVesselProps, Menu, MenuFacadeProps, MenuItemOption, Menubar, MenubarEntry, MenubarGroup, MenubarProps, MessageProps, Meter, MeterRootProps, NativeSelect, type NativeSelectOption, type NativeSelectProps, NavigationMenu, NavigationMenuFacadeProps, NavigationMenuLinkOption, NumberInput, OrderList, OrderListProps, OrderOption, PageHeader, Pagination, PasswordInput, PinInput, Popconfirm, PopconfirmProps, Popover, PopoverFacadeProps, Presence, type PresenceBaseProps, type PresenceProps, PresenceProvider, Progress, ProgressGroup, ProgressGroupProps, ProgressSegment, PromptInputProps, QrCode, RadioGroup, RadioGroupFacadeProps, RadioGroupItem, RatingGroup, RatingGroupFacadeProps, ReasoningProps, type ReasoningUIPart, ResponseProps, Result, ResultIcon, ResultRoot, ResultRootProps, ScrollArea, SegmentGroup, SegmentGroupFacadeProps, SegmentGroupItem, Select, SelectFacadeProps, Separator, SeparatorProps, SignaturePad, Skeleton, SkeletonProps, Slider, SliderFacadeProps, type SortingState, type SourceDocumentUIPart, SourceProps, type SourceUrlUIPart, SourcesProps, Spinner, SpinnerProps, SplitButton, SplitButtonEntry, SplitButtonProps, Splitter, SplitterFacadeProps, SplitterItem, Spotlight, SpotlightProps, Stack, StackProps, Stat, StatDeltaProps, type StepStartUIPart, Steps, StepsFacadeProps, StepsItem, SuggestionProps, Swap, Switch, SwitchFacadeProps, Tabs, TabsFacadeProps, TabsItem, Tag, TagProps, TagsInput, Terminal, TerminalProps, type TextUIPart, Textarea, TextareaProps, Timeline, Timer, Toast, Toaster, Toc, TocFacadeProps, Toggle, ToggleFacadeProps, ToggleGroup, ToggleGroupFacadeProps, ToggleGroupItem, ToolProps, ToolStatus, type ToolUIPart, Toolbar, ToolbarProps, Tooltip, TooltipFacadeProps, Tour, TourFacadeProps, type TourInteractOutsideEvent, type TourPointerDownOutsideEvent, type TourStepDetails, Transfer, TransferItem, TransferProps, type TreeCollection, type TreeCollectionOptions, type TreeNode, TreeSelect, TreeSelectNode, TreeSelectProps, TreeView, Typography, 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, UserProps, Video, VirtualList, VirtualListProps, Watermark, WatermarkProps, createColumnHelper, createFileTreeCollection, createGridCollection, createToaster, createTreeCollection, formatMediaTime, useAsyncList, useConfig, useDownload, useField, useForm, useListCollection, useListSelection, useMentions, usePresence, usePresenceContext, useTour };
|
|
144
|
+
export { Accordion, AccordionFacadeProps, AccordionItem, Action, Action as AiAction, ActionProps, Affix, AffixProps, Ai, AiActions, Attachment as AiAttachment, Attachment, Attachments as AiAttachments, Attachments, AiContent, AiConversation, AiJumpToLatest, AiMedia, type AiMediaKind, type AiMediaProps, Message as AiMessage, Message, AiParts, type AiPartsProps, type AiPartsSlots, PromptInput as AiPromptInput, PromptInput, Reasoning as AiReasoning, Reasoning, Response as AiResponse, Response, type AiSdkCustomPart, type AiSdkDataPart, type AiSdkFilePart, type AiSdkMediaPart, type AiSdkMessage, type AiSdkMessagePart, type AiSdkReasoningFilePart, type AiSdkReasoningPart, type AiSdkSourceDocumentPart, type AiSdkSourceUrlPart, type AiSdkStepStartPart, type AiSdkTextPart, type AiSdkToolPart, Source as AiSource, Source, Sources as AiSources, Sources, Suggestion as AiSuggestion, Suggestion, Tool as AiTool, Tool, type AiToolDisplay, Alert, AlertProps, AlertStatus, AngleSlider, AngleSliderFacadeProps, AspectRatio, AspectRatioProps, AttachmentProps, Audio, AutoComplete, AutoCompleteProps, Avatar, AvatarFacadeProps, AvatarGroup, AvatarGroupProps, AvatarProps, AvatarSize, BackTop, BackTopProps, Badge, BadgeProps, Banner, BannerFacadeProps, BannerRootProps, BannerStatus, Bento, BentoCell, BentoCellProps, BentoProps, BentoRoot, BlockUI, BlockUIProps, Breadcrumb, BreadcrumbFacadeProps, BreadcrumbItem, Browser, BrowserBody, BrowserDots, BrowserPartProps, BrowserRoot, BrowserTitleBar, BrowserUrlBar, Button, ButtonGroup, ButtonGroupProps, ButtonProps, Calendar, CalendarProps, Card, Carousel, CascadeSelect, CascadeSelectNode, CascadeSelectProps, type ChatOnDataCallback, type ChatOnErrorCallback, type ChatOnFinishCallback, type ChatState, type ChatStatus, Checkbox, CheckboxFacadeProps, CheckboxGroup, CheckboxGroupProps, CheckboxOption, Chip, ChipProps, ClientOnly, type ClientOnlyProps, Clipboard, Collapsible, CollapsibleFacadeProps, type CollectionItem, type CollectionOptions, ColorPicker, type ColumnDef, Combobox, Command, CommandEntry, CommandProps, Comment, CommentProps, ConfigContext, ConfigDensity, ConfigProvider, ConfigProviderProps, ConfigScene, Container, ContainerProps, type CreateToasterReturn, type CreateUIMessage, type CustomContentUIPart, DataTable, DataTableProps, type DataUIPart, DataView, DataViewProps, DateInput, type DateInputFocusChangeDetails, type DateInputValueChangeDetails, DatePicker, type DatePickerFocusChangeDetails, type DatePickerOpenChangeDetails, type DatePickerValueChangeDetails, type DatePickerViewChangeDetails, type DatePickerVisibleRangeChangeDetails, DeferredContent, DeferredContentProps, Descriptions, DescriptionsItemData, DescriptionsRoot, DescriptionsRootProps, Dialog, DialogFacadeProps, type DialogOpenChangeDetails, Dock, DockItem, DockItemProps, DockProps, DockRoot, DownloadTrigger, type DownloadTriggerBaseProps, type DownloadTriggerProps, type DownloadableData, Drawer, DrawerFacadeProps, DynamicInput, DynamicInputProps, type DynamicToolUIPart, Editable, Ellipsis, EllipsisProps, Empty, FLOAT_BUTTON_CONTEXT, Field, type FieldApi, Fieldset, type FilePathTreeNode, type FileUIPart, FileUpload, type FlatTreeNode, FlexRender, FloatButton, FloatButtonAction, FloatButtonContextValue, FloatButtonFacadeProps, FloatButtonPlacement, FloatButtonRootProps, FloatButtonSize, FloatingPanel, FloatingPanelFacadeProps, FocusTrap, type FocusTrapBaseProps, type FocusTrapProps, Form, type FormApi, FormField, FormFieldProps, FormProps, Format, Frame, Grid, type GridCollection, type GridCollectionOptions, GridProps, Highlight, HoverCard, HoverCardFacadeProps, Icon, IconProps, Image, ImageCropper, ImageCropperFacadeProps, ImageProps, ImageViewer, ImageViewerProps, type InferUITools, Input, InputGroup, InputGroupPartProps, InputProps, JsonTreeView, Kbd, KbdProps, Layout, LayoutContextValue, LayoutResizeHandlers, LayoutRootProps, LayoutSiderProps, LayoutSiderState, Link, LinkProps, List, type ListCollection, ListContentProps, ListRootProps, Listbox, Marquee, Masonry, MasonryProps, type MediaPlayerProps, type MediaSourceOption, type MediaTextTrackOption, type MentionCommitKey, MentionEntry, MentionPlacement, MentionTriggers, Mentions, MentionsProps, MentionsVessel, MentionsVesselProps, Menu, MenuFacadeProps, MenuItemOption, Menubar, MenubarEntry, MenubarGroup, MenubarProps, MessageProps, Meter, MeterRootProps, NativeSelect, type NativeSelectOption, type NativeSelectProps, NavigationMenu, NavigationMenuFacadeProps, NavigationMenuLinkOption, NumberInput, OrderList, OrderListProps, OrderOption, PageHeader, Pagination, PasswordInput, PinInput, Popconfirm, PopconfirmProps, Popover, PopoverFacadeProps, Presence, type PresenceBaseProps, type PresenceProps, PresenceProvider, Progress, ProgressGroup, ProgressGroupProps, ProgressSegment, PromptInputProps, type ProviderMetadata, type ProviderReference, QrCode, RadioGroup, RadioGroupFacadeProps, RadioGroupItem, RatingGroup, RatingGroupFacadeProps, type ReasoningFileUIPart, ReasoningProps, type ReasoningUIPart, ResponseProps, Result, ResultIcon, ResultRoot, ResultRootProps, ScrollArea, SegmentGroup, SegmentGroupFacadeProps, SegmentGroupItem, Select, SelectFacadeProps, Separator, SeparatorProps, SignaturePad, Skeleton, SkeletonProps, Slider, SliderFacadeProps, type SortingState, type SourceDocumentUIPart, SourceProps, type SourceUrlUIPart, SourcesProps, Spinner, SpinnerProps, SplitButton, SplitButtonEntry, SplitButtonProps, Splitter, SplitterFacadeProps, SplitterItem, Spotlight, SpotlightProps, Stack, StackProps, Stat, StatDeltaProps, type StepStartUIPart, Steps, StepsFacadeProps, StepsItem, SuggestionProps, Swap, Switch, SwitchFacadeProps, Tabs, TabsFacadeProps, TabsItem, Tag, TagProps, TagsInput, Terminal, TerminalProps, type TextUIPart, Textarea, TextareaProps, Timeline, Timer, Toast, Toaster, Toc, TocFacadeProps, Toggle, ToggleFacadeProps, ToggleGroup, ToggleGroupFacadeProps, ToggleGroupItem, ToolApproval, ToolProps, type ToolSet, ToolStatus, type ToolUIPart, ToolValue, Toolbar, ToolbarProps, Tooltip, TooltipFacadeProps, Tour, TourFacadeProps, type TourInteractOutsideEvent, type TourPointerDownOutsideEvent, type TourStepDetails, Transfer, TransferItem, TransferProps, type TreeCollection, type TreeCollectionOptions, type TreeNode, TreeSelect, TreeSelectNode, TreeSelectProps, TreeView, TreeViewOption, Typography, type UIDataTypes, type UIMessage, type UIMessageChunk, type UIMessagePart, type UITool, type UIToolInvocation, type UITools, 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, UserProps, Video, VirtualList, VirtualListProps, Watermark, WatermarkProps, createColumnHelper, createFileTreeCollection, createGridCollection, createToaster, createTreeCollection, formatMediaTime, toolPartDisplay, useAsyncList, useConfig, useDownload, useField, useForm, useListCollection, useListSelection, useMentions, usePresence, usePresenceContext, useTour };
|
package/dist/index.mjs
CHANGED
|
@@ -5,16 +5,17 @@ import { Button } from "./components/button/index.mjs";
|
|
|
5
5
|
import { Action } from "./components/ai-action/index.mjs";
|
|
6
6
|
import { AiMessage as Message } from "./components/ai-message/index.mjs";
|
|
7
7
|
import { Field } from "./components/field/index.mjs";
|
|
8
|
+
import { Icon } from "./components/icon/index.mjs";
|
|
8
9
|
import { Popover } from "./components/popover/index.mjs";
|
|
9
|
-
import { n as MentionsVessel, r as useMentions, t as Mentions } from "./mentions-
|
|
10
|
-
import {
|
|
10
|
+
import { n as MentionsVessel, r as useMentions, t as Mentions } from "./mentions-De7ChJbl.mjs";
|
|
11
|
+
import { t as PromptInput } from "./ai-prompt-input-k34KssHJ.mjs";
|
|
11
12
|
import { Collapsible } from "./components/collapsible/index.mjs";
|
|
12
13
|
import { AiReasoning as Reasoning } from "./components/ai-reasoning/index.mjs";
|
|
13
|
-
import { t as Response } from "./ai-response-
|
|
14
|
+
import { t as Response } from "./ai-response-DTxdL5rX.mjs";
|
|
14
15
|
import { AiSource as Source, AiSources as Sources } from "./components/ai-source/index.mjs";
|
|
15
16
|
import { AiSuggestion as Suggestion } from "./components/ai-suggestion/index.mjs";
|
|
16
17
|
import { AiTool as Tool } from "./components/ai-tool/index.mjs";
|
|
17
|
-
import {
|
|
18
|
+
import { a as AiJumpToLatest, c as toolPartDisplay, i as AiConversation, n as AiActions, o as AiMedia, r as AiContent, s as AiParts, t as Ai } from "./ai-B3vbpXlK.mjs";
|
|
18
19
|
import { AiAttachment as Attachment, AiAttachments as Attachments } from "./components/ai-attachments/index.mjs";
|
|
19
20
|
import { Alert } from "./components/alert/index.mjs";
|
|
20
21
|
import { AngleSlider } from "./components/angle-slider/index.mjs";
|
|
@@ -36,7 +37,7 @@ import { DatePicker } from "./components/date-picker/index.mjs";
|
|
|
36
37
|
import { Calendar } from "./components/calendar/index.mjs";
|
|
37
38
|
import { Card } from "./components/card/index.mjs";
|
|
38
39
|
import { Carousel } from "./components/carousel/index.mjs";
|
|
39
|
-
import { t as Input } from "./input-
|
|
40
|
+
import { t as Input } from "./input-YRjehBhU.mjs";
|
|
40
41
|
import { CascadeSelect } from "./components/cascade-select/index.mjs";
|
|
41
42
|
import { Checkbox } from "./components/checkbox/index.mjs";
|
|
42
43
|
import { CheckboxGroup } from "./components/checkbox-group/index.mjs";
|
|
@@ -72,10 +73,9 @@ import { Frame } from "./components/frame/index.mjs";
|
|
|
72
73
|
import { Grid } from "./components/grid/index.mjs";
|
|
73
74
|
import { Highlight } from "./components/highlight/index.mjs";
|
|
74
75
|
import { HoverCard } from "./components/hover-card/index.mjs";
|
|
75
|
-
import { Icon } from "./components/icon/index.mjs";
|
|
76
76
|
import { Image } from "./components/image/index.mjs";
|
|
77
77
|
import { ImageCropper } from "./components/image-cropper/index.mjs";
|
|
78
|
-
import { t as ImageViewer } from "./image-viewer-
|
|
78
|
+
import { t as ImageViewer } from "./image-viewer-BYiXpi1X.mjs";
|
|
79
79
|
import { InputGroup } from "./components/input-group/index.mjs";
|
|
80
80
|
import { JsonTreeView } from "./components/json-tree-view/index.mjs";
|
|
81
81
|
import { Kbd } from "./components/kbd/index.mjs";
|
|
@@ -104,7 +104,7 @@ import { RatingGroup } from "./components/rating-group/index.mjs";
|
|
|
104
104
|
import { Result, ResultIcon, ResultRoot } from "./components/result/index.mjs";
|
|
105
105
|
import { ScrollArea } from "./components/scroll-area/index.mjs";
|
|
106
106
|
import { SegmentGroup } from "./components/segment-group/index.mjs";
|
|
107
|
-
import { n as NativeSelect, t as Select } from "./select-
|
|
107
|
+
import { n as NativeSelect, t as Select } from "./select-DQ5669_K.mjs";
|
|
108
108
|
import { Separator } from "./components/separator/index.mjs";
|
|
109
109
|
import { SignaturePad } from "./components/signature-pad/index.mjs";
|
|
110
110
|
import { Skeleton } from "./components/skeleton/index.mjs";
|
|
@@ -139,6 +139,6 @@ import { Typography } from "./components/typography/index.mjs";
|
|
|
139
139
|
import { User } from "./components/user/index.mjs";
|
|
140
140
|
import { VirtualList } from "./components/virtual-list/index.mjs";
|
|
141
141
|
import { Watermark } from "./components/watermark/index.mjs";
|
|
142
|
-
import { n as Video, r as formatMediaTime, t as Audio } from "./media-player-
|
|
142
|
+
import { n as Video, r as formatMediaTime, t as Audio } from "./media-player-CO2Cczl-.mjs";
|
|
143
143
|
export * from "@bysages/core";
|
|
144
|
-
export { Accordion, Action, Action as AiAction, Affix, Ai, AiActions, Attachment as AiAttachment, Attachment, Attachments as AiAttachments, Attachments, AiContent, Message as AiMessage, Message, PromptInput as AiPromptInput, PromptInput, Reasoning as AiReasoning, Reasoning, Response as AiResponse, Response, Source as AiSource, Source, Sources as AiSources, Sources, Suggestion as AiSuggestion, Suggestion, Tool as AiTool, Tool, Alert, AngleSlider, AspectRatio, Audio, AutoComplete, Avatar, AvatarGroup, BackTop, Badge, Banner, Bento, BentoCell, BentoRoot, BlockUI, Breadcrumb, Browser, BrowserBody, BrowserDots, BrowserRoot, BrowserTitleBar, BrowserUrlBar, Button, ButtonGroup, Calendar, Card, Carousel, CascadeSelect, Checkbox, CheckboxGroup, Chip, ClientOnly, Clipboard, Collapsible, ColorPicker, Combobox, Command, Comment, ConfigProvider, Container, DataTable, DataView, DateInput, DatePicker, DeferredContent, Descriptions, DescriptionsRoot, Dialog, Dock, DockItem, DockRoot, DownloadTrigger, Drawer, DynamicInput, Editable, Ellipsis, Empty, FLOAT_BUTTON_CONTEXT, 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, ResultIcon, ResultRoot, ScrollArea, SegmentGroup, Select, Separator, SignaturePad, Skeleton, Slider, Spinner, SplitButton, Splitter, Spotlight, Stack, Stat, Steps, Swap, Switch, Tabs, Tag, TagsInput, Terminal, Textarea, Timeline, Timer, Toast, Toaster, Toc, Toggle, ToggleGroup, Toolbar, Tooltip, Tour, Transfer, TreeSelect, TreeView, Typography, User, Video, VirtualList, Watermark, createColumnHelper, createFileTreeCollection, createGridCollection, createToaster, createTreeCollection, formatMediaTime, useAsyncList, useConfig, useDownload, useField, useForm, useListCollection, useListSelection, useMentions, usePresence, usePresenceContext, useTour };
|
|
144
|
+
export { Accordion, Action, Action as AiAction, Affix, Ai, AiActions, Attachment as AiAttachment, Attachment, Attachments as AiAttachments, Attachments, AiContent, AiConversation, AiJumpToLatest, AiMedia, Message as AiMessage, Message, AiParts, PromptInput as AiPromptInput, PromptInput, Reasoning as AiReasoning, Reasoning, Response as AiResponse, Response, Source as AiSource, Source, Sources as AiSources, Sources, Suggestion as AiSuggestion, Suggestion, Tool as AiTool, Tool, Alert, AngleSlider, AspectRatio, Audio, AutoComplete, Avatar, AvatarGroup, BackTop, Badge, Banner, Bento, BentoCell, BentoRoot, BlockUI, Breadcrumb, Browser, BrowserBody, BrowserDots, BrowserRoot, BrowserTitleBar, BrowserUrlBar, Button, ButtonGroup, Calendar, Card, Carousel, CascadeSelect, Checkbox, CheckboxGroup, Chip, ClientOnly, Clipboard, Collapsible, ColorPicker, Combobox, Command, Comment, ConfigProvider, Container, DataTable, DataView, DateInput, DatePicker, DeferredContent, Descriptions, DescriptionsRoot, Dialog, Dock, DockItem, DockRoot, DownloadTrigger, Drawer, DynamicInput, Editable, Ellipsis, Empty, FLOAT_BUTTON_CONTEXT, 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, ResultIcon, ResultRoot, ScrollArea, SegmentGroup, Select, Separator, SignaturePad, Skeleton, Slider, Spinner, SplitButton, Splitter, Spotlight, Stack, Stat, Steps, Swap, Switch, Tabs, Tag, TagsInput, Terminal, Textarea, Timeline, Timer, Toast, Toaster, Toc, Toggle, ToggleGroup, Toolbar, Tooltip, Tour, Transfer, TreeSelect, TreeView, Typography, User, Video, VirtualList, Watermark, createColumnHelper, createFileTreeCollection, createGridCollection, createToaster, createTreeCollection, formatMediaTime, toolPartDisplay, useAsyncList, useConfig, useDownload, useField, useForm, useListCollection, useListSelection, useMentions, usePresence, usePresenceContext, useTour };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as withSelfRoot } from "./family-
|
|
1
|
+
import { t as withSelfRoot } from "./family-Co1YsN4N.mjs";
|
|
2
2
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
5
|
import { useFieldContext } from "@ark-ui/react/field";
|
|
6
|
-
|
|
6
|
+
// src/components/input/mask.ts
|
|
7
7
|
function accepts(slot, ch) {
|
|
8
8
|
if (slot === "9") return /\d/.test(ch);
|
|
9
9
|
if (slot === "a") return /[a-zA-Z]/.test(ch);
|
|
@@ -37,8 +37,7 @@ function applyMask(raw, mask) {
|
|
|
37
37
|
}
|
|
38
38
|
return out;
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
//#region src/components/input/index.tsx
|
|
40
|
+
// src/components/input/index.tsx
|
|
42
41
|
const InputImpl = forwardRef(function Input({ value, size = "md", invalid = false, mask, onValueChange, ...rest }, ref) {
|
|
43
42
|
injectComponentStyle("input");
|
|
44
43
|
const field = useFieldContext();
|
|
@@ -56,5 +55,4 @@ const InputImpl = forwardRef(function Input({ value, size = "md", invalid = fals
|
|
|
56
55
|
});
|
|
57
56
|
});
|
|
58
57
|
const Input = withSelfRoot(InputImpl);
|
|
59
|
-
//#endregion
|
|
60
58
|
export { Input as t };
|