@bysages/solid 0.3.0 → 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-ClGGptX3.mjs → ai-response-D2uINBIi.mjs} +17 -7
- 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 +14 -16
- 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 +41 -37
- 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 +59 -46
- 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 +15 -2
- 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 +9 -3
- package/dist/components/block-ui/index.d.mts +3 -1
- package/dist/components/block-ui/index.mjs +3 -2
- package/dist/components/breadcrumb/index.mjs +5 -5
- 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 +82 -74
- 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 +24 -4
- 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 +7 -2
- package/dist/components/config-provider/index.mjs +6 -3
- 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 +13 -8
- 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 +15 -7
- 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 -1
- package/dist/components/file-upload/index.mjs +24 -6
- package/dist/components/float-button/index.mjs +3 -1
- 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 +8 -2
- package/dist/components/image/index.mjs +40 -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 -19
- package/dist/components/image-viewer/index.mjs +3 -151
- 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 -1
- package/dist/components/json-tree-view/index.mjs +22 -2
- package/dist/components/kbd/index.d.mts +3 -1
- package/dist/components/kbd/index.mjs +3 -2
- package/dist/components/layout/index.mjs +8 -4
- package/dist/components/link/index.d.mts +3 -1
- package/dist/components/link/index.mjs +3 -2
- package/dist/components/list/index.d.mts +2 -1
- package/dist/components/list/index.mjs +35 -26
- 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 +31 -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 +79 -67
- 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 +6 -3
- package/dist/components/split-button/index.d.mts +3 -1
- package/dist/components/split-button/index.mjs +19 -4
- 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 +25 -3
- package/dist/components/steps/index.mjs +73 -8
- 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 +194 -164
- 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 +6 -3
- 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 +5 -1
- package/dist/components/toc/index.mjs +1 -9
- 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 +68 -54
- package/dist/components/tree-select/index.d.mts +3 -1
- package/dist/components/tree-select/index.mjs +45 -35
- package/dist/components/tree-view/index.d.mts +1 -1
- package/dist/components/tree-view/index.mjs +26 -5
- 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 +14 -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 +22 -21
- package/dist/index.mjs +14 -13
- 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-DYKaKQ_X.mjs +31 -0
- package/dist/use-component-messages-C4SCVYjD.mjs +17 -0
- package/package.json +3 -3
- package/dist/chevron-D5RzcayK.mjs +0 -9
- package/dist/select-CHaXbzLX.mjs +0 -115
|
@@ -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,9 +1,11 @@
|
|
|
1
|
+
import { r as iconNode } from "../../icon-DTqmJCd5.mjs";
|
|
2
|
+
import { n as useComponentMessages } from "../../use-component-messages-C4SCVYjD.mjs";
|
|
1
3
|
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
-
import { createComponent, mergeProps, spread, template } from "@solidjs/web";
|
|
4
|
+
import { createComponent, insert, mergeProps, spread, template } from "@solidjs/web";
|
|
3
5
|
import { splitProps } from "solid-js";
|
|
4
6
|
//#region src/components/banner/index.tsx
|
|
5
7
|
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
6
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<button
|
|
8
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<button>`);
|
|
7
9
|
/** A page-level notice, spoken across the full measure: a wash of the
|
|
8
10
|
* status pigment, one heavier hairline on the leading edge, and room
|
|
9
11
|
* for actions and a quiet close. Ink is the neutral register; the four
|
|
@@ -40,17 +42,21 @@ const Actions = part("Actions", "div");
|
|
|
40
42
|
* consumer's state. */
|
|
41
43
|
function Close(props) {
|
|
42
44
|
const [own, rest] = splitProps(props, ["type"]);
|
|
45
|
+
const messages = useComponentMessages();
|
|
43
46
|
var _el$2 = _tmpl$2();
|
|
44
47
|
spread(_el$2, [rest, {
|
|
45
48
|
get type() {
|
|
46
49
|
return own.type ?? "button";
|
|
47
50
|
},
|
|
48
51
|
get "aria-label"() {
|
|
49
|
-
return rest["aria-label"] ??
|
|
52
|
+
return rest["aria-label"] ?? messages().banner.dismiss;
|
|
50
53
|
},
|
|
51
54
|
"data-scope": "banner",
|
|
52
55
|
"data-part": "close"
|
|
53
56
|
}], true);
|
|
57
|
+
insert(_el$2, () => {
|
|
58
|
+
return iconNode("x");
|
|
59
|
+
});
|
|
54
60
|
return _el$2;
|
|
55
61
|
}
|
|
56
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 };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import { n as useComponentMessages } from "../../use-component-messages-C4SCVYjD.mjs";
|
|
1
2
|
import { injectComponentStyle } from "@bysages/core";
|
|
2
3
|
import { createComponent, mergeProps, spread, template } from "@solidjs/web";
|
|
3
4
|
import { mergeProps as mergeProps$1 } from "solid-js";
|
|
4
5
|
//#region src/components/breadcrumb/index.tsx
|
|
5
6
|
var _tmpl$ = /* @__PURE__ */ template(`<span>`);
|
|
6
|
-
/** A trail of waymarks: Root wraps the nav, List the ordered trail, and
|
|
7
|
-
* each Item carries a Link — or the Current page — parted by a quiet
|
|
8
|
-
* Separator. Links take href and the rest through attributes. */
|
|
9
7
|
function part(name, tag, extra = {}) {
|
|
10
8
|
return ((props) => {
|
|
11
|
-
|
|
9
|
+
const messages = useComponentMessages();
|
|
10
|
+
const partExtra = typeof extra === "function" ? extra(messages()) : extra;
|
|
11
|
+
return createComponent(tag, mergeProps(partExtra, props, {
|
|
12
12
|
"data-scope": "breadcrumb",
|
|
13
13
|
get "data-part"() {
|
|
14
14
|
return name.toLowerCase();
|
|
@@ -16,7 +16,7 @@ function part(name, tag, extra = {}) {
|
|
|
16
16
|
}));
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
-
const Root = part("Root", "nav", { "aria-label":
|
|
19
|
+
const Root = part("Root", "nav", (messages) => ({ "aria-label": messages.breadcrumb.label }));
|
|
20
20
|
const List = part("List", "ol");
|
|
21
21
|
const Item = part("Item", "li");
|
|
22
22
|
const Link = part("Link", "a");
|
|
@@ -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 };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DatePicker as DatePicker$1 } from "../date-picker/index.mjs";
|
|
1
2
|
import { JSX } from "solid-js";
|
|
2
3
|
import { DatePickerRootProps } from "@ark-ui/solid/date-picker";
|
|
3
4
|
//#region src/components/calendar/index.d.ts
|
|
@@ -13,5 +14,6 @@ export interface CalendarProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
|
13
14
|
* title zooms out through month and year grids; the grids themselves
|
|
14
15
|
* are the shared machinery — value, range selection, and focus ride
|
|
15
16
|
* Ark's own contract. */
|
|
16
|
-
|
|
17
|
+
declare function CalendarImpl(props: CalendarProps): JSX.Element;
|
|
18
|
+
export declare const Calendar: typeof CalendarImpl & typeof DatePicker$1;
|
|
17
19
|
//#endregion
|
|
@@ -1,32 +1,36 @@
|
|
|
1
|
+
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { r as iconNode } from "../../icon-DTqmJCd5.mjs";
|
|
3
|
+
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
4
|
+
import { DatePicker as DatePicker$1 } from "../date-picker/index.mjs";
|
|
1
5
|
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
-
import { createComponent,
|
|
6
|
+
import { createComponent, insert, memo, mergeProps, spread, template } from "@solidjs/web";
|
|
3
7
|
import { For, Show, splitProps } from "solid-js";
|
|
4
8
|
import { DatePicker } from "@ark-ui/solid/date-picker";
|
|
5
9
|
//#region src/components/calendar/index.tsx
|
|
6
|
-
var _tmpl$ = /* @__PURE__ */ template(`<
|
|
7
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<div
|
|
8
|
-
var _tmpl$3 = /* @__PURE__ */ template(`<div><!><!>`);
|
|
10
|
+
var _tmpl$ = /* @__PURE__ */ template(`<div data-scope=calendar data-part=header>`);
|
|
11
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<div><!><!>`);
|
|
9
12
|
function chevron(dir) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
return iconNode(dir === "left" ? "chevron-left" : "chevron-right", {
|
|
14
|
+
width: "16",
|
|
15
|
+
height: "16"
|
|
13
16
|
});
|
|
14
|
-
return _el$;
|
|
15
17
|
}
|
|
16
18
|
/** The date-picker's month grid, standing on the page without its
|
|
17
19
|
* popup: always open, the trigger gone, the vessel a quiet card. The
|
|
18
20
|
* title zooms out through month and year grids; the grids themselves
|
|
19
21
|
* are the shared machinery — value, range selection, and focus ride
|
|
20
22
|
* Ark's own contract. */
|
|
21
|
-
function
|
|
23
|
+
function CalendarImpl(props) {
|
|
22
24
|
injectComponentStyle("calendar");
|
|
23
25
|
injectComponentStyle("date-picker");
|
|
24
26
|
const [own, rest] = splitProps(props, [
|
|
27
|
+
"id",
|
|
25
28
|
"value",
|
|
26
29
|
"min",
|
|
27
30
|
"max",
|
|
28
31
|
"onValueChange"
|
|
29
32
|
]);
|
|
33
|
+
const id = useElementId("calendar", () => own.id);
|
|
30
34
|
const title = (dp) => {
|
|
31
35
|
const api = dp();
|
|
32
36
|
const d = api.focusedValue;
|
|
@@ -40,8 +44,8 @@ function Calendar(props) {
|
|
|
40
44
|
return `${decade} - ${decade + 9}`;
|
|
41
45
|
};
|
|
42
46
|
const header = () => (() => {
|
|
43
|
-
var _el$
|
|
44
|
-
insert(_el
|
|
47
|
+
var _el$ = _tmpl$();
|
|
48
|
+
insert(_el$, createComponent(DatePicker.ViewControl, { get children() {
|
|
45
49
|
return [
|
|
46
50
|
createComponent(DatePicker.PrevTrigger, { get children() {
|
|
47
51
|
return chevron("left");
|
|
@@ -54,16 +58,19 @@ function Calendar(props) {
|
|
|
54
58
|
} })
|
|
55
59
|
];
|
|
56
60
|
} }));
|
|
57
|
-
return _el
|
|
61
|
+
return _el$;
|
|
58
62
|
})();
|
|
59
|
-
var _el$
|
|
60
|
-
var _el$
|
|
61
|
-
var _el$
|
|
62
|
-
spread(_el$
|
|
63
|
+
var _el$2 = _tmpl$2();
|
|
64
|
+
var _el$3 = _el$2.firstChild;
|
|
65
|
+
var _el$4 = _el$3.nextSibling;
|
|
66
|
+
spread(_el$2, [rest, {
|
|
63
67
|
"data-scope": "calendar",
|
|
64
68
|
"data-part": "root"
|
|
65
69
|
}], true);
|
|
66
|
-
insert(_el$
|
|
70
|
+
insert(_el$2, createComponent(DatePicker.Root, mergeProps({
|
|
71
|
+
get id() {
|
|
72
|
+
return id();
|
|
73
|
+
},
|
|
67
74
|
open: true,
|
|
68
75
|
closeOnSelect: true,
|
|
69
76
|
inline: true
|
|
@@ -194,16 +201,17 @@ function Calendar(props) {
|
|
|
194
201
|
})
|
|
195
202
|
];
|
|
196
203
|
}
|
|
197
|
-
})), _el$
|
|
198
|
-
insert(_el$
|
|
204
|
+
})), _el$3);
|
|
205
|
+
insert(_el$2, createComponent(Show, {
|
|
199
206
|
get when() {
|
|
200
207
|
return rest.children;
|
|
201
208
|
},
|
|
202
209
|
get children() {
|
|
203
210
|
return rest.children;
|
|
204
211
|
}
|
|
205
|
-
}), _el$
|
|
206
|
-
return _el$
|
|
212
|
+
}), _el$4);
|
|
213
|
+
return _el$2;
|
|
207
214
|
}
|
|
215
|
+
const Calendar = defineFamily(CalendarImpl, DatePicker$1);
|
|
208
216
|
//#endregion
|
|
209
217
|
export { Calendar };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ComponentProps } from "solid-js";
|
|
1
2
|
import { Carousel as Carousel$1 } from "@ark-ui/solid/carousel";
|
|
2
3
|
//#region src/components/carousel/index.d.ts
|
|
3
4
|
/** Ark's Carousel, dressed in the paper-and-ink system: slides ride in one
|
|
@@ -5,5 +6,8 @@ import { Carousel as Carousel$1 } from "@ark-ui/solid/carousel";
|
|
|
5
6
|
* current indicator alone carries the ink. The API is Ark's own — Root,
|
|
6
7
|
* Control, PrevTrigger, NextTrigger, ItemGroup, Item, IndicatorGroup,
|
|
7
8
|
* Indicator, AutoplayTrigger, ProgressText. */
|
|
8
|
-
|
|
9
|
+
declare function CarouselRoot(props: ComponentProps<typeof Carousel$1.Root>): import("solid-js").JSX.Element;
|
|
10
|
+
export declare const Carousel: typeof CarouselRoot & Omit<typeof Carousel$1, "Root"> & {
|
|
11
|
+
Root: typeof CarouselRoot;
|
|
12
|
+
};
|
|
9
13
|
//#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 { injectComponentStyle } from "@bysages/core";
|
|
4
|
+
import { createComponent, mergeProps } from "solid-js";
|
|
2
5
|
import { Carousel as Carousel$1 } from "@ark-ui/solid/carousel";
|
|
3
6
|
//#region src/components/carousel/index.ts
|
|
4
7
|
/** Ark's Carousel, dressed in the paper-and-ink system: slides ride in one
|
|
@@ -6,7 +9,16 @@ import { Carousel as Carousel$1 } from "@ark-ui/solid/carousel";
|
|
|
6
9
|
* current indicator alone carries the ink. The API is Ark's own — Root,
|
|
7
10
|
* Control, PrevTrigger, NextTrigger, ItemGroup, Item, IndicatorGroup,
|
|
8
11
|
* Indicator, AutoplayTrigger, ProgressText. */
|
|
9
|
-
|
|
12
|
+
function CarouselRoot(props) {
|
|
13
|
+
const id = useElementId("carousel", () => props.id);
|
|
14
|
+
return createComponent(Carousel$1.Root, mergeProps(props, { get id() {
|
|
15
|
+
return id();
|
|
16
|
+
} }));
|
|
17
|
+
}
|
|
18
|
+
const Carousel = defineFamily(CarouselRoot, {
|
|
19
|
+
...Carousel$1,
|
|
20
|
+
Root: CarouselRoot
|
|
21
|
+
});
|
|
10
22
|
injectComponentStyle("carousel");
|
|
11
23
|
//#endregion
|
|
12
24
|
export { Carousel };
|
|
@@ -27,5 +27,7 @@ export interface CascadeSelectProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
|
27
27
|
* swaps the corridor for a flat list of matching paths while a query
|
|
28
28
|
* runs — each hit still reads as its full route.
|
|
29
29
|
*/
|
|
30
|
-
export declare
|
|
30
|
+
export declare const CascadeSelect: ((props: CascadeSelectProps) => JSX.Element) & {
|
|
31
|
+
Root: (props: CascadeSelectProps) => JSX.Element;
|
|
32
|
+
};
|
|
31
33
|
//#endregion
|