@bysages/solid 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ai-response-ClGGptX3.mjs → ai-response-D2uINBIi.mjs} +17 -7
- package/dist/chevron-BHQrYKPM.mjs +8 -0
- package/dist/components/accordion/index.d.mts +22 -2
- package/dist/components/accordion/index.mjs +68 -2
- package/dist/components/affix/index.d.mts +3 -1
- package/dist/components/affix/index.mjs +5 -4
- package/dist/components/ai/index.d.mts +1 -1
- package/dist/components/ai/index.mjs +14 -16
- package/dist/components/ai-action/index.d.mts +3 -1
- package/dist/components/ai-action/index.mjs +3 -2
- package/dist/components/ai-attachments/index.d.mts +8 -4
- package/dist/components/ai-attachments/index.mjs +41 -37
- package/dist/components/ai-message/index.d.mts +3 -1
- package/dist/components/ai-message/index.mjs +3 -2
- package/dist/components/ai-prompt-input/index.d.mts +3 -1
- package/dist/components/ai-prompt-input/index.mjs +59 -46
- package/dist/components/ai-reasoning/index.d.mts +3 -1
- package/dist/components/ai-reasoning/index.mjs +4 -3
- package/dist/components/ai-response/index.d.mts +3 -1
- package/dist/components/ai-response/index.mjs +1 -1
- package/dist/components/ai-source/index.d.mts +6 -2
- package/dist/components/ai-source/index.mjs +5 -4
- package/dist/components/ai-suggestion/index.d.mts +3 -1
- package/dist/components/ai-suggestion/index.mjs +3 -2
- package/dist/components/ai-tool/index.d.mts +3 -1
- package/dist/components/ai-tool/index.mjs +4 -3
- package/dist/components/alert/index.mjs +31 -34
- package/dist/components/angle-slider/index.d.mts +1 -1
- package/dist/components/angle-slider/index.mjs +13 -5
- package/dist/components/aspect-ratio/index.d.mts +3 -1
- package/dist/components/aspect-ratio/index.mjs +3 -2
- package/dist/components/autocomplete/index.d.mts +4 -1
- package/dist/components/autocomplete/index.mjs +15 -2
- package/dist/components/avatar/index.d.mts +1 -1
- package/dist/components/avatar/index.mjs +10 -1
- package/dist/components/avatar-group/index.d.mts +3 -1
- package/dist/components/avatar-group/index.mjs +3 -2
- package/dist/components/back-top/index.d.mts +3 -1
- package/dist/components/back-top/index.mjs +9 -5
- package/dist/components/badge/index.d.mts +3 -1
- package/dist/components/badge/index.mjs +3 -2
- package/dist/components/banner/index.mjs +9 -3
- package/dist/components/block-ui/index.d.mts +3 -1
- package/dist/components/block-ui/index.mjs +3 -2
- package/dist/components/breadcrumb/index.mjs +5 -5
- package/dist/components/button/index.d.mts +3 -1
- package/dist/components/button/index.mjs +3 -2
- package/dist/components/calendar/index.d.mts +3 -1
- package/dist/components/calendar/index.mjs +29 -21
- package/dist/components/carousel/index.d.mts +5 -1
- package/dist/components/carousel/index.mjs +13 -1
- package/dist/components/cascade-select/index.d.mts +3 -1
- package/dist/components/cascade-select/index.mjs +82 -74
- package/dist/components/checkbox/index.d.mts +1 -1
- package/dist/components/checkbox/index.mjs +13 -5
- package/dist/components/checkbox-group/index.d.mts +4 -9
- package/dist/components/checkbox-group/index.mjs +65 -68
- package/dist/components/chip/index.d.mts +3 -1
- package/dist/components/chip/index.mjs +3 -2
- package/dist/components/client-only/index.d.mts +7 -2
- package/dist/components/client-only/index.mjs +8 -1
- package/dist/components/clipboard/index.d.mts +1 -1
- package/dist/components/clipboard/index.mjs +13 -5
- package/dist/components/collapsible/index.d.mts +15 -1
- package/dist/components/collapsible/index.mjs +39 -2
- package/dist/components/color-picker/index.d.mts +13 -2
- package/dist/components/color-picker/index.mjs +95 -8
- package/dist/components/combobox/index.d.mts +24 -1
- package/dist/components/combobox/index.mjs +129 -8
- package/dist/components/command/index.d.mts +4 -1
- package/dist/components/command/index.mjs +24 -4
- package/dist/components/comment/index.d.mts +3 -1
- package/dist/components/comment/index.mjs +3 -2
- package/dist/components/config-provider/index.d.mts +7 -2
- package/dist/components/config-provider/index.mjs +6 -3
- package/dist/components/container/index.d.mts +3 -1
- package/dist/components/container/index.mjs +3 -2
- package/dist/components/data-view/index.d.mts +3 -1
- package/dist/components/data-view/index.mjs +13 -8
- package/dist/components/date-input/index.d.mts +1 -1
- package/dist/components/date-input/index.mjs +13 -5
- package/dist/components/date-picker/index.d.mts +1 -1
- package/dist/components/date-picker/index.mjs +13 -5
- package/dist/components/deferred-content/index.d.mts +3 -1
- package/dist/components/deferred-content/index.mjs +3 -2
- package/dist/components/descriptions/index.d.mts +7 -0
- package/dist/components/descriptions/index.mjs +21 -2
- package/dist/components/dialog/index.d.mts +17 -1
- package/dist/components/dialog/index.mjs +84 -2
- package/dist/components/download-trigger/index.d.mts +7 -2
- package/dist/components/download-trigger/index.mjs +8 -1
- package/dist/components/drawer/index.d.mts +17 -1
- package/dist/components/drawer/index.mjs +83 -2
- package/dist/components/dynamic-input/index.d.mts +3 -1
- package/dist/components/dynamic-input/index.mjs +15 -7
- package/dist/components/editable/index.d.mts +1 -1
- package/dist/components/editable/index.mjs +13 -5
- package/dist/components/ellipsis/index.d.mts +3 -1
- package/dist/components/ellipsis/index.mjs +3 -2
- package/dist/components/field/index.d.mts +5 -1
- package/dist/components/field/index.mjs +13 -1
- package/dist/components/fieldset/index.d.mts +5 -1
- package/dist/components/fieldset/index.mjs +13 -1
- package/dist/components/file-upload/index.d.mts +1 -1
- package/dist/components/file-upload/index.mjs +24 -6
- package/dist/components/float-button/index.mjs +3 -1
- package/dist/components/floating-panel/index.d.mts +5 -1
- package/dist/components/floating-panel/index.mjs +13 -1
- package/dist/components/focus-trap/index.d.mts +7 -2
- package/dist/components/focus-trap/index.mjs +8 -1
- package/dist/components/form/index.d.mts +1 -1
- package/dist/components/form/index.mjs +10 -4
- package/dist/components/frame/index.d.mts +6 -1
- package/dist/components/frame/index.mjs +10 -1
- package/dist/components/grid/index.d.mts +3 -1
- package/dist/components/grid/index.mjs +3 -2
- package/dist/components/highlight/index.d.mts +3 -1
- package/dist/components/highlight/index.mjs +2 -1
- package/dist/components/hover-card/index.d.mts +19 -1
- package/dist/components/hover-card/index.mjs +91 -2
- package/dist/components/icon/index.d.mts +8 -7
- package/dist/components/icon/index.mjs +4 -3
- package/dist/components/image/index.d.mts +8 -2
- package/dist/components/image/index.mjs +40 -33
- package/dist/components/image-cropper/index.d.mts +5 -1
- package/dist/components/image-cropper/index.mjs +13 -1
- package/dist/components/image-viewer/index.d.mts +2 -19
- package/dist/components/image-viewer/index.mjs +3 -151
- package/dist/components/input/index.d.mts +3 -1
- package/dist/components/input/index.mjs +1 -1
- package/dist/components/json-tree-view/index.d.mts +5 -1
- package/dist/components/json-tree-view/index.mjs +22 -2
- package/dist/components/kbd/index.d.mts +3 -1
- package/dist/components/kbd/index.mjs +3 -2
- package/dist/components/layout/index.mjs +8 -4
- package/dist/components/link/index.d.mts +3 -1
- package/dist/components/link/index.mjs +3 -2
- package/dist/components/list/index.d.mts +2 -1
- package/dist/components/list/index.mjs +35 -26
- package/dist/components/listbox/index.d.mts +1 -1
- package/dist/components/listbox/index.mjs +13 -5
- package/dist/components/marquee/index.d.mts +5 -1
- package/dist/components/marquee/index.mjs +13 -1
- package/dist/components/masonry/index.d.mts +3 -1
- package/dist/components/masonry/index.mjs +3 -2
- package/dist/components/media-player/index.d.mts +2 -0
- package/dist/components/media-player/index.mjs +2 -0
- package/dist/components/mentions/index.d.mts +1 -1
- package/dist/components/mentions/index.mjs +2 -2
- package/dist/components/menu/index.d.mts +21 -1
- package/dist/components/menu/index.mjs +62 -5
- package/dist/components/menubar/index.d.mts +3 -1
- package/dist/components/menubar/index.mjs +31 -9
- package/dist/components/navigation-menu/index.d.mts +5 -1
- package/dist/components/navigation-menu/index.mjs +13 -1
- package/dist/components/number-input/index.d.mts +1 -1
- package/dist/components/number-input/index.mjs +13 -5
- package/dist/components/order-list/index.d.mts +3 -1
- package/dist/components/order-list/index.mjs +79 -67
- package/dist/components/pagination/index.d.mts +1 -1
- package/dist/components/pagination/index.mjs +13 -5
- package/dist/components/password-input/index.d.mts +1 -1
- package/dist/components/password-input/index.mjs +13 -5
- package/dist/components/pin-input/index.d.mts +1 -1
- package/dist/components/pin-input/index.mjs +13 -5
- package/dist/components/popconfirm/index.d.mts +3 -1
- package/dist/components/popconfirm/index.mjs +16 -8
- package/dist/components/popover/index.d.mts +19 -1
- package/dist/components/popover/index.mjs +91 -2
- package/dist/components/presence/index.d.mts +10 -2
- package/dist/components/presence/index.mjs +9 -1
- package/dist/components/progress/index.d.mts +1 -1
- package/dist/components/progress/index.mjs +13 -5
- package/dist/components/progress-group/index.d.mts +3 -1
- package/dist/components/progress-group/index.mjs +4 -3
- package/dist/components/qr-code/index.d.mts +5 -1
- package/dist/components/qr-code/index.mjs +13 -1
- package/dist/components/radio-group/index.d.mts +1 -1
- package/dist/components/radio-group/index.mjs +13 -5
- package/dist/components/rating-group/index.d.mts +2 -2
- package/dist/components/rating-group/index.mjs +13 -5
- package/dist/components/result/index.d.mts +1 -1
- package/dist/components/result/index.mjs +5 -3
- package/dist/components/scroll-area/index.d.mts +5 -1
- package/dist/components/scroll-area/index.mjs +13 -1
- package/dist/components/segment-group/index.d.mts +1 -1
- package/dist/components/segment-group/index.mjs +11 -6
- package/dist/components/select/index.d.mts +2 -2
- package/dist/components/select/index.mjs +1 -1
- package/dist/components/separator/index.d.mts +3 -1
- package/dist/components/separator/index.mjs +3 -2
- package/dist/components/signature-pad/index.d.mts +5 -1
- package/dist/components/signature-pad/index.mjs +13 -1
- package/dist/components/skeleton/index.d.mts +3 -1
- package/dist/components/skeleton/index.mjs +3 -2
- package/dist/components/slider/index.d.mts +1 -1
- package/dist/components/slider/index.mjs +13 -5
- package/dist/components/spinner/index.d.mts +3 -1
- package/dist/components/spinner/index.mjs +6 -3
- package/dist/components/split-button/index.d.mts +3 -1
- package/dist/components/split-button/index.mjs +19 -4
- package/dist/components/splitter/index.d.mts +5 -1
- package/dist/components/splitter/index.mjs +13 -1
- package/dist/components/spotlight/index.d.mts +3 -1
- package/dist/components/spotlight/index.mjs +3 -2
- package/dist/components/stack/index.d.mts +3 -1
- package/dist/components/stack/index.mjs +6 -5
- package/dist/components/steps/index.d.mts +25 -3
- package/dist/components/steps/index.mjs +73 -8
- package/dist/components/swap/index.d.mts +5 -1
- package/dist/components/swap/index.mjs +13 -1
- package/dist/components/switch/index.d.mts +1 -1
- package/dist/components/switch/index.mjs +13 -5
- package/dist/components/table/index.d.mts +3 -1
- package/dist/components/table/index.mjs +194 -164
- package/dist/components/tabs/index.d.mts +20 -2
- package/dist/components/tabs/index.mjs +59 -3
- package/dist/components/tags-input/index.d.mts +1 -1
- package/dist/components/tags-input/index.mjs +13 -5
- package/dist/components/terminal/index.d.mts +3 -1
- package/dist/components/terminal/index.mjs +6 -3
- package/dist/components/textarea/index.d.mts +3 -1
- package/dist/components/textarea/index.mjs +3 -2
- package/dist/components/timer/index.d.mts +5 -1
- package/dist/components/timer/index.mjs +13 -1
- package/dist/components/toast/index.d.mts +8 -2
- package/dist/components/toast/index.mjs +14 -2
- package/dist/components/toc/index.d.mts +5 -1
- package/dist/components/toc/index.mjs +1 -9
- package/dist/components/toggle/index.d.mts +5 -1
- package/dist/components/toggle/index.mjs +13 -1
- package/dist/components/toggle-group/index.d.mts +1 -1
- package/dist/components/toggle-group/index.mjs +13 -5
- package/dist/components/toolbar/index.d.mts +3 -1
- package/dist/components/toolbar/index.mjs +3 -2
- package/dist/components/tooltip/index.d.mts +16 -1
- package/dist/components/tooltip/index.mjs +55 -2
- package/dist/components/tour/index.d.mts +16 -3
- package/dist/components/tour/index.mjs +74 -9
- package/dist/components/transfer/index.d.mts +3 -1
- package/dist/components/transfer/index.mjs +68 -54
- package/dist/components/tree-select/index.d.mts +3 -1
- package/dist/components/tree-select/index.mjs +45 -35
- package/dist/components/tree-view/index.d.mts +1 -1
- package/dist/components/tree-view/index.mjs +26 -5
- package/dist/components/user/index.d.mts +3 -1
- package/dist/components/user/index.mjs +8 -2
- package/dist/components/virtual-list/index.d.mts +3 -1
- package/dist/components/virtual-list/index.mjs +14 -9
- package/dist/components/watermark/index.d.mts +3 -1
- package/dist/components/watermark/index.mjs +4 -3
- package/dist/element-dGIhOTJ6.mjs +16 -0
- package/dist/family-Cmd8HEyK.mjs +11 -0
- package/dist/icon-DTqmJCd5.mjs +48 -0
- package/dist/id-2ygNzPHF.mjs +12 -0
- package/dist/image-viewer-B9A5lXsk.mjs +228 -0
- package/dist/{index-B1xiJ5ki.d.mts → index-B1-quIrl.d.mts} +6 -2
- package/dist/{index-DDX7x8aT.d.mts → index-DEArHiFI.d.mts} +16 -7
- package/dist/index-DhripUtf.d.mts +39 -0
- package/dist/{index-YPUiqD3n.d.mts → index-ID48LCMU.d.mts} +28 -2
- package/dist/{index-IfofF-SW.d.mts → index-nFXK_8hJ.d.mts} +53 -23
- package/dist/index-wW28BYf1.d.mts +124 -0
- package/dist/index.d.mts +22 -21
- package/dist/index.mjs +14 -13
- package/dist/{input-DoFQ7RXh.mjs → input-CPAJdwDb.mjs} +3 -2
- package/dist/media-player-BC8D_d29.mjs +796 -0
- package/dist/{mentions-f5Js_2W7.mjs → mentions-CeG5u8Qm.mjs} +67 -51
- package/dist/select-7YjMSBGx.mjs +292 -0
- package/dist/toc-DYKaKQ_X.mjs +31 -0
- package/dist/use-component-messages-C4SCVYjD.mjs +17 -0
- package/package.json +3 -3
- package/dist/chevron-D5RzcayK.mjs +0 -9
- package/dist/select-CHaXbzLX.mjs +0 -115
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
1
3
|
import { injectComponentStyle } from "@bysages/core";
|
|
2
4
|
import { createComponent, mergeProps } from "@solidjs/web";
|
|
3
5
|
import { splitProps } from "solid-js";
|
|
@@ -5,14 +7,20 @@ import { Pagination as Pagination$1 } from "@ark-ui/solid/pagination";
|
|
|
5
7
|
//#region src/components/pagination/index.tsx
|
|
6
8
|
function PaginationRoot(props) {
|
|
7
9
|
const [own, rest] = splitProps(props, ["size"]);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
const id = useElementId("pagination", () => rest.id);
|
|
11
|
+
return createComponent(Pagination$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 Pagination = {
|
|
20
|
+
const Pagination = defineFamily(PaginationRoot, {
|
|
13
21
|
...Pagination$1,
|
|
14
22
|
Root: PaginationRoot
|
|
15
|
-
};
|
|
23
|
+
});
|
|
16
24
|
injectComponentStyle("pagination");
|
|
17
25
|
//#endregion
|
|
18
26
|
export { Pagination };
|
|
@@ -9,7 +9,7 @@ type PasswordInputOwnProps = {
|
|
|
9
9
|
size?: "sm" | "md" | "lg";
|
|
10
10
|
};
|
|
11
11
|
declare function PasswordInputRoot(props: PasswordInputRootProps & PasswordInputOwnProps): import("solid-js").JSX.Element;
|
|
12
|
-
export declare const PasswordInput: Omit<typeof PasswordInput$1, "Root"> & {
|
|
12
|
+
export declare const PasswordInput: typeof PasswordInputRoot & Omit<typeof PasswordInput$1, "Root"> & {
|
|
13
13
|
Root: typeof PasswordInputRoot;
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
1
3
|
import { injectComponentStyle } from "@bysages/core";
|
|
2
4
|
import { createComponent, mergeProps } from "@solidjs/web";
|
|
3
5
|
import { splitProps } from "solid-js";
|
|
@@ -5,14 +7,20 @@ import { PasswordInput as PasswordInput$1 } from "@ark-ui/solid/password-input";
|
|
|
5
7
|
//#region src/components/password-input/index.tsx
|
|
6
8
|
function PasswordInputRoot(props) {
|
|
7
9
|
const [own, rest] = splitProps(props, ["size"]);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
const id = useElementId("password-input", () => rest.id);
|
|
11
|
+
return createComponent(PasswordInput$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 PasswordInput = {
|
|
20
|
+
const PasswordInput = defineFamily(PasswordInputRoot, {
|
|
13
21
|
...PasswordInput$1,
|
|
14
22
|
Root: PasswordInputRoot
|
|
15
|
-
};
|
|
23
|
+
});
|
|
16
24
|
injectComponentStyle("password-input");
|
|
17
25
|
//#endregion
|
|
18
26
|
export { PasswordInput };
|
|
@@ -8,7 +8,7 @@ type PinInputOwnProps = {
|
|
|
8
8
|
size?: "sm" | "md" | "lg";
|
|
9
9
|
};
|
|
10
10
|
declare function PinInputRoot(props: PinInputRootProps & PinInputOwnProps): import("solid-js").JSX.Element;
|
|
11
|
-
export declare const PinInput: Omit<typeof PinInput$1, "Root"> & {
|
|
11
|
+
export declare const PinInput: typeof PinInputRoot & Omit<typeof PinInput$1, "Root"> & {
|
|
12
12
|
Root: typeof PinInputRoot;
|
|
13
13
|
};
|
|
14
14
|
//#endregion
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
1
3
|
import { injectComponentStyle } from "@bysages/core";
|
|
2
4
|
import { createComponent, mergeProps } from "@solidjs/web";
|
|
3
5
|
import { splitProps } from "solid-js";
|
|
@@ -5,14 +7,20 @@ import { PinInput as PinInput$1 } from "@ark-ui/solid/pin-input";
|
|
|
5
7
|
//#region src/components/pin-input/index.tsx
|
|
6
8
|
function PinInputRoot(props) {
|
|
7
9
|
const [own, rest] = splitProps(props, ["size"]);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
const id = useElementId("pin-input", () => rest.id);
|
|
11
|
+
return createComponent(PinInput$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 PinInput = {
|
|
20
|
+
const PinInput = defineFamily(PinInputRoot, {
|
|
13
21
|
...PinInput$1,
|
|
14
22
|
Root: PinInputRoot
|
|
15
|
-
};
|
|
23
|
+
});
|
|
16
24
|
injectComponentStyle("pin-input");
|
|
17
25
|
//#endregion
|
|
18
26
|
export { PinInput };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Popover } from "../popover/index.mjs";
|
|
1
2
|
import { JSX } from "solid-js";
|
|
2
3
|
//#region src/components/popconfirm/index.d.ts
|
|
3
4
|
export interface PopconfirmProps extends JSX.HTMLAttributes<HTMLButtonElement> {
|
|
@@ -13,5 +14,6 @@ export interface PopconfirmProps extends JSX.HTMLAttributes<HTMLButtonElement> {
|
|
|
13
14
|
* and cancellation are the caller's to act on — the panel closes
|
|
14
15
|
* either way. The children are the trigger's content, riding the
|
|
15
16
|
* machine-driven trigger button. */
|
|
16
|
-
|
|
17
|
+
declare function PopconfirmImpl(props: PopconfirmProps): JSX.Element;
|
|
18
|
+
export declare const Popconfirm: typeof PopconfirmImpl & typeof Popover;
|
|
17
19
|
//#endregion
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
1
3
|
import { Button } from "../button/index.mjs";
|
|
4
|
+
import { Popover as Popover$1 } from "../popover/index.mjs";
|
|
2
5
|
import { injectComponentStyle } from "@bysages/core";
|
|
3
|
-
import { createComponent, insert, spread, template } from "@solidjs/web";
|
|
6
|
+
import { createComponent, insert, mergeProps, spread, template } from "@solidjs/web";
|
|
4
7
|
import { createSignal, splitProps } from "solid-js";
|
|
5
8
|
import { Portal } from "solid-js/web";
|
|
6
9
|
import { Popover } from "@ark-ui/solid/popover";
|
|
@@ -13,7 +16,7 @@ var _tmpl$3 = /* @__PURE__ */ template(`<button>`);
|
|
|
13
16
|
* and cancellation are the caller's to act on — the panel closes
|
|
14
17
|
* either way. The children are the trigger's content, riding the
|
|
15
18
|
* machine-driven trigger button. */
|
|
16
|
-
function
|
|
19
|
+
function PopconfirmImpl(props) {
|
|
17
20
|
injectComponentStyle("popconfirm");
|
|
18
21
|
const [own, rest] = splitProps(props, [
|
|
19
22
|
"message",
|
|
@@ -23,12 +26,16 @@ function Popconfirm(props) {
|
|
|
23
26
|
"onCancel",
|
|
24
27
|
"children"
|
|
25
28
|
]);
|
|
29
|
+
const id = useElementId("popconfirm");
|
|
26
30
|
const [open, setOpen] = createSignal(false);
|
|
27
31
|
function settle(confirmed) {
|
|
28
32
|
setOpen(false);
|
|
29
33
|
(confirmed ? own.onConfirm : own.onCancel)?.();
|
|
30
34
|
}
|
|
31
|
-
return createComponent(Popover.Root, {
|
|
35
|
+
return createComponent(Popover.Root, mergeProps(rest, {
|
|
36
|
+
get id() {
|
|
37
|
+
return id();
|
|
38
|
+
},
|
|
32
39
|
get open() {
|
|
33
40
|
return open();
|
|
34
41
|
},
|
|
@@ -57,21 +64,21 @@ function Popconfirm(props) {
|
|
|
57
64
|
var _el$2 = _tmpl$2();
|
|
58
65
|
var _el$3 = _el$2.firstChild;
|
|
59
66
|
var _el$4 = _el$3.nextSibling;
|
|
60
|
-
insert(_el$2, createComponent(Button, {
|
|
67
|
+
insert(_el$2, createComponent(Popover.CloseTrigger, { asChild: (closeProps) => createComponent(Button, mergeProps(closeProps, {
|
|
61
68
|
variant: "ghost",
|
|
62
69
|
size: "sm",
|
|
63
70
|
onClick: () => settle(false),
|
|
64
71
|
get children() {
|
|
65
72
|
return own.cancelText ?? "Cancel";
|
|
66
73
|
}
|
|
67
|
-
}), _el$3);
|
|
68
|
-
insert(_el$2, createComponent(Button, {
|
|
74
|
+
})) }), _el$3);
|
|
75
|
+
insert(_el$2, createComponent(Popover.CloseTrigger, { asChild: (closeProps) => createComponent(Button, mergeProps(closeProps, {
|
|
69
76
|
size: "sm",
|
|
70
77
|
onClick: () => settle(true),
|
|
71
78
|
get children() {
|
|
72
79
|
return own.confirmText ?? "Confirm";
|
|
73
80
|
}
|
|
74
|
-
}), _el$4);
|
|
81
|
+
})) }), _el$4);
|
|
75
82
|
return _el$2;
|
|
76
83
|
})()];
|
|
77
84
|
}
|
|
@@ -79,7 +86,8 @@ function Popconfirm(props) {
|
|
|
79
86
|
} });
|
|
80
87
|
} })];
|
|
81
88
|
}
|
|
82
|
-
});
|
|
89
|
+
}));
|
|
83
90
|
}
|
|
91
|
+
const Popconfirm = defineFamily(PopconfirmImpl, Popover$1);
|
|
84
92
|
//#endregion
|
|
85
93
|
export { Popconfirm };
|
|
@@ -1,8 +1,26 @@
|
|
|
1
|
+
import { ComponentProps, JSX } from "solid-js";
|
|
1
2
|
import { Popover as Popover$1 } from "@ark-ui/solid/popover";
|
|
2
3
|
//#region src/components/popover/index.d.ts
|
|
3
4
|
/** Ark's Popover, dressed in the paper-and-ink system: a paper vessel that
|
|
4
5
|
* dissolves in on elevation, anchored to its trigger by a whisker arrow. The
|
|
5
6
|
* API is Ark's own — Root, Trigger, Anchor, Indicator, Positioner, Content,
|
|
6
7
|
* Title, Description, CloseTrigger, Arrow, ArrowTip. */
|
|
7
|
-
|
|
8
|
+
declare function PopoverRoot(props: ComponentProps<typeof Popover$1.Root>): JSX.Element;
|
|
9
|
+
type PopoverPlacement = "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
|
|
10
|
+
export interface PopoverFacadeProps {
|
|
11
|
+
open?: boolean;
|
|
12
|
+
defaultOpen?: boolean;
|
|
13
|
+
trigger?: string | Element;
|
|
14
|
+
content?: string;
|
|
15
|
+
label: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
placement?: PopoverPlacement;
|
|
19
|
+
children?: JSX.Element;
|
|
20
|
+
onOpenChange?: (open: boolean) => void;
|
|
21
|
+
}
|
|
22
|
+
declare function PopoverFacade(props: PopoverFacadeProps): JSX.Element;
|
|
23
|
+
export declare const Popover: typeof PopoverFacade & Omit<typeof Popover$1, "Root"> & {
|
|
24
|
+
Root: typeof PopoverRoot;
|
|
25
|
+
};
|
|
8
26
|
//#endregion
|
|
@@ -1,11 +1,100 @@
|
|
|
1
|
+
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { r as iconNode } from "../../icon-DTqmJCd5.mjs";
|
|
3
|
+
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
4
|
+
import { n as withElementProps, t as isElement } from "../../element-dGIhOTJ6.mjs";
|
|
1
5
|
import { injectComponentStyle } from "@bysages/core";
|
|
6
|
+
import { createComponent, insert, memo, mergeProps, template } from "@solidjs/web";
|
|
7
|
+
import { Show, createComponent as createComponent$1, mergeProps as mergeProps$1 } from "solid-js";
|
|
2
8
|
import { Popover as Popover$1 } from "@ark-ui/solid/popover";
|
|
3
|
-
//#region src/components/popover/index.
|
|
9
|
+
//#region src/components/popover/index.tsx
|
|
10
|
+
var _tmpl$ = /* @__PURE__ */ template(`<p>`);
|
|
4
11
|
/** Ark's Popover, dressed in the paper-and-ink system: a paper vessel that
|
|
5
12
|
* dissolves in on elevation, anchored to its trigger by a whisker arrow. The
|
|
6
13
|
* API is Ark's own — Root, Trigger, Anchor, Indicator, Positioner, Content,
|
|
7
14
|
* Title, Description, CloseTrigger, Arrow, ArrowTip. */
|
|
8
|
-
|
|
15
|
+
function PopoverRoot(props) {
|
|
16
|
+
const id = useElementId("popover", () => props.id);
|
|
17
|
+
return createComponent$1(Popover$1.Root, mergeProps$1(props, { get id() {
|
|
18
|
+
return id();
|
|
19
|
+
} }));
|
|
20
|
+
}
|
|
21
|
+
function PopoverFacade(props) {
|
|
22
|
+
injectComponentStyle("popover");
|
|
23
|
+
const triggerElement = () => isElement(props.trigger) ? props.trigger : void 0;
|
|
24
|
+
const triggerChildren = () => triggerElement() ? void 0 : props.trigger ?? props.label;
|
|
25
|
+
const triggerAsChild = (propsFn) => {
|
|
26
|
+
const trigger = triggerElement();
|
|
27
|
+
return trigger ? withElementProps(trigger, propsFn()) : props.trigger ?? props.label;
|
|
28
|
+
};
|
|
29
|
+
return createComponent(PopoverRoot, mergeProps(() => {
|
|
30
|
+
return props.open === void 0 ? {} : { open: props.open };
|
|
31
|
+
}, () => {
|
|
32
|
+
return props.defaultOpen === void 0 ? {} : { defaultOpen: props.defaultOpen };
|
|
33
|
+
}, () => {
|
|
34
|
+
return props.placement === void 0 ? {} : { positioning: { placement: props.placement } };
|
|
35
|
+
}, {
|
|
36
|
+
onOpenChange: (details) => props.onOpenChange?.(details.open),
|
|
37
|
+
get children() {
|
|
38
|
+
return [createComponent(Popover$1.Trigger, {
|
|
39
|
+
get disabled() {
|
|
40
|
+
return props.disabled;
|
|
41
|
+
},
|
|
42
|
+
get asChild() {
|
|
43
|
+
return triggerElement() ? triggerAsChild : void 0;
|
|
44
|
+
},
|
|
45
|
+
get children() {
|
|
46
|
+
return triggerChildren();
|
|
47
|
+
}
|
|
48
|
+
}), createComponent(Popover$1.Positioner, { get children() {
|
|
49
|
+
return createComponent(Popover$1.Content, { get children() {
|
|
50
|
+
return [
|
|
51
|
+
createComponent(Popover$1.CloseTrigger, {
|
|
52
|
+
"aria-label": "Close",
|
|
53
|
+
get children() {
|
|
54
|
+
return iconNode("x", {
|
|
55
|
+
width: "14",
|
|
56
|
+
height: "14"
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}),
|
|
60
|
+
createComponent(Popover$1.Title, { get children() {
|
|
61
|
+
return props.label;
|
|
62
|
+
} }),
|
|
63
|
+
createComponent(Show, {
|
|
64
|
+
get when() {
|
|
65
|
+
return props.description;
|
|
66
|
+
},
|
|
67
|
+
get children() {
|
|
68
|
+
return createComponent(Popover$1.Description, { get children() {
|
|
69
|
+
return props.description;
|
|
70
|
+
} });
|
|
71
|
+
}
|
|
72
|
+
}),
|
|
73
|
+
createComponent(Show, {
|
|
74
|
+
get when() {
|
|
75
|
+
return props.content;
|
|
76
|
+
},
|
|
77
|
+
get children() {
|
|
78
|
+
var _el$ = _tmpl$();
|
|
79
|
+
insert(_el$, () => {
|
|
80
|
+
return props.content;
|
|
81
|
+
});
|
|
82
|
+
return _el$;
|
|
83
|
+
}
|
|
84
|
+
}),
|
|
85
|
+
memo(() => {
|
|
86
|
+
return props.children;
|
|
87
|
+
})
|
|
88
|
+
];
|
|
89
|
+
} });
|
|
90
|
+
} })];
|
|
91
|
+
}
|
|
92
|
+
}));
|
|
93
|
+
}
|
|
94
|
+
const Popover = defineFamily(PopoverFacade, {
|
|
95
|
+
...Popover$1,
|
|
96
|
+
Root: PopoverRoot
|
|
97
|
+
});
|
|
9
98
|
injectComponentStyle("popover");
|
|
10
99
|
//#endregion
|
|
11
100
|
export { Popover };
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { PresenceProps, UsePresenceContext, UsePresenceProps, UsePresenceReturn, usePresence, usePresenceContext } from "@ark-ui/solid/presence";
|
|
2
|
+
//#region src/components/presence/index.d.ts
|
|
3
|
+
export declare const Presence: ((props: import("@ark-ui/solid/presence").PresenceProps) => import("solid-js").JSX.Element) & {
|
|
4
|
+
Root: (props: import("@ark-ui/solid/presence").PresenceProps) => import("solid-js").JSX.Element;
|
|
5
|
+
};
|
|
6
|
+
export declare const PresenceProvider: import("solid-js").ContextProviderComponent<import("@ark-ui/solid/presence").UsePresenceContext> & {
|
|
7
|
+
Root: import("solid-js").ContextProviderComponent<import("@ark-ui/solid/presence").UsePresenceContext>;
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { type PresenceProps, type UsePresenceContext, type UsePresenceProps, type UsePresenceReturn, usePresence, usePresenceContext };
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { Presence as Presence$1, PresenceProvider as PresenceProvider$1, usePresence, usePresenceContext } from "@ark-ui/solid/presence";
|
|
3
|
+
//#region src/components/presence/index.ts
|
|
4
|
+
/** Mount/unmount children in step with CSS presence animations — the
|
|
5
|
+
* engine behind Ark's "postpone unmounting so exit animations finish"
|
|
6
|
+
* contract, exposed for composites of our own. */
|
|
7
|
+
const Presence = withSelfRoot(Presence$1);
|
|
8
|
+
const PresenceProvider = withSelfRoot(PresenceProvider$1);
|
|
9
|
+
//#endregion
|
|
2
10
|
export { Presence, PresenceProvider, usePresence, usePresenceContext };
|
|
@@ -9,7 +9,7 @@ type ProgressOwnProps = {
|
|
|
9
9
|
size?: "sm" | "md" | "lg";
|
|
10
10
|
};
|
|
11
11
|
declare function ProgressRoot(props: ProgressRootProps & ProgressOwnProps): import("solid-js").JSX.Element;
|
|
12
|
-
export declare const Progress: Omit<typeof Progress$1, "Root"> & {
|
|
12
|
+
export declare const Progress: typeof ProgressRoot & Omit<typeof Progress$1, "Root"> & {
|
|
13
13
|
Root: typeof ProgressRoot;
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
1
3
|
import { injectComponentStyle } from "@bysages/core";
|
|
2
4
|
import { createComponent, mergeProps } from "@solidjs/web";
|
|
3
5
|
import { splitProps } from "solid-js";
|
|
@@ -5,14 +7,20 @@ import { Progress as Progress$1 } from "@ark-ui/solid/progress";
|
|
|
5
7
|
//#region src/components/progress/index.tsx
|
|
6
8
|
function ProgressRoot(props) {
|
|
7
9
|
const [own, rest] = splitProps(props, ["size"]);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
const id = useElementId("progress", () => rest.id);
|
|
11
|
+
return createComponent(Progress$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 Progress = {
|
|
20
|
+
const Progress = defineFamily(ProgressRoot, {
|
|
13
21
|
...Progress$1,
|
|
14
22
|
Root: ProgressRoot
|
|
15
|
-
};
|
|
23
|
+
});
|
|
16
24
|
injectComponentStyle("progress");
|
|
17
25
|
//#endregion
|
|
18
26
|
export { Progress };
|
|
@@ -18,5 +18,7 @@ export interface ProgressGroupProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
|
18
18
|
max?: number;
|
|
19
19
|
showLegend?: boolean;
|
|
20
20
|
}
|
|
21
|
-
export declare
|
|
21
|
+
export declare const ProgressGroup: ((props: ProgressGroupProps) => JSX.Element) & {
|
|
22
|
+
Root: (props: ProgressGroupProps) => JSX.Element;
|
|
23
|
+
};
|
|
22
24
|
//#endregion
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
1
2
|
import { injectComponentStyle } from "@bysages/core";
|
|
2
3
|
import { createComponent, effect, insert, setAttribute, setStyleProperty, spread, template } from "@solidjs/web";
|
|
3
4
|
import { For, Show, splitProps } from "solid-js";
|
|
@@ -6,7 +7,7 @@ var _tmpl$ = /* @__PURE__ */ template(`<div data-scope=progress-group data-part=
|
|
|
6
7
|
var _tmpl$2 = /* @__PURE__ */ template(`<div><div data-scope=progress-group data-part=track>`);
|
|
7
8
|
var _tmpl$3 = /* @__PURE__ */ template(`<div data-scope=progress-group data-part=segment role=progressbar aria-valuemin=0>`);
|
|
8
9
|
var _tmpl$4 = /* @__PURE__ */ template(`<div data-scope=progress-group data-part=legend-item><span data-scope=progress-group data-part=swatch aria-hidden=true></span><span data-scope=progress-group data-part=legend-label></span><span data-scope=progress-group data-part=legend-value>`);
|
|
9
|
-
function ProgressGroup(props) {
|
|
10
|
+
const ProgressGroup = withSelfRoot(function ProgressGroup(props) {
|
|
10
11
|
injectComponentStyle("progress-group");
|
|
11
12
|
const [own, rest] = splitProps(props, [
|
|
12
13
|
"segments",
|
|
@@ -44,7 +45,7 @@ function ProgressGroup(props) {
|
|
|
44
45
|
t !== _p$?.t && setAttribute(_el$4, "aria-valuenow", t);
|
|
45
46
|
a !== _p$?.a && setAttribute(_el$4, "aria-valuemax", a);
|
|
46
47
|
o !== _p$?.o && setAttribute(_el$4, "aria-label", o);
|
|
47
|
-
i !== _p$?.i && setStyleProperty(_el$4, "
|
|
48
|
+
i !== _p$?.i && setStyleProperty(_el$4, "--bs-progress-group-share", i);
|
|
48
49
|
});
|
|
49
50
|
return _el$4;
|
|
50
51
|
})()
|
|
@@ -79,6 +80,6 @@ function ProgressGroup(props) {
|
|
|
79
80
|
}
|
|
80
81
|
}), null);
|
|
81
82
|
return _el$;
|
|
82
|
-
}
|
|
83
|
+
});
|
|
83
84
|
//#endregion
|
|
84
85
|
export { ProgressGroup };
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { ComponentProps } from "solid-js";
|
|
1
2
|
import { QrCode as QrCode$1 } from "@ark-ui/solid/qr-code";
|
|
2
3
|
//#region src/components/qr-code/index.d.ts
|
|
3
4
|
/** Ark's QrCode, dressed in the paper-and-ink system: the pattern prints in
|
|
4
5
|
* ink on the page, with an optional paper badge and a seal-cut download
|
|
5
6
|
* control. The API is Ark's own — Root, Frame, Pattern, Overlay,
|
|
6
7
|
* DownloadTrigger. */
|
|
7
|
-
|
|
8
|
+
declare function QrCodeRoot(props: ComponentProps<typeof QrCode$1.Root>): import("solid-js").JSX.Element;
|
|
9
|
+
export declare const QrCode: typeof QrCodeRoot & Omit<typeof QrCode$1, "Root"> & {
|
|
10
|
+
Root: typeof QrCodeRoot;
|
|
11
|
+
};
|
|
8
12
|
//#endregion
|
|
@@ -1,11 +1,23 @@
|
|
|
1
|
+
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
1
3
|
import { injectComponentStyle } from "@bysages/core";
|
|
4
|
+
import { createComponent, mergeProps } from "solid-js";
|
|
2
5
|
import { QrCode as QrCode$1 } from "@ark-ui/solid/qr-code";
|
|
3
6
|
//#region src/components/qr-code/index.ts
|
|
4
7
|
/** Ark's QrCode, dressed in the paper-and-ink system: the pattern prints in
|
|
5
8
|
* ink on the page, with an optional paper badge and a seal-cut download
|
|
6
9
|
* control. The API is Ark's own — Root, Frame, Pattern, Overlay,
|
|
7
10
|
* DownloadTrigger. */
|
|
8
|
-
|
|
11
|
+
function QrCodeRoot(props) {
|
|
12
|
+
const id = useElementId("qr-code", () => props.id);
|
|
13
|
+
return createComponent(QrCode$1.Root, mergeProps(props, { get id() {
|
|
14
|
+
return id();
|
|
15
|
+
} }));
|
|
16
|
+
}
|
|
17
|
+
const QrCode = defineFamily(QrCodeRoot, {
|
|
18
|
+
...QrCode$1,
|
|
19
|
+
Root: QrCodeRoot
|
|
20
|
+
});
|
|
9
21
|
injectComponentStyle("qr-code");
|
|
10
22
|
//#endregion
|
|
11
23
|
export { QrCode };
|
|
@@ -9,7 +9,7 @@ type RadioGroupOwnProps = {
|
|
|
9
9
|
size?: "sm" | "md" | "lg";
|
|
10
10
|
};
|
|
11
11
|
declare function RadioGroupRoot(props: RadioGroupRootProps & RadioGroupOwnProps): import("solid-js").JSX.Element;
|
|
12
|
-
export declare const RadioGroup: Omit<typeof RadioGroup$1, "Root"> & {
|
|
12
|
+
export declare const RadioGroup: typeof RadioGroupRoot & Omit<typeof RadioGroup$1, "Root"> & {
|
|
13
13
|
Root: typeof RadioGroupRoot;
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
1
3
|
import { injectComponentStyle } from "@bysages/core";
|
|
2
4
|
import { createComponent, mergeProps } from "@solidjs/web";
|
|
3
5
|
import { splitProps } from "solid-js";
|
|
@@ -5,14 +7,20 @@ import { RadioGroup as RadioGroup$1 } from "@ark-ui/solid/radio-group";
|
|
|
5
7
|
//#region src/components/radio-group/index.tsx
|
|
6
8
|
function RadioGroupRoot(props) {
|
|
7
9
|
const [own, rest] = splitProps(props, ["size"]);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
const id = useElementId("radio-group", () => rest.id);
|
|
11
|
+
return createComponent(RadioGroup$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 RadioGroup = {
|
|
20
|
+
const RadioGroup = defineFamily(RadioGroupRoot, {
|
|
13
21
|
...RadioGroup$1,
|
|
14
22
|
Root: RadioGroupRoot
|
|
15
|
-
};
|
|
23
|
+
});
|
|
16
24
|
injectComponentStyle("radio-group");
|
|
17
25
|
//#endregion
|
|
18
26
|
export { RadioGroup };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RatingGroup as RatingGroup$1, RatingGroupRootProps } from "@ark-ui/solid/rating-group";
|
|
2
2
|
//#region src/components/rating-group/index.d.ts
|
|
3
3
|
/** Ark's RatingGroup, dressed in the paper-and-ink system: a row of quiet
|
|
4
|
-
* seals whose
|
|
4
|
+
* seals whose icons take the primary pigment as they light up. The API is
|
|
5
5
|
* Ark's own — Root, Label, Control, Item, HiddenInput (plus the Context and
|
|
6
6
|
* ItemContext render helpers). */
|
|
7
7
|
type RatingGroupOwnProps = {
|
|
@@ -9,7 +9,7 @@ type RatingGroupOwnProps = {
|
|
|
9
9
|
size?: "sm" | "md" | "lg";
|
|
10
10
|
};
|
|
11
11
|
declare function RatingGroupRoot(props: RatingGroupRootProps & RatingGroupOwnProps): import("solid-js").JSX.Element;
|
|
12
|
-
export declare const RatingGroup: Omit<typeof RatingGroup$1, "Root"> & {
|
|
12
|
+
export declare const RatingGroup: typeof RatingGroupRoot & Omit<typeof RatingGroup$1, "Root"> & {
|
|
13
13
|
Root: typeof RatingGroupRoot;
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
1
3
|
import { injectComponentStyle } from "@bysages/core";
|
|
2
4
|
import { createComponent, mergeProps } from "@solidjs/web";
|
|
3
5
|
import { splitProps } from "solid-js";
|
|
@@ -5,14 +7,20 @@ import { RatingGroup as RatingGroup$1 } from "@ark-ui/solid/rating-group";
|
|
|
5
7
|
//#region src/components/rating-group/index.tsx
|
|
6
8
|
function RatingGroupRoot(props) {
|
|
7
9
|
const [own, rest] = splitProps(props, ["size"]);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
const id = useElementId("rating-group", () => rest.id);
|
|
11
|
+
return createComponent(RatingGroup$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 RatingGroup = {
|
|
20
|
+
const RatingGroup = defineFamily(RatingGroupRoot, {
|
|
13
21
|
...RatingGroup$1,
|
|
14
22
|
Root: RatingGroupRoot
|
|
15
|
-
};
|
|
23
|
+
});
|
|
16
24
|
injectComponentStyle("rating-group");
|
|
17
25
|
//#endregion
|
|
18
26
|
export { RatingGroup };
|
|
@@ -12,7 +12,7 @@ export declare function ResultIcon(props: JSX.HTMLAttributes<HTMLDivElement>): J
|
|
|
12
12
|
/** A verdict drawn after the deed: the mark washes in the fixed
|
|
13
13
|
* pigment, the title rides the serif, and the extra carries the way
|
|
14
14
|
* onward. Any subset composes. */
|
|
15
|
-
export declare const Result: {
|
|
15
|
+
export declare const Result: typeof ResultRoot & {
|
|
16
16
|
Root: typeof ResultRoot;
|
|
17
17
|
Icon: typeof ResultIcon;
|
|
18
18
|
Title: (props: JSX.HTMLAttributes<HTMLElement>) => JSX.Element;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { t as iconBody } from "../../icon-DTqmJCd5.mjs";
|
|
1
3
|
import { injectComponentStyle } from "@bysages/core";
|
|
2
4
|
import { createComponent, effect, insert, mergeProps, spread, template } from "@solidjs/web";
|
|
3
5
|
import { splitProps } from "solid-js";
|
|
4
6
|
//#region src/components/result/index.tsx
|
|
5
7
|
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
6
8
|
var _tmpl$2 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round aria-hidden=true>`);
|
|
7
|
-
const MARK = { __html:
|
|
9
|
+
const MARK = { __html: `<g data-for="success">${iconBody("check")}</g><g data-for="warning">${iconBody("triangle-alert")}</g><g data-for="danger">${iconBody("circle-x")}</g><g data-for="info">${iconBody("info")}</g>` };
|
|
8
10
|
function ResultRoot(props) {
|
|
9
11
|
injectComponentStyle("result");
|
|
10
12
|
const [own, rest] = splitProps(props, ["status"]);
|
|
@@ -55,12 +57,12 @@ function part(name, tag) {
|
|
|
55
57
|
/** A verdict drawn after the deed: the mark washes in the fixed
|
|
56
58
|
* pigment, the title rides the serif, and the extra carries the way
|
|
57
59
|
* onward. Any subset composes. */
|
|
58
|
-
const Result = {
|
|
60
|
+
const Result = defineFamily(ResultRoot, {
|
|
59
61
|
Root: ResultRoot,
|
|
60
62
|
Icon: ResultIcon,
|
|
61
63
|
Title: part("title", "h3"),
|
|
62
64
|
Description: part("description", "p"),
|
|
63
65
|
Extra: part("extra", "div")
|
|
64
|
-
};
|
|
66
|
+
});
|
|
65
67
|
//#endregion
|
|
66
68
|
export { Result, ResultIcon, ResultRoot };
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import { ComponentProps } from "solid-js";
|
|
1
2
|
import { ScrollArea as ScrollArea$1 } from "@ark-ui/solid/scroll-area";
|
|
2
3
|
//#region src/components/scroll-area/index.d.ts
|
|
3
4
|
/** Ark's ScrollArea, dressed in the paper-and-ink system: native bars
|
|
4
5
|
* give way to quiet ink lanes that surface on hover and scroll. The API
|
|
5
6
|
* is Ark's own — Root, Viewport, Content, Scrollbar, Thumb, Corner. */
|
|
6
|
-
|
|
7
|
+
declare function ScrollAreaRoot(props: ComponentProps<typeof ScrollArea$1.Root>): import("solid-js").JSX.Element;
|
|
8
|
+
export declare const ScrollArea: typeof ScrollAreaRoot & Omit<typeof ScrollArea$1, "Root"> & {
|
|
9
|
+
Root: typeof ScrollAreaRoot;
|
|
10
|
+
};
|
|
7
11
|
//#endregion
|