@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
|
@@ -2,8 +2,8 @@ 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
4
|
import { Checkbox as Checkbox$1 } from "../checkbox/index.mjs";
|
|
5
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
6
5
|
import { createComponent, mergeProps } from "@solidjs/web";
|
|
6
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
7
7
|
import { For, splitProps } from "solid-js";
|
|
8
8
|
import { useFieldContext } from "@ark-ui/solid/field";
|
|
9
9
|
import { Checkbox } from "@ark-ui/solid/checkbox";
|
|
@@ -11,7 +11,7 @@ import { Checkbox } from "@ark-ui/solid/checkbox";
|
|
|
11
11
|
function checkIcon() {
|
|
12
12
|
return iconNode("check");
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function CheckboxGroupFacade(props) {
|
|
15
15
|
injectComponentStyle("checkbox-group");
|
|
16
16
|
injectComponentStyle("checkbox");
|
|
17
17
|
const field = useFieldContext();
|
|
@@ -89,6 +89,6 @@ function CheckboxGroupImpl(props) {
|
|
|
89
89
|
}
|
|
90
90
|
}));
|
|
91
91
|
}
|
|
92
|
-
const CheckboxGroup = defineFamily(
|
|
92
|
+
const CheckboxGroup = defineFamily(CheckboxGroupFacade, Checkbox$1);
|
|
93
93
|
//#endregion
|
|
94
94
|
export { CheckboxGroup };
|
|
@@ -5,7 +5,7 @@ import { JSX } from "solid-js";
|
|
|
5
5
|
export interface ChipProps extends JSX.HTMLAttributes<HTMLSpanElement> {
|
|
6
6
|
value: number;
|
|
7
7
|
max?: number;
|
|
8
|
-
tone?: "ink" | "
|
|
8
|
+
tone?: "ink" | "primary" | "success" | "warning" | "danger" | "info";
|
|
9
9
|
variant?: "solid" | "subtle" | "outline";
|
|
10
10
|
}
|
|
11
11
|
export declare const Chip: ((props: ChipProps) => JSX.Element) & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
3
2
|
import { insert, memo, spread, template } from "@solidjs/web";
|
|
3
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { splitProps } from "solid-js";
|
|
5
5
|
//#region src/components/chip/index.tsx
|
|
6
6
|
var _tmpl$ = /* @__PURE__ */ template(`<span>`);
|
|
@@ -10,7 +10,20 @@ type ClipboardOwnProps = {
|
|
|
10
10
|
size?: "sm" | "md" | "lg";
|
|
11
11
|
};
|
|
12
12
|
declare function ClipboardRoot(props: ClipboardRootProps & ClipboardOwnProps): import("solid-js").JSX.Element;
|
|
13
|
-
export
|
|
13
|
+
export interface ClipboardFacadeProps {
|
|
14
|
+
value?: string;
|
|
15
|
+
defaultValue?: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
label?: string;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
/** One rung of the control-height ladder for the value field and its copy seal. */
|
|
20
|
+
size?: "sm" | "md" | "lg";
|
|
21
|
+
onValueChange?: (value: string) => void;
|
|
22
|
+
}
|
|
23
|
+
/** The complete copy field behind one value: a labelled read-only input and
|
|
24
|
+
* its confirmed copy trigger. */
|
|
25
|
+
declare function ClipboardFacade(props: ClipboardFacadeProps): import("solid-js").JSX.Element;
|
|
26
|
+
export declare const Clipboard: typeof ClipboardFacade & Omit<typeof Clipboard$1, "Root"> & {
|
|
14
27
|
Root: typeof ClipboardRoot;
|
|
15
28
|
};
|
|
16
29
|
//#endregion
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { r as iconNode } from "../../icon-DTqmJCd5.mjs";
|
|
2
3
|
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
4
|
+
import { createComponent, memo, mergeProps } from "@solidjs/web";
|
|
5
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
6
|
import { splitProps } from "solid-js";
|
|
6
7
|
import { Clipboard as Clipboard$1 } from "@ark-ui/solid/clipboard";
|
|
7
8
|
//#region src/components/clipboard/index.tsx
|
|
@@ -18,7 +19,61 @@ function ClipboardRoot(props) {
|
|
|
18
19
|
}
|
|
19
20
|
}));
|
|
20
21
|
}
|
|
21
|
-
|
|
22
|
+
/** The complete copy field behind one value: a labelled read-only input and
|
|
23
|
+
* its confirmed copy trigger. */
|
|
24
|
+
function ClipboardFacade(props) {
|
|
25
|
+
return createComponent(ClipboardRoot, mergeProps({
|
|
26
|
+
get size() {
|
|
27
|
+
return props.size ?? "md";
|
|
28
|
+
},
|
|
29
|
+
get defaultValue() {
|
|
30
|
+
return props.defaultValue;
|
|
31
|
+
}
|
|
32
|
+
}, () => {
|
|
33
|
+
return props.value === void 0 ? {} : { value: props.value };
|
|
34
|
+
}, {
|
|
35
|
+
onValueChange: (details) => props.onValueChange?.(details.value),
|
|
36
|
+
get children() {
|
|
37
|
+
return [memo(() => {
|
|
38
|
+
return memo(() => {
|
|
39
|
+
return !!props.label;
|
|
40
|
+
})() ? createComponent(Clipboard$1.Label, { get children() {
|
|
41
|
+
return props.label;
|
|
42
|
+
} }) : null;
|
|
43
|
+
}), createComponent(Clipboard$1.Control, { get children() {
|
|
44
|
+
return [createComponent(Clipboard$1.Input, {
|
|
45
|
+
get placeholder() {
|
|
46
|
+
return props.placeholder;
|
|
47
|
+
},
|
|
48
|
+
get disabled() {
|
|
49
|
+
return props.disabled;
|
|
50
|
+
}
|
|
51
|
+
}), createComponent(Clipboard$1.Trigger, {
|
|
52
|
+
get disabled() {
|
|
53
|
+
return props.disabled;
|
|
54
|
+
},
|
|
55
|
+
get children() {
|
|
56
|
+
return createComponent(Clipboard$1.Indicator, {
|
|
57
|
+
get copied() {
|
|
58
|
+
return iconNode("check", {
|
|
59
|
+
width: "14",
|
|
60
|
+
height: "14"
|
|
61
|
+
});
|
|
62
|
+
},
|
|
63
|
+
get children() {
|
|
64
|
+
return iconNode("copy", {
|
|
65
|
+
width: "14",
|
|
66
|
+
height: "14"
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
})];
|
|
72
|
+
} })];
|
|
73
|
+
}
|
|
74
|
+
}));
|
|
75
|
+
}
|
|
76
|
+
const Clipboard = defineFamily(ClipboardFacade, {
|
|
22
77
|
...Clipboard$1,
|
|
23
78
|
Root: ClipboardRoot
|
|
24
79
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
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, memo, mergeProps } from "@solidjs/web";
|
|
5
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
6
6
|
import { createComponent as createComponent$1, mergeProps as mergeProps$1 } from "solid-js";
|
|
7
7
|
import { Collapsible as Collapsible$1 } from "@ark-ui/solid/collapsible";
|
|
8
8
|
//#region src/components/collapsible/index.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
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, mergeProps, template } from "@solidjs/web";
|
|
5
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
6
6
|
import { Show, splitProps } from "solid-js";
|
|
7
7
|
import { ColorPicker as ColorPicker$1, parseColor } from "@ark-ui/solid/color-picker";
|
|
8
8
|
//#region src/components/color-picker/index.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
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, memo, mergeProps } from "@solidjs/web";
|
|
5
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
6
6
|
import { For, Show, splitProps } from "solid-js";
|
|
7
7
|
import { Combobox as Combobox$1, createListCollection } from "@ark-ui/solid/combobox";
|
|
8
8
|
//#region src/components/combobox/index.tsx
|
|
@@ -2,8 +2,8 @@ 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 { Dialog as Dialog$1 } from "../dialog/index.mjs";
|
|
5
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
6
5
|
import { createComponent, insert, mergeProps, spread, template } from "@solidjs/web";
|
|
6
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
7
7
|
import { For, Show, createEffect, createSignal, splitProps } from "solid-js";
|
|
8
8
|
import { useListCollection } from "@ark-ui/solid/collection";
|
|
9
9
|
import { Combobox } from "@ark-ui/solid/combobox";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
3
2
|
import { createComponent, effect, insert, setAttribute, spread, template } from "@solidjs/web";
|
|
3
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { Show, splitProps } from "solid-js";
|
|
5
5
|
//#region src/components/comment/index.tsx
|
|
6
6
|
var _tmpl$ = /* @__PURE__ */ template(`<div data-scope=comment data-part=avatar>`);
|
|
@@ -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/container/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 { n as useComponentMessages } from "../../use-component-messages-C4SCVYjD.mjs";
|
|
3
3
|
import { Pagination } from "../pagination/index.mjs";
|
|
4
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
5
4
|
import { createComponent, effect, insert, memo, setAttribute, spread, template } from "@solidjs/web";
|
|
5
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
6
6
|
import { For, Show, createSignal, splitProps } from "solid-js";
|
|
7
7
|
//#region src/components/data-view/index.tsx
|
|
8
8
|
var _tmpl$ = /* @__PURE__ */ template(`<div data-scope=data-view data-part=pager>`);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DateInput as DateInput$1, DateInputRootProps } from "@ark-ui/solid/date-input";
|
|
1
|
+
import { DateInput as DateInput$1, DateInputDateValue, DateInputRootProps } from "@ark-ui/solid/date-input";
|
|
2
2
|
//#region src/components/date-input/index.d.ts
|
|
3
3
|
/** Ark's DateInput, dressed in the paper-and-ink system: a segmented
|
|
4
4
|
* field where the focused segment takes the flat ink fill. The API is
|
|
@@ -9,7 +9,21 @@ type DateInputOwnProps = {
|
|
|
9
9
|
size?: "sm" | "md" | "lg";
|
|
10
10
|
};
|
|
11
11
|
declare function DateInputRoot(props: DateInputRootProps & DateInputOwnProps): import("solid-js").JSX.Element;
|
|
12
|
-
|
|
12
|
+
type DateInputFacadeValue = DateInputDateValue | DateInputDateValue[];
|
|
13
|
+
export interface DateInputFacadeProps {
|
|
14
|
+
value?: DateInputFacadeValue;
|
|
15
|
+
defaultValue?: DateInputFacadeValue;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
invalid?: boolean;
|
|
18
|
+
required?: boolean;
|
|
19
|
+
label?: string;
|
|
20
|
+
/** One rung of the control-height ladder for the segmented field. */
|
|
21
|
+
size?: "sm" | "md" | "lg";
|
|
22
|
+
onValueChange?: (value: DateInputDateValue[]) => void;
|
|
23
|
+
}
|
|
24
|
+
/** The complete segmented date field behind one value. */
|
|
25
|
+
declare function DateInputFacade(props: DateInputFacadeProps): import("solid-js").JSX.Element;
|
|
26
|
+
export declare const DateInput: typeof DateInputFacade & Omit<typeof DateInput$1, "Root"> & {
|
|
13
27
|
Root: typeof DateInputRoot;
|
|
14
28
|
};
|
|
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 { Show, splitProps } from "solid-js";
|
|
6
6
|
import { DateInput as DateInput$1 } from "@ark-ui/solid/date-input";
|
|
7
7
|
//#region src/components/date-input/index.tsx
|
|
8
8
|
function DateInputRoot(props) {
|
|
@@ -17,7 +17,56 @@ function DateInputRoot(props) {
|
|
|
17
17
|
}
|
|
18
18
|
}));
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
function toDateInputValue(value) {
|
|
21
|
+
if (value === void 0) return void 0;
|
|
22
|
+
return Array.isArray(value) ? value : [value];
|
|
23
|
+
}
|
|
24
|
+
/** The complete segmented date field behind one value. */
|
|
25
|
+
function DateInputFacade(props) {
|
|
26
|
+
injectComponentStyle("date-input");
|
|
27
|
+
return createComponent(DateInputRoot, mergeProps({
|
|
28
|
+
get size() {
|
|
29
|
+
return props.size ?? "md";
|
|
30
|
+
},
|
|
31
|
+
get defaultValue() {
|
|
32
|
+
return toDateInputValue(props.defaultValue);
|
|
33
|
+
},
|
|
34
|
+
get disabled() {
|
|
35
|
+
return props.disabled;
|
|
36
|
+
},
|
|
37
|
+
get invalid() {
|
|
38
|
+
return props.invalid;
|
|
39
|
+
},
|
|
40
|
+
get required() {
|
|
41
|
+
return props.required;
|
|
42
|
+
}
|
|
43
|
+
}, () => {
|
|
44
|
+
return props.value === void 0 ? {} : { value: toDateInputValue(props.value) };
|
|
45
|
+
}, {
|
|
46
|
+
onValueChange: (details) => props.onValueChange?.(details.value),
|
|
47
|
+
get children() {
|
|
48
|
+
return [
|
|
49
|
+
createComponent(Show, {
|
|
50
|
+
get when() {
|
|
51
|
+
return props.label;
|
|
52
|
+
},
|
|
53
|
+
get children() {
|
|
54
|
+
return createComponent(DateInput$1.Label, { get children() {
|
|
55
|
+
return props.label;
|
|
56
|
+
} });
|
|
57
|
+
}
|
|
58
|
+
}),
|
|
59
|
+
createComponent(DateInput$1.Control, { get children() {
|
|
60
|
+
return createComponent(DateInput$1.SegmentGroup, { get children() {
|
|
61
|
+
return createComponent(DateInput$1.SegmentContext, { children: (segment) => createComponent(DateInput$1.Segment, { segment }) });
|
|
62
|
+
} });
|
|
63
|
+
} }),
|
|
64
|
+
createComponent(DateInput$1.HiddenInput, {})
|
|
65
|
+
];
|
|
66
|
+
}
|
|
67
|
+
}));
|
|
68
|
+
}
|
|
69
|
+
const DateInput = defineFamily(DateInputFacade, {
|
|
21
70
|
...DateInput$1,
|
|
22
71
|
Root: DateInputRoot
|
|
23
72
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DatePicker as DatePicker$1, DatePickerRootProps } from "@ark-ui/solid/date-picker";
|
|
1
|
+
import { DatePicker as DatePicker$1, DatePickerDateRangePreset, DatePickerRootProps, DateValue } from "@ark-ui/solid/date-picker";
|
|
2
2
|
//#region src/components/date-picker/index.d.ts
|
|
3
3
|
/** Ark's DatePicker, dressed in the paper-and-ink system: the popup
|
|
4
4
|
* dissolves in on elevation, selected days take the flat ink fill, and
|
|
@@ -11,7 +11,32 @@ type DatePickerOwnProps = {
|
|
|
11
11
|
size?: "sm" | "md" | "lg";
|
|
12
12
|
};
|
|
13
13
|
declare function DatePickerRoot(props: DatePickerRootProps & DatePickerOwnProps): import("solid-js").JSX.Element;
|
|
14
|
-
|
|
14
|
+
type DatePickerFacadeValue = DateValue | DateValue[];
|
|
15
|
+
/** One quick choice in the popup: a named range, or exact dates. */
|
|
16
|
+
export type DatePickerPreset = {
|
|
17
|
+
label: string;
|
|
18
|
+
value: DatePickerDateRangePreset | DateValue[];
|
|
19
|
+
};
|
|
20
|
+
/** The complete picker behind one date: the field opens a single day grid,
|
|
21
|
+
* while ranges, multiple selection, and custom views remain anatomy work. */
|
|
22
|
+
export interface DatePickerFacadeProps {
|
|
23
|
+
value?: DatePickerFacadeValue;
|
|
24
|
+
defaultValue?: DatePickerFacadeValue;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
invalid?: boolean;
|
|
27
|
+
required?: boolean;
|
|
28
|
+
label?: string;
|
|
29
|
+
placeholder?: string;
|
|
30
|
+
/** One rung of the control-height ladder for the field row. */
|
|
31
|
+
size?: "sm" | "md" | "lg";
|
|
32
|
+
/** Quick choices rendered above the calendar; the picker's own preset
|
|
33
|
+
* machine resolves named ranges. */
|
|
34
|
+
presets?: DatePickerPreset[];
|
|
35
|
+
onValueChange?: (value: DateValue[]) => void;
|
|
36
|
+
}
|
|
37
|
+
declare function DatePickerFacade(props: DatePickerFacadeProps): import("solid-js").JSX.Element;
|
|
38
|
+
type DatePickerParts = Omit<typeof DatePicker$1, "Root"> & {
|
|
15
39
|
Root: typeof DatePickerRoot;
|
|
16
40
|
};
|
|
41
|
+
export declare const DatePicker: typeof DatePickerFacade & DatePickerParts;
|
|
17
42
|
//#endregion
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { r as iconNode } from "../../icon-DTqmJCd5.mjs";
|
|
2
3
|
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { splitProps } from "solid-js";
|
|
4
|
+
import { createComponent, insert, memo, mergeProps, template } from "@solidjs/web";
|
|
5
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
6
|
+
import { For, Show, splitProps } from "solid-js";
|
|
6
7
|
import { DatePicker as DatePicker$1 } from "@ark-ui/solid/date-picker";
|
|
7
8
|
//#region src/components/date-picker/index.tsx
|
|
9
|
+
var _tmpl$ = /* @__PURE__ */ template(`<div data-scope=date-picker data-part=presets>`);
|
|
8
10
|
function DatePickerRoot(props) {
|
|
9
11
|
const [own, rest] = splitProps(props, ["size"]);
|
|
10
12
|
const id = useElementId("date-picker", () => rest.id);
|
|
@@ -17,7 +19,154 @@ function DatePickerRoot(props) {
|
|
|
17
19
|
}
|
|
18
20
|
}));
|
|
19
21
|
}
|
|
20
|
-
|
|
22
|
+
function toDatePickerValue(value) {
|
|
23
|
+
if (value === void 0) return void 0;
|
|
24
|
+
return Array.isArray(value) ? value : [value];
|
|
25
|
+
}
|
|
26
|
+
function DatePickerFacade(props) {
|
|
27
|
+
injectComponentStyle("date-picker");
|
|
28
|
+
return createComponent(DatePickerRoot, mergeProps({
|
|
29
|
+
get size() {
|
|
30
|
+
return props.size ?? "md";
|
|
31
|
+
},
|
|
32
|
+
get defaultValue() {
|
|
33
|
+
return toDatePickerValue(props.defaultValue);
|
|
34
|
+
},
|
|
35
|
+
get disabled() {
|
|
36
|
+
return props.disabled;
|
|
37
|
+
},
|
|
38
|
+
get invalid() {
|
|
39
|
+
return props.invalid;
|
|
40
|
+
},
|
|
41
|
+
get placeholder() {
|
|
42
|
+
return props.placeholder;
|
|
43
|
+
},
|
|
44
|
+
get required() {
|
|
45
|
+
return props.required;
|
|
46
|
+
}
|
|
47
|
+
}, () => {
|
|
48
|
+
return props.value === void 0 ? {} : { value: toDatePickerValue(props.value) };
|
|
49
|
+
}, {
|
|
50
|
+
onValueChange: (details) => props.onValueChange?.(details.value),
|
|
51
|
+
get children() {
|
|
52
|
+
return [
|
|
53
|
+
createComponent(Show, {
|
|
54
|
+
get when() {
|
|
55
|
+
return props.label;
|
|
56
|
+
},
|
|
57
|
+
get children() {
|
|
58
|
+
return createComponent(DatePicker$1.Label, { get children() {
|
|
59
|
+
return props.label;
|
|
60
|
+
} });
|
|
61
|
+
}
|
|
62
|
+
}),
|
|
63
|
+
createComponent(DatePicker$1.Control, { get children() {
|
|
64
|
+
return [createComponent(DatePicker$1.Input, { get "aria-label"() {
|
|
65
|
+
return memo(() => {
|
|
66
|
+
return !!props.label;
|
|
67
|
+
})() ? void 0 : props.placeholder;
|
|
68
|
+
} }), createComponent(DatePicker$1.Trigger, { get children() {
|
|
69
|
+
return iconNode("calendar", {
|
|
70
|
+
width: "16",
|
|
71
|
+
height: "16"
|
|
72
|
+
});
|
|
73
|
+
} })];
|
|
74
|
+
} }),
|
|
75
|
+
createComponent(DatePicker$1.Positioner, { get children() {
|
|
76
|
+
return createComponent(DatePicker$1.Content, { get children() {
|
|
77
|
+
return createComponent(DatePicker$1.View, {
|
|
78
|
+
view: "day",
|
|
79
|
+
get children() {
|
|
80
|
+
return createComponent(DatePicker$1.Context, { children: (dp) => [
|
|
81
|
+
createComponent(Show, {
|
|
82
|
+
get when() {
|
|
83
|
+
return props.presets?.length;
|
|
84
|
+
},
|
|
85
|
+
get children() {
|
|
86
|
+
var _el$ = _tmpl$();
|
|
87
|
+
insert(_el$, createComponent(For, {
|
|
88
|
+
get each() {
|
|
89
|
+
return props.presets;
|
|
90
|
+
},
|
|
91
|
+
children: (preset) => createComponent(DatePicker$1.PresetTrigger, {
|
|
92
|
+
get value() {
|
|
93
|
+
return preset.value;
|
|
94
|
+
},
|
|
95
|
+
get children() {
|
|
96
|
+
return preset.label;
|
|
97
|
+
}
|
|
98
|
+
})
|
|
99
|
+
}));
|
|
100
|
+
return _el$;
|
|
101
|
+
}
|
|
102
|
+
}),
|
|
103
|
+
createComponent(DatePicker$1.ViewControl, { get children() {
|
|
104
|
+
return [
|
|
105
|
+
createComponent(DatePicker$1.PrevTrigger, { get children() {
|
|
106
|
+
return iconNode("chevron-left", {
|
|
107
|
+
width: "14",
|
|
108
|
+
height: "14"
|
|
109
|
+
});
|
|
110
|
+
} }),
|
|
111
|
+
createComponent(DatePicker$1.ViewTrigger, { get children() {
|
|
112
|
+
return createComponent(DatePicker$1.RangeText, {});
|
|
113
|
+
} }),
|
|
114
|
+
createComponent(DatePicker$1.NextTrigger, { get children() {
|
|
115
|
+
return iconNode("chevron-right", {
|
|
116
|
+
width: "14",
|
|
117
|
+
height: "14"
|
|
118
|
+
});
|
|
119
|
+
} })
|
|
120
|
+
];
|
|
121
|
+
} }),
|
|
122
|
+
createComponent(DatePicker$1.Table, { get children() {
|
|
123
|
+
return [createComponent(DatePicker$1.TableHead, { get children() {
|
|
124
|
+
return createComponent(DatePicker$1.TableRow, { get children() {
|
|
125
|
+
return createComponent(For, {
|
|
126
|
+
get each() {
|
|
127
|
+
return dp().weekDays;
|
|
128
|
+
},
|
|
129
|
+
children: (day) => createComponent(DatePicker$1.TableHeader, {
|
|
130
|
+
get "aria-label"() {
|
|
131
|
+
return day.long;
|
|
132
|
+
},
|
|
133
|
+
get children() {
|
|
134
|
+
return day.narrow;
|
|
135
|
+
}
|
|
136
|
+
})
|
|
137
|
+
});
|
|
138
|
+
} });
|
|
139
|
+
} }), createComponent(DatePicker$1.TableBody, { get children() {
|
|
140
|
+
return createComponent(For, {
|
|
141
|
+
get each() {
|
|
142
|
+
return dp().weeks;
|
|
143
|
+
},
|
|
144
|
+
children: (week) => createComponent(DatePicker$1.TableRow, { get children() {
|
|
145
|
+
return createComponent(For, {
|
|
146
|
+
each: week,
|
|
147
|
+
children: (day) => createComponent(DatePicker$1.TableCell, {
|
|
148
|
+
value: day,
|
|
149
|
+
get children() {
|
|
150
|
+
return createComponent(DatePicker$1.TableCellTrigger, { get children() {
|
|
151
|
+
return day.day;
|
|
152
|
+
} });
|
|
153
|
+
}
|
|
154
|
+
})
|
|
155
|
+
});
|
|
156
|
+
} })
|
|
157
|
+
});
|
|
158
|
+
} })];
|
|
159
|
+
} })
|
|
160
|
+
] });
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
} });
|
|
164
|
+
} })
|
|
165
|
+
];
|
|
166
|
+
}
|
|
167
|
+
}));
|
|
168
|
+
}
|
|
169
|
+
const DatePicker = defineFamily(DatePickerFacade, {
|
|
21
170
|
...DatePicker$1,
|
|
22
171
|
Root: DatePickerRoot
|
|
23
172
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
3
2
|
import { createComponent, insert, ref, spread, template } from "@solidjs/web";
|
|
3
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { Show, createSignal, onCleanup, onMount, splitProps } from "solid-js";
|
|
5
5
|
//#region src/components/deferred-content/index.tsx
|
|
6
6
|
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
2
1
|
import { createComponent, insert, mergeProps, spread, template } from "@solidjs/web";
|
|
2
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { splitProps } from "solid-js";
|
|
4
4
|
//#region src/components/descriptions/index.tsx
|
|
5
5
|
var _tmpl$ = /* @__PURE__ */ template(`<dl>`);
|
|
@@ -1,8 +1,8 @@
|
|
|
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";
|
|
5
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
6
6
|
import { Show, createComponent as createComponent$1, mergeProps as mergeProps$1 } from "solid-js";
|
|
7
7
|
import { Dialog as Dialog$1 } from "@ark-ui/solid/dialog";
|
|
8
8
|
//#region src/components/dialog/index.tsx
|
|
@@ -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/dock/index.tsx
|
|
5
5
|
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
@@ -1,8 +1,8 @@
|
|
|
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";
|
|
5
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
6
6
|
import { Show, createComponent as createComponent$1, mergeProps as mergeProps$1 } from "solid-js";
|
|
7
7
|
import { Drawer as Drawer$1 } from "@ark-ui/solid/drawer";
|
|
8
8
|
//#region src/components/drawer/index.tsx
|
|
@@ -2,9 +2,9 @@ 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
4
|
import { n as useComponentMessages } from "../../use-component-messages-C4SCVYjD.mjs";
|
|
5
|
-
import { t as Input } from "../../input-
|
|
6
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
5
|
+
import { t as Input } from "../../input-BL3N3L8g.mjs";
|
|
7
6
|
import { createComponent, insert, memo, spread, template } from "@solidjs/web";
|
|
7
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
8
8
|
import { Index, splitProps } from "solid-js";
|
|
9
9
|
//#region src/components/dynamic-input/index.tsx
|
|
10
10
|
var _tmpl$ = /* @__PURE__ */ template(`<div><div data-scope=dynamic-input data-part=add>`);
|
|
@@ -9,7 +9,23 @@ type EditableOwnProps = {
|
|
|
9
9
|
size?: "sm" | "md" | "lg";
|
|
10
10
|
};
|
|
11
11
|
declare function EditableRoot(props: EditableRootProps & EditableOwnProps): import("solid-js").JSX.Element;
|
|
12
|
-
export
|
|
12
|
+
export interface EditableFacadeProps {
|
|
13
|
+
value?: string;
|
|
14
|
+
defaultValue?: string;
|
|
15
|
+
label?: string;
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
invalid?: boolean;
|
|
19
|
+
required?: boolean;
|
|
20
|
+
/** One rung of the control-height ladder for the editing field. */
|
|
21
|
+
size?: "sm" | "md" | "lg";
|
|
22
|
+
onValueChange?: (value: string) => void;
|
|
23
|
+
}
|
|
24
|
+
/** The one-tag path: a named value with the house edit controls. Modes,
|
|
25
|
+
* custom triggers, and alternate editors stay on the anatomy. */
|
|
26
|
+
declare function EditableFacade(props: EditableFacadeProps): import("solid-js").JSX.Element;
|
|
27
|
+
type EditableParts = Omit<typeof Editable$1, "Root"> & {
|
|
13
28
|
Root: typeof EditableRoot;
|
|
14
29
|
};
|
|
30
|
+
export declare const Editable: typeof EditableFacade & EditableParts;
|
|
15
31
|
//#endregion
|