@bysages/solid 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ai-response-slzE03wh.mjs → ai-response-D2uINBIi.mjs} +13 -5
- package/dist/chevron-BHQrYKPM.mjs +8 -0
- package/dist/components/accordion/index.d.mts +22 -2
- package/dist/components/accordion/index.mjs +68 -2
- package/dist/components/affix/index.d.mts +3 -1
- package/dist/components/affix/index.mjs +5 -4
- package/dist/components/ai/index.d.mts +1 -1
- package/dist/components/ai/index.mjs +6 -5
- package/dist/components/ai-action/index.d.mts +3 -1
- package/dist/components/ai-action/index.mjs +3 -2
- package/dist/components/ai-attachments/index.d.mts +8 -4
- package/dist/components/ai-attachments/index.mjs +38 -36
- package/dist/components/ai-message/index.d.mts +3 -1
- package/dist/components/ai-message/index.mjs +3 -2
- package/dist/components/ai-prompt-input/index.d.mts +3 -1
- package/dist/components/ai-prompt-input/index.mjs +47 -43
- package/dist/components/ai-reasoning/index.d.mts +3 -1
- package/dist/components/ai-reasoning/index.mjs +4 -3
- package/dist/components/ai-response/index.d.mts +3 -1
- package/dist/components/ai-response/index.mjs +1 -1
- package/dist/components/ai-source/index.d.mts +6 -2
- package/dist/components/ai-source/index.mjs +5 -4
- package/dist/components/ai-suggestion/index.d.mts +3 -1
- package/dist/components/ai-suggestion/index.mjs +3 -2
- package/dist/components/ai-tool/index.d.mts +3 -1
- package/dist/components/ai-tool/index.mjs +4 -3
- package/dist/components/alert/index.mjs +31 -34
- package/dist/components/angle-slider/index.d.mts +1 -1
- package/dist/components/angle-slider/index.mjs +13 -5
- package/dist/components/aspect-ratio/index.d.mts +3 -1
- package/dist/components/aspect-ratio/index.mjs +3 -2
- package/dist/components/autocomplete/index.d.mts +4 -1
- package/dist/components/autocomplete/index.mjs +10 -1
- package/dist/components/avatar/index.d.mts +1 -1
- package/dist/components/avatar/index.mjs +10 -1
- package/dist/components/avatar-group/index.d.mts +3 -1
- package/dist/components/avatar-group/index.mjs +3 -2
- package/dist/components/back-top/index.d.mts +3 -1
- package/dist/components/back-top/index.mjs +9 -5
- package/dist/components/badge/index.d.mts +3 -1
- package/dist/components/badge/index.mjs +3 -2
- package/dist/components/banner/index.mjs +6 -2
- package/dist/components/block-ui/index.d.mts +3 -1
- package/dist/components/block-ui/index.mjs +3 -2
- package/dist/components/button/index.d.mts +3 -1
- package/dist/components/button/index.mjs +3 -2
- package/dist/components/calendar/index.d.mts +3 -1
- package/dist/components/calendar/index.mjs +29 -21
- package/dist/components/carousel/index.d.mts +5 -1
- package/dist/components/carousel/index.mjs +13 -1
- package/dist/components/cascade-select/index.d.mts +3 -1
- package/dist/components/cascade-select/index.mjs +73 -72
- package/dist/components/checkbox/index.d.mts +1 -1
- package/dist/components/checkbox/index.mjs +13 -5
- package/dist/components/checkbox-group/index.d.mts +4 -9
- package/dist/components/checkbox-group/index.mjs +65 -68
- package/dist/components/chip/index.d.mts +3 -1
- package/dist/components/chip/index.mjs +3 -2
- package/dist/components/client-only/index.d.mts +7 -2
- package/dist/components/client-only/index.mjs +8 -1
- package/dist/components/clipboard/index.d.mts +1 -1
- package/dist/components/clipboard/index.mjs +13 -5
- package/dist/components/collapsible/index.d.mts +15 -1
- package/dist/components/collapsible/index.mjs +39 -2
- package/dist/components/color-picker/index.d.mts +13 -2
- package/dist/components/color-picker/index.mjs +95 -8
- package/dist/components/combobox/index.d.mts +24 -1
- package/dist/components/combobox/index.mjs +129 -8
- package/dist/components/command/index.d.mts +4 -1
- package/dist/components/command/index.mjs +13 -1
- package/dist/components/comment/index.d.mts +3 -1
- package/dist/components/comment/index.mjs +3 -2
- package/dist/components/config-provider/index.d.mts +3 -1
- package/dist/components/config-provider/index.mjs +3 -2
- package/dist/components/container/index.d.mts +3 -1
- package/dist/components/container/index.mjs +3 -2
- package/dist/components/data-view/index.d.mts +3 -1
- package/dist/components/data-view/index.mjs +5 -6
- package/dist/components/date-input/index.d.mts +1 -1
- package/dist/components/date-input/index.mjs +13 -5
- package/dist/components/date-picker/index.d.mts +1 -1
- package/dist/components/date-picker/index.mjs +13 -5
- package/dist/components/deferred-content/index.d.mts +3 -1
- package/dist/components/deferred-content/index.mjs +3 -2
- package/dist/components/descriptions/index.d.mts +7 -0
- package/dist/components/descriptions/index.mjs +21 -2
- package/dist/components/dialog/index.d.mts +17 -1
- package/dist/components/dialog/index.mjs +84 -2
- package/dist/components/download-trigger/index.d.mts +7 -2
- package/dist/components/download-trigger/index.mjs +8 -1
- package/dist/components/drawer/index.d.mts +17 -1
- package/dist/components/drawer/index.mjs +83 -2
- package/dist/components/dynamic-input/index.d.mts +3 -1
- package/dist/components/dynamic-input/index.mjs +10 -6
- package/dist/components/editable/index.d.mts +1 -1
- package/dist/components/editable/index.mjs +13 -5
- package/dist/components/ellipsis/index.d.mts +3 -1
- package/dist/components/ellipsis/index.mjs +3 -2
- package/dist/components/field/index.d.mts +5 -1
- package/dist/components/field/index.mjs +13 -1
- package/dist/components/fieldset/index.d.mts +5 -1
- package/dist/components/fieldset/index.mjs +13 -1
- package/dist/components/file-upload/index.d.mts +1 -7
- package/dist/components/file-upload/index.mjs +13 -5
- package/dist/components/floating-panel/index.d.mts +5 -1
- package/dist/components/floating-panel/index.mjs +13 -1
- package/dist/components/focus-trap/index.d.mts +7 -2
- package/dist/components/focus-trap/index.mjs +8 -1
- package/dist/components/form/index.d.mts +1 -1
- package/dist/components/form/index.mjs +10 -4
- package/dist/components/frame/index.d.mts +6 -1
- package/dist/components/frame/index.mjs +10 -1
- package/dist/components/grid/index.d.mts +3 -1
- package/dist/components/grid/index.mjs +3 -2
- package/dist/components/highlight/index.d.mts +3 -1
- package/dist/components/highlight/index.mjs +2 -1
- package/dist/components/hover-card/index.d.mts +19 -1
- package/dist/components/hover-card/index.mjs +91 -2
- package/dist/components/icon/index.d.mts +8 -7
- package/dist/components/icon/index.mjs +4 -3
- package/dist/components/image/index.d.mts +4 -2
- package/dist/components/image/index.mjs +34 -33
- package/dist/components/image-cropper/index.d.mts +5 -1
- package/dist/components/image-cropper/index.mjs +13 -1
- package/dist/components/image-viewer/index.d.mts +2 -23
- package/dist/components/image-viewer/index.mjs +3 -159
- package/dist/components/input/index.d.mts +3 -1
- package/dist/components/input/index.mjs +1 -1
- package/dist/components/json-tree-view/index.d.mts +5 -4
- package/dist/components/json-tree-view/index.mjs +15 -18
- package/dist/components/kbd/index.d.mts +3 -1
- package/dist/components/kbd/index.mjs +3 -2
- package/dist/components/link/index.d.mts +3 -1
- package/dist/components/link/index.mjs +3 -2
- package/dist/components/listbox/index.d.mts +1 -1
- package/dist/components/listbox/index.mjs +13 -5
- package/dist/components/marquee/index.d.mts +5 -1
- package/dist/components/marquee/index.mjs +13 -1
- package/dist/components/masonry/index.d.mts +3 -1
- package/dist/components/masonry/index.mjs +3 -2
- package/dist/components/media-player/index.d.mts +2 -0
- package/dist/components/media-player/index.mjs +2 -0
- package/dist/components/mentions/index.d.mts +1 -1
- package/dist/components/mentions/index.mjs +2 -2
- package/dist/components/menu/index.d.mts +21 -1
- package/dist/components/menu/index.mjs +62 -5
- package/dist/components/menubar/index.d.mts +3 -1
- package/dist/components/menubar/index.mjs +30 -9
- package/dist/components/navigation-menu/index.d.mts +5 -1
- package/dist/components/navigation-menu/index.mjs +13 -1
- package/dist/components/number-input/index.d.mts +1 -1
- package/dist/components/number-input/index.mjs +13 -5
- package/dist/components/order-list/index.d.mts +3 -1
- package/dist/components/order-list/index.mjs +67 -63
- package/dist/components/pagination/index.d.mts +1 -1
- package/dist/components/pagination/index.mjs +13 -5
- package/dist/components/password-input/index.d.mts +1 -1
- package/dist/components/password-input/index.mjs +13 -5
- package/dist/components/pin-input/index.d.mts +1 -1
- package/dist/components/pin-input/index.mjs +13 -5
- package/dist/components/popconfirm/index.d.mts +3 -1
- package/dist/components/popconfirm/index.mjs +16 -8
- package/dist/components/popover/index.d.mts +19 -1
- package/dist/components/popover/index.mjs +91 -2
- package/dist/components/presence/index.d.mts +10 -2
- package/dist/components/presence/index.mjs +9 -1
- package/dist/components/progress/index.d.mts +1 -1
- package/dist/components/progress/index.mjs +13 -5
- package/dist/components/progress-group/index.d.mts +3 -1
- package/dist/components/progress-group/index.mjs +4 -3
- package/dist/components/qr-code/index.d.mts +5 -1
- package/dist/components/qr-code/index.mjs +13 -1
- package/dist/components/radio-group/index.d.mts +1 -1
- package/dist/components/radio-group/index.mjs +13 -5
- package/dist/components/rating-group/index.d.mts +2 -2
- package/dist/components/rating-group/index.mjs +13 -5
- package/dist/components/result/index.d.mts +1 -1
- package/dist/components/result/index.mjs +5 -3
- package/dist/components/scroll-area/index.d.mts +5 -1
- package/dist/components/scroll-area/index.mjs +13 -1
- package/dist/components/segment-group/index.d.mts +1 -1
- package/dist/components/segment-group/index.mjs +11 -6
- package/dist/components/select/index.d.mts +2 -2
- package/dist/components/select/index.mjs +1 -1
- package/dist/components/separator/index.d.mts +3 -1
- package/dist/components/separator/index.mjs +3 -2
- package/dist/components/signature-pad/index.d.mts +5 -1
- package/dist/components/signature-pad/index.mjs +13 -1
- package/dist/components/skeleton/index.d.mts +3 -1
- package/dist/components/skeleton/index.mjs +3 -2
- package/dist/components/slider/index.d.mts +1 -1
- package/dist/components/slider/index.mjs +13 -5
- package/dist/components/spinner/index.d.mts +3 -1
- package/dist/components/spinner/index.mjs +3 -2
- package/dist/components/split-button/index.d.mts +3 -1
- package/dist/components/split-button/index.mjs +14 -3
- package/dist/components/splitter/index.d.mts +5 -1
- package/dist/components/splitter/index.mjs +13 -1
- package/dist/components/spotlight/index.d.mts +3 -1
- package/dist/components/spotlight/index.mjs +3 -2
- package/dist/components/stack/index.d.mts +3 -1
- package/dist/components/stack/index.mjs +6 -5
- package/dist/components/steps/index.d.mts +20 -3
- package/dist/components/steps/index.mjs +66 -7
- package/dist/components/swap/index.d.mts +5 -1
- package/dist/components/swap/index.mjs +13 -1
- package/dist/components/switch/index.d.mts +1 -1
- package/dist/components/switch/index.mjs +13 -5
- package/dist/components/table/index.d.mts +3 -1
- package/dist/components/table/index.mjs +169 -151
- package/dist/components/tabs/index.d.mts +20 -2
- package/dist/components/tabs/index.mjs +59 -3
- package/dist/components/tags-input/index.d.mts +1 -1
- package/dist/components/tags-input/index.mjs +13 -5
- package/dist/components/terminal/index.d.mts +3 -1
- package/dist/components/terminal/index.mjs +3 -2
- package/dist/components/textarea/index.d.mts +3 -1
- package/dist/components/textarea/index.mjs +3 -2
- package/dist/components/timer/index.d.mts +5 -1
- package/dist/components/timer/index.mjs +13 -1
- package/dist/components/toast/index.d.mts +8 -2
- package/dist/components/toast/index.mjs +14 -2
- package/dist/components/toc/index.d.mts +11 -2
- package/dist/components/toc/index.mjs +1 -1
- package/dist/components/toggle/index.d.mts +5 -1
- package/dist/components/toggle/index.mjs +13 -1
- package/dist/components/toggle-group/index.d.mts +1 -1
- package/dist/components/toggle-group/index.mjs +13 -5
- package/dist/components/toolbar/index.d.mts +3 -1
- package/dist/components/toolbar/index.mjs +3 -2
- package/dist/components/tooltip/index.d.mts +16 -1
- package/dist/components/tooltip/index.mjs +55 -2
- package/dist/components/tour/index.d.mts +16 -3
- package/dist/components/tour/index.mjs +74 -9
- package/dist/components/transfer/index.d.mts +3 -1
- package/dist/components/transfer/index.mjs +54 -50
- package/dist/components/tree-select/index.d.mts +3 -1
- package/dist/components/tree-select/index.mjs +37 -30
- package/dist/components/tree-view/index.d.mts +1 -8
- package/dist/components/tree-view/index.mjs +16 -21
- package/dist/components/user/index.d.mts +3 -1
- package/dist/components/user/index.mjs +8 -2
- package/dist/components/virtual-list/index.d.mts +3 -1
- package/dist/components/virtual-list/index.mjs +13 -9
- package/dist/components/watermark/index.d.mts +3 -1
- package/dist/components/watermark/index.mjs +4 -3
- package/dist/element-dGIhOTJ6.mjs +16 -0
- package/dist/family-Cmd8HEyK.mjs +11 -0
- package/dist/icon-DTqmJCd5.mjs +48 -0
- package/dist/id-2ygNzPHF.mjs +12 -0
- package/dist/image-viewer-B9A5lXsk.mjs +228 -0
- package/dist/{index-B1xiJ5ki.d.mts → index-B1-quIrl.d.mts} +6 -2
- package/dist/{index-DDX7x8aT.d.mts → index-DEArHiFI.d.mts} +16 -7
- package/dist/index-DhripUtf.d.mts +39 -0
- package/dist/{index-YPUiqD3n.d.mts → index-ID48LCMU.d.mts} +28 -2
- package/dist/{index-IfofF-SW.d.mts → index-nFXK_8hJ.d.mts} +53 -23
- package/dist/index-wW28BYf1.d.mts +124 -0
- package/dist/index.d.mts +23 -22
- package/dist/index.mjs +13 -12
- package/dist/{input-DoFQ7RXh.mjs → input-CPAJdwDb.mjs} +3 -2
- package/dist/media-player-BC8D_d29.mjs +796 -0
- package/dist/{mentions-f5Js_2W7.mjs → mentions-CeG5u8Qm.mjs} +67 -51
- package/dist/select-7YjMSBGx.mjs +292 -0
- package/dist/{toc-CZmYEaQR.mjs → toc-DYKaKQ_X.mjs} +12 -2
- package/package.json +3 -3
- package/dist/chevron-D5RzcayK.mjs +0 -9
- package/dist/index-DdsnfV4f.d.mts +0 -16
- package/dist/select-CX6OuQlU.mjs +0 -123
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { t as chevron } from "../../chevron-BHQrYKPM.mjs";
|
|
2
3
|
import { Collapsible } from "../collapsible/index.mjs";
|
|
3
4
|
import { injectComponentStyle } from "@bysages/core";
|
|
4
5
|
import { createComponent, insert, mergeProps, template } from "@solidjs/web";
|
|
@@ -8,7 +9,7 @@ var _tmpl$ = /* @__PURE__ */ template(`<span>`);
|
|
|
8
9
|
var _tmpl$2 = /* @__PURE__ */ template(`<div data-scope=ai data-part=reasoning-content>`);
|
|
9
10
|
/** The model's thought, folded by the shared collapsible in its quiet
|
|
10
11
|
* register: bare ink for a trigger, the thought on one hairline. */
|
|
11
|
-
function Reasoning(props) {
|
|
12
|
+
const Reasoning = withSelfRoot(function Reasoning(props) {
|
|
12
13
|
injectComponentStyle("ai");
|
|
13
14
|
const [own, rest] = splitProps(props, ["label", "children"]);
|
|
14
15
|
return createComponent(Collapsible.Root, mergeProps(rest, {
|
|
@@ -33,6 +34,6 @@ function Reasoning(props) {
|
|
|
33
34
|
} })];
|
|
34
35
|
}
|
|
35
36
|
}));
|
|
36
|
-
}
|
|
37
|
+
});
|
|
37
38
|
//#endregion
|
|
38
39
|
export { Reasoning as AiReasoning, Reasoning };
|
|
@@ -15,6 +15,8 @@ export interface ResponseProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
|
15
15
|
/** Markdown set on the paper. Rendering goes through
|
|
16
16
|
* `@tanstack/markdown`, whose defaults leave raw HTML and executable
|
|
17
17
|
* links inert — streaming-safe by construction. */
|
|
18
|
-
export declare
|
|
18
|
+
export declare const Response: ((props: ResponseProps) => JSX.Element) & {
|
|
19
|
+
Root: (props: ResponseProps) => JSX.Element;
|
|
20
|
+
};
|
|
19
21
|
//#endregion
|
|
20
22
|
export { Response as AiResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Response } from "../../ai-response-
|
|
1
|
+
import { t as Response } from "../../ai-response-D2uINBIi.mjs";
|
|
2
2
|
export { Response as AiResponse, Response };
|
|
@@ -6,8 +6,12 @@ export interface SourceProps extends JSX.HTMLAttributes<HTMLAnchorElement> {
|
|
|
6
6
|
href: string;
|
|
7
7
|
}
|
|
8
8
|
/** One place the ink came from; href and the rest ride the anchor. */
|
|
9
|
-
export declare
|
|
9
|
+
export declare const Source: ((props: SourceProps) => JSX.Element) & {
|
|
10
|
+
Root: (props: SourceProps) => JSX.Element;
|
|
11
|
+
};
|
|
10
12
|
/** The reading list under a response: where this ink came from. */
|
|
11
|
-
export declare
|
|
13
|
+
export declare const Sources: ((props: JSX.HTMLAttributes<HTMLOListElement>) => JSX.Element) & {
|
|
14
|
+
Root: (props: JSX.HTMLAttributes<HTMLOListElement>) => JSX.Element;
|
|
15
|
+
};
|
|
12
16
|
//#endregion
|
|
13
17
|
export { Source as AiSource, Sources as AiSources };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
1
2
|
import { injectComponentStyle } from "@bysages/core";
|
|
2
3
|
import { claimElement, insert, spread, template } from "@solidjs/web";
|
|
3
4
|
import { splitProps } from "solid-js";
|
|
@@ -5,7 +6,7 @@ import { splitProps } from "solid-js";
|
|
|
5
6
|
var _tmpl$ = /* @__PURE__ */ template(`<li data-scope=ai data-part=source><a>`);
|
|
6
7
|
var _tmpl$2 = /* @__PURE__ */ template(`<ol>`);
|
|
7
8
|
/** One place the ink came from; href and the rest ride the anchor. */
|
|
8
|
-
function Source(props) {
|
|
9
|
+
const Source = withSelfRoot(function Source(props) {
|
|
9
10
|
injectComponentStyle("ai");
|
|
10
11
|
const [own, rest] = splitProps(props, ["href", "children"]);
|
|
11
12
|
var _el$ = _tmpl$();
|
|
@@ -22,15 +23,15 @@ function Source(props) {
|
|
|
22
23
|
return own.children ?? own.href;
|
|
23
24
|
});
|
|
24
25
|
return _el$;
|
|
25
|
-
}
|
|
26
|
+
});
|
|
26
27
|
/** The reading list under a response: where this ink came from. */
|
|
27
|
-
function Sources(props) {
|
|
28
|
+
const Sources = withSelfRoot(function Sources(props) {
|
|
28
29
|
var _el$3 = _tmpl$2();
|
|
29
30
|
spread(_el$3, [props, {
|
|
30
31
|
"data-scope": "ai",
|
|
31
32
|
"data-part": "sources"
|
|
32
33
|
}], false);
|
|
33
34
|
return _el$3;
|
|
34
|
-
}
|
|
35
|
+
});
|
|
35
36
|
//#endregion
|
|
36
37
|
export { Source as AiSource, Source, Sources as AiSources, Sources };
|
|
@@ -8,6 +8,8 @@ export interface SuggestionProps extends Omit<JSX.HTMLAttributes<HTMLButtonEleme
|
|
|
8
8
|
}
|
|
9
9
|
/** A seal-cut button proposing the next stroke; selection hands back
|
|
10
10
|
* the prompt. The shared Button in its outline register. */
|
|
11
|
-
export declare
|
|
11
|
+
export declare const Suggestion: ((props: SuggestionProps) => JSX.Element) & {
|
|
12
|
+
Root: (props: SuggestionProps) => JSX.Element;
|
|
13
|
+
};
|
|
12
14
|
//#endregion
|
|
13
15
|
export { Suggestion as AiSuggestion };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
1
2
|
import { Button } from "../button/index.mjs";
|
|
2
3
|
import { injectComponentStyle } from "@bysages/core";
|
|
3
4
|
import { createComponent, mergeProps } from "@solidjs/web";
|
|
@@ -5,7 +6,7 @@ import { splitProps } from "solid-js";
|
|
|
5
6
|
//#region src/components/ai-suggestion/index.tsx
|
|
6
7
|
/** A seal-cut button proposing the next stroke; selection hands back
|
|
7
8
|
* the prompt. The shared Button in its outline register. */
|
|
8
|
-
function Suggestion(props) {
|
|
9
|
+
const Suggestion = withSelfRoot(function Suggestion(props) {
|
|
9
10
|
injectComponentStyle("ai");
|
|
10
11
|
const [own, rest] = splitProps(props, ["prompt", "onSelect"]);
|
|
11
12
|
return createComponent(Button, mergeProps({
|
|
@@ -17,6 +18,6 @@ function Suggestion(props) {
|
|
|
17
18
|
return own.prompt;
|
|
18
19
|
}
|
|
19
20
|
}));
|
|
20
|
-
}
|
|
21
|
+
});
|
|
21
22
|
//#endregion
|
|
22
23
|
export { Suggestion as AiSuggestion, Suggestion };
|
|
@@ -18,6 +18,8 @@ export interface ToolProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
|
18
18
|
/** A tool call: the shared collapsible as the vessel — the name it was
|
|
19
19
|
* reached by and the state it reached in on the trigger, its input and
|
|
20
20
|
* output folded inside. */
|
|
21
|
-
export declare
|
|
21
|
+
export declare const Tool: ((props: ToolProps) => JSX.Element) & {
|
|
22
|
+
Root: (props: ToolProps) => JSX.Element;
|
|
23
|
+
};
|
|
22
24
|
//#endregion
|
|
23
25
|
export { Tool as AiTool };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { t as chevron } from "../../chevron-BHQrYKPM.mjs";
|
|
2
3
|
import { Collapsible } from "../collapsible/index.mjs";
|
|
3
4
|
import { injectComponentStyle } from "@bysages/core";
|
|
4
5
|
import { createComponent, insert, mergeProps, template } from "@solidjs/web";
|
|
@@ -13,7 +14,7 @@ var _tmpl$6 = /* @__PURE__ */ template(`<div data-scope=ai data-part=tool-body><
|
|
|
13
14
|
/** A tool call: the shared collapsible as the vessel — the name it was
|
|
14
15
|
* reached by and the state it reached in on the trigger, its input and
|
|
15
16
|
* output folded inside. */
|
|
16
|
-
function Tool(props) {
|
|
17
|
+
const Tool = withSelfRoot(function Tool(props) {
|
|
17
18
|
injectComponentStyle("ai");
|
|
18
19
|
const [own, rest] = splitProps(props, [
|
|
19
20
|
"name",
|
|
@@ -85,6 +86,6 @@ function Tool(props) {
|
|
|
85
86
|
return _el$3;
|
|
86
87
|
} })];
|
|
87
88
|
} }));
|
|
88
|
-
}
|
|
89
|
+
});
|
|
89
90
|
//#endregion
|
|
90
91
|
export { Tool as AiTool, Tool };
|
|
@@ -1,26 +1,23 @@
|
|
|
1
|
+
import { r as iconNode } from "../../icon-DTqmJCd5.mjs";
|
|
1
2
|
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
-
import { createComponent,
|
|
3
|
+
import { createComponent, insert, spread, template } from "@solidjs/web";
|
|
3
4
|
import { createContext, splitProps, useContext } from "solid-js";
|
|
4
5
|
//#region src/components/alert/index.tsx
|
|
5
|
-
var _tmpl$ = /* @__PURE__ */ template(`<
|
|
6
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<
|
|
7
|
-
var _tmpl$3 = /* @__PURE__ */ template(`<
|
|
8
|
-
var _tmpl$4 = /* @__PURE__ */ template(`<p>`);
|
|
6
|
+
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
7
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<span data-scope=alert data-part=icon>`);
|
|
8
|
+
var _tmpl$3 = /* @__PURE__ */ template(`<p>`);
|
|
9
9
|
const StatusContext = createContext(() => "ink");
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
effect(() => paths[status], (_v$) => {
|
|
21
|
-
setAttribute(_el$2, "d", _v$);
|
|
10
|
+
function statusIcon(status) {
|
|
11
|
+
return iconNode({
|
|
12
|
+
ink: "info",
|
|
13
|
+
info: "info",
|
|
14
|
+
success: "circle-check",
|
|
15
|
+
warning: "triangle-alert",
|
|
16
|
+
danger: "circle-x"
|
|
17
|
+
}[status], {
|
|
18
|
+
width: "16",
|
|
19
|
+
height: "16"
|
|
22
20
|
});
|
|
23
|
-
return _el$;
|
|
24
21
|
}
|
|
25
22
|
function AlertRoot(props) {
|
|
26
23
|
const [own, rest] = splitProps(props, ["status"]);
|
|
@@ -28,8 +25,8 @@ function AlertRoot(props) {
|
|
|
28
25
|
return createComponent(StatusContext.Provider, {
|
|
29
26
|
value: status,
|
|
30
27
|
get children() {
|
|
31
|
-
var _el$
|
|
32
|
-
spread(_el
|
|
28
|
+
var _el$ = _tmpl$();
|
|
29
|
+
spread(_el$, [rest, {
|
|
33
30
|
get role() {
|
|
34
31
|
return status() === "ink" || status() === "info" ? "status" : "alert";
|
|
35
32
|
},
|
|
@@ -39,41 +36,41 @@ function AlertRoot(props) {
|
|
|
39
36
|
return status();
|
|
40
37
|
}
|
|
41
38
|
}], false);
|
|
42
|
-
return _el
|
|
39
|
+
return _el$;
|
|
43
40
|
}
|
|
44
41
|
});
|
|
45
42
|
}
|
|
46
43
|
function Icon() {
|
|
47
44
|
const status = useContext(StatusContext);
|
|
48
|
-
var _el$
|
|
49
|
-
insert(_el$
|
|
50
|
-
return
|
|
45
|
+
var _el$2 = _tmpl$2();
|
|
46
|
+
insert(_el$2, () => {
|
|
47
|
+
return statusIcon(status());
|
|
51
48
|
});
|
|
52
|
-
return _el$
|
|
49
|
+
return _el$2;
|
|
53
50
|
}
|
|
54
51
|
function Body(props) {
|
|
55
|
-
var _el$
|
|
56
|
-
spread(_el$
|
|
52
|
+
var _el$3 = _tmpl$();
|
|
53
|
+
spread(_el$3, [props, {
|
|
57
54
|
"data-scope": "alert",
|
|
58
55
|
"data-part": "body"
|
|
59
56
|
}], false);
|
|
60
|
-
return _el$
|
|
57
|
+
return _el$3;
|
|
61
58
|
}
|
|
62
59
|
function Title(props) {
|
|
63
|
-
var _el$
|
|
64
|
-
spread(_el$
|
|
60
|
+
var _el$4 = _tmpl$3();
|
|
61
|
+
spread(_el$4, [props, {
|
|
65
62
|
"data-scope": "alert",
|
|
66
63
|
"data-part": "title"
|
|
67
64
|
}], false);
|
|
68
|
-
return _el$
|
|
65
|
+
return _el$4;
|
|
69
66
|
}
|
|
70
67
|
function Description(props) {
|
|
71
|
-
var _el$
|
|
72
|
-
spread(_el$
|
|
68
|
+
var _el$5 = _tmpl$3();
|
|
69
|
+
spread(_el$5, [props, {
|
|
73
70
|
"data-scope": "alert",
|
|
74
71
|
"data-part": "description"
|
|
75
72
|
}], false);
|
|
76
|
-
return _el$
|
|
73
|
+
return _el$5;
|
|
77
74
|
}
|
|
78
75
|
const Alert = Object.assign(AlertRoot, {
|
|
79
76
|
Root: AlertRoot,
|
|
@@ -9,7 +9,7 @@ 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 declare const AngleSlider: Omit<typeof AngleSlider$1, "Root"> & {
|
|
12
|
+
export declare const AngleSlider: typeof AngleSliderRoot & Omit<typeof AngleSlider$1, "Root"> & {
|
|
13
13
|
Root: typeof AngleSliderRoot;
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
1
3
|
import { injectComponentStyle } from "@bysages/core";
|
|
2
4
|
import { createComponent, mergeProps } from "@solidjs/web";
|
|
3
5
|
import { splitProps } from "solid-js";
|
|
@@ -5,14 +7,20 @@ import { AngleSlider as AngleSlider$1 } from "@ark-ui/solid/angle-slider";
|
|
|
5
7
|
//#region src/components/angle-slider/index.tsx
|
|
6
8
|
function AngleSliderRoot(props) {
|
|
7
9
|
const [own, rest] = splitProps(props, ["size"]);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
const id = useElementId("angle-slider", () => rest.id);
|
|
11
|
+
return createComponent(AngleSlider$1.Root, mergeProps(rest, {
|
|
12
|
+
get id() {
|
|
13
|
+
return id();
|
|
14
|
+
},
|
|
15
|
+
get "data-size"() {
|
|
16
|
+
return own.size ?? "md";
|
|
17
|
+
}
|
|
18
|
+
}));
|
|
11
19
|
}
|
|
12
|
-
const AngleSlider = {
|
|
20
|
+
const AngleSlider = defineFamily(AngleSliderRoot, {
|
|
13
21
|
...AngleSlider$1,
|
|
14
22
|
Root: AngleSliderRoot
|
|
15
|
-
};
|
|
23
|
+
});
|
|
16
24
|
injectComponentStyle("angle-slider");
|
|
17
25
|
//#endregion
|
|
18
26
|
export { AngleSlider };
|
|
@@ -6,5 +6,7 @@ export interface AspectRatioProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
|
6
6
|
/** A CSS `aspect-ratio` value — "16 / 9", "4 / 3", "1 / 1". */
|
|
7
7
|
ratio?: string;
|
|
8
8
|
}
|
|
9
|
-
export declare
|
|
9
|
+
export declare const AspectRatio: ((props: AspectRatioProps) => JSX.Element) & {
|
|
10
|
+
Root: (props: AspectRatioProps) => JSX.Element;
|
|
11
|
+
};
|
|
10
12
|
//#endregion
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
1
2
|
import { injectComponentStyle } from "@bysages/core";
|
|
2
3
|
import { spread, template } from "@solidjs/web";
|
|
3
4
|
import { splitProps } from "solid-js";
|
|
4
5
|
//#region src/components/aspect-ratio/index.tsx
|
|
5
6
|
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
6
|
-
function AspectRatio(props) {
|
|
7
|
+
const AspectRatio = withSelfRoot(function AspectRatio(props) {
|
|
7
8
|
injectComponentStyle("aspect-ratio");
|
|
8
9
|
const [own, rest] = splitProps(props, ["ratio"]);
|
|
9
10
|
var _el$ = _tmpl$();
|
|
@@ -18,6 +19,6 @@ function AspectRatio(props) {
|
|
|
18
19
|
"data-part": "root"
|
|
19
20
|
}], false);
|
|
20
21
|
return _el$;
|
|
21
|
-
}
|
|
22
|
+
});
|
|
22
23
|
//#endregion
|
|
23
24
|
export { AspectRatio };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { Combobox } from "../combobox/index.mjs";
|
|
1
2
|
//#region src/components/autocomplete/index.d.ts
|
|
2
3
|
export interface AutoCompleteProps {
|
|
4
|
+
id?: string;
|
|
3
5
|
value?: string;
|
|
4
6
|
items?: string[];
|
|
5
7
|
placeholder?: string;
|
|
@@ -17,5 +19,6 @@ export interface AutoCompleteProps {
|
|
|
17
19
|
* matching is a case-insensitive substring unless `filter` says
|
|
18
20
|
* otherwise.
|
|
19
21
|
*/
|
|
20
|
-
|
|
22
|
+
declare function AutoCompleteImpl(props: AutoCompleteProps): import("solid-js").JSX.Element;
|
|
23
|
+
export declare const AutoComplete: typeof AutoCompleteImpl & typeof Combobox;
|
|
21
24
|
//#endregion
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
1
3
|
import { n as useComponentMessages } from "../../use-component-messages-C4SCVYjD.mjs";
|
|
4
|
+
import { Combobox as Combobox$1 } from "../combobox/index.mjs";
|
|
2
5
|
import { injectComponentStyle } from "@bysages/core";
|
|
3
6
|
import { createComponent, mergeProps } from "@solidjs/web";
|
|
4
7
|
import { For, splitProps } from "solid-js";
|
|
@@ -14,10 +17,11 @@ import { Portal } from "solid-js/web";
|
|
|
14
17
|
* matching is a case-insensitive substring unless `filter` says
|
|
15
18
|
* otherwise.
|
|
16
19
|
*/
|
|
17
|
-
function
|
|
20
|
+
function AutoCompleteImpl(props) {
|
|
18
21
|
const messages = useComponentMessages();
|
|
19
22
|
injectComponentStyle("combobox");
|
|
20
23
|
const [own, rest] = splitProps(props, [
|
|
24
|
+
"id",
|
|
21
25
|
"value",
|
|
22
26
|
"items",
|
|
23
27
|
"placeholder",
|
|
@@ -25,11 +29,15 @@ function AutoComplete(props) {
|
|
|
25
29
|
"filter",
|
|
26
30
|
"onValueChange"
|
|
27
31
|
]);
|
|
32
|
+
const id = useElementId("autocomplete", () => props.id);
|
|
28
33
|
const { collection, filter } = useListCollection({
|
|
29
34
|
initialItems: own.items ?? [],
|
|
30
35
|
filter: (item, input) => own.filter ? own.filter(item, input) : item.toLowerCase().includes(input.toLowerCase())
|
|
31
36
|
});
|
|
32
37
|
return createComponent(Combobox.Root, mergeProps(rest, {
|
|
38
|
+
get id() {
|
|
39
|
+
return id();
|
|
40
|
+
},
|
|
33
41
|
get collection() {
|
|
34
42
|
return collection();
|
|
35
43
|
},
|
|
@@ -76,5 +84,6 @@ function AutoComplete(props) {
|
|
|
76
84
|
}
|
|
77
85
|
}));
|
|
78
86
|
}
|
|
87
|
+
const AutoComplete = defineFamily(AutoCompleteImpl, Combobox$1);
|
|
79
88
|
//#endregion
|
|
80
89
|
export { AutoComplete };
|
|
@@ -17,7 +17,7 @@ export interface AvatarProps extends ComponentProps<typeof Avatar$1.Root> {
|
|
|
17
17
|
shape?: "circle" | "square";
|
|
18
18
|
}
|
|
19
19
|
declare function AvatarRoot(props: AvatarProps): import("solid-js").JSX.Element;
|
|
20
|
-
export declare const Avatar: typeof Avatar$1 & {
|
|
20
|
+
export declare const Avatar: typeof AvatarRoot & Omit<typeof Avatar$1, "Root"> & {
|
|
21
21
|
Root: typeof AvatarRoot;
|
|
22
22
|
};
|
|
23
23
|
//#endregion
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
1
3
|
import { injectComponentStyle } from "@bysages/core";
|
|
2
4
|
import { createComponent, mergeProps } from "@solidjs/web";
|
|
3
5
|
import { splitProps } from "solid-js";
|
|
@@ -5,7 +7,11 @@ import { Avatar as Avatar$1 } from "@ark-ui/solid/avatar";
|
|
|
5
7
|
//#region src/components/avatar/index.tsx
|
|
6
8
|
function AvatarRoot(props) {
|
|
7
9
|
const [own, rest] = splitProps(props, ["size", "shape"]);
|
|
10
|
+
const id = useElementId("avatar", () => rest.id);
|
|
8
11
|
return createComponent(Avatar$1.Root, mergeProps(rest, {
|
|
12
|
+
get id() {
|
|
13
|
+
return id();
|
|
14
|
+
},
|
|
9
15
|
get "data-size"() {
|
|
10
16
|
return own.size;
|
|
11
17
|
},
|
|
@@ -14,7 +20,10 @@ function AvatarRoot(props) {
|
|
|
14
20
|
}
|
|
15
21
|
}));
|
|
16
22
|
}
|
|
17
|
-
const Avatar =
|
|
23
|
+
const Avatar = defineFamily(AvatarRoot, {
|
|
24
|
+
...Avatar$1,
|
|
25
|
+
Root: AvatarRoot
|
|
26
|
+
});
|
|
18
27
|
injectComponentStyle("avatar");
|
|
19
28
|
//#endregion
|
|
20
29
|
export { Avatar };
|
|
@@ -7,5 +7,7 @@ export interface AvatarGroupProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
|
7
7
|
* stylesheet to re-point the avatars' measure. */
|
|
8
8
|
size?: "sm" | "md" | "lg";
|
|
9
9
|
}
|
|
10
|
-
export declare
|
|
10
|
+
export declare const AvatarGroup: ((props: AvatarGroupProps) => JSX.Element) & {
|
|
11
|
+
Root: (props: AvatarGroupProps) => JSX.Element;
|
|
12
|
+
};
|
|
11
13
|
//#endregion
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
1
2
|
import { injectComponentStyle } from "@bysages/core";
|
|
2
3
|
import { spread, template } from "@solidjs/web";
|
|
3
4
|
import { splitProps } from "solid-js";
|
|
4
5
|
//#region src/components/avatar-group/index.tsx
|
|
5
6
|
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
6
|
-
function AvatarGroup(props) {
|
|
7
|
+
const AvatarGroup = withSelfRoot(function AvatarGroup(props) {
|
|
7
8
|
injectComponentStyle("avatar-group");
|
|
8
9
|
const [own, rest] = splitProps(props, ["size"]);
|
|
9
10
|
var _el$ = _tmpl$();
|
|
@@ -15,6 +16,6 @@ function AvatarGroup(props) {
|
|
|
15
16
|
}
|
|
16
17
|
}], false);
|
|
17
18
|
return _el$;
|
|
18
|
-
}
|
|
19
|
+
});
|
|
19
20
|
//#endregion
|
|
20
21
|
export { AvatarGroup };
|
|
@@ -25,5 +25,7 @@ export interface BackTopProps extends JSX.HTMLAttributes<HTMLButtonElement> {
|
|
|
25
25
|
* paper, hairline and halo are its; this family owns only the floating
|
|
26
26
|
* and the entrance.
|
|
27
27
|
*/
|
|
28
|
-
export declare
|
|
28
|
+
export declare const BackTop: ((props: BackTopProps) => JSX.Element) & {
|
|
29
|
+
Root: (props: BackTopProps) => JSX.Element;
|
|
30
|
+
};
|
|
29
31
|
//#endregion
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { r as iconNode } from "../../icon-DTqmJCd5.mjs";
|
|
1
3
|
import { Button } from "../button/index.mjs";
|
|
2
4
|
import { injectComponentStyle } from "@bysages/core";
|
|
3
5
|
import { createComponent, insert, mergeProps, spread, template } from "@solidjs/web";
|
|
4
6
|
import { createSignal, onCleanup, onMount, splitProps } from "solid-js";
|
|
5
7
|
//#region src/components/back-top/index.tsx
|
|
6
8
|
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
7
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<svg width=16 height=16 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=1.75 stroke-linecap=round stroke-linejoin=round aria-hidden=true><path d="m6 14 6-6 6 6">`);
|
|
8
9
|
/**
|
|
9
10
|
* A way home: after the page has scrolled past `threshold`, a small
|
|
10
11
|
* floating control rises at the page's corner and returns the reader to
|
|
@@ -19,7 +20,7 @@ var _tmpl$2 = /* @__PURE__ */ template(`<svg width=16 height=16 viewBox="0 0 24
|
|
|
19
20
|
* paper, hairline and halo are its; this family owns only the floating
|
|
20
21
|
* and the entrance.
|
|
21
22
|
*/
|
|
22
|
-
function BackTop(props) {
|
|
23
|
+
const BackTop = withSelfRoot(function BackTop(props) {
|
|
23
24
|
injectComponentStyle("back-top");
|
|
24
25
|
const [own, rest] = splitProps(props, [
|
|
25
26
|
"threshold",
|
|
@@ -84,10 +85,13 @@ function BackTop(props) {
|
|
|
84
85
|
}
|
|
85
86
|
})));
|
|
86
87
|
return _el$;
|
|
87
|
-
}
|
|
88
|
-
/** The single
|
|
88
|
+
});
|
|
89
|
+
/** The single icon a way-home control needs: one stroke pointing up. */
|
|
89
90
|
function chevronUp() {
|
|
90
|
-
return
|
|
91
|
+
return iconNode("chevron-up", {
|
|
92
|
+
width: "16",
|
|
93
|
+
height: "16"
|
|
94
|
+
});
|
|
91
95
|
}
|
|
92
96
|
//#endregion
|
|
93
97
|
export { BackTop };
|
|
@@ -6,5 +6,7 @@ export interface BadgeProps extends JSX.HTMLAttributes<HTMLSpanElement> {
|
|
|
6
6
|
tone?: "ink" | "info" | "success" | "warning" | "danger";
|
|
7
7
|
variant?: "solid" | "subtle" | "outline";
|
|
8
8
|
}
|
|
9
|
-
export declare
|
|
9
|
+
export declare const Badge: ((props: BadgeProps) => JSX.Element) & {
|
|
10
|
+
Root: (props: BadgeProps) => JSX.Element;
|
|
11
|
+
};
|
|
10
12
|
//#endregion
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
1
2
|
import { injectComponentStyle } from "@bysages/core";
|
|
2
3
|
import { spread, template } from "@solidjs/web";
|
|
3
4
|
import { splitProps } from "solid-js";
|
|
4
5
|
//#region src/components/badge/index.tsx
|
|
5
6
|
var _tmpl$ = /* @__PURE__ */ template(`<span>`);
|
|
6
|
-
function Badge(props) {
|
|
7
|
+
const Badge = withSelfRoot(function Badge(props) {
|
|
7
8
|
injectComponentStyle("badge");
|
|
8
9
|
const [own, rest] = splitProps(props, ["tone", "variant"]);
|
|
9
10
|
var _el$ = _tmpl$();
|
|
@@ -18,6 +19,6 @@ function Badge(props) {
|
|
|
18
19
|
}
|
|
19
20
|
}], false);
|
|
20
21
|
return _el$;
|
|
21
|
-
}
|
|
22
|
+
});
|
|
22
23
|
//#endregion
|
|
23
24
|
export { Badge };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { r as iconNode } from "../../icon-DTqmJCd5.mjs";
|
|
1
2
|
import { n as useComponentMessages } from "../../use-component-messages-C4SCVYjD.mjs";
|
|
2
3
|
import { injectComponentStyle } from "@bysages/core";
|
|
3
|
-
import { createComponent, mergeProps, spread, template } from "@solidjs/web";
|
|
4
|
+
import { createComponent, insert, mergeProps, spread, template } from "@solidjs/web";
|
|
4
5
|
import { splitProps } from "solid-js";
|
|
5
6
|
//#region src/components/banner/index.tsx
|
|
6
7
|
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
7
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<button
|
|
8
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<button>`);
|
|
8
9
|
/** A page-level notice, spoken across the full measure: a wash of the
|
|
9
10
|
* status pigment, one heavier hairline on the leading edge, and room
|
|
10
11
|
* for actions and a quiet close. Ink is the neutral register; the four
|
|
@@ -53,6 +54,9 @@ function Close(props) {
|
|
|
53
54
|
"data-scope": "banner",
|
|
54
55
|
"data-part": "close"
|
|
55
56
|
}], true);
|
|
57
|
+
insert(_el$2, () => {
|
|
58
|
+
return iconNode("x");
|
|
59
|
+
});
|
|
56
60
|
return _el$2;
|
|
57
61
|
}
|
|
58
62
|
const Banner = Object.assign(Root, {
|
|
@@ -8,5 +8,7 @@ export interface BlockUIProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
|
8
8
|
/** A curtain over content that must wait: the blocked region keeps its
|
|
9
9
|
* shape and dims under frosted paper while a quiet wheel reports the
|
|
10
10
|
* wait. Callers own the state; the curtain only answers it. */
|
|
11
|
-
export declare
|
|
11
|
+
export declare const BlockUI: ((props: BlockUIProps) => JSX.Element) & {
|
|
12
|
+
Root: (props: BlockUIProps) => JSX.Element;
|
|
13
|
+
};
|
|
12
14
|
//#endregion
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
1
2
|
import { Spinner } from "../spinner/index.mjs";
|
|
2
3
|
import { injectComponentStyle } from "@bysages/core";
|
|
3
4
|
import { createComponent, insert, spread, template } from "@solidjs/web";
|
|
@@ -8,7 +9,7 @@ var _tmpl$2 = /* @__PURE__ */ template(`<div><!><!>`);
|
|
|
8
9
|
/** A curtain over content that must wait: the blocked region keeps its
|
|
9
10
|
* shape and dims under frosted paper while a quiet wheel reports the
|
|
10
11
|
* wait. Callers own the state; the curtain only answers it. */
|
|
11
|
-
function BlockUI(props) {
|
|
12
|
+
const BlockUI = withSelfRoot(function BlockUI(props) {
|
|
12
13
|
injectComponentStyle("block-ui");
|
|
13
14
|
const [own, rest] = splitProps(props, ["blocked", "children"]);
|
|
14
15
|
var _el$ = _tmpl$2();
|
|
@@ -38,6 +39,6 @@ function BlockUI(props) {
|
|
|
38
39
|
}
|
|
39
40
|
}), _el$4);
|
|
40
41
|
return _el$;
|
|
41
|
-
}
|
|
42
|
+
});
|
|
42
43
|
//#endregion
|
|
43
44
|
export { BlockUI };
|
|
@@ -11,5 +11,7 @@ export interface ButtonProps extends JSX.ButtonHTMLAttributes<HTMLButtonElement>
|
|
|
11
11
|
/** Icon-only: the silhouette squares to the control height. */
|
|
12
12
|
square?: boolean;
|
|
13
13
|
}
|
|
14
|
-
export declare
|
|
14
|
+
export declare const Button: ((props: ButtonProps) => JSX.Element) & {
|
|
15
|
+
Root: (props: ButtonProps) => JSX.Element;
|
|
16
|
+
};
|
|
15
17
|
//#endregion
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
1
2
|
import { injectComponentStyle } from "@bysages/core";
|
|
2
3
|
import { spread, template } from "@solidjs/web";
|
|
3
4
|
import { splitProps } from "solid-js";
|
|
4
5
|
//#region src/components/button/index.tsx
|
|
5
6
|
var _tmpl$ = /* @__PURE__ */ template(`<button>`);
|
|
6
|
-
function Button(props) {
|
|
7
|
+
const Button = withSelfRoot(function Button(props) {
|
|
7
8
|
injectComponentStyle("button");
|
|
8
9
|
const [own, rest] = splitProps(props, [
|
|
9
10
|
"variant",
|
|
@@ -38,6 +39,6 @@ function Button(props) {
|
|
|
38
39
|
"data-motion": "ink-ripple lit"
|
|
39
40
|
}], false);
|
|
40
41
|
return _el$;
|
|
41
|
-
}
|
|
42
|
+
});
|
|
42
43
|
//#endregion
|
|
43
44
|
export { Button };
|