@bysages/solid 0.4.0 → 0.4.2
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-response-D2uINBIi.mjs → ai-response-CJ-uEAgj.mjs} +1 -1
- package/dist/components/accordion/index.mjs +1 -1
- package/dist/components/affix/index.mjs +3 -3
- package/dist/components/ai/index.d.mts +1 -1
- package/dist/components/ai/index.mjs +2 -2
- package/dist/components/ai-action/index.mjs +1 -1
- package/dist/components/ai-attachments/index.mjs +1 -1
- package/dist/components/ai-message/index.mjs +1 -1
- package/dist/components/ai-prompt-input/index.mjs +38 -36
- package/dist/components/ai-reasoning/index.mjs +1 -1
- package/dist/components/ai-response/index.mjs +1 -1
- package/dist/components/ai-source/index.mjs +1 -1
- package/dist/components/ai-suggestion/index.mjs +1 -1
- package/dist/components/ai-tool/index.mjs +1 -1
- package/dist/components/alert/index.mjs +1 -1
- package/dist/components/angle-slider/index.d.mts +15 -1
- package/dist/components/angle-slider/index.mjs +58 -3
- package/dist/components/aspect-ratio/index.mjs +1 -1
- package/dist/components/autocomplete/index.mjs +9 -3
- package/dist/components/avatar/index.mjs +1 -1
- package/dist/components/avatar-group/index.mjs +1 -1
- package/dist/components/back-top/index.mjs +1 -1
- package/dist/components/badge/index.mjs +1 -1
- package/dist/components/banner/index.mjs +1 -1
- package/dist/components/bento/index.mjs +1 -1
- package/dist/components/block-ui/index.mjs +1 -1
- package/dist/components/breadcrumb/index.mjs +1 -1
- package/dist/components/browser/index.mjs +1 -1
- package/dist/components/button/index.mjs +1 -1
- package/dist/components/button-group/index.mjs +1 -1
- package/dist/components/calendar/index.d.mts +19 -7
- package/dist/components/calendar/index.mjs +213 -139
- package/dist/components/card/index.mjs +1 -1
- package/dist/components/carousel/index.d.mts +15 -1
- package/dist/components/carousel/index.mjs +69 -5
- package/dist/components/cascade-select/index.mjs +2 -2
- package/dist/components/checkbox/index.d.mts +16 -1
- package/dist/components/checkbox/index.mjs +54 -3
- package/dist/components/checkbox-group/index.d.mts +10 -3
- package/dist/components/checkbox-group/index.mjs +3 -3
- package/dist/components/chip/index.d.mts +1 -1
- package/dist/components/chip/index.mjs +1 -1
- package/dist/components/clipboard/index.d.mts +14 -1
- package/dist/components/clipboard/index.mjs +58 -3
- package/dist/components/collapsible/index.mjs +1 -1
- package/dist/components/color-picker/index.mjs +1 -1
- package/dist/components/combobox/index.mjs +1 -1
- package/dist/components/command/index.mjs +1 -1
- package/dist/components/comment/index.mjs +1 -1
- package/dist/components/container/index.mjs +1 -1
- package/dist/components/data-view/index.mjs +1 -1
- package/dist/components/date-input/index.d.mts +16 -2
- package/dist/components/date-input/index.mjs +52 -3
- package/dist/components/date-picker/index.d.mts +27 -2
- package/dist/components/date-picker/index.mjs +153 -4
- package/dist/components/deferred-content/index.mjs +1 -1
- package/dist/components/descriptions/index.mjs +1 -1
- package/dist/components/dialog/index.mjs +1 -1
- package/dist/components/dock/index.mjs +1 -1
- package/dist/components/drawer/index.mjs +1 -1
- package/dist/components/dynamic-input/index.mjs +2 -2
- package/dist/components/editable/index.d.mts +17 -1
- package/dist/components/editable/index.mjs +81 -3
- package/dist/components/ellipsis/index.mjs +1 -1
- package/dist/components/empty/index.mjs +1 -1
- package/dist/components/field/index.d.mts +16 -1
- package/dist/components/field/index.mjs +53 -5
- package/dist/components/fieldset/index.d.mts +15 -3
- package/dist/components/fieldset/index.mjs +47 -5
- package/dist/components/file-upload/index.d.mts +21 -1
- package/dist/components/file-upload/index.mjs +66 -3
- package/dist/components/float-button/index.mjs +1 -1
- package/dist/components/floating-panel/index.d.mts +15 -3
- package/dist/components/floating-panel/index.mjs +113 -5
- package/dist/components/form/index.d.mts +44 -2
- package/dist/components/form/index.mjs +1 -1
- package/dist/components/grid/index.mjs +1 -1
- package/dist/components/highlight/index.mjs +1 -1
- package/dist/components/hover-card/index.mjs +1 -1
- package/dist/components/icon/index.mjs +1 -1
- package/dist/components/image/index.mjs +1 -1
- package/dist/components/image-cropper/index.d.mts +8 -1
- package/dist/components/image-cropper/index.mjs +43 -5
- package/dist/components/image-viewer/index.mjs +1 -1
- package/dist/components/input/index.mjs +1 -1
- package/dist/components/input-group/index.mjs +1 -1
- package/dist/components/json-tree-view/index.d.mts +11 -2
- package/dist/components/json-tree-view/index.mjs +17 -2
- package/dist/components/kbd/index.mjs +1 -1
- package/dist/components/layout/index.mjs +1 -1
- package/dist/components/link/index.mjs +1 -1
- package/dist/components/list/index.mjs +1 -1
- package/dist/components/listbox/index.d.mts +21 -1
- package/dist/components/listbox/index.mjs +59 -4
- package/dist/components/marquee/index.d.mts +12 -1
- package/dist/components/marquee/index.mjs +46 -5
- package/dist/components/masonry/index.mjs +1 -1
- package/dist/components/media-player/index.mjs +1 -1
- package/dist/components/mentions/index.mjs +1 -1
- package/dist/components/menu/index.mjs +1 -1
- package/dist/components/menubar/index.mjs +1 -1
- package/dist/components/meter/index.mjs +1 -1
- package/dist/components/navigation-menu/index.d.mts +17 -1
- package/dist/components/navigation-menu/index.mjs +66 -6
- package/dist/components/number-input/index.d.mts +20 -1
- package/dist/components/number-input/index.mjs +72 -3
- package/dist/components/order-list/index.mjs +1 -1
- package/dist/components/page-header/index.mjs +1 -1
- package/dist/components/pagination/index.d.mts +22 -2
- package/dist/components/pagination/index.mjs +105 -6
- package/dist/components/password-input/index.d.mts +18 -1
- package/dist/components/password-input/index.mjs +57 -3
- package/dist/components/pin-input/index.d.mts +18 -1
- package/dist/components/pin-input/index.mjs +55 -3
- package/dist/components/popconfirm/index.mjs +1 -1
- package/dist/components/popover/index.mjs +1 -1
- package/dist/components/progress/index.d.mts +19 -1
- package/dist/components/progress/index.mjs +106 -7
- package/dist/components/progress-group/index.mjs +1 -1
- package/dist/components/qr-code/index.d.mts +8 -1
- package/dist/components/qr-code/index.mjs +22 -5
- package/dist/components/radio-group/index.d.mts +23 -1
- package/dist/components/radio-group/index.mjs +66 -3
- package/dist/components/rating-group/index.d.mts +15 -1
- package/dist/components/rating-group/index.mjs +52 -3
- package/dist/components/result/index.mjs +1 -1
- package/dist/components/scroll-area/index.d.mts +11 -3
- package/dist/components/scroll-area/index.mjs +37 -5
- package/dist/components/segment-group/index.d.mts +27 -4
- package/dist/components/segment-group/index.mjs +66 -7
- package/dist/components/select/index.mjs +1 -1
- package/dist/components/separator/index.mjs +1 -1
- package/dist/components/signature-pad/index.d.mts +16 -1
- package/dist/components/signature-pad/index.mjs +64 -5
- package/dist/components/skeleton/index.mjs +1 -1
- package/dist/components/slider/index.d.mts +20 -1
- package/dist/components/slider/index.mjs +67 -3
- package/dist/components/spinner/index.mjs +1 -1
- package/dist/components/split-button/index.mjs +1 -1
- package/dist/components/splitter/index.d.mts +15 -1
- package/dist/components/splitter/index.mjs +58 -5
- package/dist/components/spotlight/index.mjs +1 -1
- package/dist/components/stack/index.mjs +1 -1
- package/dist/components/stat/index.mjs +1 -1
- package/dist/components/steps/index.d.mts +5 -1
- package/dist/components/steps/index.mjs +10 -3
- package/dist/components/swap/index.d.mts +11 -3
- package/dist/components/swap/index.mjs +35 -5
- package/dist/components/switch/index.d.mts +16 -1
- package/dist/components/switch/index.mjs +48 -3
- package/dist/components/table/index.d.mts +2 -0
- package/dist/components/table/index.mjs +36 -14
- package/dist/components/tabs/index.mjs +1 -1
- package/dist/components/tag/index.d.mts +29 -0
- package/dist/components/tag/index.mjs +108 -0
- package/dist/components/tags-input/index.d.mts +18 -1
- package/dist/components/tags-input/index.mjs +83 -3
- package/dist/components/terminal/index.mjs +1 -1
- package/dist/components/textarea/index.mjs +1 -1
- package/dist/components/timeline/index.mjs +1 -1
- package/dist/components/timer/index.d.mts +12 -1
- package/dist/components/timer/index.mjs +57 -5
- package/dist/components/toast/index.d.mts +10 -5
- package/dist/components/toast/index.mjs +38 -6
- package/dist/components/toc/index.d.mts +2 -11
- package/dist/components/toc/index.mjs +1 -1
- package/dist/components/toggle/index.d.mts +8 -1
- package/dist/components/toggle/index.mjs +27 -5
- package/dist/components/toggle-group/index.d.mts +23 -1
- package/dist/components/toggle-group/index.mjs +58 -4
- package/dist/components/toolbar/index.mjs +1 -1
- package/dist/components/tooltip/index.mjs +1 -1
- package/dist/components/tour/index.mjs +1 -1
- package/dist/components/transfer/index.mjs +2 -2
- package/dist/components/tree-select/index.mjs +2 -2
- package/dist/components/tree-view/index.d.mts +32 -2
- package/dist/components/tree-view/index.mjs +94 -5
- package/dist/components/typography/index.mjs +1 -1
- package/dist/components/user/index.mjs +1 -1
- package/dist/components/virtual-list/index.mjs +1 -1
- package/dist/components/watermark/index.mjs +1 -1
- package/dist/{image-viewer-B9A5lXsk.mjs → image-viewer-19s75Hz_.mjs} +1 -1
- package/dist/index-BU5U5w04.d.mts +35 -0
- package/dist/{index-nFXK_8hJ.d.mts → index-DVc1L_zt.d.mts} +138 -89
- package/dist/index.d.mts +44 -43
- package/dist/index.mjs +9 -8
- package/dist/{input-CPAJdwDb.mjs → input-BL3N3L8g.mjs} +1 -1
- package/dist/{media-player-BC8D_d29.mjs → media-player-yF7KVUxM.mjs} +2 -2
- package/dist/{mentions-CeG5u8Qm.mjs → mentions-DKUG7eHt.mjs} +1 -1
- package/dist/{select-7YjMSBGx.mjs → select-DI7pFspF.mjs} +1 -1
- package/dist/toc-DRHr8_eD.mjs +88 -0
- package/package.json +10 -82
- package/dist/index-B1-quIrl.d.mts +0 -1815
- package/dist/toc-DYKaKQ_X.mjs +0 -31
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as withSelfRoot } from "./family-Cmd8HEyK.mjs";
|
|
2
2
|
import { n as iconHtml } from "./icon-DTqmJCd5.mjs";
|
|
3
3
|
import { n as useComponentMessages } from "./use-component-messages-C4SCVYjD.mjs";
|
|
4
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
5
4
|
import { ref, spread, template } from "@solidjs/web";
|
|
5
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
6
6
|
import { createEffect, createMemo, onMount, splitProps } from "solid-js";
|
|
7
7
|
import { renderHtml } from "@tanstack/markdown/html";
|
|
8
8
|
//#region src/components/ai-response/code-copy.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
2
|
import { r as iconNode } from "../../icon-DTqmJCd5.mjs";
|
|
3
3
|
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
4
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
5
4
|
import { createComponent, insert, memo, mergeProps, template } from "@solidjs/web";
|
|
6
5
|
import { Accordion as Accordion$1 } from "@ark-ui/solid/accordion";
|
|
6
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
7
7
|
import { For } from "solid-js";
|
|
8
8
|
//#region src/components/accordion/index.tsx
|
|
9
9
|
var _tmpl$ = /* @__PURE__ */ template(`<p>`);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
3
2
|
import { spread, template } from "@solidjs/web";
|
|
3
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { splitProps } from "solid-js";
|
|
5
5
|
//#region src/components/affix/index.tsx
|
|
6
6
|
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
@@ -21,8 +21,8 @@ const Affix = withSelfRoot(function Affix(props) {
|
|
|
21
21
|
get style() {
|
|
22
22
|
return {
|
|
23
23
|
...rest.style,
|
|
24
|
-
"--bs-affix-top": own.offsetTop
|
|
25
|
-
"--bs-affix-bottom": own.offsetBottom
|
|
24
|
+
"--bs-affix-top": own.offsetTop,
|
|
25
|
+
"--bs-affix-bottom": own.offsetBottom
|
|
26
26
|
};
|
|
27
27
|
},
|
|
28
28
|
"data-scope": "affix",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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";
|
|
2
2
|
export { Ai, AiActions, AiContent, AiConversation, AiLoader, type DataUIPart, type FileUIPart, type ReasoningUIPart, type SourceDocumentUIPart, type SourceUrlUIPart, type StepStartUIPart, type TextUIPart, type ToolUIPart, type UIMessage, type UIMessagePart };
|
|
@@ -4,12 +4,12 @@ import { AiMessage as Message } from "../ai-message/index.mjs";
|
|
|
4
4
|
import { n as useComponentMessages } from "../../use-component-messages-C4SCVYjD.mjs";
|
|
5
5
|
import { AiPromptInput as PromptInput } from "../ai-prompt-input/index.mjs";
|
|
6
6
|
import { AiReasoning as Reasoning } from "../ai-reasoning/index.mjs";
|
|
7
|
-
import { t as Response } from "../../ai-response-
|
|
7
|
+
import { t as Response } from "../../ai-response-CJ-uEAgj.mjs";
|
|
8
8
|
import { AiSource as Source, AiSources as Sources } from "../ai-source/index.mjs";
|
|
9
9
|
import { AiSuggestion as Suggestion } from "../ai-suggestion/index.mjs";
|
|
10
10
|
import { AiTool as Tool } from "../ai-tool/index.mjs";
|
|
11
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
12
11
|
import { spread, template } from "@solidjs/web";
|
|
12
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
13
13
|
//#region src/components/ai/index.tsx
|
|
14
14
|
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
15
15
|
function part(name, extra = {}) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
2
2
|
import { Button } from "../button/index.mjs";
|
|
3
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
4
3
|
import { createComponent, mergeProps } from "@solidjs/web";
|
|
4
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { splitProps } from "solid-js";
|
|
6
6
|
//#region src/components/ai-action/index.tsx
|
|
7
7
|
/** A quiet icon button — copy, retry, thumbs. The label names it to
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
2
2
|
import { r as iconNode } from "../../icon-DTqmJCd5.mjs";
|
|
3
3
|
import { n as useComponentMessages, t as formatComponentMessage } from "../../use-component-messages-C4SCVYjD.mjs";
|
|
4
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
5
4
|
import { delegateEvents, effect, insert, memo, setAttribute, spread, template } from "@solidjs/web";
|
|
5
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
6
6
|
import { splitProps } from "solid-js";
|
|
7
7
|
//#region src/components/ai-attachments/index.tsx
|
|
8
8
|
var _tmpl$ = /* @__PURE__ */ template(`<span><span></span><button type=button data-remove>`);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
3
2
|
import { spread, template } from "@solidjs/web";
|
|
3
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { splitProps } from "solid-js";
|
|
5
5
|
//#region src/components/ai-message/index.tsx
|
|
6
6
|
var _tmpl$ = /* @__PURE__ */ template(`<article>`);
|
|
@@ -3,14 +3,13 @@ import { r as iconNode } from "../../icon-DTqmJCd5.mjs";
|
|
|
3
3
|
import { Button } from "../button/index.mjs";
|
|
4
4
|
import { n as useComponentMessages } from "../../use-component-messages-C4SCVYjD.mjs";
|
|
5
5
|
import { Field } from "../field/index.mjs";
|
|
6
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
7
6
|
import { claimElement, createComponent, insert, setAttribute, spread, template } from "@solidjs/web";
|
|
7
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
8
8
|
import { Show, splitProps } from "solid-js";
|
|
9
9
|
//#region src/components/ai-prompt-input/index.tsx
|
|
10
|
-
var _tmpl$ = /* @__PURE__ */ template(`<
|
|
11
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<div data-scope=ai
|
|
12
|
-
var _tmpl$3 = /* @__PURE__ */ template(`<div data-scope=ai data-part=prompt-
|
|
13
|
-
var _tmpl$4 = /* @__PURE__ */ template(`<form><div data-scope=ai data-part=prompt-main><!><!><!></div><!>`);
|
|
10
|
+
var _tmpl$ = /* @__PURE__ */ template(`<div data-scope=ai>`);
|
|
11
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<div data-scope=ai data-part=prompt-footer><div data-scope=ai data-part=prompt-end><!><!>`);
|
|
12
|
+
var _tmpl$3 = /* @__PURE__ */ template(`<form><div data-scope=ai data-part=prompt-main><!><!><!></div><!>`);
|
|
14
13
|
function arrowUpIcon() {
|
|
15
14
|
return iconNode("arrow-up", {
|
|
16
15
|
width: "14",
|
|
@@ -18,7 +17,10 @@ function arrowUpIcon() {
|
|
|
18
17
|
});
|
|
19
18
|
}
|
|
20
19
|
function stopIcon() {
|
|
21
|
-
return
|
|
20
|
+
return iconNode("square", {
|
|
21
|
+
width: "14",
|
|
22
|
+
height: "14"
|
|
23
|
+
});
|
|
22
24
|
}
|
|
23
25
|
/** The prompt vessel: the shared field textarea — self-growing on the
|
|
24
26
|
* machine's autoresize — with the submit seal riding its last line.
|
|
@@ -56,10 +58,10 @@ const PromptInput = withSelfRoot(function PromptInput(props) {
|
|
|
56
58
|
own.onValueChange?.("");
|
|
57
59
|
};
|
|
58
60
|
const row = (part, content) => content != null ? (() => {
|
|
59
|
-
var _el$
|
|
60
|
-
setAttribute(_el
|
|
61
|
-
insert(_el
|
|
62
|
-
return _el
|
|
61
|
+
var _el$ = _tmpl$();
|
|
62
|
+
setAttribute(_el$, "data-part", part);
|
|
63
|
+
insert(_el$, content);
|
|
64
|
+
return _el$;
|
|
63
65
|
})() : null;
|
|
64
66
|
const seal = () => own.busy ? createComponent(Button, {
|
|
65
67
|
variant: "solid",
|
|
@@ -92,14 +94,14 @@ const PromptInput = withSelfRoot(function PromptInput(props) {
|
|
|
92
94
|
}
|
|
93
95
|
});
|
|
94
96
|
const trailing = () => own.footer != null ? own.trailing : own.trailing ?? seal();
|
|
95
|
-
var _el$
|
|
97
|
+
var _el$2 = _tmpl$3();
|
|
98
|
+
var _el$3 = _el$2.firstChild;
|
|
96
99
|
var _el$4 = _el$3.firstChild;
|
|
97
|
-
var _el$5 = _el$4.
|
|
100
|
+
var _el$5 = _el$4.nextSibling;
|
|
98
101
|
var _el$6 = _el$5.nextSibling;
|
|
99
|
-
var _el$
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
spread(_el$3, [rest, {
|
|
102
|
+
var _el$11 = _el$3.nextSibling;
|
|
103
|
+
claimElement(_el$2);
|
|
104
|
+
spread(_el$2, [rest, {
|
|
103
105
|
"data-scope": "ai",
|
|
104
106
|
"data-part": "prompt",
|
|
105
107
|
onSubmit: (event) => {
|
|
@@ -107,13 +109,13 @@ const PromptInput = withSelfRoot(function PromptInput(props) {
|
|
|
107
109
|
send();
|
|
108
110
|
}
|
|
109
111
|
}], true);
|
|
110
|
-
insert(_el$
|
|
112
|
+
insert(_el$2, () => {
|
|
111
113
|
return row("prompt-header", own.header);
|
|
112
|
-
}, _el$
|
|
113
|
-
insert(_el$
|
|
114
|
+
}, _el$3);
|
|
115
|
+
insert(_el$3, () => {
|
|
114
116
|
return row("prompt-leading", own.leading);
|
|
115
|
-
}, _el$
|
|
116
|
-
insert(_el$
|
|
117
|
+
}, _el$4);
|
|
118
|
+
insert(_el$3, createComponent(Field.Root, { get children() {
|
|
117
119
|
return createComponent(Field.Textarea, {
|
|
118
120
|
autoresize: true,
|
|
119
121
|
rows: 1,
|
|
@@ -137,30 +139,30 @@ const PromptInput = withSelfRoot(function PromptInput(props) {
|
|
|
137
139
|
}
|
|
138
140
|
}
|
|
139
141
|
});
|
|
140
|
-
} }), _el$
|
|
141
|
-
insert(_el$
|
|
142
|
+
} }), _el$5);
|
|
143
|
+
insert(_el$3, () => {
|
|
142
144
|
return row("prompt-trailing", trailing());
|
|
143
|
-
}, _el$
|
|
144
|
-
insert(_el$
|
|
145
|
+
}, _el$6);
|
|
146
|
+
insert(_el$2, createComponent(Show, {
|
|
145
147
|
get when() {
|
|
146
148
|
return own.footer != null;
|
|
147
149
|
},
|
|
148
150
|
get children() {
|
|
149
|
-
var _el$
|
|
151
|
+
var _el$7 = _tmpl$2();
|
|
152
|
+
var _el$8 = _el$7.firstChild;
|
|
150
153
|
var _el$9 = _el$8.firstChild;
|
|
151
|
-
var _el$10 = _el$9.
|
|
152
|
-
|
|
153
|
-
insert(_el$8, () => {
|
|
154
|
+
var _el$10 = _el$9.nextSibling;
|
|
155
|
+
insert(_el$7, () => {
|
|
154
156
|
return own.footer;
|
|
155
|
-
}, _el$
|
|
156
|
-
insert(_el$
|
|
157
|
+
}, _el$8);
|
|
158
|
+
insert(_el$8, () => {
|
|
157
159
|
return own.footerEnd;
|
|
158
|
-
}, _el$
|
|
159
|
-
insert(_el$
|
|
160
|
-
return _el$
|
|
160
|
+
}, _el$9);
|
|
161
|
+
insert(_el$8, seal, _el$10);
|
|
162
|
+
return _el$7;
|
|
161
163
|
}
|
|
162
|
-
}), _el$
|
|
163
|
-
return _el$
|
|
164
|
+
}), _el$11);
|
|
165
|
+
return _el$2;
|
|
164
166
|
});
|
|
165
167
|
//#endregion
|
|
166
168
|
export { PromptInput as AiPromptInput, PromptInput };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
2
2
|
import { t as chevron } from "../../chevron-BHQrYKPM.mjs";
|
|
3
3
|
import { Collapsible } from "../collapsible/index.mjs";
|
|
4
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
5
4
|
import { createComponent, insert, mergeProps, template } from "@solidjs/web";
|
|
5
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
6
6
|
import { splitProps } from "solid-js";
|
|
7
7
|
//#region src/components/ai-reasoning/index.tsx
|
|
8
8
|
var _tmpl$ = /* @__PURE__ */ template(`<span>`);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Response } from "../../ai-response-
|
|
1
|
+
import { t as Response } from "../../ai-response-CJ-uEAgj.mjs";
|
|
2
2
|
export { Response as AiResponse, Response };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
3
2
|
import { claimElement, insert, spread, template } from "@solidjs/web";
|
|
3
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { splitProps } from "solid-js";
|
|
5
5
|
//#region src/components/ai-source/index.tsx
|
|
6
6
|
var _tmpl$ = /* @__PURE__ */ template(`<li data-scope=ai data-part=source><a>`);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
2
2
|
import { Button } from "../button/index.mjs";
|
|
3
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
4
3
|
import { createComponent, mergeProps } from "@solidjs/web";
|
|
4
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { splitProps } from "solid-js";
|
|
6
6
|
//#region src/components/ai-suggestion/index.tsx
|
|
7
7
|
/** A seal-cut button proposing the next stroke; selection hands back
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
2
2
|
import { t as chevron } from "../../chevron-BHQrYKPM.mjs";
|
|
3
3
|
import { Collapsible } from "../collapsible/index.mjs";
|
|
4
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
5
4
|
import { createComponent, insert, mergeProps, template } from "@solidjs/web";
|
|
5
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
6
6
|
import { Show, splitProps } from "solid-js";
|
|
7
7
|
//#region src/components/ai-tool/index.tsx
|
|
8
8
|
var _tmpl$ = /* @__PURE__ */ template(`<span>`);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as iconNode } from "../../icon-DTqmJCd5.mjs";
|
|
2
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
3
2
|
import { createComponent, insert, spread, template } from "@solidjs/web";
|
|
3
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { createContext, splitProps, useContext } from "solid-js";
|
|
5
5
|
//#region src/components/alert/index.tsx
|
|
6
6
|
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
@@ -9,7 +9,21 @@ type AngleSliderOwnProps = {
|
|
|
9
9
|
size?: "sm" | "md" | "lg";
|
|
10
10
|
};
|
|
11
11
|
declare function AngleSliderRoot(props: AngleSliderRootProps & AngleSliderOwnProps): import("solid-js").JSX.Element;
|
|
12
|
-
export
|
|
12
|
+
export interface AngleSliderFacadeProps {
|
|
13
|
+
value?: number;
|
|
14
|
+
defaultValue?: number;
|
|
15
|
+
label?: string;
|
|
16
|
+
step?: number;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
readOnly?: boolean;
|
|
19
|
+
/** One rung of the dial ladder — the diameter the needle sweeps. */
|
|
20
|
+
size?: "sm" | "md" | "lg";
|
|
21
|
+
onValueChange?: (value: number) => void;
|
|
22
|
+
}
|
|
23
|
+
/** The complete dial behind one angle and its cardinal degree marks. */
|
|
24
|
+
declare function AngleSliderFacade(props: AngleSliderFacadeProps): import("solid-js").JSX.Element;
|
|
25
|
+
type AngleSliderParts = Omit<typeof AngleSlider$1, "Root"> & {
|
|
13
26
|
Root: typeof AngleSliderRoot;
|
|
14
27
|
};
|
|
28
|
+
export declare const AngleSlider: typeof AngleSliderFacade & AngleSliderParts;
|
|
15
29
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
2
|
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
3
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
4
3
|
import { createComponent, mergeProps } from "@solidjs/web";
|
|
5
|
-
import {
|
|
4
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
|
+
import { For, Show, splitProps } from "solid-js";
|
|
6
6
|
import { AngleSlider as AngleSlider$1 } from "@ark-ui/solid/angle-slider";
|
|
7
7
|
//#region src/components/angle-slider/index.tsx
|
|
8
8
|
function AngleSliderRoot(props) {
|
|
@@ -17,7 +17,62 @@ function AngleSliderRoot(props) {
|
|
|
17
17
|
}
|
|
18
18
|
}));
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
/** The complete dial behind one angle and its cardinal degree marks. */
|
|
21
|
+
function AngleSliderFacade(props) {
|
|
22
|
+
injectComponentStyle("angle-slider");
|
|
23
|
+
return createComponent(AngleSliderRoot, mergeProps({
|
|
24
|
+
get size() {
|
|
25
|
+
return props.size ?? "md";
|
|
26
|
+
},
|
|
27
|
+
get disabled() {
|
|
28
|
+
return props.disabled;
|
|
29
|
+
},
|
|
30
|
+
get readOnly() {
|
|
31
|
+
return props.readOnly;
|
|
32
|
+
},
|
|
33
|
+
get step() {
|
|
34
|
+
return props.step ?? 1;
|
|
35
|
+
},
|
|
36
|
+
get defaultValue() {
|
|
37
|
+
return props.defaultValue ?? 45;
|
|
38
|
+
}
|
|
39
|
+
}, () => {
|
|
40
|
+
return props.value === void 0 ? {} : { value: props.value };
|
|
41
|
+
}, {
|
|
42
|
+
onValueChange: (details) => props.onValueChange?.(details.value),
|
|
43
|
+
get children() {
|
|
44
|
+
return [
|
|
45
|
+
createComponent(Show, {
|
|
46
|
+
get when() {
|
|
47
|
+
return props.label;
|
|
48
|
+
},
|
|
49
|
+
get children() {
|
|
50
|
+
return createComponent(AngleSlider$1.Label, { get children() {
|
|
51
|
+
return props.label;
|
|
52
|
+
} });
|
|
53
|
+
}
|
|
54
|
+
}),
|
|
55
|
+
createComponent(AngleSlider$1.ValueText, {}),
|
|
56
|
+
createComponent(AngleSlider$1.Control, { get children() {
|
|
57
|
+
return [createComponent(AngleSlider$1.MarkerGroup, { get children() {
|
|
58
|
+
return createComponent(For, {
|
|
59
|
+
each: [
|
|
60
|
+
0,
|
|
61
|
+
90,
|
|
62
|
+
180,
|
|
63
|
+
270
|
|
64
|
+
],
|
|
65
|
+
children: (degree) => createComponent(AngleSlider$1.Marker, { value: degree })
|
|
66
|
+
});
|
|
67
|
+
} }), createComponent(AngleSlider$1.Thumb, { get children() {
|
|
68
|
+
return createComponent(AngleSlider$1.HiddenInput, {});
|
|
69
|
+
} })];
|
|
70
|
+
} })
|
|
71
|
+
];
|
|
72
|
+
}
|
|
73
|
+
}));
|
|
74
|
+
}
|
|
75
|
+
const AngleSlider = defineFamily(AngleSliderFacade, {
|
|
21
76
|
...AngleSlider$1,
|
|
22
77
|
Root: AngleSliderRoot
|
|
23
78
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
3
2
|
import { spread, template } from "@solidjs/web";
|
|
3
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { splitProps } from "solid-js";
|
|
5
5
|
//#region src/components/aspect-ratio/index.tsx
|
|
6
6
|
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
@@ -2,9 +2,9 @@ import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
|
2
2
|
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
3
3
|
import { n as useComponentMessages } from "../../use-component-messages-C4SCVYjD.mjs";
|
|
4
4
|
import { Combobox as Combobox$1 } from "../combobox/index.mjs";
|
|
5
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
6
5
|
import { createComponent, mergeProps } from "@solidjs/web";
|
|
7
|
-
import {
|
|
6
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
7
|
+
import { For, createEffect, splitProps } from "solid-js";
|
|
8
8
|
import { useListCollection } from "@ark-ui/solid/collection";
|
|
9
9
|
import { Combobox } from "@ark-ui/solid/combobox";
|
|
10
10
|
import { Portal } from "solid-js/web";
|
|
@@ -30,10 +30,15 @@ function AutoCompleteImpl(props) {
|
|
|
30
30
|
"onValueChange"
|
|
31
31
|
]);
|
|
32
32
|
const id = useElementId("autocomplete", () => props.id);
|
|
33
|
-
|
|
33
|
+
let fieldText = "";
|
|
34
|
+
const { collection, set, filter } = useListCollection({
|
|
34
35
|
initialItems: own.items ?? [],
|
|
35
36
|
filter: (item, input) => own.filter ? own.filter(item, input) : item.toLowerCase().includes(input.toLowerCase())
|
|
36
37
|
});
|
|
38
|
+
createEffect(() => {
|
|
39
|
+
set(own.items ?? []);
|
|
40
|
+
filter(fieldText);
|
|
41
|
+
});
|
|
37
42
|
return createComponent(Combobox.Root, mergeProps(rest, {
|
|
38
43
|
get id() {
|
|
39
44
|
return id();
|
|
@@ -53,6 +58,7 @@ function AutoCompleteImpl(props) {
|
|
|
53
58
|
if (first != null) own.onValueChange?.(first);
|
|
54
59
|
},
|
|
55
60
|
onInputValueChange: (details) => {
|
|
61
|
+
fieldText = details.inputValue;
|
|
56
62
|
filter(details.inputValue);
|
|
57
63
|
own.onValueChange?.(details.inputValue);
|
|
58
64
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
2
|
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
3
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
4
3
|
import { createComponent, mergeProps } from "@solidjs/web";
|
|
4
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { splitProps } from "solid-js";
|
|
6
6
|
import { Avatar as Avatar$1 } from "@ark-ui/solid/avatar";
|
|
7
7
|
//#region src/components/avatar/index.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
3
2
|
import { spread, template } from "@solidjs/web";
|
|
3
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { splitProps } from "solid-js";
|
|
5
5
|
//#region src/components/avatar-group/index.tsx
|
|
6
6
|
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
2
2
|
import { r as iconNode } from "../../icon-DTqmJCd5.mjs";
|
|
3
3
|
import { Button } from "../button/index.mjs";
|
|
4
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
5
4
|
import { createComponent, insert, mergeProps, spread, template } from "@solidjs/web";
|
|
5
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
6
6
|
import { createSignal, onCleanup, onMount, splitProps } from "solid-js";
|
|
7
7
|
//#region src/components/back-top/index.tsx
|
|
8
8
|
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
3
2
|
import { spread, template } from "@solidjs/web";
|
|
3
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { splitProps } from "solid-js";
|
|
5
5
|
//#region src/components/badge/index.tsx
|
|
6
6
|
var _tmpl$ = /* @__PURE__ */ template(`<span>`);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as iconNode } from "../../icon-DTqmJCd5.mjs";
|
|
2
2
|
import { n as useComponentMessages } from "../../use-component-messages-C4SCVYjD.mjs";
|
|
3
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
4
3
|
import { createComponent, insert, mergeProps, spread, template } from "@solidjs/web";
|
|
4
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { splitProps } from "solid-js";
|
|
6
6
|
//#region src/components/banner/index.tsx
|
|
7
7
|
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
2
1
|
import { insert, spread, template } from "@solidjs/web";
|
|
2
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { splitProps } from "solid-js";
|
|
4
4
|
//#region src/components/bento/index.tsx
|
|
5
5
|
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
2
2
|
import { Spinner } from "../spinner/index.mjs";
|
|
3
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
4
3
|
import { createComponent, insert, spread, template } from "@solidjs/web";
|
|
4
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { Show, splitProps } from "solid-js";
|
|
6
6
|
//#region src/components/block-ui/index.tsx
|
|
7
7
|
var _tmpl$ = /* @__PURE__ */ template(`<div data-scope=block-ui data-part=mask>`);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as useComponentMessages } from "../../use-component-messages-C4SCVYjD.mjs";
|
|
2
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
3
2
|
import { createComponent, mergeProps, spread, template } from "@solidjs/web";
|
|
3
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { mergeProps as mergeProps$1 } from "solid-js";
|
|
5
5
|
//#region src/components/breadcrumb/index.tsx
|
|
6
6
|
var _tmpl$ = /* @__PURE__ */ template(`<span>`);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
2
1
|
import { insert, setAttribute, spread, template } from "@solidjs/web";
|
|
2
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
//#region src/components/browser/index.tsx
|
|
4
4
|
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
5
5
|
var _tmpl$2 = /* @__PURE__ */ template(`<span data-scope=browser data-part=dot>`);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
3
2
|
import { spread, template } from "@solidjs/web";
|
|
3
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { splitProps } from "solid-js";
|
|
5
5
|
//#region src/components/button/index.tsx
|
|
6
6
|
var _tmpl$ = /* @__PURE__ */ template(`<button>`);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
2
1
|
import { spread, template } from "@solidjs/web";
|
|
2
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { splitProps } from "solid-js";
|
|
4
4
|
//#region src/components/button-group/index.tsx
|
|
5
5
|
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
@@ -1,19 +1,31 @@
|
|
|
1
1
|
import { DatePicker as DatePicker$1 } from "../date-picker/index.mjs";
|
|
2
2
|
import { JSX } from "solid-js";
|
|
3
|
-
import { DatePickerRootProps } from "@ark-ui/solid/date-picker";
|
|
3
|
+
import { DatePickerDateView, DatePickerFocusChangeDetails, DatePickerOpenChangeDetails, DatePickerRootProps, DatePickerSelectionMode, DatePickerValueChangeDetails, DatePickerViewChangeDetails, DatePickerVisibleRangeChangeDetails } from "@ark-ui/solid/date-picker";
|
|
4
4
|
//#region src/components/calendar/index.d.ts
|
|
5
5
|
export interface CalendarProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
6
6
|
/** Selected date(s) — an array, as the machine speaks in ranges. */
|
|
7
7
|
value?: DatePickerRootProps["value"];
|
|
8
|
+
defaultValue?: DatePickerRootProps["defaultValue"];
|
|
8
9
|
min?: DatePickerRootProps["min"];
|
|
9
10
|
max?: DatePickerRootProps["max"];
|
|
11
|
+
/** compact keeps the popup's measure; full gives cells room for content. */
|
|
12
|
+
variant?: "compact" | "full";
|
|
13
|
+
/** month is the day grid; year starts on a month overview. */
|
|
14
|
+
mode?: "month" | "year";
|
|
15
|
+
selectionMode?: DatePickerSelectionMode;
|
|
16
|
+
startOfWeek?: number;
|
|
17
|
+
fixedWeeks?: boolean;
|
|
18
|
+
showWeekNumbers?: boolean;
|
|
19
|
+
outsideDaySelectable?: boolean;
|
|
20
|
+
closeOnSelect?: boolean;
|
|
21
|
+
minView?: DatePickerDateView;
|
|
22
|
+
maxView?: DatePickerDateView;
|
|
10
23
|
onValueChange?: (value: NonNullable<DatePickerRootProps["value"]>) => void;
|
|
11
24
|
}
|
|
12
|
-
/** The date-picker's
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* are the shared machinery — value, range selection, and focus ride
|
|
16
|
-
* Ark's own contract. */
|
|
25
|
+
/** The date-picker's grid standing on the page. Compact is the popup's
|
|
26
|
+
* quiet card; full opens it into a dashboard calendar. Year mode starts
|
|
27
|
+
* on a month overview; choosing a month drills into its day grid. */
|
|
17
28
|
declare function CalendarImpl(props: CalendarProps): JSX.Element;
|
|
18
29
|
export declare const Calendar: typeof CalendarImpl & typeof DatePicker$1;
|
|
19
|
-
//#endregion
|
|
30
|
+
//#endregion
|
|
31
|
+
export type { DatePickerFocusChangeDetails, DatePickerOpenChangeDetails, DatePickerValueChangeDetails, DatePickerViewChangeDetails, DatePickerVisibleRangeChangeDetails };
|