@bysages/solid 0.3.1 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ai-response-slzE03wh.mjs → ai-response-CJ-uEAgj.mjs} +14 -6
- package/dist/chevron-BHQrYKPM.mjs +8 -0
- package/dist/components/accordion/index.d.mts +22 -2
- package/dist/components/accordion/index.mjs +69 -3
- package/dist/components/affix/index.d.mts +3 -1
- package/dist/components/affix/index.mjs +6 -5
- package/dist/components/ai/index.d.mts +1 -1
- package/dist/components/ai/index.mjs +7 -6
- package/dist/components/ai-action/index.d.mts +3 -1
- package/dist/components/ai-action/index.mjs +4 -3
- package/dist/components/ai-attachments/index.d.mts +8 -4
- package/dist/components/ai-attachments/index.mjs +39 -37
- package/dist/components/ai-message/index.d.mts +3 -1
- package/dist/components/ai-message/index.mjs +4 -3
- package/dist/components/ai-prompt-input/index.d.mts +3 -1
- package/dist/components/ai-prompt-input/index.mjs +48 -44
- package/dist/components/ai-reasoning/index.d.mts +3 -1
- package/dist/components/ai-reasoning/index.mjs +5 -4
- 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 +6 -5
- package/dist/components/ai-suggestion/index.d.mts +3 -1
- package/dist/components/ai-suggestion/index.mjs +4 -3
- package/dist/components/ai-tool/index.d.mts +3 -1
- package/dist/components/ai-tool/index.mjs +5 -4
- package/dist/components/alert/index.mjs +32 -35
- package/dist/components/angle-slider/index.d.mts +1 -1
- package/dist/components/angle-slider/index.mjs +14 -6
- package/dist/components/aspect-ratio/index.d.mts +3 -1
- package/dist/components/aspect-ratio/index.mjs +4 -3
- package/dist/components/autocomplete/index.d.mts +4 -1
- package/dist/components/autocomplete/index.mjs +19 -4
- package/dist/components/avatar/index.d.mts +1 -1
- package/dist/components/avatar/index.mjs +11 -2
- package/dist/components/avatar-group/index.d.mts +3 -1
- package/dist/components/avatar-group/index.mjs +4 -3
- package/dist/components/back-top/index.d.mts +3 -1
- package/dist/components/back-top/index.mjs +10 -6
- package/dist/components/badge/index.d.mts +3 -1
- package/dist/components/badge/index.mjs +4 -3
- package/dist/components/banner/index.mjs +7 -3
- package/dist/components/bento/index.mjs +1 -1
- package/dist/components/block-ui/index.d.mts +3 -1
- package/dist/components/block-ui/index.mjs +4 -3
- package/dist/components/breadcrumb/index.mjs +1 -1
- package/dist/components/browser/index.mjs +1 -1
- package/dist/components/button/index.d.mts +3 -1
- package/dist/components/button/index.mjs +4 -3
- package/dist/components/button-group/index.mjs +1 -1
- package/dist/components/calendar/index.d.mts +3 -1
- package/dist/components/calendar/index.mjs +30 -22
- package/dist/components/card/index.mjs +1 -1
- package/dist/components/carousel/index.d.mts +5 -1
- package/dist/components/carousel/index.mjs +14 -2
- package/dist/components/cascade-select/index.d.mts +3 -1
- package/dist/components/cascade-select/index.mjs +74 -73
- package/dist/components/checkbox/index.d.mts +1 -1
- package/dist/components/checkbox/index.mjs +14 -6
- package/dist/components/checkbox-group/index.d.mts +4 -9
- package/dist/components/checkbox-group/index.mjs +66 -69
- package/dist/components/chip/index.d.mts +3 -1
- package/dist/components/chip/index.mjs +4 -3
- 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 +14 -6
- package/dist/components/collapsible/index.d.mts +15 -1
- package/dist/components/collapsible/index.mjs +40 -3
- package/dist/components/color-picker/index.d.mts +13 -2
- package/dist/components/color-picker/index.mjs +96 -9
- package/dist/components/combobox/index.d.mts +24 -1
- package/dist/components/combobox/index.mjs +130 -9
- package/dist/components/command/index.d.mts +4 -1
- package/dist/components/command/index.mjs +14 -2
- package/dist/components/comment/index.d.mts +3 -1
- package/dist/components/comment/index.mjs +4 -3
- package/dist/components/config-provider/index.d.mts +3 -1
- package/dist/components/config-provider/index.mjs +3 -2
- package/dist/components/container/index.d.mts +3 -1
- package/dist/components/container/index.mjs +4 -3
- package/dist/components/data-view/index.d.mts +3 -1
- package/dist/components/data-view/index.mjs +6 -7
- package/dist/components/date-input/index.d.mts +1 -1
- package/dist/components/date-input/index.mjs +14 -6
- package/dist/components/date-picker/index.d.mts +1 -1
- package/dist/components/date-picker/index.mjs +14 -6
- package/dist/components/deferred-content/index.d.mts +3 -1
- package/dist/components/deferred-content/index.mjs +4 -3
- package/dist/components/descriptions/index.d.mts +7 -0
- package/dist/components/descriptions/index.mjs +22 -3
- package/dist/components/dialog/index.d.mts +17 -1
- package/dist/components/dialog/index.mjs +85 -3
- package/dist/components/dock/index.mjs +1 -1
- 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 +84 -3
- package/dist/components/dynamic-input/index.d.mts +3 -1
- package/dist/components/dynamic-input/index.mjs +11 -7
- package/dist/components/editable/index.d.mts +1 -1
- package/dist/components/editable/index.mjs +14 -6
- package/dist/components/ellipsis/index.d.mts +3 -1
- package/dist/components/ellipsis/index.mjs +4 -3
- package/dist/components/empty/index.mjs +1 -1
- package/dist/components/field/index.d.mts +5 -1
- package/dist/components/field/index.mjs +14 -2
- package/dist/components/fieldset/index.d.mts +5 -1
- package/dist/components/fieldset/index.mjs +14 -2
- package/dist/components/file-upload/index.d.mts +1 -7
- package/dist/components/file-upload/index.mjs +14 -6
- package/dist/components/float-button/index.mjs +1 -1
- package/dist/components/floating-panel/index.d.mts +5 -1
- package/dist/components/floating-panel/index.mjs +14 -2
- 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 +11 -5
- 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 +4 -3
- package/dist/components/highlight/index.d.mts +3 -1
- package/dist/components/highlight/index.mjs +3 -2
- package/dist/components/hover-card/index.d.mts +19 -1
- package/dist/components/hover-card/index.mjs +92 -3
- package/dist/components/icon/index.d.mts +8 -7
- package/dist/components/icon/index.mjs +5 -4
- package/dist/components/image/index.d.mts +4 -2
- package/dist/components/image/index.mjs +35 -34
- package/dist/components/image-cropper/index.d.mts +5 -1
- package/dist/components/image-cropper/index.mjs +14 -2
- package/dist/components/image-viewer/index.d.mts +2 -23
- package/dist/components/image-viewer/index.mjs +3 -159
- package/dist/components/input/index.d.mts +3 -1
- package/dist/components/input/index.mjs +1 -1
- package/dist/components/input-group/index.mjs +1 -1
- package/dist/components/json-tree-view/index.d.mts +5 -4
- package/dist/components/json-tree-view/index.mjs +16 -19
- package/dist/components/kbd/index.d.mts +3 -1
- package/dist/components/kbd/index.mjs +4 -3
- package/dist/components/layout/index.mjs +1 -1
- package/dist/components/link/index.d.mts +3 -1
- package/dist/components/link/index.mjs +4 -3
- package/dist/components/list/index.mjs +1 -1
- package/dist/components/listbox/index.d.mts +1 -1
- package/dist/components/listbox/index.mjs +14 -6
- package/dist/components/marquee/index.d.mts +5 -1
- package/dist/components/marquee/index.mjs +14 -2
- package/dist/components/masonry/index.d.mts +3 -1
- package/dist/components/masonry/index.mjs +4 -3
- 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 +63 -6
- package/dist/components/menubar/index.d.mts +3 -1
- package/dist/components/menubar/index.mjs +31 -10
- package/dist/components/meter/index.mjs +1 -1
- package/dist/components/navigation-menu/index.d.mts +5 -1
- package/dist/components/navigation-menu/index.mjs +14 -2
- package/dist/components/number-input/index.d.mts +1 -1
- package/dist/components/number-input/index.mjs +14 -6
- package/dist/components/order-list/index.d.mts +3 -1
- package/dist/components/order-list/index.mjs +68 -64
- package/dist/components/page-header/index.mjs +1 -1
- package/dist/components/pagination/index.d.mts +1 -1
- package/dist/components/pagination/index.mjs +14 -6
- package/dist/components/password-input/index.d.mts +1 -1
- package/dist/components/password-input/index.mjs +14 -6
- package/dist/components/pin-input/index.d.mts +1 -1
- package/dist/components/pin-input/index.mjs +14 -6
- package/dist/components/popconfirm/index.d.mts +3 -1
- package/dist/components/popconfirm/index.mjs +17 -9
- package/dist/components/popover/index.d.mts +19 -1
- package/dist/components/popover/index.mjs +92 -3
- 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 +14 -6
- package/dist/components/progress-group/index.d.mts +3 -1
- package/dist/components/progress-group/index.mjs +5 -4
- package/dist/components/qr-code/index.d.mts +5 -1
- package/dist/components/qr-code/index.mjs +14 -2
- package/dist/components/radio-group/index.d.mts +1 -1
- package/dist/components/radio-group/index.mjs +14 -6
- package/dist/components/rating-group/index.d.mts +2 -2
- package/dist/components/rating-group/index.mjs +14 -6
- package/dist/components/result/index.d.mts +1 -1
- package/dist/components/result/index.mjs +6 -4
- package/dist/components/scroll-area/index.d.mts +5 -1
- package/dist/components/scroll-area/index.mjs +14 -2
- package/dist/components/segment-group/index.d.mts +1 -1
- package/dist/components/segment-group/index.mjs +12 -7
- 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 +4 -3
- package/dist/components/signature-pad/index.d.mts +5 -1
- package/dist/components/signature-pad/index.mjs +14 -2
- package/dist/components/skeleton/index.d.mts +3 -1
- package/dist/components/skeleton/index.mjs +4 -3
- package/dist/components/slider/index.d.mts +1 -1
- package/dist/components/slider/index.mjs +14 -6
- package/dist/components/spinner/index.d.mts +3 -1
- package/dist/components/spinner/index.mjs +4 -3
- package/dist/components/split-button/index.d.mts +3 -1
- package/dist/components/split-button/index.mjs +15 -4
- package/dist/components/splitter/index.d.mts +5 -1
- package/dist/components/splitter/index.mjs +14 -2
- package/dist/components/spotlight/index.d.mts +3 -1
- package/dist/components/spotlight/index.mjs +4 -3
- package/dist/components/stack/index.d.mts +3 -1
- package/dist/components/stack/index.mjs +7 -6
- package/dist/components/stat/index.mjs +1 -1
- package/dist/components/steps/index.d.mts +20 -3
- package/dist/components/steps/index.mjs +67 -8
- package/dist/components/swap/index.d.mts +5 -1
- package/dist/components/swap/index.mjs +14 -2
- package/dist/components/switch/index.d.mts +1 -1
- package/dist/components/switch/index.mjs +14 -6
- package/dist/components/table/index.d.mts +3 -1
- package/dist/components/table/index.mjs +191 -153
- package/dist/components/tabs/index.d.mts +20 -2
- package/dist/components/tabs/index.mjs +60 -4
- package/dist/components/tags-input/index.d.mts +1 -1
- package/dist/components/tags-input/index.mjs +14 -6
- package/dist/components/terminal/index.d.mts +3 -1
- package/dist/components/terminal/index.mjs +4 -3
- package/dist/components/textarea/index.d.mts +3 -1
- package/dist/components/textarea/index.mjs +4 -3
- package/dist/components/timeline/index.mjs +1 -1
- package/dist/components/timer/index.d.mts +5 -1
- package/dist/components/timer/index.mjs +14 -2
- package/dist/components/toast/index.d.mts +8 -2
- package/dist/components/toast/index.mjs +15 -3
- package/dist/components/toc/index.d.mts +11 -2
- package/dist/components/toc/index.mjs +1 -1
- package/dist/components/toggle/index.d.mts +5 -1
- package/dist/components/toggle/index.mjs +14 -2
- package/dist/components/toggle-group/index.d.mts +1 -1
- package/dist/components/toggle-group/index.mjs +14 -6
- package/dist/components/toolbar/index.d.mts +3 -1
- package/dist/components/toolbar/index.mjs +4 -3
- package/dist/components/tooltip/index.d.mts +16 -1
- package/dist/components/tooltip/index.mjs +56 -3
- package/dist/components/tour/index.d.mts +16 -3
- package/dist/components/tour/index.mjs +75 -10
- package/dist/components/transfer/index.d.mts +3 -1
- package/dist/components/transfer/index.mjs +55 -51
- package/dist/components/tree-select/index.d.mts +3 -1
- package/dist/components/tree-select/index.mjs +38 -31
- package/dist/components/tree-view/index.d.mts +1 -8
- package/dist/components/tree-view/index.mjs +17 -22
- package/dist/components/typography/index.mjs +1 -1
- package/dist/components/user/index.d.mts +3 -1
- package/dist/components/user/index.mjs +9 -3
- package/dist/components/virtual-list/index.d.mts +3 -1
- package/dist/components/virtual-list/index.mjs +14 -10
- package/dist/components/watermark/index.d.mts +3 -1
- package/dist/components/watermark/index.mjs +5 -4
- 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-19s75Hz_.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-IfofF-SW.d.mts → index-DVc1L_zt.d.mts} +191 -112
- package/dist/index-DhripUtf.d.mts +39 -0
- package/dist/{index-YPUiqD3n.d.mts → index-ID48LCMU.d.mts} +28 -2
- package/dist/index-wW28BYf1.d.mts +124 -0
- package/dist/index.d.mts +23 -22
- package/dist/index.mjs +13 -12
- package/dist/{input-DoFQ7RXh.mjs → input-BL3N3L8g.mjs} +4 -3
- package/dist/media-player-yF7KVUxM.mjs +796 -0
- package/dist/{mentions-f5Js_2W7.mjs → mentions-DKUG7eHt.mjs} +68 -52
- package/dist/select-DI7pFspF.mjs +292 -0
- package/dist/{toc-CZmYEaQR.mjs → toc-CqvGOp34.mjs} +13 -3
- package/package.json +10 -82
- package/dist/chevron-D5RzcayK.mjs +0 -9
- package/dist/index-DdsnfV4f.d.mts +0 -16
- package/dist/select-CX6OuQlU.mjs +0 -123
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
2
2
|
import { insert, spread, template } from "@solidjs/web";
|
|
3
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
4
|
import { splitProps } from "solid-js";
|
|
4
5
|
//#region src/components/spotlight/index.tsx
|
|
5
6
|
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
6
7
|
/** The ink-light card: a vessel whose rim and face take light from the
|
|
7
8
|
* reader's hand. The wrapper only measures and writes the geometry —
|
|
8
9
|
* the lamp itself is the two layers the stylesheet paints. */
|
|
9
|
-
function Spotlight(props) {
|
|
10
|
+
const Spotlight = withSelfRoot(function Spotlight(props) {
|
|
10
11
|
injectComponentStyle("spotlight");
|
|
11
12
|
const [own, rest] = splitProps(props, ["radius"]);
|
|
12
13
|
const track = (event) => {
|
|
@@ -33,6 +34,6 @@ function Spotlight(props) {
|
|
|
33
34
|
return props.children;
|
|
34
35
|
});
|
|
35
36
|
return _el$;
|
|
36
|
-
}
|
|
37
|
+
});
|
|
37
38
|
//#endregion
|
|
38
39
|
export { Spotlight };
|
|
@@ -7,5 +7,7 @@ export interface StackProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
|
7
7
|
align?: string;
|
|
8
8
|
justify?: string;
|
|
9
9
|
}
|
|
10
|
-
export declare
|
|
10
|
+
export declare const Stack: ((props: StackProps) => JSX.Element) & {
|
|
11
|
+
Root: (props: StackProps) => JSX.Element;
|
|
12
|
+
};
|
|
11
13
|
//#endregion
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
2
2
|
import { spread, template } from "@solidjs/web";
|
|
3
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
4
|
import { splitProps } from "solid-js";
|
|
4
5
|
//#region src/components/stack/index.tsx
|
|
5
6
|
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
@@ -13,7 +14,7 @@ const gapVars = {
|
|
|
13
14
|
lg: "var(--bs-gap-lg)",
|
|
14
15
|
xl: "var(--bs-gap-xl)"
|
|
15
16
|
};
|
|
16
|
-
function Stack(props) {
|
|
17
|
+
const Stack = withSelfRoot(function Stack(props) {
|
|
17
18
|
injectComponentStyle("stack");
|
|
18
19
|
const [own, rest] = splitProps(props, [
|
|
19
20
|
"direction",
|
|
@@ -28,9 +29,9 @@ function Stack(props) {
|
|
|
28
29
|
return {
|
|
29
30
|
...rest.style,
|
|
30
31
|
"--bs-stack-gap": gapVars[own.gap ?? "md"] ?? gapVars.md,
|
|
31
|
-
"align
|
|
32
|
-
"justify
|
|
33
|
-
"
|
|
32
|
+
"--bs-stack-align": own.align,
|
|
33
|
+
"--bs-stack-justify": own.justify,
|
|
34
|
+
"--bs-stack-wrap": own.wrap ? "wrap" : void 0
|
|
34
35
|
};
|
|
35
36
|
},
|
|
36
37
|
"data-scope": "stack",
|
|
@@ -40,6 +41,6 @@ function Stack(props) {
|
|
|
40
41
|
}
|
|
41
42
|
}], false);
|
|
42
43
|
return _el$;
|
|
43
|
-
}
|
|
44
|
+
});
|
|
44
45
|
//#endregion
|
|
45
46
|
export { Stack };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
2
1
|
import { createComponent, 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/stat/index.tsx
|
|
5
5
|
var _tmpl$ = /* @__PURE__ */ template(`<span>`);
|
|
@@ -8,16 +8,33 @@ import { Steps as Steps$1, StepsRootProps } from "@ark-ui/solid/steps";
|
|
|
8
8
|
* PrevTrigger, NextTrigger, Progress. Indicator and Separator carry
|
|
9
9
|
* data-complete / data-current / data-incomplete.
|
|
10
10
|
*/
|
|
11
|
+
type StepsRootProps$1 = StepsRootProps & StepsOwnProps;
|
|
11
12
|
type StepsOwnProps = {
|
|
12
13
|
/** One rung of the control-height ladder every indicator stands on. */
|
|
13
14
|
size?: "sm" | "md" | "lg";
|
|
14
15
|
};
|
|
15
|
-
declare function StepsRoot(props: StepsRootProps
|
|
16
|
+
declare function StepsRoot(props: StepsRootProps$1): import("solid-js").JSX.Element;
|
|
17
|
+
type StepsItem = {
|
|
18
|
+
title: string;
|
|
19
|
+
};
|
|
20
|
+
export interface StepsFacadeProps {
|
|
21
|
+
items: StepsItem[];
|
|
22
|
+
step?: number;
|
|
23
|
+
defaultStep?: number;
|
|
24
|
+
linear?: boolean;
|
|
25
|
+
orientation?: "horizontal" | "vertical";
|
|
26
|
+
/** One rung of the control-height ladder every indicator stands on. */
|
|
27
|
+
size?: "sm" | "md" | "lg";
|
|
28
|
+
class?: string;
|
|
29
|
+
onStepChange?: (step: number) => void;
|
|
30
|
+
}
|
|
31
|
+
declare function StepsFacade(props: StepsFacadeProps): import("solid-js").JSX.Element;
|
|
16
32
|
/** The machine wraps each tab in an item div; presentation keeps the
|
|
17
33
|
* tablist owned children legal while the tab itself keeps its role. */
|
|
18
34
|
declare function StepsItem(props: ComponentProps<typeof Steps$1.Item>): import("solid-js").JSX.Element;
|
|
19
|
-
export declare const Steps: Omit<typeof Steps$1, "Root" | "Item"> & {
|
|
35
|
+
export declare const Steps: typeof StepsFacade & Omit<typeof Steps$1, "Root" | "Item"> & {
|
|
20
36
|
Root: typeof StepsRoot;
|
|
21
37
|
Item: typeof StepsItem;
|
|
22
38
|
};
|
|
23
|
-
//#endregion
|
|
39
|
+
//#endregion
|
|
40
|
+
export { StepsItem };
|
|
@@ -1,24 +1,83 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
3
|
+
import { createComponent, memo, mergeProps } from "@solidjs/web";
|
|
4
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
|
+
import { For, splitProps } from "solid-js";
|
|
4
6
|
import { Steps as Steps$1 } from "@ark-ui/solid/steps";
|
|
5
7
|
//#region src/components/steps/index.tsx
|
|
6
8
|
function StepsRoot(props) {
|
|
7
9
|
const [own, rest] = splitProps(props, ["size"]);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
const id = useElementId("steps", () => rest.id);
|
|
11
|
+
return createComponent(Steps$1.Root, mergeProps(rest, {
|
|
12
|
+
get id() {
|
|
13
|
+
return id();
|
|
14
|
+
},
|
|
15
|
+
get "data-size"() {
|
|
16
|
+
return own.size ?? "md";
|
|
17
|
+
}
|
|
18
|
+
}));
|
|
19
|
+
}
|
|
20
|
+
function StepsFacade(props) {
|
|
21
|
+
injectComponentStyle("steps");
|
|
22
|
+
return createComponent(StepsRoot, mergeProps({
|
|
23
|
+
get "class"() {
|
|
24
|
+
return props.class;
|
|
25
|
+
},
|
|
26
|
+
get size() {
|
|
27
|
+
return props.size ?? "md";
|
|
28
|
+
},
|
|
29
|
+
get count() {
|
|
30
|
+
return props.items.length;
|
|
31
|
+
},
|
|
32
|
+
get linear() {
|
|
33
|
+
return props.linear ?? false;
|
|
34
|
+
},
|
|
35
|
+
get orientation() {
|
|
36
|
+
return props.orientation ?? "horizontal";
|
|
37
|
+
},
|
|
38
|
+
get defaultStep() {
|
|
39
|
+
return props.defaultStep ?? 0;
|
|
40
|
+
}
|
|
41
|
+
}, () => {
|
|
42
|
+
return props.step === void 0 ? {} : { step: props.step };
|
|
43
|
+
}, {
|
|
44
|
+
onStepChange: (details) => props.onStepChange?.(details.step),
|
|
45
|
+
get children() {
|
|
46
|
+
return createComponent(Steps$1.List, { get children() {
|
|
47
|
+
return createComponent(For, {
|
|
48
|
+
get each() {
|
|
49
|
+
return props.items;
|
|
50
|
+
},
|
|
51
|
+
children: (item, index) => createComponent(Steps$1.Item, {
|
|
52
|
+
get index() {
|
|
53
|
+
return index();
|
|
54
|
+
},
|
|
55
|
+
role: "presentation",
|
|
56
|
+
get children() {
|
|
57
|
+
return [createComponent(Steps$1.Trigger, { get children() {
|
|
58
|
+
return [createComponent(Steps$1.Indicator, { get children() {
|
|
59
|
+
return String(index() + 1);
|
|
60
|
+
} }), memo(() => {
|
|
61
|
+
return item.title;
|
|
62
|
+
})];
|
|
63
|
+
} }), createComponent(Steps$1.Separator, {})];
|
|
64
|
+
}
|
|
65
|
+
})
|
|
66
|
+
});
|
|
67
|
+
} });
|
|
68
|
+
}
|
|
69
|
+
}));
|
|
11
70
|
}
|
|
12
71
|
/** The machine wraps each tab in an item div; presentation keeps the
|
|
13
72
|
* tablist owned children legal while the tab itself keeps its role. */
|
|
14
73
|
function StepsItem(props) {
|
|
15
74
|
return createComponent(Steps$1.Item, mergeProps(props, { role: "presentation" }));
|
|
16
75
|
}
|
|
17
|
-
const Steps = {
|
|
76
|
+
const Steps = defineFamily(StepsFacade, {
|
|
18
77
|
...Steps$1,
|
|
19
78
|
Root: StepsRoot,
|
|
20
79
|
Item: StepsItem
|
|
21
|
-
};
|
|
80
|
+
});
|
|
22
81
|
injectComponentStyle("steps");
|
|
23
82
|
//#endregion
|
|
24
83
|
export { Steps };
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { ComponentProps } from "solid-js";
|
|
1
2
|
import { Swap as Swap$1 } from "@ark-ui/solid/swap";
|
|
2
3
|
//#region src/components/swap/index.d.ts
|
|
3
4
|
/** Ark's Swap, dressed in the paper-and-ink system: two impressions
|
|
4
5
|
* occupying one seal, the arriving one growing into place on the spring
|
|
5
6
|
* while the departing one shrinks away. The API is Ark's own — Root,
|
|
6
7
|
* Indicator (type="on" | "off"), RootProvider. */
|
|
7
|
-
|
|
8
|
+
declare function SwapRoot(props: ComponentProps<typeof Swap$1.Root>): import("solid-js").JSX.Element;
|
|
9
|
+
export declare const Swap: typeof SwapRoot & Omit<typeof Swap$1, "Root"> & {
|
|
10
|
+
Root: typeof SwapRoot;
|
|
11
|
+
};
|
|
8
12
|
//#endregion
|
|
@@ -1,11 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
3
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
|
+
import { createComponent, mergeProps } from "solid-js";
|
|
2
5
|
import { Swap as Swap$1 } from "@ark-ui/solid/swap";
|
|
3
6
|
//#region src/components/swap/index.ts
|
|
4
7
|
/** Ark's Swap, dressed in the paper-and-ink system: two impressions
|
|
5
8
|
* occupying one seal, the arriving one growing into place on the spring
|
|
6
9
|
* while the departing one shrinks away. The API is Ark's own — Root,
|
|
7
10
|
* Indicator (type="on" | "off"), RootProvider. */
|
|
8
|
-
|
|
11
|
+
function SwapRoot(props) {
|
|
12
|
+
const id = useElementId("swap", () => props.id);
|
|
13
|
+
return createComponent(Swap$1.Root, mergeProps(props, { get id() {
|
|
14
|
+
return id();
|
|
15
|
+
} }));
|
|
16
|
+
}
|
|
17
|
+
const Swap = defineFamily(SwapRoot, {
|
|
18
|
+
...Swap$1,
|
|
19
|
+
Root: SwapRoot
|
|
20
|
+
});
|
|
9
21
|
injectComponentStyle("swap");
|
|
10
22
|
//#endregion
|
|
11
23
|
export { Swap };
|
|
@@ -9,7 +9,7 @@ type SwitchOwnProps = {
|
|
|
9
9
|
size?: "sm" | "md" | "lg";
|
|
10
10
|
};
|
|
11
11
|
declare function SwitchRoot(props: SwitchRootProps & SwitchOwnProps): import("solid-js").JSX.Element;
|
|
12
|
-
export declare const Switch: Omit<typeof Switch$1, "Root"> & {
|
|
12
|
+
export declare const Switch: typeof SwitchRoot & Omit<typeof Switch$1, "Root"> & {
|
|
13
13
|
Root: typeof SwitchRoot;
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
@@ -1,18 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
2
3
|
import { createComponent, mergeProps } from "@solidjs/web";
|
|
4
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
5
|
import { splitProps } from "solid-js";
|
|
4
6
|
import { Switch as Switch$1 } from "@ark-ui/solid/switch";
|
|
5
7
|
//#region src/components/switch/index.tsx
|
|
6
8
|
function SwitchRoot(props) {
|
|
7
9
|
const [own, rest] = splitProps(props, ["size"]);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
const id = useElementId("switch", () => rest.id);
|
|
11
|
+
return createComponent(Switch$1.Root, mergeProps(rest, {
|
|
12
|
+
get id() {
|
|
13
|
+
return id();
|
|
14
|
+
},
|
|
15
|
+
get "data-size"() {
|
|
16
|
+
return own.size ?? "md";
|
|
17
|
+
}
|
|
18
|
+
}));
|
|
11
19
|
}
|
|
12
|
-
const Switch = {
|
|
20
|
+
const Switch = defineFamily(SwitchRoot, {
|
|
13
21
|
...Switch$1,
|
|
14
22
|
Root: SwitchRoot
|
|
15
|
-
};
|
|
23
|
+
});
|
|
16
24
|
injectComponentStyle("switch");
|
|
17
25
|
//#endregion
|
|
18
26
|
export { Switch };
|
|
@@ -72,6 +72,8 @@ export interface DataTableProps {
|
|
|
72
72
|
/** Fires with the full leaf-column id order after a header drop. */
|
|
73
73
|
onColumnReorder?: (ids: string[]) => void;
|
|
74
74
|
}
|
|
75
|
-
export declare
|
|
75
|
+
export declare const DataTable: ((props: DataTableProps) => JSX.Element) & {
|
|
76
|
+
Root: (props: DataTableProps) => JSX.Element;
|
|
77
|
+
};
|
|
76
78
|
//#endregion
|
|
77
79
|
export { type ColumnDef, FlexRender, type SortingState, createColumnHelper };
|