@bysages/solid 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/README.md +2 -2
- package/dist/ai-NX47X8sz.mjs +365 -0
- package/dist/ai-prompt-input-CEnnpkgi.mjs +486 -0
- package/dist/{ai-response-CJ-uEAgj.mjs → ai-response-BM_DVIDY.mjs} +25 -27
- package/dist/{chevron-BHQrYKPM.mjs → chevron-DGKPHc2O.mjs} +2 -3
- package/dist/components/accordion/index.d.mts +1 -2
- package/dist/components/accordion/index.mjs +9 -16
- package/dist/components/affix/index.d.mts +1 -3
- package/dist/components/affix/index.mjs +19 -18
- package/dist/components/ai/index.d.mts +95 -2
- package/dist/components/ai/index.mjs +7 -69
- package/dist/components/ai-action/index.d.mts +0 -2
- package/dist/components/ai-action/index.mjs +4 -5
- package/dist/components/ai-attachments/index.d.mts +0 -2
- package/dist/components/ai-attachments/index.mjs +39 -52
- package/dist/components/ai-message/index.d.mts +2 -15
- package/dist/components/ai-message/index.mjs +18 -15
- package/dist/components/ai-prompt-input/index.d.mts +19 -15
- package/dist/components/ai-prompt-input/index.mjs +1 -168
- package/dist/components/ai-reasoning/index.d.mts +0 -2
- package/dist/components/ai-reasoning/index.mjs +8 -13
- 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 +25 -26
- package/dist/components/ai-suggestion/index.d.mts +0 -2
- package/dist/components/ai-suggestion/index.mjs +3 -4
- package/dist/components/ai-tool/index.d.mts +2 -25
- package/dist/components/ai-tool/index.mjs +75 -40
- package/dist/components/alert/index.d.mts +1 -2
- package/dist/components/alert/index.mjs +38 -33
- package/dist/components/angle-slider/index.d.mts +1 -2
- package/dist/components/angle-slider/index.mjs +6 -9
- package/dist/components/aspect-ratio/index.d.mts +1 -3
- package/dist/components/aspect-ratio/index.mjs +18 -17
- package/dist/components/autocomplete/index.d.mts +1 -2
- package/dist/components/autocomplete/index.mjs +6 -8
- package/dist/components/avatar/index.d.mts +17 -6
- package/dist/components/avatar/index.mjs +66 -10
- package/dist/components/avatar-group/index.d.mts +1 -3
- package/dist/components/avatar-group/index.mjs +15 -14
- package/dist/components/back-top/index.d.mts +1 -3
- package/dist/components/back-top/index.mjs +29 -34
- package/dist/components/badge/index.d.mts +1 -3
- package/dist/components/badge/index.mjs +18 -17
- package/dist/components/banner/index.d.mts +18 -3
- package/dist/components/banner/index.mjs +108 -31
- package/dist/components/bento/index.d.mts +1 -3
- package/dist/components/bento/index.mjs +30 -31
- package/dist/components/block-ui/index.d.mts +1 -3
- package/dist/components/block-ui/index.mjs +30 -33
- package/dist/components/breadcrumb/index.d.mts +15 -3
- package/dist/components/breadcrumb/index.mjs +56 -12
- package/dist/components/browser/index.d.mts +1 -3
- package/dist/components/browser/index.mjs +50 -51
- package/dist/components/button/index.d.mts +1 -3
- package/dist/components/button/index.mjs +31 -30
- package/dist/components/button-group/index.d.mts +1 -3
- package/dist/components/button-group/index.mjs +21 -20
- package/dist/components/calendar/index.d.mts +0 -2
- package/dist/components/calendar/index.mjs +73 -116
- package/dist/components/card/index.d.mts +1 -3
- package/dist/components/card/index.mjs +3 -4
- package/dist/components/carousel/index.d.mts +1 -2
- package/dist/components/carousel/index.mjs +6 -7
- package/dist/components/cascade-select/index.d.mts +1 -3
- package/dist/components/cascade-select/index.mjs +127 -167
- package/dist/components/checkbox/index.d.mts +1 -2
- package/dist/components/checkbox/index.mjs +7 -10
- package/dist/components/checkbox-group/index.d.mts +1 -2
- package/dist/components/checkbox-group/index.mjs +9 -12
- package/dist/components/chip/index.d.mts +1 -3
- package/dist/components/chip/index.mjs +22 -25
- 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 +10 -17
- package/dist/components/collapsible/index.d.mts +1 -2
- package/dist/components/collapsible/index.mjs +7 -14
- package/dist/components/collection/index.mjs +1 -2
- package/dist/components/color-picker/index.d.mts +5 -2
- package/dist/components/color-picker/index.mjs +69 -39
- package/dist/components/combobox/index.d.mts +1 -2
- package/dist/components/combobox/index.mjs +9 -14
- package/dist/components/command/index.d.mts +1 -2
- package/dist/components/command/index.mjs +63 -80
- package/dist/components/comment/index.d.mts +1 -3
- package/dist/components/comment/index.mjs +64 -80
- package/dist/components/config-provider/index.d.mts +1 -3
- package/dist/components/config-provider/index.mjs +10 -13
- package/dist/components/container/index.d.mts +1 -3
- package/dist/components/container/index.mjs +18 -17
- package/dist/components/data-view/index.d.mts +1 -3
- package/dist/components/data-view/index.mjs +81 -90
- package/dist/components/date-input/index.d.mts +1 -2
- package/dist/components/date-input/index.mjs +6 -9
- package/dist/components/date-picker/index.d.mts +1 -2
- package/dist/components/date-picker/index.mjs +11 -16
- package/dist/components/deferred-content/index.d.mts +1 -3
- package/dist/components/deferred-content/index.mjs +24 -25
- package/dist/components/descriptions/index.d.mts +1 -2
- package/dist/components/descriptions/index.mjs +40 -39
- package/dist/components/dialog/index.d.mts +11 -2
- package/dist/components/dialog/index.mjs +78 -40
- package/dist/components/dock/index.d.mts +1 -3
- package/dist/components/dock/index.mjs +29 -30
- 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 +9 -18
- package/dist/components/dynamic-input/index.d.mts +1 -3
- package/dist/components/dynamic-input/index.mjs +73 -77
- package/dist/components/editable/index.d.mts +1 -2
- package/dist/components/editable/index.mjs +7 -10
- package/dist/components/ellipsis/index.d.mts +1 -3
- package/dist/components/ellipsis/index.mjs +21 -20
- package/dist/components/empty/index.d.mts +1 -3
- package/dist/components/empty/index.mjs +3 -4
- package/dist/components/field/index.d.mts +1 -2
- package/dist/components/field/index.mjs +4 -5
- package/dist/components/fieldset/index.d.mts +1 -2
- package/dist/components/fieldset/index.mjs +6 -9
- package/dist/components/file-upload/index.d.mts +1 -2
- package/dist/components/file-upload/index.mjs +6 -7
- package/dist/components/float-button/index.d.mts +25 -3
- package/dist/components/float-button/index.mjs +108 -39
- package/dist/components/floating-panel/index.d.mts +1 -2
- package/dist/components/floating-panel/index.mjs +10 -21
- 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 +42 -58
- 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 -2
- package/dist/components/frame/index.mjs +3 -4
- package/dist/components/grid/index.d.mts +1 -3
- package/dist/components/grid/index.mjs +23 -22
- 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 +12 -27
- package/dist/components/icon/index.d.mts +1 -3
- package/dist/components/icon/index.mjs +35 -36
- package/dist/components/image/index.d.mts +1 -3
- package/dist/components/image/index.mjs +48 -52
- package/dist/components/image-cropper/index.d.mts +1 -2
- package/dist/components/image-cropper/index.mjs +5 -6
- 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 -2
- package/dist/components/input-group/index.mjs +19 -16
- package/dist/components/json-tree-view/index.d.mts +1 -2
- package/dist/components/json-tree-view/index.mjs +5 -6
- package/dist/components/kbd/index.d.mts +1 -3
- package/dist/components/kbd/index.mjs +12 -11
- package/dist/components/layout/index.d.mts +1 -2
- package/dist/components/layout/index.mjs +92 -84
- package/dist/components/link/index.d.mts +1 -3
- package/dist/components/link/index.mjs +15 -15
- package/dist/components/list/index.d.mts +1 -2
- package/dist/components/list/index.mjs +57 -61
- package/dist/components/listbox/index.d.mts +1 -2
- package/dist/components/listbox/index.mjs +8 -11
- package/dist/components/marquee/index.d.mts +1 -2
- package/dist/components/marquee/index.mjs +7 -8
- package/dist/components/masonry/index.d.mts +1 -3
- package/dist/components/masonry/index.mjs +19 -18
- 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 -3
- package/dist/components/menu/index.d.mts +1 -2
- package/dist/components/menu/index.mjs +8 -17
- package/dist/components/menubar/index.d.mts +1 -2
- package/dist/components/menubar/index.mjs +66 -72
- package/dist/components/meter/index.d.mts +1 -2
- package/dist/components/meter/index.mjs +42 -43
- package/dist/components/navigation-menu/index.d.mts +1 -2
- package/dist/components/navigation-menu/index.mjs +7 -12
- package/dist/components/number-input/index.d.mts +1 -2
- package/dist/components/number-input/index.mjs +7 -10
- package/dist/components/order-list/index.d.mts +1 -3
- package/dist/components/order-list/index.mjs +86 -101
- package/dist/components/page-header/index.d.mts +1 -3
- package/dist/components/page-header/index.mjs +3 -4
- package/dist/components/pagination/index.d.mts +1 -2
- package/dist/components/pagination/index.mjs +31 -42
- package/dist/components/password-input/index.d.mts +1 -2
- package/dist/components/password-input/index.mjs +6 -7
- package/dist/components/pin-input/index.d.mts +1 -2
- package/dist/components/pin-input/index.mjs +6 -9
- package/dist/components/popconfirm/index.d.mts +2 -3
- package/dist/components/popconfirm/index.mjs +15 -23
- package/dist/components/popover/index.d.mts +2 -26
- package/dist/components/popover/index.mjs +10 -21
- 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 +14 -26
- package/dist/components/progress-group/index.d.mts +1 -3
- package/dist/components/progress-group/index.mjs +60 -68
- package/dist/components/qr-code/index.d.mts +1 -2
- package/dist/components/qr-code/index.mjs +5 -8
- package/dist/components/radio-group/index.d.mts +1 -2
- package/dist/components/radio-group/index.mjs +6 -9
- package/dist/components/rating-group/index.d.mts +1 -2
- package/dist/components/rating-group/index.mjs +7 -10
- package/dist/components/result/index.d.mts +1 -2
- package/dist/components/result/index.mjs +28 -29
- package/dist/components/scroll-area/index.d.mts +8 -3
- package/dist/components/scroll-area/index.mjs +19 -11
- package/dist/components/segment-group/index.d.mts +1 -2
- package/dist/components/segment-group/index.mjs +5 -8
- 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 -3
- package/dist/components/separator/index.mjs +21 -20
- package/dist/components/signature-pad/index.d.mts +1 -2
- package/dist/components/signature-pad/index.mjs +7 -10
- package/dist/components/skeleton/index.d.mts +1 -3
- package/dist/components/skeleton/index.mjs +12 -11
- package/dist/components/slider/index.d.mts +1 -2
- package/dist/components/slider/index.mjs +6 -9
- package/dist/components/spinner/index.d.mts +1 -3
- package/dist/components/spinner/index.mjs +20 -19
- package/dist/components/split-button/index.d.mts +1 -2
- package/dist/components/split-button/index.mjs +92 -94
- package/dist/components/splitter/index.d.mts +1 -2
- package/dist/components/splitter/index.mjs +5 -8
- package/dist/components/spotlight/index.d.mts +1 -3
- package/dist/components/spotlight/index.mjs +22 -23
- package/dist/components/stack/index.d.mts +1 -3
- package/dist/components/stack/index.mjs +24 -23
- package/dist/components/stat/index.d.mts +1 -2
- package/dist/components/stat/index.mjs +15 -14
- package/dist/components/steps/index.d.mts +0 -2
- package/dist/components/steps/index.mjs +10 -17
- package/dist/components/swap/index.d.mts +1 -2
- package/dist/components/swap/index.mjs +5 -6
- package/dist/components/switch/index.d.mts +1 -2
- package/dist/components/switch/index.mjs +6 -9
- package/dist/components/table/index.d.mts +0 -2
- package/dist/components/table/index.mjs +233 -320
- package/dist/components/tabs/index.d.mts +8 -12
- package/dist/components/tabs/index.mjs +83 -34
- package/dist/components/tag/index.d.mts +1 -2
- package/dist/components/tag/index.mjs +46 -70
- package/dist/components/tags-input/index.d.mts +1 -2
- package/dist/components/tags-input/index.mjs +7 -10
- package/dist/components/terminal/index.d.mts +3 -3
- package/dist/components/terminal/index.mjs +61 -56
- package/dist/components/textarea/index.d.mts +1 -3
- package/dist/components/textarea/index.mjs +10 -11
- package/dist/components/timeline/index.d.mts +1 -2
- package/dist/components/timeline/index.mjs +15 -14
- package/dist/components/timer/index.d.mts +1 -2
- package/dist/components/timer/index.mjs +5 -6
- package/dist/components/toast/index.d.mts +0 -2
- package/dist/components/toast/index.mjs +5 -6
- package/dist/components/toc/index.d.mts +1 -1
- package/dist/components/toc/index.mjs +1 -2
- package/dist/components/toggle/index.d.mts +1 -2
- package/dist/components/toggle/index.mjs +5 -6
- package/dist/components/toggle-group/index.d.mts +1 -2
- package/dist/components/toggle-group/index.mjs +11 -16
- package/dist/components/toolbar/index.d.mts +1 -3
- package/dist/components/toolbar/index.mjs +27 -31
- package/dist/components/tooltip/index.d.mts +1 -2
- package/dist/components/tooltip/index.mjs +7 -16
- package/dist/components/tour/index.d.mts +0 -2
- package/dist/components/tour/index.mjs +11 -16
- package/dist/components/transfer/index.d.mts +1 -2
- package/dist/components/transfer/index.mjs +115 -126
- package/dist/components/tree-select/index.d.mts +2 -3
- package/dist/components/tree-select/index.mjs +24 -33
- package/dist/components/tree-view/index.d.mts +10 -4
- package/dist/components/tree-view/index.mjs +32 -23
- package/dist/components/typography/index.d.mts +2 -3
- package/dist/components/typography/index.mjs +4 -4
- package/dist/components/user/index.d.mts +1 -3
- package/dist/components/user/index.mjs +40 -57
- package/dist/components/virtual-list/index.d.mts +1 -3
- package/dist/components/virtual-list/index.mjs +39 -45
- package/dist/components/watermark/index.d.mts +1 -3
- package/dist/components/watermark/index.mjs +15 -22
- package/dist/{element-dGIhOTJ6.mjs → element-liigPBUh.mjs} +1 -2
- package/dist/{family-Cmd8HEyK.mjs → family-B5HtE0on.mjs} +1 -2
- package/dist/generative/index.d.mts +0 -2
- package/dist/generative/index.mjs +240 -248
- package/dist/{icon-DTqmJCd5.mjs → icon-DQqYA2fO.mjs} +11 -17
- package/dist/{id-2ygNzPHF.mjs → id-DGvz-2rQ.mjs} +1 -2
- package/dist/{image-viewer-19s75Hz_.mjs → image-viewer-TEia4PaY.mjs} +73 -101
- package/dist/{index-BU5U5w04.d.mts → index-B4WyTngM.d.mts} +0 -4
- package/dist/index-BRvSfkKs.d.mts +25 -0
- package/dist/{index-DhripUtf.d.mts → index-CTsFsYdA.d.mts} +0 -4
- package/dist/index-CutrHCzU.d.mts +153 -0
- package/dist/{index-wW28BYf1.d.mts → index-CwmZdzxT.d.mts} +0 -8
- package/dist/index-DK7YgaAU.d.mts +37 -0
- package/dist/index-Dms00480.d.mts +115 -0
- package/dist/{index-ID48LCMU.d.mts → index-Dv6mwzIr.d.mts} +3 -7
- package/dist/index.d.mts +17 -17
- package/dist/index.mjs +12 -12
- package/dist/{input-BL3N3L8g.mjs → input-2xfPP-7Z.mjs} +11 -13
- package/dist/{media-player-yF7KVUxM.mjs → media-player-LHnTiSiN.mjs} +248 -259
- package/dist/mentions-CvY9IGzc.mjs +438 -0
- package/dist/{select-DI7pFspF.mjs → select-NaNlrYUT.mjs} +72 -96
- package/dist/{toc-DRHr8_eD.mjs → toc-RnPG3w7q.mjs} +5 -7
- package/dist/{use-component-messages-C4SCVYjD.mjs → use-component-messages-DS9ppb4C.mjs} +1 -2
- package/package.json +13 -13
- package/dist/index-DEArHiFI.d.mts +0 -104
- package/dist/index-DVc1L_zt.d.mts +0 -10435
- package/dist/mentions-DKUG7eHt.mjs +0 -279
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { a as ToolValue } from "./index-DK7YgaAU.mjs";
|
|
2
|
+
import { JSX } from "solid-js";
|
|
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
|
+
}) => JSX.Element;
|
|
29
|
+
text?: (props: {
|
|
30
|
+
part: AiSdkTextPart<MESSAGE>;
|
|
31
|
+
index: number;
|
|
32
|
+
}) => JSX.Element;
|
|
33
|
+
custom?: (props: {
|
|
34
|
+
part: AiSdkCustomPart<MESSAGE>;
|
|
35
|
+
index: number;
|
|
36
|
+
}) => JSX.Element;
|
|
37
|
+
reasoning?: (props: {
|
|
38
|
+
part: AiSdkReasoningPart<MESSAGE>;
|
|
39
|
+
index: number;
|
|
40
|
+
}) => JSX.Element;
|
|
41
|
+
reasoningFile?: (props: {
|
|
42
|
+
part: AiSdkReasoningFilePart<MESSAGE>;
|
|
43
|
+
index: number;
|
|
44
|
+
}) => JSX.Element;
|
|
45
|
+
tool?: (props: {
|
|
46
|
+
part: AiSdkToolPart<MESSAGE>;
|
|
47
|
+
index: number;
|
|
48
|
+
}) => JSX.Element;
|
|
49
|
+
sourceUrl?: (props: {
|
|
50
|
+
part: AiSdkSourceUrlPart<MESSAGE>;
|
|
51
|
+
index: number;
|
|
52
|
+
}) => JSX.Element;
|
|
53
|
+
sourceDocument?: (props: {
|
|
54
|
+
part: AiSdkSourceDocumentPart<MESSAGE>;
|
|
55
|
+
index: number;
|
|
56
|
+
}) => JSX.Element;
|
|
57
|
+
file?: (props: {
|
|
58
|
+
part: AiSdkFilePart<MESSAGE>;
|
|
59
|
+
index: number;
|
|
60
|
+
}) => JSX.Element;
|
|
61
|
+
data?: (props: {
|
|
62
|
+
part: AiSdkDataPart<MESSAGE>;
|
|
63
|
+
index: number;
|
|
64
|
+
}) => JSX.Element;
|
|
65
|
+
stepStart?: (props: {
|
|
66
|
+
part: AiSdkStepStartPart<MESSAGE>;
|
|
67
|
+
index: number;
|
|
68
|
+
}) => JSX.Element;
|
|
69
|
+
fallback?: (props: {
|
|
70
|
+
part: AiSdkMessagePart<MESSAGE>;
|
|
71
|
+
index: number;
|
|
72
|
+
}) => JSX.Element;
|
|
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) => JSX.Element) & {
|
|
96
|
+
Root: (props: AiMediaProps) => JSX.Element;
|
|
97
|
+
};
|
|
98
|
+
declare function AiPartsRenderer<MESSAGE extends AiSdkMessage>(props: AiPartsProps<MESSAGE>): JSX.Element;
|
|
99
|
+
declare const AiParts: typeof AiPartsRenderer & {
|
|
100
|
+
Root: typeof AiPartsRenderer;
|
|
101
|
+
};
|
|
102
|
+
type MessageRole = "user" | "assistant" | "system";
|
|
103
|
+
interface MessageProps<MESSAGE extends AiSdkMessage = AiSdkMessage> extends Omit<JSX.HTMLAttributes<HTMLElement>, "role"> {
|
|
104
|
+
/** Whose stroke this is — the user's words sit in a recessed
|
|
105
|
+
* bubble, the assistant speaks flat on the paper. */
|
|
106
|
+
role?: MessageRole;
|
|
107
|
+
/** The AI SDK message; its id and role become the article identity. */
|
|
108
|
+
message?: MESSAGE;
|
|
109
|
+
}
|
|
110
|
+
/** Whose stroke this is — the user's words sit in a recessed bubble,
|
|
111
|
+
* the assistant speaks flat on the paper. */
|
|
112
|
+
declare const Message: ((props: MessageProps) => JSX.Element) & {
|
|
113
|
+
Root: (props: MessageProps) => JSX.Element;
|
|
114
|
+
};
|
|
115
|
+
export { AiToolDisplay as C, AiSdkToolPart as S, AiSdkReasoningPart as _, AiMediaKind as a, AiSdkStepStartPart as b, AiPartsProps as c, AiSdkDataPart as d, AiSdkFilePart as f, AiSdkReasoningFilePart as g, AiSdkMessagePart as h, AiMedia as i, AiPartsSlots as l, AiSdkMessage as m, MessageProps as n, AiMediaProps as o, AiSdkMediaPart as p, MessageRole as r, AiParts as s, Message as t, AiSdkCustomPart as u, AiSdkSourceDocumentPart as v, toolPartDisplay as w, AiSdkTextPart as x, AiSdkSourceUrlPart as y };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { JSX
|
|
1
|
+
import { JSX } from "solid-js";
|
|
2
2
|
import { CollectionItem } from "@ark-ui/solid/collection";
|
|
3
3
|
import { Select, SelectRootProps } from "@ark-ui/solid/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;
|
|
@@ -12,7 +11,7 @@ interface NativeSelectOption {
|
|
|
12
11
|
* behind the same hairline shell the framed select wears. The shell is
|
|
13
12
|
* a wrapper so the indicator rides beside the value as a real stroke —
|
|
14
13
|
* the same chevron the framed trigger shows. */
|
|
15
|
-
interface NativeSelectProps extends Omit<JSX
|
|
14
|
+
interface NativeSelectProps extends Omit<JSX.HTMLAttributes<HTMLSpanElement>, "children" | "onChange"> {
|
|
16
15
|
value?: string;
|
|
17
16
|
options: NativeSelectOption[];
|
|
18
17
|
/** One rung of the control-height ladder. */
|
|
@@ -22,9 +21,7 @@ interface NativeSelectProps extends Omit<JSX$1.HTMLAttributes<HTMLSpanElement>,
|
|
|
22
21
|
disabled?: boolean;
|
|
23
22
|
onValueChange?: (value: string) => void;
|
|
24
23
|
}
|
|
25
|
-
declare function NativeSelect(props: NativeSelectProps): JSX
|
|
26
|
-
//#endregion
|
|
27
|
-
//#region src/components/select/index.d.ts
|
|
24
|
+
declare function NativeSelect(props: NativeSelectProps): JSX.Element;
|
|
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,
|
|
@@ -64,5 +61,4 @@ interface SelectFacadeProps {
|
|
|
64
61
|
}
|
|
65
62
|
declare function SelectFacade(props: SelectFacadeProps): import("solid-js").JSX.Element;
|
|
66
63
|
declare const Select$1: typeof SelectFacade & SelectParts;
|
|
67
|
-
//#endregion
|
|
68
64
|
export { NativeSelectProps as a, NativeSelectOption as i, SelectFacadeProps as n, NativeSelect as r, Select$1 as t };
|
package/dist/index.d.mts
CHANGED
|
@@ -2,27 +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, AttachmentStatus } from "./components/ai-attachments/index.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { a as ToolValue, i as ToolStatus, n as ToolApproval, r as ToolProps, t as Tool } from "./index-DK7YgaAU.mjs";
|
|
6
|
+
import { C as AiToolDisplay, S as AiSdkToolPart, _ as AiSdkReasoningPart, a as AiMediaKind, b as AiSdkStepStartPart, c as AiPartsProps, d as AiSdkDataPart, f as AiSdkFilePart, g as AiSdkReasoningFilePart, h as AiSdkMessagePart, i as AiMedia, l as AiPartsSlots, m as AiSdkMessage, n as MessageProps, o as AiMediaProps, p as AiSdkMediaPart, r as MessageRole, s as AiParts, t as Message, u as AiSdkCustomPart, v as AiSdkSourceDocumentPart, w as toolPartDisplay, x as AiSdkTextPart, y as AiSdkSourceUrlPart } from "./index-Dms00480.mjs";
|
|
7
|
+
import { n as PopoverFacadeProps, t as Popover } from "./index-BRvSfkKs.mjs";
|
|
8
|
+
import { a as MentionsVessel, c as MentionTriggers, d as useMentions, i as MentionsProps, l as UseMentionsHandlers, n as MentionPlacement, o as MentionsVesselProps, r as Mentions, s as MentionCommitKey, t as MentionEntry, u as UseMentionsOptions } from "./index-CutrHCzU.mjs";
|
|
9
|
+
import { PromptInput, PromptInputProps } from "./components/ai-prompt-input/index.mjs";
|
|
7
10
|
import { AiReasoning as Reasoning, ReasoningProps } from "./components/ai-reasoning/index.mjs";
|
|
8
11
|
import { AiResponse as Response, ResponseProps } from "./components/ai-response/index.mjs";
|
|
9
12
|
import { AiSource as Source, AiSources as Sources, SourceProps } from "./components/ai-source/index.mjs";
|
|
10
13
|
import { AiSuggestion as Suggestion, SuggestionProps } from "./components/ai-suggestion/index.mjs";
|
|
11
|
-
import {
|
|
12
|
-
import { a as AiLoader, c as ReasoningUIPart, d as StepStartUIPart, f as TextUIPart, h as UIMessagePart, i as AiConversation, l as SourceDocumentUIPart, m as UIMessage, n as AiActions, o as DataUIPart, p as ToolUIPart, r as AiContent, s as FileUIPart, t as Ai, u as SourceUrlUIPart } from "./index-DVc1L_zt.mjs";
|
|
14
|
+
import { Ai, AiActions, AiContent, AiConversation, AiJumpToLatest, AiJumpToLatestProps, AiLoader, 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";
|
|
13
15
|
import { Alert, AlertProps, AlertStatus } from "./components/alert/index.mjs";
|
|
14
16
|
import { AngleSlider, AngleSliderFacadeProps } from "./components/angle-slider/index.mjs";
|
|
15
17
|
import { AspectRatio, AspectRatioProps } from "./components/aspect-ratio/index.mjs";
|
|
16
18
|
import { Combobox, ComboboxFacadeProps } from "./components/combobox/index.mjs";
|
|
17
19
|
import { AutoComplete, AutoCompleteProps } from "./components/autocomplete/index.mjs";
|
|
18
20
|
import { AvatarGroup, AvatarGroupProps } from "./components/avatar-group/index.mjs";
|
|
19
|
-
import { Avatar, AvatarProps, AvatarSize } from "./components/avatar/index.mjs";
|
|
21
|
+
import { Avatar, AvatarFacadeProps, AvatarProps, AvatarSize } from "./components/avatar/index.mjs";
|
|
20
22
|
import { BackTop, BackTopProps } from "./components/back-top/index.mjs";
|
|
21
23
|
import { Badge, BadgeProps } from "./components/badge/index.mjs";
|
|
22
|
-
import { Banner, BannerRootProps, BannerStatus } from "./components/banner/index.mjs";
|
|
24
|
+
import { Banner, BannerFacadeProps, BannerRootProps, BannerStatus } from "./components/banner/index.mjs";
|
|
23
25
|
import { Bento, BentoCell, BentoCellProps, BentoProps, BentoRoot } from "./components/bento/index.mjs";
|
|
24
26
|
import { BlockUI, BlockUIProps } from "./components/block-ui/index.mjs";
|
|
25
|
-
import { Breadcrumb } from "./components/breadcrumb/index.mjs";
|
|
27
|
+
import { Breadcrumb, BreadcrumbFacadeProps, BreadcrumbItem } from "./components/breadcrumb/index.mjs";
|
|
26
28
|
import { Browser, BrowserBody, BrowserDots, BrowserPartProps, BrowserRoot, BrowserTitleBar, BrowserUrlBar } from "./components/browser/index.mjs";
|
|
27
29
|
import { ButtonGroup, ButtonGroupProps, ButtonGroupRoot } from "./components/button-group/index.mjs";
|
|
28
30
|
import { Button, ButtonProps } from "./components/button/index.mjs";
|
|
@@ -39,7 +41,7 @@ import { Clipboard, ClipboardFacadeProps } from "./components/clipboard/index.mj
|
|
|
39
41
|
import { Collapsible, CollapsibleFacadeProps } from "./components/collapsible/index.mjs";
|
|
40
42
|
import { CollectionItem, CollectionOptions, FilePathTreeNode, FlatTreeNode, GridCollection, GridCollectionOptions, ListCollection, TreeCollection, TreeCollectionOptions, TreeNode, UseAsyncListProps, UseAsyncListReturn, UseListCollectionProps, UseListCollectionReturn, UseListSelectionProps, UseListSelectionReturn, createFileTreeCollection, createGridCollection, createListCollection, createTreeCollection, useAsyncList, useListCollection, useListSelection } from "./components/collection/index.mjs";
|
|
41
43
|
import { ColorPicker } from "./components/color-picker/index.mjs";
|
|
42
|
-
import { Dialog, DialogFacadeProps, DialogOpenChangeDetails } from "./components/dialog/index.mjs";
|
|
44
|
+
import { Dialog, DialogBodyProps, DialogFacadeProps, DialogOpenChangeDetails, DialogPartProps } from "./components/dialog/index.mjs";
|
|
43
45
|
import { Command, CommandEntry, CommandProps } from "./components/command/index.mjs";
|
|
44
46
|
import { Comment, CommentProps } from "./components/comment/index.mjs";
|
|
45
47
|
import { ConfigContext, ConfigContextKey, ConfigDensity, ConfigProvider, ConfigProviderProps, ConfigScene, useConfig } from "./components/config-provider/index.mjs";
|
|
@@ -58,7 +60,7 @@ import { Empty } from "./components/empty/index.mjs";
|
|
|
58
60
|
import { Field, FieldFacadeProps } from "./components/field/index.mjs";
|
|
59
61
|
import { Fieldset, FieldsetFacadeProps } from "./components/fieldset/index.mjs";
|
|
60
62
|
import { FileUpload, FileUploadFacadeProps } from "./components/file-upload/index.mjs";
|
|
61
|
-
import { FloatButton, FloatButtonContext, FloatButtonContextKey, FloatButtonItemProps, FloatButtonPlacement, FloatButtonRootProps, FloatButtonSize, FloatButtonTriggerProps } from "./components/float-button/index.mjs";
|
|
63
|
+
import { FloatButton, FloatButtonAction, FloatButtonContext, FloatButtonContextKey, FloatButtonFacadeProps, FloatButtonItemProps, FloatButtonPlacement, FloatButtonRootProps, FloatButtonSize, FloatButtonTriggerProps } from "./components/float-button/index.mjs";
|
|
62
64
|
import { FloatingPanel, FloatingPanelFacadeProps } from "./components/floating-panel/index.mjs";
|
|
63
65
|
import { FocusTrap, FocusTrapBaseProps, FocusTrapProps } from "./components/focus-trap/index.mjs";
|
|
64
66
|
import { FieldApi, Form, FormApi, FormField, FormFieldProps, FormProps, SolidFormApi, createField, createForm } from "./components/form/index.mjs";
|
|
@@ -69,7 +71,7 @@ import { Highlight } from "./components/highlight/index.mjs";
|
|
|
69
71
|
import { HoverCard, HoverCardFacadeProps } from "./components/hover-card/index.mjs";
|
|
70
72
|
import { Icon, IconProps } from "./components/icon/index.mjs";
|
|
71
73
|
import { ImageCropper, ImageCropperFacadeProps } from "./components/image-cropper/index.mjs";
|
|
72
|
-
import { n as ImageViewerProps, t as ImageViewer } from "./index-
|
|
74
|
+
import { n as ImageViewerProps, t as ImageViewer } from "./index-CTsFsYdA.mjs";
|
|
73
75
|
import { Image, ImageProps } from "./components/image/index.mjs";
|
|
74
76
|
import { InputGroup } from "./components/input-group/index.mjs";
|
|
75
77
|
import { Input, InputProps } from "./components/input/index.mjs";
|
|
@@ -81,9 +83,7 @@ import { List, ListContentProps, ListRootProps } from "./components/list/index.m
|
|
|
81
83
|
import { Listbox, ListboxFacadeProps } from "./components/listbox/index.mjs";
|
|
82
84
|
import { Marquee, MarqueeFacadeProps } from "./components/marquee/index.mjs";
|
|
83
85
|
import { Masonry, MasonryProps } from "./components/masonry/index.mjs";
|
|
84
|
-
import { a as MediaTextTrackOption, i as MediaSourceOption, n as Video, o as formatMediaTime, r as MediaPlayerProps, t as Audio } from "./index-
|
|
85
|
-
import { Popover, PopoverFacadeProps } from "./components/popover/index.mjs";
|
|
86
|
-
import { a as MentionsVesselProps, c as useMentions, i as MentionsVessel, n as Mentions, o as UseMentionsHandlers, r as MentionsProps, s as UseMentionsOptions, t as MentionEntry } from "./index-DEArHiFI.mjs";
|
|
86
|
+
import { a as MediaTextTrackOption, i as MediaSourceOption, n as Video, o as formatMediaTime, r as MediaPlayerProps, t as Audio } from "./index-CwmZdzxT.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, ScrollAreaFacadeProps } 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-Dv6mwzIr.mjs";
|
|
108
108
|
import { Separator, SeparatorProps } from "./components/separator/index.mjs";
|
|
109
109
|
import { SignaturePad, SignaturePadFacadeProps } from "./components/signature-pad/index.mjs";
|
|
110
110
|
import { Skeleton, SkeletonProps } from "./components/skeleton/index.mjs";
|
|
@@ -127,7 +127,7 @@ import { Textarea, TextareaProps } from "./components/textarea/index.mjs";
|
|
|
127
127
|
import { Timeline } from "./components/timeline/index.mjs";
|
|
128
128
|
import { Timer, TimerFacadeProps } from "./components/timer/index.mjs";
|
|
129
129
|
import { CreateToasterReturn, Toast, Toaster, ToasterFacadeProps, createToaster } from "./components/toast/index.mjs";
|
|
130
|
-
import { n as TocFacadeProps, t as Toc } from "./index-
|
|
130
|
+
import { n as TocFacadeProps, t as Toc } from "./index-B4WyTngM.mjs";
|
|
131
131
|
import { ToggleGroup, ToggleGroupFacadeProps, ToggleGroupItem } from "./components/toggle-group/index.mjs";
|
|
132
132
|
import { Toggle, ToggleFacadeProps } from "./components/toggle/index.mjs";
|
|
133
133
|
import { Toolbar, ToolbarProps } from "./components/toolbar/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, TreeViewFacadeProps } from "./components/tree-view/index.mjs";
|
|
138
|
+
import { TreeView, TreeViewFacadeProps, 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, AiConversation, AiLoader, Message as AiMessage, Message,
|
|
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, AiJumpToLatestProps, AiLoader, AiMedia, type AiMediaKind, type AiMediaProps, Message as AiMessage, Message, AiParts, type AiPartsProps, type AiPartsSlots, 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, AttachmentStatus, 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, ButtonGroupRoot, ButtonProps, Calendar, CalendarProps, Card, Carousel, CarouselFacadeProps, CascadeSelect, CascadeSelectNode, CascadeSelectProps, type ChatOnDataCallback, type ChatOnErrorCallback, type ChatOnFinishCallback, type ChatState, type ChatStatus, Checkbox, CheckboxFacadeProps, CheckboxGroup, CheckboxGroupFacadeProps, CheckboxOption, Chip, ChipProps, ClientOnly, type ClientOnlyProps, Clipboard, ClipboardFacadeProps, Collapsible, CollapsibleFacadeProps, type CollectionItem, type CollectionOptions, ColorPicker, type ColumnDef, Combobox, ComboboxFacadeProps, Command, CommandEntry, CommandProps, Comment, CommentProps, ConfigContext, ConfigContextKey, ConfigDensity, ConfigProvider, ConfigProviderProps, ConfigScene, Container, ContainerProps, type CreateToasterReturn, type CreateUIMessage, type CustomContentUIPart, DataTable, DataTableProps, type DataUIPart, DataView, DataViewProps, DateInput, DateInputFacadeProps, DatePicker, DatePickerFacadeProps, type DatePickerFocusChangeDetails, type DatePickerOpenChangeDetails, DatePickerPreset, type DatePickerValueChangeDetails, type DatePickerViewChangeDetails, type DatePickerVisibleRangeChangeDetails, DeferredContent, DeferredContentProps, Descriptions, DescriptionsItemData, DescriptionsRootProps, Dialog, DialogBodyProps, DialogFacadeProps, type DialogOpenChangeDetails, DialogPartProps, Dock, DockItem, DockItemProps, DockProps, DockRoot, DownloadTrigger, type DownloadTriggerBaseProps, type DownloadTriggerProps, type DownloadableData, Drawer, DrawerFacadeProps, DynamicInput, DynamicInputProps, type DynamicToolUIPart, Editable, EditableFacadeProps, Ellipsis, EllipsisProps, Empty, Field, type FieldApi, FieldFacadeProps, Fieldset, FieldsetFacadeProps, type FilePathTreeNode, type FileUIPart, FileUpload, FileUploadFacadeProps, type FlatTreeNode, FlexRender, FloatButton, FloatButtonAction, FloatButtonContext, FloatButtonContextKey, FloatButtonFacadeProps, FloatButtonItemProps, FloatButtonPlacement, FloatButtonRootProps, FloatButtonSize, FloatButtonTriggerProps, 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, InputProps, JsonTreeView, JsonTreeViewFacadeProps, Kbd, KbdProps, Layout, LayoutContextValue, LayoutRootProps, LayoutSiderProps, Link, LinkProps, List, type ListCollection, ListContentProps, ListRootProps, Listbox, ListboxFacadeProps, Marquee, MarqueeFacadeProps, Masonry, MasonryProps, type MediaPlayerProps, type MediaSourceOption, type MediaTextTrackOption, type MentionCommitKey, MentionEntry, MentionPlacement, type MentionTriggers, Mentions, MentionsProps, MentionsVessel, MentionsVesselProps, Menu, MenuFacadeProps, MenuItemOption, Menubar, MenubarEntry, MenubarGroup, MenubarProps, MessageProps, MessageRole, Meter, MeterRootProps, NativeSelect, type NativeSelectOption, type NativeSelectProps, NavigationMenu, NavigationMenuFacadeProps, NavigationMenuLinkOption, NumberInput, NumberInputFacadeProps, OrderList, OrderListProps, OrderOption, PageHeader, Pagination, PaginationFacadeProps, PasswordInput, PasswordInputFacadeProps, PinInput, PinInputFacadeProps, Popconfirm, PopconfirmProps, Popover, PopoverFacadeProps, Presence, type PresenceProps, PresenceProvider, Progress, ProgressFacadeProps, ProgressGroup, ProgressGroupProps, ProgressSegment, PromptInput, PromptInputProps, type ProviderMetadata, type ProviderReference, QrCode, QrCodeFacadeProps, RadioGroup, RadioGroupFacadeProps, RadioGroupItem, RatingGroup, RatingGroupFacadeProps, type ReasoningFileUIPart, ReasoningProps, type ReasoningUIPart, ResponseProps, Result, ResultIcon, ResultRoot, ResultRootProps, ScrollArea, ScrollAreaFacadeProps, SegmentGroup, SegmentGroupFacadeProps, SegmentGroupItem, Select, SelectFacadeProps, Separator, SeparatorProps, SignaturePad, SignaturePadFacadeProps, Skeleton, SkeletonProps, Slider, SliderFacadeProps, type SolidFormApi, type SortingState, type SourceDocumentUIPart, SourceProps, type SourceUrlUIPart, Spinner, SpinnerProps, SplitButton, SplitButtonEntry, SplitButtonProps, Splitter, SplitterFacadeProps, SplitterItem, Spotlight, SpotlightProps, Stack, StackProps, Stat, StatDeltaProps, type StepStartUIPart, Steps, StepsFacadeProps, StepsItem, SuggestionProps, Swap, SwapFacadeProps, Switch, SwitchFacadeProps, Tabs, TabsFacadeProps, TabsItem, Tag, TagProps, TagsInput, TagsInputFacadeProps, Terminal, TerminalProps, type TextUIPart, Textarea, TextareaProps, Timeline, Timer, TimerFacadeProps, Toast, Toaster, ToasterFacadeProps, 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, TreeViewFacadeProps, 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, createField, createField as useField, createFileTreeCollection, createForm, createForm as useForm, createGridCollection, createListCollection, createToaster, createTreeCollection, formatMediaTime, toolPartDisplay, useAsyncList, useConfig, useDownload, useListCollection, useListSelection, useMentions, usePresence, usePresenceContext, useTour };
|
package/dist/index.mjs
CHANGED
|
@@ -5,14 +5,17 @@ import { Action } from "./components/ai-action/index.mjs";
|
|
|
5
5
|
import { AiMessage as Message } from "./components/ai-message/index.mjs";
|
|
6
6
|
import { ConfigContextKey, ConfigProvider, useConfig } from "./components/config-provider/index.mjs";
|
|
7
7
|
import { Field } from "./components/field/index.mjs";
|
|
8
|
-
import {
|
|
8
|
+
import { Icon } from "./components/icon/index.mjs";
|
|
9
|
+
import { Popover } from "./components/popover/index.mjs";
|
|
10
|
+
import { n as MentionsVessel, r as useMentions, t as Mentions } from "./mentions-CvY9IGzc.mjs";
|
|
11
|
+
import { t as PromptInput } from "./ai-prompt-input-CEnnpkgi.mjs";
|
|
9
12
|
import { Collapsible } from "./components/collapsible/index.mjs";
|
|
10
13
|
import { AiReasoning as Reasoning } from "./components/ai-reasoning/index.mjs";
|
|
11
|
-
import { t as Response } from "./ai-response-
|
|
14
|
+
import { t as Response } from "./ai-response-BM_DVIDY.mjs";
|
|
12
15
|
import { AiSource as Source, AiSources as Sources } from "./components/ai-source/index.mjs";
|
|
13
16
|
import { AiSuggestion as Suggestion } from "./components/ai-suggestion/index.mjs";
|
|
14
17
|
import { AiTool as Tool } from "./components/ai-tool/index.mjs";
|
|
15
|
-
import {
|
|
18
|
+
import { a as AiJumpToLatest, c as AiParts, i as AiConversation, l as toolPartDisplay, n as AiActions, o as AiLoader, r as AiContent, s as AiMedia, t as Ai } from "./ai-NX47X8sz.mjs";
|
|
16
19
|
import { AiAttachment as Attachment, AiAttachments as Attachments } from "./components/ai-attachments/index.mjs";
|
|
17
20
|
import { Alert } from "./components/alert/index.mjs";
|
|
18
21
|
import { AngleSlider } from "./components/angle-slider/index.mjs";
|
|
@@ -32,7 +35,7 @@ import { DatePicker } from "./components/date-picker/index.mjs";
|
|
|
32
35
|
import { Calendar } from "./components/calendar/index.mjs";
|
|
33
36
|
import { Card } from "./components/card/index.mjs";
|
|
34
37
|
import { Carousel } from "./components/carousel/index.mjs";
|
|
35
|
-
import { t as Input } from "./input-
|
|
38
|
+
import { t as Input } from "./input-2xfPP-7Z.mjs";
|
|
36
39
|
import { CascadeSelect } from "./components/cascade-select/index.mjs";
|
|
37
40
|
import { Checkbox } from "./components/checkbox/index.mjs";
|
|
38
41
|
import { CheckboxGroup } from "./components/checkbox-group/index.mjs";
|
|
@@ -67,10 +70,9 @@ import { Frame } from "./components/frame/index.mjs";
|
|
|
67
70
|
import { Grid } from "./components/grid/index.mjs";
|
|
68
71
|
import { Highlight } from "./components/highlight/index.mjs";
|
|
69
72
|
import { HoverCard } from "./components/hover-card/index.mjs";
|
|
70
|
-
import { Icon } from "./components/icon/index.mjs";
|
|
71
73
|
import { Image } from "./components/image/index.mjs";
|
|
72
74
|
import { ImageCropper } from "./components/image-cropper/index.mjs";
|
|
73
|
-
import { t as ImageViewer } from "./image-viewer-
|
|
75
|
+
import { t as ImageViewer } from "./image-viewer-TEia4PaY.mjs";
|
|
74
76
|
import { InputGroup } from "./components/input-group/index.mjs";
|
|
75
77
|
import { JsonTreeView } from "./components/json-tree-view/index.mjs";
|
|
76
78
|
import { Kbd } from "./components/kbd/index.mjs";
|
|
@@ -82,8 +84,6 @@ import { Marquee } from "./components/marquee/index.mjs";
|
|
|
82
84
|
import { Masonry } from "./components/masonry/index.mjs";
|
|
83
85
|
import { Menu } from "./components/menu/index.mjs";
|
|
84
86
|
import { Menubar } from "./components/menubar/index.mjs";
|
|
85
|
-
import { Popover } from "./components/popover/index.mjs";
|
|
86
|
-
import { n as MentionsVessel, r as useMentions, t as Mentions } from "./mentions-DKUG7eHt.mjs";
|
|
87
87
|
import { Meter } from "./components/meter/index.mjs";
|
|
88
88
|
import { NavigationMenu } from "./components/navigation-menu/index.mjs";
|
|
89
89
|
import { OrderList } from "./components/order-list/index.mjs";
|
|
@@ -100,7 +100,7 @@ import { RadioGroup } from "./components/radio-group/index.mjs";
|
|
|
100
100
|
import { RatingGroup } from "./components/rating-group/index.mjs";
|
|
101
101
|
import { ScrollArea } from "./components/scroll-area/index.mjs";
|
|
102
102
|
import { SegmentGroup } from "./components/segment-group/index.mjs";
|
|
103
|
-
import { n as NativeSelect, t as Select } from "./select-
|
|
103
|
+
import { n as NativeSelect, t as Select } from "./select-NaNlrYUT.mjs";
|
|
104
104
|
import { Separator } from "./components/separator/index.mjs";
|
|
105
105
|
import { SignaturePad } from "./components/signature-pad/index.mjs";
|
|
106
106
|
import { Skeleton } from "./components/skeleton/index.mjs";
|
|
@@ -121,7 +121,7 @@ import { Textarea } from "./components/textarea/index.mjs";
|
|
|
121
121
|
import { Timeline } from "./components/timeline/index.mjs";
|
|
122
122
|
import { Timer } from "./components/timer/index.mjs";
|
|
123
123
|
import { Toast, Toaster, createToaster } from "./components/toast/index.mjs";
|
|
124
|
-
import { t as Toc } from "./toc-
|
|
124
|
+
import { t as Toc } from "./toc-RnPG3w7q.mjs";
|
|
125
125
|
import { Toggle } from "./components/toggle/index.mjs";
|
|
126
126
|
import { Toolbar } from "./components/toolbar/index.mjs";
|
|
127
127
|
import { Typography } from "./components/typography/index.mjs";
|
|
@@ -139,6 +139,6 @@ import { Dock, DockItem, DockRoot } from "./components/dock/index.mjs";
|
|
|
139
139
|
import { Browser, BrowserBody, BrowserDots, BrowserRoot, BrowserTitleBar, BrowserUrlBar } from "./components/browser/index.mjs";
|
|
140
140
|
import { Bento, BentoCell, BentoRoot } from "./components/bento/index.mjs";
|
|
141
141
|
import { Result, ResultIcon, ResultRoot } from "./components/result/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-LHnTiSiN.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, AiConversation, AiLoader, Message as AiMessage, Message,
|
|
144
|
+
export { Accordion, Action, Action as AiAction, Affix, Ai, AiActions, Attachment as AiAttachment, Attachment, Attachments as AiAttachments, Attachments, AiContent, AiConversation, AiJumpToLatest, AiLoader, AiMedia, Message as AiMessage, Message, AiParts, 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, ButtonGroupRoot, Calendar, Card, Carousel, CascadeSelect, Checkbox, CheckboxGroup, Chip, ClientOnly, Clipboard, Collapsible, ColorPicker, Combobox, Command, Comment, ConfigContextKey, ConfigProvider, Container, DataTable, DataView, DateInput, DatePicker, DeferredContent, Descriptions, Dialog, Dock, DockItem, DockRoot, DownloadTrigger, Drawer, DynamicInput, Editable, Ellipsis, Empty, Field, Fieldset, FileUpload, FlexRender, FloatButton, FloatButtonContextKey, 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, PromptInput, 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, createField, createField as useField, createFileTreeCollection, createForm, createForm as useForm, createGridCollection, createListCollection, createToaster, createTreeCollection, formatMediaTime, toolPartDisplay, useAsyncList, useConfig, useDownload, useListCollection, useListSelection, useMentions, usePresence, usePresenceContext, useTour };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as withSelfRoot } from "./family-
|
|
2
|
-
import { spread, template } from "
|
|
1
|
+
import { n as withSelfRoot } from "./family-B5HtE0on.mjs";
|
|
2
|
+
import { mergeProps, spread, template } from "solid-js/web";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { mergeProps as mergeProps$1, splitProps } from "solid-js";
|
|
5
5
|
import { useFieldContext } from "@ark-ui/solid/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,9 +37,8 @@ function applyMask(raw, mask) {
|
|
|
37
37
|
}
|
|
38
38
|
return out;
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
var _tmpl$ = /* @__PURE__ */ template(`<input>`);
|
|
40
|
+
// src/components/input/index.tsx
|
|
41
|
+
var _tmpl$ = /*#__PURE__*/ template(`<input>`);
|
|
43
42
|
/** The bare text input: the field recipe — border, surface, focus halo —
|
|
44
43
|
* on a native control. Standing alone it styles itself from the `invalid`
|
|
45
44
|
* prop; inside a `Field.Root` it consumes the field context, picking up
|
|
@@ -56,9 +55,9 @@ const Input = withSelfRoot(function Input(props) {
|
|
|
56
55
|
"mask",
|
|
57
56
|
"onValueChange"
|
|
58
57
|
]);
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
return (() => {
|
|
59
|
+
var _el$ = _tmpl$();
|
|
60
|
+
spread(_el$, mergeProps(() => mergeProps$1(() => field?.().getInputProps() ?? {}, rest, {
|
|
62
61
|
get value() {
|
|
63
62
|
return own.value;
|
|
64
63
|
},
|
|
@@ -71,9 +70,8 @@ const Input = withSelfRoot(function Input(props) {
|
|
|
71
70
|
return own.invalid || field?.().getInputProps()["data-invalid"] != null ? "" : void 0;
|
|
72
71
|
},
|
|
73
72
|
onInput: (event) => own.onValueChange?.(own.mask ? applyMask(event.currentTarget.value, own.mask) : event.currentTarget.value)
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
})), false, false);
|
|
74
|
+
return _el$;
|
|
75
|
+
})();
|
|
77
76
|
});
|
|
78
|
-
//#endregion
|
|
79
77
|
export { Input as t };
|