@bysages/solid 0.4.4 → 0.5.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 +2 -2
- package/dist/ai-NX47X8sz.mjs +365 -0
- package/dist/ai-prompt-input-CEnnpkgi.mjs +486 -0
- package/dist/{ai-response-CJ-uEAgj.mjs → ai-response-BM_DVIDY.mjs} +25 -27
- package/dist/{chevron-BHQrYKPM.mjs → chevron-DGKPHc2O.mjs} +2 -3
- package/dist/components/accordion/index.d.mts +1 -2
- package/dist/components/accordion/index.mjs +9 -16
- package/dist/components/affix/index.d.mts +1 -3
- package/dist/components/affix/index.mjs +19 -18
- package/dist/components/ai/index.d.mts +95 -2
- package/dist/components/ai/index.mjs +7 -69
- package/dist/components/ai-action/index.d.mts +0 -2
- package/dist/components/ai-action/index.mjs +4 -5
- package/dist/components/ai-attachments/index.d.mts +0 -2
- package/dist/components/ai-attachments/index.mjs +39 -52
- package/dist/components/ai-message/index.d.mts +2 -15
- package/dist/components/ai-message/index.mjs +18 -15
- package/dist/components/ai-prompt-input/index.d.mts +19 -15
- package/dist/components/ai-prompt-input/index.mjs +1 -168
- package/dist/components/ai-reasoning/index.d.mts +0 -2
- package/dist/components/ai-reasoning/index.mjs +8 -13
- package/dist/components/ai-response/index.d.mts +1 -3
- package/dist/components/ai-response/index.mjs +1 -2
- package/dist/components/ai-source/index.d.mts +0 -2
- package/dist/components/ai-source/index.mjs +25 -26
- package/dist/components/ai-suggestion/index.d.mts +0 -2
- package/dist/components/ai-suggestion/index.mjs +3 -4
- package/dist/components/ai-tool/index.d.mts +2 -25
- package/dist/components/ai-tool/index.mjs +75 -40
- package/dist/components/alert/index.d.mts +1 -2
- package/dist/components/alert/index.mjs +38 -33
- package/dist/components/angle-slider/index.d.mts +1 -2
- package/dist/components/angle-slider/index.mjs +6 -9
- package/dist/components/aspect-ratio/index.d.mts +1 -3
- package/dist/components/aspect-ratio/index.mjs +18 -17
- package/dist/components/autocomplete/index.d.mts +1 -2
- package/dist/components/autocomplete/index.mjs +6 -8
- package/dist/components/avatar/index.d.mts +1 -2
- package/dist/components/avatar/index.mjs +6 -7
- package/dist/components/avatar-group/index.d.mts +1 -3
- package/dist/components/avatar-group/index.mjs +15 -14
- package/dist/components/back-top/index.d.mts +1 -3
- package/dist/components/back-top/index.mjs +29 -34
- package/dist/components/badge/index.d.mts +1 -3
- package/dist/components/badge/index.mjs +18 -17
- package/dist/components/banner/index.d.mts +1 -2
- package/dist/components/banner/index.mjs +32 -31
- package/dist/components/bento/index.d.mts +1 -3
- package/dist/components/bento/index.mjs +30 -31
- package/dist/components/block-ui/index.d.mts +1 -3
- package/dist/components/block-ui/index.mjs +30 -33
- package/dist/components/breadcrumb/index.d.mts +1 -2
- package/dist/components/breadcrumb/index.mjs +8 -13
- package/dist/components/browser/index.d.mts +1 -3
- package/dist/components/browser/index.mjs +50 -51
- package/dist/components/button/index.d.mts +1 -3
- package/dist/components/button/index.mjs +31 -30
- package/dist/components/button-group/index.d.mts +1 -3
- package/dist/components/button-group/index.mjs +21 -20
- package/dist/components/calendar/index.d.mts +0 -2
- package/dist/components/calendar/index.mjs +73 -116
- package/dist/components/card/index.d.mts +1 -3
- package/dist/components/card/index.mjs +3 -4
- package/dist/components/carousel/index.d.mts +1 -2
- package/dist/components/carousel/index.mjs +6 -7
- package/dist/components/cascade-select/index.d.mts +1 -3
- package/dist/components/cascade-select/index.mjs +127 -167
- package/dist/components/checkbox/index.d.mts +1 -2
- package/dist/components/checkbox/index.mjs +7 -10
- package/dist/components/checkbox-group/index.d.mts +1 -2
- package/dist/components/checkbox-group/index.mjs +9 -12
- package/dist/components/chip/index.d.mts +1 -3
- package/dist/components/chip/index.mjs +22 -25
- package/dist/components/client-only/index.d.mts +0 -2
- package/dist/components/client-only/index.mjs +2 -3
- package/dist/components/clipboard/index.d.mts +1 -2
- package/dist/components/clipboard/index.mjs +10 -17
- package/dist/components/collapsible/index.d.mts +1 -2
- package/dist/components/collapsible/index.mjs +7 -14
- package/dist/components/collection/index.mjs +1 -2
- package/dist/components/color-picker/index.d.mts +1 -2
- package/dist/components/color-picker/index.mjs +10 -14
- package/dist/components/combobox/index.d.mts +1 -2
- package/dist/components/combobox/index.mjs +9 -14
- package/dist/components/command/index.d.mts +1 -2
- package/dist/components/command/index.mjs +63 -80
- package/dist/components/comment/index.d.mts +1 -3
- package/dist/components/comment/index.mjs +64 -80
- package/dist/components/config-provider/index.d.mts +1 -3
- package/dist/components/config-provider/index.mjs +10 -13
- package/dist/components/container/index.d.mts +1 -3
- package/dist/components/container/index.mjs +18 -17
- package/dist/components/data-view/index.d.mts +1 -3
- package/dist/components/data-view/index.mjs +81 -90
- package/dist/components/date-input/index.d.mts +1 -2
- package/dist/components/date-input/index.mjs +6 -9
- package/dist/components/date-picker/index.d.mts +1 -2
- package/dist/components/date-picker/index.mjs +11 -16
- package/dist/components/deferred-content/index.d.mts +1 -3
- package/dist/components/deferred-content/index.mjs +24 -25
- package/dist/components/descriptions/index.d.mts +1 -2
- package/dist/components/descriptions/index.mjs +40 -39
- package/dist/components/dialog/index.d.mts +11 -2
- package/dist/components/dialog/index.mjs +78 -40
- package/dist/components/dock/index.d.mts +1 -3
- package/dist/components/dock/index.mjs +29 -30
- package/dist/components/download-trigger/index.d.mts +0 -2
- package/dist/components/download-trigger/index.mjs +2 -3
- package/dist/components/drawer/index.d.mts +1 -2
- package/dist/components/drawer/index.mjs +9 -18
- package/dist/components/dynamic-input/index.d.mts +1 -3
- package/dist/components/dynamic-input/index.mjs +73 -77
- package/dist/components/editable/index.d.mts +1 -2
- package/dist/components/editable/index.mjs +7 -10
- package/dist/components/ellipsis/index.d.mts +1 -3
- package/dist/components/ellipsis/index.mjs +21 -20
- package/dist/components/empty/index.d.mts +1 -3
- package/dist/components/empty/index.mjs +3 -4
- package/dist/components/field/index.d.mts +1 -2
- package/dist/components/field/index.mjs +4 -5
- package/dist/components/fieldset/index.d.mts +1 -2
- package/dist/components/fieldset/index.mjs +6 -9
- package/dist/components/file-upload/index.d.mts +1 -2
- package/dist/components/file-upload/index.mjs +6 -7
- package/dist/components/float-button/index.d.mts +1 -2
- package/dist/components/float-button/index.mjs +41 -43
- package/dist/components/floating-panel/index.d.mts +1 -2
- package/dist/components/floating-panel/index.mjs +10 -21
- package/dist/components/focus-trap/index.d.mts +0 -2
- package/dist/components/focus-trap/index.mjs +2 -3
- package/dist/components/form/index.d.mts +0 -2
- package/dist/components/form/index.mjs +42 -58
- package/dist/components/format/index.d.mts +1 -3
- package/dist/components/format/index.mjs +1 -2
- package/dist/components/frame/index.d.mts +1 -2
- package/dist/components/frame/index.mjs +3 -4
- package/dist/components/grid/index.d.mts +1 -3
- package/dist/components/grid/index.mjs +23 -22
- package/dist/components/highlight/index.d.mts +1 -3
- package/dist/components/highlight/index.mjs +2 -3
- package/dist/components/hover-card/index.d.mts +1 -2
- package/dist/components/hover-card/index.mjs +12 -27
- package/dist/components/icon/index.d.mts +1 -3
- package/dist/components/icon/index.mjs +35 -36
- package/dist/components/image/index.d.mts +1 -3
- package/dist/components/image/index.mjs +48 -52
- package/dist/components/image-cropper/index.d.mts +1 -2
- package/dist/components/image-cropper/index.mjs +5 -6
- package/dist/components/image-viewer/index.d.mts +1 -1
- package/dist/components/image-viewer/index.mjs +1 -2
- package/dist/components/input/index.d.mts +1 -3
- package/dist/components/input/index.mjs +1 -2
- package/dist/components/input-group/index.d.mts +1 -2
- package/dist/components/input-group/index.mjs +19 -16
- package/dist/components/json-tree-view/index.d.mts +1 -2
- package/dist/components/json-tree-view/index.mjs +5 -6
- package/dist/components/kbd/index.d.mts +1 -3
- package/dist/components/kbd/index.mjs +12 -11
- package/dist/components/layout/index.d.mts +1 -2
- package/dist/components/layout/index.mjs +92 -84
- package/dist/components/link/index.d.mts +1 -3
- package/dist/components/link/index.mjs +15 -15
- package/dist/components/list/index.d.mts +1 -2
- package/dist/components/list/index.mjs +57 -61
- package/dist/components/listbox/index.d.mts +1 -2
- package/dist/components/listbox/index.mjs +8 -11
- package/dist/components/marquee/index.d.mts +1 -2
- package/dist/components/marquee/index.mjs +7 -8
- package/dist/components/masonry/index.d.mts +1 -3
- package/dist/components/masonry/index.mjs +19 -18
- package/dist/components/media-player/index.d.mts +1 -1
- package/dist/components/media-player/index.mjs +1 -2
- package/dist/components/mentions/index.d.mts +2 -2
- package/dist/components/mentions/index.mjs +1 -3
- package/dist/components/menu/index.d.mts +1 -2
- package/dist/components/menu/index.mjs +8 -17
- package/dist/components/menubar/index.d.mts +1 -2
- package/dist/components/menubar/index.mjs +66 -72
- package/dist/components/meter/index.d.mts +1 -2
- package/dist/components/meter/index.mjs +42 -43
- package/dist/components/navigation-menu/index.d.mts +1 -2
- package/dist/components/navigation-menu/index.mjs +7 -12
- package/dist/components/number-input/index.d.mts +1 -2
- package/dist/components/number-input/index.mjs +7 -10
- package/dist/components/order-list/index.d.mts +1 -3
- package/dist/components/order-list/index.mjs +86 -101
- package/dist/components/page-header/index.d.mts +1 -3
- package/dist/components/page-header/index.mjs +3 -4
- package/dist/components/pagination/index.d.mts +1 -2
- package/dist/components/pagination/index.mjs +31 -42
- package/dist/components/password-input/index.d.mts +1 -2
- package/dist/components/password-input/index.mjs +6 -7
- package/dist/components/pin-input/index.d.mts +1 -2
- package/dist/components/pin-input/index.mjs +6 -9
- package/dist/components/popconfirm/index.d.mts +2 -3
- package/dist/components/popconfirm/index.mjs +15 -23
- package/dist/components/popover/index.d.mts +2 -26
- package/dist/components/popover/index.mjs +10 -21
- package/dist/components/presence/index.d.mts +0 -2
- package/dist/components/presence/index.mjs +2 -3
- package/dist/components/progress/index.d.mts +1 -2
- package/dist/components/progress/index.mjs +14 -26
- package/dist/components/progress-group/index.d.mts +1 -3
- package/dist/components/progress-group/index.mjs +60 -68
- package/dist/components/qr-code/index.d.mts +1 -2
- package/dist/components/qr-code/index.mjs +5 -8
- package/dist/components/radio-group/index.d.mts +1 -2
- package/dist/components/radio-group/index.mjs +6 -9
- package/dist/components/rating-group/index.d.mts +1 -2
- package/dist/components/rating-group/index.mjs +7 -10
- package/dist/components/result/index.d.mts +1 -2
- package/dist/components/result/index.mjs +28 -29
- package/dist/components/scroll-area/index.d.mts +8 -3
- package/dist/components/scroll-area/index.mjs +19 -11
- package/dist/components/segment-group/index.d.mts +1 -2
- package/dist/components/segment-group/index.mjs +5 -8
- package/dist/components/select/index.d.mts +1 -1
- package/dist/components/select/index.mjs +1 -2
- package/dist/components/separator/index.d.mts +1 -3
- package/dist/components/separator/index.mjs +21 -20
- package/dist/components/signature-pad/index.d.mts +1 -2
- package/dist/components/signature-pad/index.mjs +7 -10
- package/dist/components/skeleton/index.d.mts +1 -3
- package/dist/components/skeleton/index.mjs +12 -11
- package/dist/components/slider/index.d.mts +1 -2
- package/dist/components/slider/index.mjs +6 -9
- package/dist/components/spinner/index.d.mts +1 -3
- package/dist/components/spinner/index.mjs +20 -19
- package/dist/components/split-button/index.d.mts +1 -2
- package/dist/components/split-button/index.mjs +92 -94
- package/dist/components/splitter/index.d.mts +1 -2
- package/dist/components/splitter/index.mjs +5 -8
- package/dist/components/spotlight/index.d.mts +1 -3
- package/dist/components/spotlight/index.mjs +22 -23
- package/dist/components/stack/index.d.mts +1 -3
- package/dist/components/stack/index.mjs +24 -23
- package/dist/components/stat/index.d.mts +1 -2
- package/dist/components/stat/index.mjs +15 -14
- package/dist/components/steps/index.d.mts +0 -2
- package/dist/components/steps/index.mjs +10 -17
- package/dist/components/swap/index.d.mts +1 -2
- package/dist/components/swap/index.mjs +5 -6
- package/dist/components/switch/index.d.mts +1 -2
- package/dist/components/switch/index.mjs +6 -9
- package/dist/components/table/index.d.mts +0 -2
- package/dist/components/table/index.mjs +233 -320
- package/dist/components/tabs/index.d.mts +8 -12
- package/dist/components/tabs/index.mjs +83 -34
- package/dist/components/tag/index.d.mts +1 -2
- package/dist/components/tag/index.mjs +46 -70
- package/dist/components/tags-input/index.d.mts +1 -2
- package/dist/components/tags-input/index.mjs +7 -10
- package/dist/components/terminal/index.d.mts +3 -3
- package/dist/components/terminal/index.mjs +61 -56
- package/dist/components/textarea/index.d.mts +1 -3
- package/dist/components/textarea/index.mjs +10 -11
- package/dist/components/timeline/index.d.mts +1 -2
- package/dist/components/timeline/index.mjs +15 -14
- package/dist/components/timer/index.d.mts +1 -2
- package/dist/components/timer/index.mjs +5 -6
- package/dist/components/toast/index.d.mts +0 -2
- package/dist/components/toast/index.mjs +5 -6
- package/dist/components/toc/index.d.mts +1 -1
- package/dist/components/toc/index.mjs +1 -2
- package/dist/components/toggle/index.d.mts +1 -2
- package/dist/components/toggle/index.mjs +5 -6
- package/dist/components/toggle-group/index.d.mts +1 -2
- package/dist/components/toggle-group/index.mjs +11 -16
- package/dist/components/toolbar/index.d.mts +1 -3
- package/dist/components/toolbar/index.mjs +27 -31
- package/dist/components/tooltip/index.d.mts +1 -2
- package/dist/components/tooltip/index.mjs +7 -16
- package/dist/components/tour/index.d.mts +0 -2
- package/dist/components/tour/index.mjs +11 -16
- package/dist/components/transfer/index.d.mts +1 -2
- package/dist/components/transfer/index.mjs +115 -126
- package/dist/components/tree-select/index.d.mts +2 -3
- package/dist/components/tree-select/index.mjs +24 -33
- package/dist/components/tree-view/index.d.mts +10 -4
- package/dist/components/tree-view/index.mjs +32 -23
- package/dist/components/typography/index.d.mts +2 -3
- package/dist/components/typography/index.mjs +4 -4
- package/dist/components/user/index.d.mts +1 -3
- package/dist/components/user/index.mjs +40 -57
- package/dist/components/virtual-list/index.d.mts +1 -3
- package/dist/components/virtual-list/index.mjs +39 -45
- package/dist/components/watermark/index.d.mts +1 -3
- package/dist/components/watermark/index.mjs +15 -22
- package/dist/{element-dGIhOTJ6.mjs → element-liigPBUh.mjs} +1 -2
- package/dist/{family-Cmd8HEyK.mjs → family-B5HtE0on.mjs} +1 -2
- package/dist/generative/index.d.mts +0 -2
- package/dist/generative/index.mjs +28 -53
- package/dist/{icon-DTqmJCd5.mjs → icon-DQqYA2fO.mjs} +11 -17
- package/dist/{id-2ygNzPHF.mjs → id-DGvz-2rQ.mjs} +1 -2
- package/dist/{image-viewer-19s75Hz_.mjs → image-viewer-TEia4PaY.mjs} +73 -101
- package/dist/{index-BU5U5w04.d.mts → index-B4WyTngM.d.mts} +0 -4
- package/dist/index-BRvSfkKs.d.mts +25 -0
- package/dist/{index-DhripUtf.d.mts → index-CTsFsYdA.d.mts} +0 -4
- package/dist/index-CutrHCzU.d.mts +153 -0
- package/dist/{index-wW28BYf1.d.mts → index-CwmZdzxT.d.mts} +0 -8
- package/dist/index-DK7YgaAU.d.mts +37 -0
- package/dist/index-Dms00480.d.mts +115 -0
- package/dist/{index-ID48LCMU.d.mts → index-Dv6mwzIr.d.mts} +3 -7
- package/dist/index.d.mts +13 -13
- package/dist/index.mjs +12 -12
- package/dist/{input-BL3N3L8g.mjs → input-2xfPP-7Z.mjs} +11 -13
- package/dist/{media-player-yF7KVUxM.mjs → media-player-LHnTiSiN.mjs} +248 -259
- package/dist/mentions-CvY9IGzc.mjs +438 -0
- package/dist/{select-DI7pFspF.mjs → select-NaNlrYUT.mjs} +72 -96
- package/dist/{toc-DRHr8_eD.mjs → toc-RnPG3w7q.mjs} +5 -7
- package/dist/{use-component-messages-C4SCVYjD.mjs → use-component-messages-DS9ppb4C.mjs} +1 -2
- package/package.json +13 -13
- package/dist/index-DEArHiFI.d.mts +0 -104
- package/dist/index-DVc1L_zt.d.mts +0 -10435
- package/dist/mentions-DKUG7eHt.mjs +0 -279
|
@@ -1,27 +1,36 @@
|
|
|
1
|
-
import { t as defineFamily } from "../../family-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
3
|
-
import { createComponent } from "
|
|
1
|
+
import { t as defineFamily } from "../../family-B5HtE0on.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-DGvz-2rQ.mjs";
|
|
3
|
+
import { createComponent } from "solid-js/web";
|
|
4
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
|
-
import { For, createComponent as createComponent$1, mergeProps as mergeProps$1 } from "solid-js";
|
|
5
|
+
import { For, createComponent as createComponent$1, mergeProps as mergeProps$1, splitProps } from "solid-js";
|
|
6
6
|
import { ScrollArea as ScrollArea$1 } from "@ark-ui/solid/scroll-area";
|
|
7
|
-
|
|
7
|
+
// src/components/scroll-area/index.tsx
|
|
8
8
|
/** Ark's ScrollArea, dressed in the paper-and-ink system: native bars
|
|
9
9
|
* give way to quiet ink lanes that surface on hover and scroll. The API
|
|
10
10
|
* is Ark's own — Root, Viewport, Content, Scrollbar, Thumb, Corner. */
|
|
11
11
|
function ScrollAreaRoot(props) {
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
const [own, rest] = splitProps(props, ["fade"]);
|
|
13
|
+
const id = useElementId("scroll-area", () => rest.id);
|
|
14
|
+
return createComponent$1(ScrollArea$1.Root, mergeProps$1(rest, {
|
|
15
|
+
get id() {
|
|
16
|
+
return id();
|
|
17
|
+
},
|
|
18
|
+
get "data-fade"() {
|
|
19
|
+
return own.fade;
|
|
20
|
+
}
|
|
21
|
+
}));
|
|
16
22
|
}
|
|
17
23
|
/** The complete scroll vessel around caller content, with one or both quiet
|
|
18
24
|
* lanes depending on orientation. */
|
|
19
25
|
function ScrollAreaFacade(props) {
|
|
20
26
|
const orientations = () => props.orientation === "both" ? ["vertical", "horizontal"] : [props.orientation ?? "vertical"];
|
|
21
27
|
return createComponent(ScrollAreaRoot, {
|
|
22
|
-
get "class"() {
|
|
28
|
+
get ["class"]() {
|
|
23
29
|
return props.class;
|
|
24
30
|
},
|
|
31
|
+
get fade() {
|
|
32
|
+
return props.fade;
|
|
33
|
+
},
|
|
25
34
|
get children() {
|
|
26
35
|
return [
|
|
27
36
|
createComponent(ScrollArea$1.Viewport, { get children() {
|
|
@@ -50,5 +59,4 @@ const ScrollArea = defineFamily(ScrollAreaFacade, {
|
|
|
50
59
|
Root: ScrollAreaRoot
|
|
51
60
|
});
|
|
52
61
|
injectComponentStyle("scroll-area");
|
|
53
|
-
//#endregion
|
|
54
62
|
export { ScrollArea };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SegmentGroup as SegmentGroup$1, SegmentGroupRootProps } from "@ark-ui/solid/segment-group";
|
|
2
|
-
//#region src/components/segment-group/index.d.ts
|
|
3
2
|
type SegmentGroupOwnProps = {
|
|
4
3
|
/** One rung of the control-height ladder for the segments. The
|
|
5
4
|
* family keeps its compact register, so the rungs sit one notch
|
|
@@ -37,4 +36,4 @@ type SegmentGroupParts = Omit<typeof SegmentGroup$1, "Root"> & {
|
|
|
37
36
|
Root: typeof SegmentGroupRoot;
|
|
38
37
|
};
|
|
39
38
|
export declare const SegmentGroup: typeof SegmentGroupFacade & SegmentGroupParts;
|
|
40
|
-
|
|
39
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as defineFamily } from "../../family-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
3
|
-
import { createComponent, mergeProps } from "
|
|
1
|
+
import { t as defineFamily } from "../../family-B5HtE0on.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-DGvz-2rQ.mjs";
|
|
3
|
+
import { createComponent, mergeProps } from "solid-js/web";
|
|
4
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { For, Show, createComponent as createComponent$1, mergeProps as mergeProps$1, splitProps } from "solid-js";
|
|
6
6
|
import { SegmentGroup as SegmentGroup$1 } from "@ark-ui/solid/segment-group";
|
|
7
|
-
|
|
7
|
+
// src/components/segment-group/index.tsx
|
|
8
8
|
function SegmentGroupRoot(props) {
|
|
9
9
|
const [own, rest] = splitProps(props, ["size"]);
|
|
10
10
|
const id = useElementId("segment-group", () => rest.id);
|
|
@@ -35,9 +35,7 @@ function SegmentGroupFacade(props) {
|
|
|
35
35
|
get defaultValue() {
|
|
36
36
|
return props.defaultValue;
|
|
37
37
|
}
|
|
38
|
-
}, () => {
|
|
39
|
-
return props.value === void 0 ? {} : { value: props.value };
|
|
40
|
-
}, {
|
|
38
|
+
}, () => props.value === void 0 ? {} : { value: props.value }, {
|
|
41
39
|
onValueChange: (details) => props.onValueChange?.(details.value ?? ""),
|
|
42
40
|
get children() {
|
|
43
41
|
return [
|
|
@@ -83,5 +81,4 @@ const SegmentGroup = defineFamily(SegmentGroupFacade, {
|
|
|
83
81
|
Root: SegmentGroupRoot
|
|
84
82
|
});
|
|
85
83
|
injectComponentStyle("segment-group");
|
|
86
|
-
//#endregion
|
|
87
84
|
export { SegmentGroup };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as NativeSelectProps, i as NativeSelectOption, n as SelectFacadeProps, r as NativeSelect, t as Select } from "../../index-
|
|
1
|
+
import { a as NativeSelectProps, i as NativeSelectOption, n as SelectFacadeProps, r as NativeSelect, t as Select } from "../../index-Dv6mwzIr.mjs";
|
|
2
2
|
export { NativeSelect, type NativeSelectOption, type NativeSelectProps, Select, SelectFacadeProps };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { NativeSelect, Select };
|
|
1
|
+
export { n as NativeSelect, t as Select } from "../../select-NaNlrYUT.mjs";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JSX } from "solid-js";
|
|
2
|
-
//#region src/components/separator/index.d.ts
|
|
3
2
|
/** The paper-ink hairline as a component: a named rule between sections.
|
|
4
3
|
* Decorative separators drop the separator role, since the page reads
|
|
5
4
|
* fine without them. */
|
|
@@ -9,5 +8,4 @@ export interface SeparatorProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
|
9
8
|
}
|
|
10
9
|
export declare const Separator: ((props: SeparatorProps) => JSX.Element) & {
|
|
11
10
|
Root: (props: SeparatorProps) => JSX.Element;
|
|
12
|
-
};
|
|
13
|
-
//#endregion
|
|
11
|
+
};
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { n as withSelfRoot } from "../../family-
|
|
2
|
-
import { spread, template } from "
|
|
1
|
+
import { n as withSelfRoot } from "../../family-B5HtE0on.mjs";
|
|
2
|
+
import { memo, mergeProps, spread, template } from "solid-js/web";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { splitProps } from "solid-js";
|
|
5
|
-
|
|
6
|
-
var _tmpl$ =
|
|
5
|
+
// src/components/separator/index.tsx
|
|
6
|
+
var _tmpl$ = /*#__PURE__*/ template(`<div>`);
|
|
7
7
|
const Separator = withSelfRoot(function Separator(props) {
|
|
8
8
|
injectComponentStyle("separator");
|
|
9
9
|
const [own, rest] = splitProps(props, ["orientation", "decorative"]);
|
|
10
10
|
const orientation = () => own.orientation ?? "horizontal";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
11
|
+
return (() => {
|
|
12
|
+
var _el$ = _tmpl$();
|
|
13
|
+
spread(_el$, mergeProps(rest, {
|
|
14
|
+
get role() {
|
|
15
|
+
return own.decorative ? "none" : "separator";
|
|
16
|
+
},
|
|
17
|
+
"data-scope": "separator",
|
|
18
|
+
"data-part": "root",
|
|
19
|
+
get ["data-orientation"]() {
|
|
20
|
+
return orientation();
|
|
21
|
+
},
|
|
22
|
+
get ["aria-orientation"]() {
|
|
23
|
+
return memo(() => !!own.decorative)() ? void 0 : orientation();
|
|
24
|
+
}
|
|
25
|
+
}), false, false);
|
|
26
|
+
return _el$;
|
|
27
|
+
})();
|
|
26
28
|
});
|
|
27
|
-
//#endregion
|
|
28
29
|
export { Separator };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "solid-js";
|
|
2
2
|
import { SignaturePad as SignaturePad$1 } from "@ark-ui/solid/signature-pad";
|
|
3
|
-
//#region src/components/signature-pad/index.d.ts
|
|
4
3
|
/** Ark's SignaturePad, dressed in the paper-and-ink system: a quiet paper
|
|
5
4
|
* field with a guide hairline where ink — real ink strokes — is laid down.
|
|
6
5
|
* The API is Ark's own — Root, Label, Control, Segment, SegmentPath, Guide,
|
|
@@ -24,4 +23,4 @@ type SignaturePadParts = Omit<typeof SignaturePad$1, "Root"> & {
|
|
|
24
23
|
Root: typeof SignaturePadRoot;
|
|
25
24
|
};
|
|
26
25
|
export declare const SignaturePad: typeof SignaturePadFacade & SignaturePadParts;
|
|
27
|
-
|
|
26
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as defineFamily } from "../../family-
|
|
2
|
-
import { r as iconNode } from "../../icon-
|
|
3
|
-
import { t as useElementId } from "../../id-
|
|
4
|
-
import { createComponent, mergeProps } from "
|
|
1
|
+
import { t as defineFamily } from "../../family-B5HtE0on.mjs";
|
|
2
|
+
import { r as iconNode } from "../../icon-DQqYA2fO.mjs";
|
|
3
|
+
import { t as useElementId } from "../../id-DGvz-2rQ.mjs";
|
|
4
|
+
import { createComponent, mergeProps } from "solid-js/web";
|
|
5
5
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
6
6
|
import { Show, createComponent as createComponent$1, mergeProps as mergeProps$1 } from "solid-js";
|
|
7
7
|
import { SignaturePad as SignaturePad$1 } from "@ark-ui/solid/signature-pad";
|
|
8
|
-
|
|
8
|
+
// src/components/signature-pad/index.tsx
|
|
9
9
|
/** Ark's SignaturePad, dressed in the paper-and-ink system: a quiet paper
|
|
10
10
|
* field with a guide hairline where ink — real ink strokes — is laid down.
|
|
11
11
|
* The API is Ark's own — Root, Label, Control, Segment, SegmentPath, Guide,
|
|
@@ -28,12 +28,10 @@ function SignaturePadFacade(props) {
|
|
|
28
28
|
get defaultPaths() {
|
|
29
29
|
return props.defaultValue;
|
|
30
30
|
},
|
|
31
|
-
get "data-invalid"() {
|
|
31
|
+
get ["data-invalid"]() {
|
|
32
32
|
return props.invalid || void 0;
|
|
33
33
|
}
|
|
34
|
-
}, () => {
|
|
35
|
-
return props.value === void 0 ? {} : { paths: props.value };
|
|
36
|
-
}, {
|
|
34
|
+
}, () => props.value === void 0 ? {} : { paths: props.value }, {
|
|
37
35
|
onDraw: (details) => props.onValueChange?.(details.paths),
|
|
38
36
|
get children() {
|
|
39
37
|
return [
|
|
@@ -78,5 +76,4 @@ const SignaturePad = defineFamily(SignaturePadFacade, {
|
|
|
78
76
|
Root: SignaturePadRoot
|
|
79
77
|
});
|
|
80
78
|
injectComponentStyle("signature-pad");
|
|
81
|
-
//#endregion
|
|
82
79
|
export { SignaturePad };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { JSX } from "solid-js";
|
|
2
|
-
//#region src/components/skeleton/index.d.ts
|
|
3
2
|
/** A waiting sheet of unset paper. Size it from the outside; the breath
|
|
4
3
|
* is the component's own. */
|
|
5
4
|
export type SkeletonProps = JSX.HTMLAttributes<HTMLDivElement>;
|
|
6
5
|
export declare const Skeleton: ((props: SkeletonProps) => JSX.Element) & {
|
|
7
6
|
Root: (props: SkeletonProps) => JSX.Element;
|
|
8
|
-
};
|
|
9
|
-
//#endregion
|
|
7
|
+
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { n as withSelfRoot } from "../../family-
|
|
2
|
-
import { spread, template } from "
|
|
1
|
+
import { n as withSelfRoot } from "../../family-B5HtE0on.mjs";
|
|
2
|
+
import { mergeProps, spread, template } from "solid-js/web";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
|
-
|
|
5
|
-
var _tmpl$ =
|
|
4
|
+
// src/components/skeleton/index.tsx
|
|
5
|
+
var _tmpl$ = /*#__PURE__*/ template(`<div>`);
|
|
6
6
|
const Skeleton = withSelfRoot(function Skeleton(props) {
|
|
7
7
|
injectComponentStyle("skeleton");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
return (() => {
|
|
9
|
+
var _el$ = _tmpl$();
|
|
10
|
+
spread(_el$, mergeProps(props, {
|
|
11
|
+
"data-scope": "skeleton",
|
|
12
|
+
"data-part": "root"
|
|
13
|
+
}), false, false);
|
|
14
|
+
return _el$;
|
|
15
|
+
})();
|
|
14
16
|
});
|
|
15
|
-
//#endregion
|
|
16
17
|
export { Skeleton };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Slider as Slider$1, SliderRootProps } from "@ark-ui/solid/slider";
|
|
2
|
-
//#region src/components/slider/index.d.ts
|
|
3
2
|
/** Ark's Slider, dressed in the paper-and-ink system: a recessed track the
|
|
4
3
|
* primary ink runs along, a paper-seal thumb, and hairline tick markers.
|
|
5
4
|
* The API is Ark's own — Root, Label, ValueText, Control, Track, Range,
|
|
@@ -31,4 +30,4 @@ type SliderParts = Omit<typeof Slider$1, "Root"> & {
|
|
|
31
30
|
Root: typeof SliderRoot;
|
|
32
31
|
};
|
|
33
32
|
export declare const Slider: typeof SliderFacade & SliderParts;
|
|
34
|
-
|
|
33
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as defineFamily } from "../../family-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
3
|
-
import { createComponent, mergeProps } from "
|
|
1
|
+
import { t as defineFamily } from "../../family-B5HtE0on.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-DGvz-2rQ.mjs";
|
|
3
|
+
import { createComponent, mergeProps } from "solid-js/web";
|
|
4
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { Show, splitProps } from "solid-js";
|
|
6
6
|
import { Slider as Slider$1 } from "@ark-ui/solid/slider";
|
|
7
|
-
|
|
7
|
+
// src/components/slider/index.tsx
|
|
8
8
|
function SliderRoot(props) {
|
|
9
9
|
const [own, rest] = splitProps(props, ["size"]);
|
|
10
10
|
const id = useElementId("slider", () => rest.id);
|
|
@@ -12,7 +12,7 @@ function SliderRoot(props) {
|
|
|
12
12
|
get id() {
|
|
13
13
|
return id();
|
|
14
14
|
},
|
|
15
|
-
get "data-size"() {
|
|
15
|
+
get ["data-size"]() {
|
|
16
16
|
return own.size ?? "md";
|
|
17
17
|
}
|
|
18
18
|
}));
|
|
@@ -48,9 +48,7 @@ function SliderFacade(props) {
|
|
|
48
48
|
get defaultValue() {
|
|
49
49
|
return [props.defaultValue ?? 50];
|
|
50
50
|
}
|
|
51
|
-
}, () => {
|
|
52
|
-
return props.value === void 0 ? {} : { value: [props.value] };
|
|
53
|
-
}, {
|
|
51
|
+
}, () => props.value === void 0 ? {} : { value: [props.value] }, {
|
|
54
52
|
onValueChange: (details) => props.onValueChange?.(details.value.at(0) ?? props.min ?? 0),
|
|
55
53
|
get children() {
|
|
56
54
|
return [
|
|
@@ -86,5 +84,4 @@ const Slider = defineFamily(SliderFacade, {
|
|
|
86
84
|
Root: SliderRoot
|
|
87
85
|
});
|
|
88
86
|
injectComponentStyle("slider");
|
|
89
|
-
//#endregion
|
|
90
87
|
export { Slider };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JSX } from "solid-js";
|
|
2
|
-
//#region src/components/spinner/index.d.ts
|
|
3
2
|
export interface SpinnerProps extends JSX.HTMLAttributes<HTMLElement> {
|
|
4
3
|
size?: "sm" | "md" | "lg";
|
|
5
4
|
}
|
|
@@ -7,5 +6,4 @@ export interface SpinnerProps extends JSX.HTMLAttributes<HTMLElement> {
|
|
|
7
6
|
* default — it reports progress without claiming attention. */
|
|
8
7
|
export declare const Spinner: ((props: SpinnerProps) => JSX.Element) & {
|
|
9
8
|
Root: (props: SpinnerProps) => JSX.Element;
|
|
10
|
-
};
|
|
11
|
-
//#endregion
|
|
9
|
+
};
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { n as withSelfRoot } from "../../family-
|
|
2
|
-
import { n as useComponentMessages } from "../../use-component-messages-
|
|
3
|
-
import { spread, template } from "
|
|
1
|
+
import { n as withSelfRoot } from "../../family-B5HtE0on.mjs";
|
|
2
|
+
import { n as useComponentMessages } from "../../use-component-messages-DS9ppb4C.mjs";
|
|
3
|
+
import { mergeProps, spread, template } from "solid-js/web";
|
|
4
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { splitProps } from "solid-js";
|
|
6
|
-
|
|
7
|
-
var _tmpl$ =
|
|
6
|
+
// src/components/spinner/index.tsx
|
|
7
|
+
var _tmpl$ = /*#__PURE__*/ template(`<span><svg viewBox="0 0 24 24"fill=none aria-hidden=true><circle cx=12 cy=12 r=9 stroke=currentColor stroke-opacity=0.2 stroke-width=2.5></circle><path d="M21 12a9 9 0 0 0-9-9"stroke=currentColor stroke-width=2.5 stroke-linecap=round>`);
|
|
8
8
|
/** A wheel of waiting: one arc of ink turning about its center. Quiet by
|
|
9
9
|
* default — it reports progress without claiming attention. */
|
|
10
10
|
const Spinner = withSelfRoot(function Spinner(props) {
|
|
11
11
|
injectComponentStyle("spinner");
|
|
12
12
|
const [own, rest] = splitProps(props, ["size"]);
|
|
13
13
|
const messages = useComponentMessages();
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
14
|
+
return (() => {
|
|
15
|
+
var _el$ = _tmpl$();
|
|
16
|
+
spread(_el$, mergeProps(rest, {
|
|
17
|
+
"role": "status",
|
|
18
|
+
get ["aria-label"]() {
|
|
19
|
+
return rest["aria-label"] ?? messages().spinner.loading;
|
|
20
|
+
},
|
|
21
|
+
"data-scope": "spinner",
|
|
22
|
+
"data-part": "root",
|
|
23
|
+
get ["data-size"]() {
|
|
24
|
+
return own.size ?? "md";
|
|
25
|
+
}
|
|
26
|
+
}), false, true);
|
|
27
|
+
return _el$;
|
|
28
|
+
})();
|
|
27
29
|
});
|
|
28
|
-
//#endregion
|
|
29
30
|
export { Spinner };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Menu } from "../menu/index.mjs";
|
|
2
2
|
import { JSX } from "solid-js";
|
|
3
|
-
//#region src/components/split-button/index.d.ts
|
|
4
3
|
export interface SplitButtonEntry {
|
|
5
4
|
label: string;
|
|
6
5
|
/** Handed back with `onSelect` when the entry is chosen. */
|
|
@@ -35,4 +34,4 @@ export interface SplitButtonProps extends Omit<JSX.HTMLAttributes<HTMLDivElement
|
|
|
35
34
|
*/
|
|
36
35
|
declare function SplitButtonImpl(props: SplitButtonProps): JSX.Element;
|
|
37
36
|
export declare const SplitButton: typeof SplitButtonImpl & typeof Menu;
|
|
38
|
-
|
|
37
|
+
export {};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { t as defineFamily } from "../../family-
|
|
2
|
-
import { r as iconNode } from "../../icon-
|
|
3
|
-
import { t as useElementId } from "../../id-
|
|
1
|
+
import { t as defineFamily } from "../../family-B5HtE0on.mjs";
|
|
2
|
+
import { r as iconNode } from "../../icon-DQqYA2fO.mjs";
|
|
3
|
+
import { t as useElementId } from "../../id-DGvz-2rQ.mjs";
|
|
4
4
|
import { Button } from "../button/index.mjs";
|
|
5
|
-
import { n as useComponentMessages } from "../../use-component-messages-
|
|
5
|
+
import { n as useComponentMessages } from "../../use-component-messages-DS9ppb4C.mjs";
|
|
6
6
|
import { Menu as Menu$1 } from "../menu/index.mjs";
|
|
7
|
-
import { createComponent, insert, spread, template } from "
|
|
7
|
+
import { Portal, createComponent, insert, mergeProps, spread, template } from "solid-js/web";
|
|
8
8
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
9
9
|
import { For, splitProps } from "solid-js";
|
|
10
|
-
import { Portal } from "solid-js/web";
|
|
11
10
|
import { Menu } from "@ark-ui/solid/menu";
|
|
12
|
-
|
|
13
|
-
var _tmpl$ =
|
|
14
|
-
var _tmpl$2 =
|
|
11
|
+
// src/components/split-button/index.tsx
|
|
12
|
+
var _tmpl$ = /*#__PURE__*/ template(`<div>`);
|
|
13
|
+
var _tmpl$2 = /*#__PURE__*/ template(`<button>`);
|
|
15
14
|
/**
|
|
16
15
|
* A primary action with its alternatives one seam away: the main button
|
|
17
16
|
* fires `onClick`, the fitted arrow opens a paper vessel of the same
|
|
@@ -40,92 +39,92 @@ function SplitButtonImpl(props) {
|
|
|
40
39
|
const size = () => own.size ?? "md";
|
|
41
40
|
const id = useElementId("split-button-menu");
|
|
42
41
|
const messages = useComponentMessages();
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
return own.items ?? [];
|
|
104
|
-
},
|
|
105
|
-
children: (entry) => createComponent(Menu.Item, {
|
|
106
|
-
get value() {
|
|
107
|
-
return entry.value;
|
|
42
|
+
return (() => {
|
|
43
|
+
var _el$ = _tmpl$();
|
|
44
|
+
spread(_el$, mergeProps(rest, {
|
|
45
|
+
"data-scope": "split-button",
|
|
46
|
+
"data-part": "root"
|
|
47
|
+
}), false, true);
|
|
48
|
+
insert(_el$, createComponent(Button, {
|
|
49
|
+
get variant() {
|
|
50
|
+
return variant();
|
|
51
|
+
},
|
|
52
|
+
get tone() {
|
|
53
|
+
return tone();
|
|
54
|
+
},
|
|
55
|
+
get size() {
|
|
56
|
+
return size();
|
|
57
|
+
},
|
|
58
|
+
get disabled() {
|
|
59
|
+
return own.disabled;
|
|
60
|
+
},
|
|
61
|
+
onClick: (event) => own.onClick?.(event),
|
|
62
|
+
get children() {
|
|
63
|
+
return own.label;
|
|
64
|
+
}
|
|
65
|
+
}), null);
|
|
66
|
+
insert(_el$, createComponent(Menu.Root, {
|
|
67
|
+
get id() {
|
|
68
|
+
return id();
|
|
69
|
+
},
|
|
70
|
+
positioning: { placement: "bottom-end" },
|
|
71
|
+
get children() {
|
|
72
|
+
return [createComponent(Menu.Trigger, { asChild: (propsFn) => (() => {
|
|
73
|
+
var _el$2 = _tmpl$2();
|
|
74
|
+
spread(_el$2, mergeProps(propsFn, {
|
|
75
|
+
"type": "button",
|
|
76
|
+
get disabled() {
|
|
77
|
+
return own.disabled;
|
|
78
|
+
},
|
|
79
|
+
get ["aria-label"]() {
|
|
80
|
+
return messages().more.actions;
|
|
81
|
+
},
|
|
82
|
+
get ["data-variant"]() {
|
|
83
|
+
return variant();
|
|
84
|
+
},
|
|
85
|
+
get ["data-tone"]() {
|
|
86
|
+
return tone();
|
|
87
|
+
},
|
|
88
|
+
get ["data-size"]() {
|
|
89
|
+
return size();
|
|
90
|
+
},
|
|
91
|
+
"data-square": "true",
|
|
92
|
+
"data-motion": "ink-ripple lit"
|
|
93
|
+
}), false, true);
|
|
94
|
+
insert(_el$2, chevronDown);
|
|
95
|
+
return _el$2;
|
|
96
|
+
})() }), createComponent(Portal, { get children() {
|
|
97
|
+
return createComponent(Menu.Positioner, { get children() {
|
|
98
|
+
return createComponent(Menu.Content, { get children() {
|
|
99
|
+
return createComponent(For, {
|
|
100
|
+
get each() {
|
|
101
|
+
return own.items ?? [];
|
|
108
102
|
},
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
103
|
+
children: (entry) => createComponent(Menu.Item, {
|
|
104
|
+
get value() {
|
|
105
|
+
return entry.value;
|
|
106
|
+
},
|
|
107
|
+
get disabled() {
|
|
108
|
+
return entry.disabled;
|
|
109
|
+
},
|
|
110
|
+
get ["data-danger"]() {
|
|
111
|
+
return entry.danger ? "" : void 0;
|
|
112
|
+
},
|
|
113
|
+
onSelect: () => own.onSelect?.(entry.value),
|
|
114
|
+
get children() {
|
|
115
|
+
return createComponent(Menu.ItemText, { get children() {
|
|
116
|
+
return entry.label;
|
|
117
|
+
} });
|
|
118
|
+
}
|
|
119
|
+
})
|
|
120
|
+
});
|
|
121
|
+
} });
|
|
123
122
|
} });
|
|
124
|
-
} });
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
|
|
123
|
+
} })];
|
|
124
|
+
}
|
|
125
|
+
}), null);
|
|
126
|
+
return _el$;
|
|
127
|
+
})();
|
|
129
128
|
}
|
|
130
129
|
/** One stroke pointing down: all a fitted dropdown arrow needs. */
|
|
131
130
|
function chevronDown() {
|
|
@@ -135,5 +134,4 @@ function chevronDown() {
|
|
|
135
134
|
});
|
|
136
135
|
}
|
|
137
136
|
const SplitButton = defineFamily(SplitButtonImpl, Menu$1);
|
|
138
|
-
//#endregion
|
|
139
137
|
export { SplitButton };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "solid-js";
|
|
2
2
|
import { Splitter as Splitter$1 } from "@ark-ui/solid/splitter";
|
|
3
|
-
//#region src/components/splitter/index.d.ts
|
|
4
3
|
/** Ark's Splitter, dressed in the paper-and-ink system: panels divide on
|
|
5
4
|
* a hairline and a small paper-seal thumb answers the hand. The API is
|
|
6
5
|
* Ark's own — Root, Panel, ResizeTrigger, ResizeTriggerIndicator. */
|
|
@@ -22,4 +21,4 @@ declare function SplitterFacade(props: SplitterFacadeProps): import("solid-js").
|
|
|
22
21
|
export declare const Splitter: typeof SplitterFacade & Omit<typeof Splitter$1, "Root"> & {
|
|
23
22
|
Root: typeof SplitterRoot;
|
|
24
23
|
};
|
|
25
|
-
|
|
24
|
+
export {};
|