@bysages/solid 0.2.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -2
- package/dist/ai-response-ClGGptX3.mjs +139 -0
- package/dist/chevron-D5RzcayK.mjs +9 -0
- package/dist/components/accordion/index.d.mts +7 -0
- package/dist/components/accordion/index.mjs +10 -0
- package/dist/components/affix/index.d.mts +20 -0
- package/dist/components/affix/index.mjs +33 -0
- package/dist/components/ai/index.d.mts +2 -0
- package/dist/components/ai/index.mjs +71 -0
- package/dist/components/ai-action/index.d.mts +13 -0
- package/dist/components/ai-action/index.mjs +27 -0
- package/dist/components/ai-attachments/index.d.mts +20 -0
- package/dist/components/ai-attachments/index.mjs +110 -0
- package/dist/components/ai-message/index.d.mts +13 -0
- package/dist/components/ai-message/index.mjs +22 -0
- package/dist/components/ai-prompt-input/index.d.mts +45 -0
- package/dist/components/ai-prompt-input/index.mjs +153 -0
- package/dist/components/ai-reasoning/index.d.mts +13 -0
- package/dist/components/ai-reasoning/index.mjs +38 -0
- package/dist/components/ai-response/index.d.mts +20 -0
- package/dist/components/ai-response/index.mjs +2 -0
- package/dist/components/ai-source/index.d.mts +13 -0
- package/dist/components/ai-source/index.mjs +36 -0
- package/dist/components/ai-suggestion/index.d.mts +13 -0
- package/dist/components/ai-suggestion/index.mjs +22 -0
- package/dist/components/ai-tool/index.d.mts +23 -0
- package/dist/components/ai-tool/index.mjs +90 -0
- package/dist/components/alert/index.d.mts +22 -0
- package/dist/components/alert/index.mjs +87 -0
- package/dist/components/angle-slider/index.d.mts +15 -0
- package/dist/components/angle-slider/index.mjs +18 -0
- package/dist/components/aspect-ratio/index.d.mts +10 -0
- package/dist/components/aspect-ratio/index.mjs +23 -0
- package/dist/components/autocomplete/index.d.mts +21 -0
- package/dist/components/autocomplete/index.mjs +76 -0
- package/dist/components/avatar/index.d.mts +23 -0
- package/dist/components/avatar/index.mjs +20 -0
- package/dist/components/avatar-group/index.d.mts +11 -0
- package/dist/components/avatar-group/index.mjs +20 -0
- package/dist/components/back-top/index.d.mts +29 -0
- package/dist/components/back-top/index.mjs +93 -0
- package/dist/components/badge/index.d.mts +10 -0
- package/dist/components/badge/index.mjs +23 -0
- package/dist/components/banner/index.d.mts +24 -0
- package/dist/components/banner/index.mjs +67 -0
- package/dist/components/bento/index.d.mts +24 -0
- package/dist/components/bento/index.mjs +51 -0
- package/dist/components/block-ui/index.d.mts +12 -0
- package/dist/components/block-ui/index.mjs +43 -0
- package/dist/components/breadcrumb/index.d.mts +11 -0
- package/dist/components/breadcrumb/index.mjs +45 -0
- package/dist/components/browser/index.d.mts +21 -0
- package/dist/components/browser/index.mjs +87 -0
- package/dist/components/button/index.d.mts +15 -0
- package/dist/components/button/index.mjs +43 -0
- package/dist/components/button-group/index.d.mts +23 -0
- package/dist/components/button-group/index.mjs +38 -0
- package/dist/components/calendar/index.d.mts +17 -0
- package/dist/components/calendar/index.mjs +209 -0
- package/dist/components/card/index.d.mts +11 -0
- package/dist/components/card/index.mjs +33 -0
- package/dist/components/carousel/index.d.mts +9 -0
- package/dist/components/carousel/index.mjs +12 -0
- package/dist/components/cascade-select/index.d.mts +31 -0
- package/dist/components/cascade-select/index.mjs +304 -0
- package/dist/components/checkbox/index.d.mts +15 -0
- package/dist/components/checkbox/index.mjs +18 -0
- package/dist/components/checkbox-group/index.d.mts +28 -0
- package/dist/components/checkbox-group/index.mjs +97 -0
- package/dist/components/chip/index.d.mts +12 -0
- package/dist/components/chip/index.mjs +36 -0
- package/dist/components/client-only/index.d.mts +2 -0
- package/dist/components/client-only/index.mjs +2 -0
- package/dist/components/clipboard/index.d.mts +16 -0
- package/dist/components/clipboard/index.mjs +19 -0
- package/dist/components/collapsible/index.d.mts +7 -0
- package/dist/components/collapsible/index.mjs +10 -0
- package/dist/components/collection/index.d.mts +2 -0
- package/dist/components/collection/index.mjs +2 -0
- package/dist/components/color-picker/index.d.mts +19 -0
- package/dist/components/color-picker/index.mjs +18 -0
- package/dist/components/combobox/index.d.mts +17 -0
- package/dist/components/combobox/index.mjs +18 -0
- package/dist/components/command/index.d.mts +43 -0
- package/dist/components/command/index.mjs +253 -0
- package/dist/components/comment/index.d.mts +17 -0
- package/dist/components/comment/index.mjs +101 -0
- package/dist/components/config-provider/index.d.mts +48 -0
- package/dist/components/config-provider/index.mjs +67 -0
- package/dist/components/container/index.d.mts +13 -0
- package/dist/components/container/index.mjs +23 -0
- package/dist/components/data-view/index.d.mts +18 -0
- package/dist/components/data-view/index.mjs +110 -0
- package/dist/components/date-input/index.d.mts +15 -0
- package/dist/components/date-input/index.mjs +18 -0
- package/dist/components/date-picker/index.d.mts +17 -0
- package/dist/components/date-picker/index.mjs +18 -0
- package/dist/components/deferred-content/index.d.mts +16 -0
- package/dist/components/deferred-content/index.mjs +52 -0
- package/dist/components/descriptions/index.d.mts +26 -0
- package/dist/components/descriptions/index.mjs +69 -0
- package/dist/components/dialog/index.d.mts +9 -0
- package/dist/components/dialog/index.mjs +11 -0
- package/dist/components/dock/index.d.mts +22 -0
- package/dist/components/dock/index.mjs +64 -0
- package/dist/components/download-trigger/index.d.mts +2 -0
- package/dist/components/download-trigger/index.mjs +2 -0
- package/dist/components/drawer/index.d.mts +9 -0
- package/dist/components/drawer/index.mjs +12 -0
- package/dist/components/dynamic-input/index.d.mts +30 -0
- package/dist/components/dynamic-input/index.mjs +119 -0
- package/dist/components/editable/index.d.mts +15 -0
- package/dist/components/editable/index.mjs +18 -0
- package/dist/components/ellipsis/index.d.mts +10 -0
- package/dist/components/ellipsis/index.mjs +27 -0
- package/dist/components/empty/index.d.mts +10 -0
- package/dist/components/empty/index.mjs +31 -0
- package/dist/components/field/index.d.mts +8 -0
- package/dist/components/field/index.mjs +11 -0
- package/dist/components/fieldset/index.d.mts +7 -0
- package/dist/components/fieldset/index.mjs +10 -0
- package/dist/components/file-upload/index.d.mts +17 -0
- package/dist/components/file-upload/index.mjs +18 -0
- package/dist/components/float-button/index.d.mts +61 -0
- package/dist/components/float-button/index.mjs +129 -0
- package/dist/components/floating-panel/index.d.mts +9 -0
- package/dist/components/floating-panel/index.mjs +12 -0
- package/dist/components/focus-trap/index.d.mts +2 -0
- package/dist/components/focus-trap/index.mjs +2 -0
- package/dist/components/form/index.d.mts +2 -0
- package/dist/components/form/index.mjs +125 -0
- package/dist/components/format/index.d.mts +9 -0
- package/dist/components/format/index.mjs +10 -0
- package/dist/components/frame/index.d.mts +10 -0
- package/dist/components/frame/index.mjs +12 -0
- package/dist/components/grid/index.d.mts +13 -0
- package/dist/components/grid/index.mjs +42 -0
- package/dist/components/highlight/index.d.mts +7 -0
- package/dist/components/highlight/index.mjs +11 -0
- package/dist/components/hover-card/index.d.mts +7 -0
- package/dist/components/hover-card/index.mjs +10 -0
- package/dist/components/icon/index.d.mts +24 -0
- package/dist/components/icon/index.mjs +54 -0
- package/dist/components/image/index.d.mts +17 -0
- package/dist/components/image/index.mjs +70 -0
- package/dist/components/image-cropper/index.d.mts +8 -0
- package/dist/components/image-cropper/index.mjs +11 -0
- package/dist/components/image-viewer/index.d.mts +19 -0
- package/dist/components/image-viewer/index.mjs +152 -0
- package/dist/components/input/index.d.mts +19 -0
- package/dist/components/input/index.mjs +2 -0
- package/dist/components/input-group/index.d.mts +18 -0
- package/dist/components/input-group/index.mjs +36 -0
- package/dist/components/json-tree-view/index.d.mts +7 -0
- package/dist/components/json-tree-view/index.mjs +10 -0
- package/dist/components/kbd/index.d.mts +6 -0
- package/dist/components/kbd/index.mjs +15 -0
- package/dist/components/layout/index.d.mts +60 -0
- package/dist/components/layout/index.mjs +192 -0
- package/dist/components/link/index.d.mts +10 -0
- package/dist/components/link/index.mjs +24 -0
- package/dist/components/list/index.d.mts +26 -0
- package/dist/components/list/index.mjs +97 -0
- package/dist/components/listbox/index.d.mts +17 -0
- package/dist/components/listbox/index.mjs +19 -0
- package/dist/components/marquee/index.d.mts +7 -0
- package/dist/components/marquee/index.mjs +10 -0
- package/dist/components/masonry/index.d.mts +11 -0
- package/dist/components/masonry/index.mjs +34 -0
- package/dist/components/mentions/index.d.mts +2 -0
- package/dist/components/mentions/index.mjs +3 -0
- package/dist/components/menu/index.d.mts +13 -0
- package/dist/components/menu/index.mjs +38 -0
- package/dist/components/menubar/index.d.mts +32 -0
- package/dist/components/menubar/index.mjs +83 -0
- package/dist/components/meter/index.d.mts +21 -0
- package/dist/components/meter/index.mjs +95 -0
- package/dist/components/navigation-menu/index.d.mts +8 -0
- package/dist/components/navigation-menu/index.mjs +11 -0
- package/dist/components/number-input/index.d.mts +15 -0
- package/dist/components/number-input/index.mjs +18 -0
- package/dist/components/order-list/index.d.mts +21 -0
- package/dist/components/order-list/index.mjs +160 -0
- package/dist/components/page-header/index.d.mts +11 -0
- package/dist/components/page-header/index.mjs +34 -0
- package/dist/components/pagination/index.d.mts +17 -0
- package/dist/components/pagination/index.mjs +18 -0
- package/dist/components/password-input/index.d.mts +15 -0
- package/dist/components/password-input/index.mjs +18 -0
- package/dist/components/pin-input/index.d.mts +14 -0
- package/dist/components/pin-input/index.mjs +18 -0
- package/dist/components/popconfirm/index.d.mts +17 -0
- package/dist/components/popconfirm/index.mjs +85 -0
- package/dist/components/popover/index.d.mts +8 -0
- package/dist/components/popover/index.mjs +11 -0
- package/dist/components/presence/index.d.mts +2 -0
- package/dist/components/presence/index.mjs +2 -0
- package/dist/components/progress/index.d.mts +15 -0
- package/dist/components/progress/index.mjs +18 -0
- package/dist/components/progress-group/index.d.mts +22 -0
- package/dist/components/progress-group/index.mjs +84 -0
- package/dist/components/qr-code/index.d.mts +8 -0
- package/dist/components/qr-code/index.mjs +11 -0
- package/dist/components/radio-group/index.d.mts +15 -0
- package/dist/components/radio-group/index.mjs +18 -0
- package/dist/components/rating-group/index.d.mts +15 -0
- package/dist/components/rating-group/index.mjs +18 -0
- package/dist/components/result/index.d.mts +22 -0
- package/dist/components/result/index.mjs +66 -0
- package/dist/components/scroll-area/index.d.mts +7 -0
- package/dist/components/scroll-area/index.mjs +10 -0
- package/dist/components/segment-group/index.d.mts +17 -0
- package/dist/components/segment-group/index.mjs +23 -0
- package/dist/components/select/index.d.mts +2 -0
- package/dist/components/select/index.mjs +2 -0
- package/dist/components/separator/index.d.mts +11 -0
- package/dist/components/separator/index.mjs +27 -0
- package/dist/components/signature-pad/index.d.mts +8 -0
- package/dist/components/signature-pad/index.mjs +11 -0
- package/dist/components/skeleton/index.d.mts +7 -0
- package/dist/components/skeleton/index.mjs +15 -0
- package/dist/components/slider/index.d.mts +15 -0
- package/dist/components/slider/index.mjs +18 -0
- package/dist/components/spinner/index.d.mts +9 -0
- package/dist/components/spinner/index.mjs +26 -0
- package/dist/components/split-button/index.d.mts +36 -0
- package/dist/components/split-button/index.mjs +124 -0
- package/dist/components/splitter/index.d.mts +7 -0
- package/dist/components/splitter/index.mjs +10 -0
- package/dist/components/spotlight/index.d.mts +11 -0
- package/dist/components/spotlight/index.mjs +38 -0
- package/dist/components/stack/index.d.mts +11 -0
- package/dist/components/stack/index.mjs +45 -0
- package/dist/components/stat/index.d.mts +17 -0
- package/dist/components/stat/index.mjs +44 -0
- package/dist/components/steps/index.d.mts +18 -0
- package/dist/components/steps/index.mjs +18 -0
- package/dist/components/swap/index.d.mts +8 -0
- package/dist/components/swap/index.mjs +11 -0
- package/dist/components/switch/index.d.mts +15 -0
- package/dist/components/switch/index.mjs +18 -0
- package/dist/components/table/index.d.mts +77 -0
- package/dist/components/table/index.mjs +837 -0
- package/dist/components/tabs/index.d.mts +19 -0
- package/dist/components/tabs/index.mjs +23 -0
- package/dist/components/tags-input/index.d.mts +16 -0
- package/dist/components/tags-input/index.mjs +18 -0
- package/dist/components/terminal/index.d.mts +17 -0
- package/dist/components/terminal/index.mjs +84 -0
- package/dist/components/textarea/index.d.mts +14 -0
- package/dist/components/textarea/index.mjs +37 -0
- package/dist/components/timeline/index.d.mts +15 -0
- package/dist/components/timeline/index.mjs +44 -0
- package/dist/components/timer/index.d.mts +8 -0
- package/dist/components/timer/index.mjs +11 -0
- package/dist/components/toast/index.d.mts +11 -0
- package/dist/components/toast/index.mjs +13 -0
- package/dist/components/toc/index.d.mts +7 -0
- package/dist/components/toc/index.mjs +10 -0
- package/dist/components/toggle/index.d.mts +7 -0
- package/dist/components/toggle/index.mjs +10 -0
- package/dist/components/toggle-group/index.d.mts +14 -0
- package/dist/components/toggle-group/index.mjs +18 -0
- package/dist/components/toolbar/index.d.mts +17 -0
- package/dist/components/toolbar/index.mjs +46 -0
- package/dist/components/tooltip/index.d.mts +7 -0
- package/dist/components/tooltip/index.mjs +10 -0
- package/dist/components/tour/index.d.mts +11 -0
- package/dist/components/tour/index.mjs +13 -0
- package/dist/components/transfer/index.d.mts +24 -0
- package/dist/components/transfer/index.mjs +175 -0
- package/dist/components/tree-select/index.d.mts +28 -0
- package/dist/components/tree-select/index.mjs +253 -0
- package/dist/components/tree-view/index.d.mts +18 -0
- package/dist/components/tree-view/index.mjs +19 -0
- package/dist/components/typography/index.d.mts +11 -0
- package/dist/components/typography/index.mjs +34 -0
- package/dist/components/user/index.d.mts +19 -0
- package/dist/components/user/index.mjs +68 -0
- package/dist/components/virtual-list/index.d.mts +17 -0
- package/dist/components/virtual-list/index.mjs +71 -0
- package/dist/components/watermark/index.d.mts +17 -0
- package/dist/components/watermark/index.mjs +77 -0
- package/dist/index-B1xiJ5ki.d.mts +1811 -0
- package/dist/index-DDX7x8aT.d.mts +95 -0
- package/dist/index-IfofF-SW.d.mts +10356 -0
- package/dist/index-YPUiqD3n.d.mts +42 -0
- package/dist/index.d.mts +141 -15209
- package/dist/index.mjs +141 -6171
- package/dist/input-DoFQ7RXh.mjs +78 -0
- package/dist/mentions-f5Js_2W7.mjs +263 -0
- package/dist/select-CHaXbzLX.mjs +115 -0
- package/package.json +101 -7
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Tabs as Tabs$1, TabsRootProps } from "@ark-ui/solid/tabs";
|
|
2
|
+
//#region src/components/tabs/index.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Tabs — tabbed navigation.
|
|
5
|
+
*
|
|
6
|
+
* Parts: Root, List, Trigger, Content, Indicator (machine-positioned ink
|
|
7
|
+
* bar on the list rule).
|
|
8
|
+
*/
|
|
9
|
+
type TabsOwnProps = {
|
|
10
|
+
/** One rung of the control-height ladder for the tab rows. */
|
|
11
|
+
size?: "sm" | "md" | "lg";
|
|
12
|
+
/** The register: a ruled line (default), or each tab its own card. */
|
|
13
|
+
variant?: "line" | "card";
|
|
14
|
+
};
|
|
15
|
+
declare function TabsRoot(props: TabsRootProps & TabsOwnProps): import("solid-js").JSX.Element;
|
|
16
|
+
export declare const Tabs: Omit<typeof Tabs$1, "Root"> & {
|
|
17
|
+
Root: typeof TabsRoot;
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import { createComponent, mergeProps } from "@solidjs/web";
|
|
3
|
+
import { splitProps } from "solid-js";
|
|
4
|
+
import { Tabs as Tabs$1 } from "@ark-ui/solid/tabs";
|
|
5
|
+
//#region src/components/tabs/index.tsx
|
|
6
|
+
function TabsRoot(props) {
|
|
7
|
+
const [own, rest] = splitProps(props, ["size", "variant"]);
|
|
8
|
+
return createComponent(Tabs$1.Root, mergeProps(rest, {
|
|
9
|
+
get "data-size"() {
|
|
10
|
+
return own.size ?? "md";
|
|
11
|
+
},
|
|
12
|
+
get "data-variant"() {
|
|
13
|
+
return own.variant ?? "line";
|
|
14
|
+
}
|
|
15
|
+
}));
|
|
16
|
+
}
|
|
17
|
+
const Tabs = {
|
|
18
|
+
...Tabs$1,
|
|
19
|
+
Root: TabsRoot
|
|
20
|
+
};
|
|
21
|
+
injectComponentStyle("tabs");
|
|
22
|
+
//#endregion
|
|
23
|
+
export { Tabs };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TagsInput as TagsInput$1, TagsInputRootProps } from "@ark-ui/solid/tags-input";
|
|
2
|
+
//#region src/components/tags-input/index.d.ts
|
|
3
|
+
/** Ark's TagsInput, dressed in the paper-and-ink system: one field vessel
|
|
4
|
+
* whose chips rest as quiet ink and lift only a tone when edited. The API
|
|
5
|
+
* is Ark's own — Root, Label, Control, Input, ClearTrigger, Item,
|
|
6
|
+
* ItemPreview, ItemText, ItemInput, ItemDeleteTrigger, HiddenInput,
|
|
7
|
+
* Context. */
|
|
8
|
+
type TagsInputOwnProps = {
|
|
9
|
+
/** One rung of the control-height ladder for the vessel at rest. */
|
|
10
|
+
size?: "sm" | "md" | "lg";
|
|
11
|
+
};
|
|
12
|
+
declare function TagsInputRoot(props: TagsInputRootProps & TagsInputOwnProps): import("solid-js").JSX.Element;
|
|
13
|
+
export declare const TagsInput: Omit<typeof TagsInput$1, "Root"> & {
|
|
14
|
+
Root: typeof TagsInputRoot;
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import { createComponent, mergeProps } from "@solidjs/web";
|
|
3
|
+
import { splitProps } from "solid-js";
|
|
4
|
+
import { TagsInput as TagsInput$1 } from "@ark-ui/solid/tags-input";
|
|
5
|
+
//#region src/components/tags-input/index.tsx
|
|
6
|
+
function TagsInputRoot(props) {
|
|
7
|
+
const [own, rest] = splitProps(props, ["size"]);
|
|
8
|
+
return createComponent(TagsInput$1.Root, mergeProps(rest, { get "data-size"() {
|
|
9
|
+
return own.size ?? "md";
|
|
10
|
+
} }));
|
|
11
|
+
}
|
|
12
|
+
const TagsInput = {
|
|
13
|
+
...TagsInput$1,
|
|
14
|
+
Root: TagsInputRoot
|
|
15
|
+
};
|
|
16
|
+
injectComponentStyle("tags-input");
|
|
17
|
+
//#endregion
|
|
18
|
+
export { TagsInput };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { JSX } from "solid-js";
|
|
2
|
+
//#region src/components/terminal/index.d.ts
|
|
3
|
+
export interface TerminalProps extends Omit<JSX.HTMLAttributes<HTMLDivElement>, "onCommand"> {
|
|
4
|
+
/** The transcript, oldest line first. */
|
|
5
|
+
lines?: string[];
|
|
6
|
+
/** The sigil at the head of the entry line. */
|
|
7
|
+
prompt?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
onCommand?: (text: string) => void;
|
|
11
|
+
}
|
|
12
|
+
/** A quiet console: the transcript above, the prompt line below. The
|
|
13
|
+
* component owns only the reading and the caret — each entered line
|
|
14
|
+
* leaves as an event, and the caller answers through the lines prop,
|
|
15
|
+
* so history stays theirs to shape. */
|
|
16
|
+
export declare function Terminal(props: TerminalProps): JSX.Element;
|
|
17
|
+
//#endregion
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import { createComponent, delegateEvents, effect, insert, ref, setAttribute, spread, template } from "@solidjs/web";
|
|
3
|
+
import { For, createEffect, createSignal, onMount, splitProps } from "solid-js";
|
|
4
|
+
//#region src/components/terminal/index.tsx
|
|
5
|
+
var _tmpl$ = /* @__PURE__ */ template(`<div><div data-scope=terminal data-part=scroll></div><div data-scope=terminal data-part=entry><span data-scope=terminal data-part=sigil aria-hidden=true></span><input data-scope=terminal data-part=input autocomplete=off>`);
|
|
6
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<div data-scope=terminal data-part=line>`);
|
|
7
|
+
/** A quiet console: the transcript above, the prompt line below. The
|
|
8
|
+
* component owns only the reading and the caret — each entered line
|
|
9
|
+
* leaves as an event, and the caller answers through the lines prop,
|
|
10
|
+
* so history stays theirs to shape. */
|
|
11
|
+
function Terminal(props) {
|
|
12
|
+
injectComponentStyle("terminal");
|
|
13
|
+
const [own, rest] = splitProps(props, [
|
|
14
|
+
"lines",
|
|
15
|
+
"prompt",
|
|
16
|
+
"placeholder",
|
|
17
|
+
"label",
|
|
18
|
+
"onCommand"
|
|
19
|
+
]);
|
|
20
|
+
const [draft, setDraft] = createSignal("");
|
|
21
|
+
const [scroll, setScroll] = createSignal(null);
|
|
22
|
+
onMount(() => {
|
|
23
|
+
createEffect(() => {
|
|
24
|
+
if (own.lines?.length === void 0) return;
|
|
25
|
+
scroll()?.scrollTo({ top: scroll()?.scrollHeight });
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
function submit() {
|
|
29
|
+
const text = draft().trim();
|
|
30
|
+
if (!text) return;
|
|
31
|
+
setDraft("");
|
|
32
|
+
own.onCommand?.(text);
|
|
33
|
+
}
|
|
34
|
+
var _el$ = _tmpl$();
|
|
35
|
+
var _el$2 = _el$.firstChild;
|
|
36
|
+
var _el$4 = _el$2.nextSibling.firstChild;
|
|
37
|
+
var _el$5 = _el$4.nextSibling;
|
|
38
|
+
spread(_el$, [rest, {
|
|
39
|
+
role: "log",
|
|
40
|
+
get "aria-label"() {
|
|
41
|
+
return own.label;
|
|
42
|
+
},
|
|
43
|
+
"data-scope": "terminal",
|
|
44
|
+
"data-part": "root"
|
|
45
|
+
}], true);
|
|
46
|
+
ref(() => {
|
|
47
|
+
return setScroll;
|
|
48
|
+
}, _el$2);
|
|
49
|
+
insert(_el$2, createComponent(For, {
|
|
50
|
+
get each() {
|
|
51
|
+
return own.lines;
|
|
52
|
+
},
|
|
53
|
+
children: (line) => (() => {
|
|
54
|
+
var _el$6 = _tmpl$2();
|
|
55
|
+
insert(_el$6, line);
|
|
56
|
+
return _el$6;
|
|
57
|
+
})()
|
|
58
|
+
}));
|
|
59
|
+
insert(_el$4, () => {
|
|
60
|
+
return own.prompt ?? "$";
|
|
61
|
+
});
|
|
62
|
+
_el$5._$$keydown = (event) => {
|
|
63
|
+
if (event.key === "Enter") {
|
|
64
|
+
event.preventDefault();
|
|
65
|
+
submit();
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
_el$5._$$input = (event) => setDraft(event.currentTarget.value);
|
|
69
|
+
effect(() => {
|
|
70
|
+
return {
|
|
71
|
+
e: draft(),
|
|
72
|
+
t: own.placeholder,
|
|
73
|
+
a: own.label ? `${own.label} command line` : "Command line"
|
|
74
|
+
};
|
|
75
|
+
}, ({ e, t, a }, _p$) => {
|
|
76
|
+
_el$5.value = e ?? "";
|
|
77
|
+
t !== _p$?.t && setAttribute(_el$5, "placeholder", t);
|
|
78
|
+
a !== _p$?.a && setAttribute(_el$5, "aria-label", a);
|
|
79
|
+
});
|
|
80
|
+
return _el$;
|
|
81
|
+
}
|
|
82
|
+
delegateEvents(["input", "keydown"]);
|
|
83
|
+
//#endregion
|
|
84
|
+
export { Terminal };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { JSX } from "solid-js";
|
|
2
|
+
//#region src/components/textarea/index.d.ts
|
|
3
|
+
export interface TextareaProps extends JSX.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
4
|
+
value?: string;
|
|
5
|
+
onValueChange?: (value: string) => void;
|
|
6
|
+
invalid?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/** The bare multi-line input: the field recipe on a `<textarea>`, sized
|
|
9
|
+
* by rows and resizable in the block direction. Standing alone it styles
|
|
10
|
+
* itself from the `invalid` prop; inside a `Field.Root` it consumes the
|
|
11
|
+
* field context, picking up the label id, the described-by wiring and
|
|
12
|
+
* the invalid state for free. Disabled rides the native attribute. */
|
|
13
|
+
export declare function Textarea(props: TextareaProps): JSX.Element;
|
|
14
|
+
//#endregion
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import { spread, template } from "@solidjs/web";
|
|
3
|
+
import { mergeProps as mergeProps$1, splitProps } from "solid-js";
|
|
4
|
+
import { useFieldContext } from "@ark-ui/solid/field";
|
|
5
|
+
//#region src/components/textarea/index.tsx
|
|
6
|
+
var _tmpl$ = /* @__PURE__ */ template(`<textarea>`);
|
|
7
|
+
/** The bare multi-line input: the field recipe on a `<textarea>`, sized
|
|
8
|
+
* by rows and resizable in the block direction. Standing alone it styles
|
|
9
|
+
* itself from the `invalid` prop; inside a `Field.Root` it consumes the
|
|
10
|
+
* field context, picking up the label id, the described-by wiring and
|
|
11
|
+
* the invalid state for free. Disabled rides the native attribute. */
|
|
12
|
+
function Textarea(props) {
|
|
13
|
+
injectComponentStyle("textarea");
|
|
14
|
+
const field = useFieldContext();
|
|
15
|
+
const [own, rest] = splitProps(props, [
|
|
16
|
+
"value",
|
|
17
|
+
"invalid",
|
|
18
|
+
"onValueChange"
|
|
19
|
+
]);
|
|
20
|
+
var _el$ = _tmpl$();
|
|
21
|
+
spread(_el$, () => {
|
|
22
|
+
return mergeProps$1(() => field?.().getTextareaProps() ?? {}, rest, {
|
|
23
|
+
get value() {
|
|
24
|
+
return own.value;
|
|
25
|
+
},
|
|
26
|
+
"data-scope": "textarea",
|
|
27
|
+
"data-part": "root",
|
|
28
|
+
get "data-invalid"() {
|
|
29
|
+
return own.invalid || field?.().getTextareaProps()["data-invalid"] != null ? "" : void 0;
|
|
30
|
+
},
|
|
31
|
+
onInput: (event) => own.onValueChange?.(event.currentTarget.value)
|
|
32
|
+
});
|
|
33
|
+
}, false);
|
|
34
|
+
return _el$;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { Textarea };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Component, JSX } from "solid-js";
|
|
2
|
+
//#region src/components/timeline/index.d.ts
|
|
3
|
+
declare function Root(props: JSX.HTMLAttributes<HTMLOListElement> & {
|
|
4
|
+
orientation?: "vertical" | "horizontal";
|
|
5
|
+
}): JSX.Element;
|
|
6
|
+
declare namespace Root {
|
|
7
|
+
var displayName: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const Timeline: typeof Root & {
|
|
10
|
+
Root: typeof Root;
|
|
11
|
+
Item: Component<Record<string, unknown>>;
|
|
12
|
+
Marker: Component<Record<string, unknown>>;
|
|
13
|
+
Content: Component<Record<string, unknown>>;
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import { createComponent, mergeProps, spread, template } from "@solidjs/web";
|
|
3
|
+
import { splitProps } from "solid-js";
|
|
4
|
+
//#region src/components/timeline/index.tsx
|
|
5
|
+
var _tmpl$ = /* @__PURE__ */ template(`<ol>`);
|
|
6
|
+
/** A line of moments: Root is the ordered thread, Item one moment on it,
|
|
7
|
+
* Marker the point where the thread passes, Content what the moment
|
|
8
|
+
* holds. The hairline between markers is drawn by the stylesheet. */
|
|
9
|
+
function part(name, tag) {
|
|
10
|
+
return ((props) => {
|
|
11
|
+
return createComponent(tag, mergeProps(props, {
|
|
12
|
+
"data-scope": "timeline",
|
|
13
|
+
get "data-part"() {
|
|
14
|
+
return name.toLowerCase();
|
|
15
|
+
}
|
|
16
|
+
}));
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function Root(props) {
|
|
20
|
+
injectComponentStyle("timeline");
|
|
21
|
+
const [own, rest] = splitProps(props, ["orientation"]);
|
|
22
|
+
var _el$ = _tmpl$();
|
|
23
|
+
spread(_el$, [rest, {
|
|
24
|
+
"data-scope": "timeline",
|
|
25
|
+
"data-part": "root",
|
|
26
|
+
get "data-orientation"() {
|
|
27
|
+
return own.orientation ?? "vertical";
|
|
28
|
+
}
|
|
29
|
+
}], false);
|
|
30
|
+
return _el$;
|
|
31
|
+
}
|
|
32
|
+
Root.displayName = "TimelineRoot";
|
|
33
|
+
const Item = part("Item", "li");
|
|
34
|
+
const Marker = part("Marker", "span");
|
|
35
|
+
const Content = part("Content", "div");
|
|
36
|
+
const Timeline = Object.assign(Root, {
|
|
37
|
+
Root,
|
|
38
|
+
Item,
|
|
39
|
+
Marker,
|
|
40
|
+
Content
|
|
41
|
+
});
|
|
42
|
+
injectComponentStyle("timeline");
|
|
43
|
+
//#endregion
|
|
44
|
+
export { Timeline };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Timer as Timer$1 } from "@ark-ui/solid/timer";
|
|
2
|
+
//#region src/components/timer/index.d.ts
|
|
3
|
+
/** Ark's Timer, dressed in the paper-and-ink system: monospaced digits
|
|
4
|
+
* that never jitter, quiet action triggers on the control recipe. The API
|
|
5
|
+
* is Ark's own — Root, Area, Control, Item, Separator, ActionTrigger,
|
|
6
|
+
* Context. Unit labels are plain content, not a machine part. */
|
|
7
|
+
export declare const Timer: typeof Timer$1;
|
|
8
|
+
//#endregion
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import { Timer as Timer$1 } from "@ark-ui/solid/timer";
|
|
3
|
+
//#region src/components/timer/index.ts
|
|
4
|
+
/** Ark's Timer, dressed in the paper-and-ink system: monospaced digits
|
|
5
|
+
* that never jitter, quiet action triggers on the control recipe. The API
|
|
6
|
+
* is Ark's own — Root, Area, Control, Item, Separator, ActionTrigger,
|
|
7
|
+
* Context. Unit labels are plain content, not a machine part. */
|
|
8
|
+
const Timer = Timer$1;
|
|
9
|
+
injectComponentStyle("timer");
|
|
10
|
+
//#endregion
|
|
11
|
+
export { Timer };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CreateToasterReturn, Toast as Toast$1, createToaster } from "@ark-ui/solid/toast";
|
|
2
|
+
//#region src/components/toast/index.d.ts
|
|
3
|
+
/** Ark's Toast, dressed in the paper-and-ink system: each notice rides the
|
|
4
|
+
* popup vessel while a pigment accents the title by type, and the machine's
|
|
5
|
+
* translate variables carry the slide. The API is Ark's own — Toaster,
|
|
6
|
+
* Root, Title, Description, ActionTrigger, CloseTrigger, plus
|
|
7
|
+
* createToaster. */
|
|
8
|
+
export declare const Toast: typeof Toast$1;
|
|
9
|
+
export declare const Toaster: (props: import("@ark-ui/solid/toast").ToasterProps) => import("solid-js").JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { type CreateToasterReturn, createToaster };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import { Toast as Toast$1, Toaster as Toaster$1, createToaster } from "@ark-ui/solid/toast";
|
|
3
|
+
//#region src/components/toast/index.ts
|
|
4
|
+
/** Ark's Toast, dressed in the paper-and-ink system: each notice rides the
|
|
5
|
+
* popup vessel while a pigment accents the title by type, and the machine's
|
|
6
|
+
* translate variables carry the slide. The API is Ark's own — Toaster,
|
|
7
|
+
* Root, Title, Description, ActionTrigger, CloseTrigger, plus
|
|
8
|
+
* createToaster. */
|
|
9
|
+
const Toast = Toast$1;
|
|
10
|
+
const Toaster = Toaster$1;
|
|
11
|
+
injectComponentStyle("toast");
|
|
12
|
+
//#endregion
|
|
13
|
+
export { Toast, Toaster, createToaster };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Toc as Toc$1 } from "@ark-ui/solid/toc";
|
|
2
|
+
//#region src/components/toc/index.d.ts
|
|
3
|
+
/** Ark's Toc, dressed in the paper-and-ink system: a quiet rail of links
|
|
4
|
+
* beside the scroll, one stroke of primary ink marking where the reader
|
|
5
|
+
* stands. The API is Ark's own — Root, Title, List, Item, Link, Indicator. */
|
|
6
|
+
export declare const Toc: typeof Toc$1;
|
|
7
|
+
//#endregion
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import { Toc as Toc$1 } from "@ark-ui/solid/toc";
|
|
3
|
+
//#region src/components/toc/index.ts
|
|
4
|
+
/** Ark's Toc, dressed in the paper-and-ink system: a quiet rail of links
|
|
5
|
+
* beside the scroll, one stroke of primary ink marking where the reader
|
|
6
|
+
* stands. The API is Ark's own — Root, Title, List, Item, Link, Indicator. */
|
|
7
|
+
const Toc = Toc$1;
|
|
8
|
+
injectComponentStyle("toc");
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Toc };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Toggle as Toggle$1 } from "@ark-ui/solid/toggle";
|
|
2
|
+
//#region src/components/toggle/index.d.ts
|
|
3
|
+
/** Ark's Toggle, dressed in the paper-and-ink system: a standalone seal that
|
|
4
|
+
* settles into the flat ink fill while pressed on. The API is Ark's own —
|
|
5
|
+
* Root, Indicator. */
|
|
6
|
+
export declare const Toggle: typeof Toggle$1;
|
|
7
|
+
//#endregion
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import { Toggle as Toggle$1 } from "@ark-ui/solid/toggle";
|
|
3
|
+
//#region src/components/toggle/index.ts
|
|
4
|
+
/** Ark's Toggle, dressed in the paper-and-ink system: a standalone seal that
|
|
5
|
+
* settles into the flat ink fill while pressed on. The API is Ark's own —
|
|
6
|
+
* Root, Indicator. */
|
|
7
|
+
const Toggle = Toggle$1;
|
|
8
|
+
injectComponentStyle("toggle");
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Toggle };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ToggleGroup as ToggleGroup$1, ToggleGroupRootProps } from "@ark-ui/solid/toggle-group";
|
|
2
|
+
//#region src/components/toggle-group/index.d.ts
|
|
3
|
+
/** Ark's ToggleGroup, dressed in the paper-and-ink system: a hairline tray
|
|
4
|
+
* of quiet seals where the pressed item takes the flat ink fill. The API is
|
|
5
|
+
* Ark's own — Root, Item. */
|
|
6
|
+
type ToggleGroupOwnProps = {
|
|
7
|
+
/** One rung of the control-height ladder for the items. */
|
|
8
|
+
size?: "sm" | "md" | "lg";
|
|
9
|
+
};
|
|
10
|
+
declare function ToggleGroupRoot(props: ToggleGroupRootProps & ToggleGroupOwnProps): import("solid-js").JSX.Element;
|
|
11
|
+
export declare const ToggleGroup: Omit<typeof ToggleGroup$1, "Root"> & {
|
|
12
|
+
Root: typeof ToggleGroupRoot;
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import { createComponent, mergeProps } from "@solidjs/web";
|
|
3
|
+
import { splitProps } from "solid-js";
|
|
4
|
+
import { ToggleGroup as ToggleGroup$1 } from "@ark-ui/solid/toggle-group";
|
|
5
|
+
//#region src/components/toggle-group/index.tsx
|
|
6
|
+
function ToggleGroupRoot(props) {
|
|
7
|
+
const [own, rest] = splitProps(props, ["size"]);
|
|
8
|
+
return createComponent(ToggleGroup$1.Root, mergeProps(rest, { get "data-size"() {
|
|
9
|
+
return own.size ?? "md";
|
|
10
|
+
} }));
|
|
11
|
+
}
|
|
12
|
+
const ToggleGroup = {
|
|
13
|
+
...ToggleGroup$1,
|
|
14
|
+
Root: ToggleGroupRoot
|
|
15
|
+
};
|
|
16
|
+
injectComponentStyle("toggle-group");
|
|
17
|
+
//#endregion
|
|
18
|
+
export { ToggleGroup };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { JSX } from "solid-js";
|
|
2
|
+
//#region src/components/toolbar/index.d.ts
|
|
3
|
+
export interface ToolbarProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/** Accessible name when more than one toolbar shares a page. */
|
|
5
|
+
label?: string;
|
|
6
|
+
/** Tools at the leading edge; `children` land here when no start is
|
|
7
|
+
* given. */
|
|
8
|
+
start?: JSX.Element;
|
|
9
|
+
/** Tools at the trailing edge. */
|
|
10
|
+
end?: JSX.Element;
|
|
11
|
+
children?: JSX.Element;
|
|
12
|
+
}
|
|
13
|
+
/** A workbench rail: the start tools at the leading edge, the end tools
|
|
14
|
+
* at the trailing, the rail itself carrying the toolbar role so
|
|
15
|
+
* assistive tech reads it as one group of commands. */
|
|
16
|
+
export declare function Toolbar(props: ToolbarProps): JSX.Element;
|
|
17
|
+
//#endregion
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import { createComponent, insert, spread, template } from "@solidjs/web";
|
|
3
|
+
import { Show, splitProps } from "solid-js";
|
|
4
|
+
//#region src/components/toolbar/index.tsx
|
|
5
|
+
var _tmpl$ = /* @__PURE__ */ template(`<div data-scope=toolbar data-part=group data-edge=end>`);
|
|
6
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<div><div data-scope=toolbar data-part=group data-edge=start>`);
|
|
7
|
+
/** A workbench rail: the start tools at the leading edge, the end tools
|
|
8
|
+
* at the trailing, the rail itself carrying the toolbar role so
|
|
9
|
+
* assistive tech reads it as one group of commands. */
|
|
10
|
+
function Toolbar(props) {
|
|
11
|
+
injectComponentStyle("toolbar");
|
|
12
|
+
const [own, rest] = splitProps(props, [
|
|
13
|
+
"label",
|
|
14
|
+
"start",
|
|
15
|
+
"end",
|
|
16
|
+
"children"
|
|
17
|
+
]);
|
|
18
|
+
var _el$ = _tmpl$2();
|
|
19
|
+
var _el$2 = _el$.firstChild;
|
|
20
|
+
spread(_el$, [rest, {
|
|
21
|
+
role: "toolbar",
|
|
22
|
+
get "aria-label"() {
|
|
23
|
+
return own.label;
|
|
24
|
+
},
|
|
25
|
+
"data-scope": "toolbar",
|
|
26
|
+
"data-part": "root"
|
|
27
|
+
}], true);
|
|
28
|
+
insert(_el$2, () => {
|
|
29
|
+
return own.start ?? own.children;
|
|
30
|
+
});
|
|
31
|
+
insert(_el$, createComponent(Show, {
|
|
32
|
+
get when() {
|
|
33
|
+
return own.end;
|
|
34
|
+
},
|
|
35
|
+
get children() {
|
|
36
|
+
var _el$3 = _tmpl$();
|
|
37
|
+
insert(_el$3, () => {
|
|
38
|
+
return own.end;
|
|
39
|
+
});
|
|
40
|
+
return _el$3;
|
|
41
|
+
}
|
|
42
|
+
}), null);
|
|
43
|
+
return _el$;
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { Toolbar };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Tooltip as Tooltip$1 } from "@ark-ui/solid/tooltip";
|
|
2
|
+
//#region src/components/tooltip/index.d.ts
|
|
3
|
+
/** Ark's Tooltip, dressed in the paper-and-ink system: the smallest
|
|
4
|
+
* vessel — a tight chip of ink that dissolves in over its anchor. The
|
|
5
|
+
* API is Ark's own — Root, Trigger, Positioner, Content, Arrow, ArrowTip. */
|
|
6
|
+
export declare const Tooltip: typeof Tooltip$1;
|
|
7
|
+
//#endregion
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import { Tooltip as Tooltip$1 } from "@ark-ui/solid/tooltip";
|
|
3
|
+
//#region src/components/tooltip/index.ts
|
|
4
|
+
/** Ark's Tooltip, dressed in the paper-and-ink system: the smallest
|
|
5
|
+
* vessel — a tight chip of ink that dissolves in over its anchor. The
|
|
6
|
+
* API is Ark's own — Root, Trigger, Positioner, Content, Arrow, ArrowTip. */
|
|
7
|
+
const Tooltip = Tooltip$1;
|
|
8
|
+
injectComponentStyle("tooltip");
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Tooltip };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Tour as Tour$1, TourInteractOutsideEvent, TourPointerDownOutsideEvent, TourStepDetails, useTour } from "@ark-ui/solid/tour";
|
|
2
|
+
//#region src/components/tour/index.d.ts
|
|
3
|
+
/** Ark's Tour, dressed in the paper-and-ink system: a dimmed page where
|
|
4
|
+
* the spotlight alone keeps the focus halo, and the anchored card rides
|
|
5
|
+
* the shared popup vessel. The API is Ark's own — Root, Backdrop,
|
|
6
|
+
* Spotlight, Positioner, Content, Arrow, ArrowTip, Title, Description,
|
|
7
|
+
* ProgressText, Control, Actions, ActionTrigger, CloseTrigger, plus
|
|
8
|
+
* useTour. */
|
|
9
|
+
export declare const Tour: typeof Tour$1;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { type TourInteractOutsideEvent, type TourPointerDownOutsideEvent, type TourStepDetails, useTour };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import { Tour as Tour$1, useTour } from "@ark-ui/solid/tour";
|
|
3
|
+
//#region src/components/tour/index.ts
|
|
4
|
+
/** Ark's Tour, dressed in the paper-and-ink system: a dimmed page where
|
|
5
|
+
* the spotlight alone keeps the focus halo, and the anchored card rides
|
|
6
|
+
* the shared popup vessel. The API is Ark's own — Root, Backdrop,
|
|
7
|
+
* Spotlight, Positioner, Content, Arrow, ArrowTip, Title, Description,
|
|
8
|
+
* ProgressText, Control, Actions, ActionTrigger, CloseTrigger, plus
|
|
9
|
+
* useTour. */
|
|
10
|
+
const Tour = Tour$1;
|
|
11
|
+
injectComponentStyle("tour");
|
|
12
|
+
//#endregion
|
|
13
|
+
export { Tour, useTour };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { JSX } from "solid-js";
|
|
2
|
+
//#region src/components/transfer/index.d.ts
|
|
3
|
+
export interface TransferItem {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface TransferProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
9
|
+
value?: string[];
|
|
10
|
+
data: TransferItem[];
|
|
11
|
+
titles?: string[];
|
|
12
|
+
searchable?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
onValueChange?: (value: string[]) => void;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Two ledgers and a crossing: items sit in the source column until the
|
|
18
|
+
* reader checks them and walks them across — and back, the same way.
|
|
19
|
+
* `value` is the target column's value list; everything else in
|
|
20
|
+
* `data` stays on the left. `searchable` adds a filter line to each
|
|
21
|
+
* panel.
|
|
22
|
+
*/
|
|
23
|
+
export declare function Transfer(props: TransferProps): JSX.Element;
|
|
24
|
+
//#endregion
|