@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 { createComponent, effect, insert, setAttribute, setStyleProperty, spread, template } from "@solidjs/web";
|
|
3
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
4
|
import { For, Show, splitProps } from "solid-js";
|
|
4
5
|
//#region src/components/progress-group/index.tsx
|
|
5
6
|
var _tmpl$ = /* @__PURE__ */ template(`<div data-scope=progress-group data-part=legend>`);
|
|
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 {
|
|
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 { 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,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 { 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,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 { 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 {
|
|
1
|
+
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { t as iconBody } from "../../icon-DTqmJCd5.mjs";
|
|
2
3
|
import { createComponent, effect, insert, mergeProps, spread, template } from "@solidjs/web";
|
|
4
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
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
|
|
@@ -1,10 +1,22 @@
|
|
|
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 { ScrollArea as ScrollArea$1 } from "@ark-ui/solid/scroll-area";
|
|
3
6
|
//#region src/components/scroll-area/index.ts
|
|
4
7
|
/** Ark's ScrollArea, dressed in the paper-and-ink system: native bars
|
|
5
8
|
* give way to quiet ink lanes that surface on hover and scroll. The API
|
|
6
9
|
* is Ark's own — Root, Viewport, Content, Scrollbar, Thumb, Corner. */
|
|
7
|
-
|
|
10
|
+
function ScrollAreaRoot(props) {
|
|
11
|
+
const id = useElementId("scroll-area", () => props.id);
|
|
12
|
+
return createComponent(ScrollArea$1.Root, mergeProps(props, { get id() {
|
|
13
|
+
return id();
|
|
14
|
+
} }));
|
|
15
|
+
}
|
|
16
|
+
const ScrollArea = defineFamily(ScrollAreaRoot, {
|
|
17
|
+
...ScrollArea$1,
|
|
18
|
+
Root: ScrollAreaRoot
|
|
19
|
+
});
|
|
8
20
|
injectComponentStyle("scroll-area");
|
|
9
21
|
//#endregion
|
|
10
22
|
export { ScrollArea };
|
|
@@ -11,7 +11,7 @@ declare function SegmentGroupRoot(props: SegmentGroupRootProps & SegmentGroupOwn
|
|
|
11
11
|
/** SegmentGroup, dressed in the paper-and-ink system: a hairline tray
|
|
12
12
|
* where one flat ink plate travels beneath the checked seal. The parts - Root, Label, Indicator, Item, ItemText, ItemControl,
|
|
13
13
|
* ItemHiddenInput. */
|
|
14
|
-
export declare const SegmentGroup: Omit<typeof SegmentGroup$1, "Root"> & {
|
|
14
|
+
export declare const SegmentGroup: typeof SegmentGroupRoot & Omit<typeof SegmentGroup$1, "Root"> & {
|
|
15
15
|
Root: typeof SegmentGroupRoot;
|
|
16
16
|
};
|
|
17
17
|
//#endregion
|
|
@@ -1,23 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
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, splitProps } from "solid-js";
|
|
3
5
|
import { SegmentGroup as SegmentGroup$1 } from "@ark-ui/solid/segment-group";
|
|
4
6
|
//#region src/components/segment-group/index.tsx
|
|
5
7
|
function SegmentGroupRoot(props) {
|
|
6
8
|
const [own, rest] = splitProps(props, ["size"]);
|
|
7
|
-
|
|
9
|
+
const id = useElementId("segment-group", () => rest.id);
|
|
10
|
+
return createComponent(SegmentGroup$1.Root, mergeProps(rest, {
|
|
8
11
|
get "data-size"() {
|
|
9
12
|
return own.size ?? "md";
|
|
10
13
|
},
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
get id() {
|
|
15
|
+
return id();
|
|
16
|
+
}
|
|
17
|
+
}));
|
|
13
18
|
}
|
|
14
19
|
/** SegmentGroup, dressed in the paper-and-ink system: a hairline tray
|
|
15
20
|
* where one flat ink plate travels beneath the checked seal. The parts - Root, Label, Indicator, Item, ItemText, ItemControl,
|
|
16
21
|
* ItemHiddenInput. */
|
|
17
|
-
const SegmentGroup = {
|
|
22
|
+
const SegmentGroup = defineFamily(SegmentGroupRoot, {
|
|
18
23
|
...SegmentGroup$1,
|
|
19
24
|
Root: SegmentGroupRoot
|
|
20
|
-
};
|
|
25
|
+
});
|
|
21
26
|
injectComponentStyle("segment-group");
|
|
22
27
|
//#endregion
|
|
23
28
|
export { SegmentGroup };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { NativeSelect, type NativeSelectOption, type NativeSelectProps, Select };
|
|
1
|
+
import { a as NativeSelectProps, i as NativeSelectOption, n as SelectFacadeProps, r as NativeSelect, t as Select } from "../../index-ID48LCMU.mjs";
|
|
2
|
+
export { NativeSelect, type NativeSelectOption, type NativeSelectProps, Select, SelectFacadeProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as NativeSelect, t as Select } from "../../select-
|
|
1
|
+
import { n as NativeSelect, t as Select } from "../../select-DI7pFspF.mjs";
|
|
2
2
|
export { NativeSelect, Select };
|
|
@@ -7,5 +7,7 @@ export interface SeparatorProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
|
7
7
|
orientation?: "horizontal" | "vertical";
|
|
8
8
|
decorative?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare
|
|
10
|
+
export declare const Separator: ((props: SeparatorProps) => JSX.Element) & {
|
|
11
|
+
Root: (props: SeparatorProps) => JSX.Element;
|
|
12
|
+
};
|
|
11
13
|
//#endregion
|
|
@@ -1,9 +1,10 @@
|
|
|
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/separator/index.tsx
|
|
5
6
|
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
6
|
-
function Separator(props) {
|
|
7
|
+
const Separator = withSelfRoot(function Separator(props) {
|
|
7
8
|
injectComponentStyle("separator");
|
|
8
9
|
const [own, rest] = splitProps(props, ["orientation", "decorative"]);
|
|
9
10
|
const orientation = () => own.orientation ?? "horizontal";
|
|
@@ -22,6 +23,6 @@ function Separator(props) {
|
|
|
22
23
|
}
|
|
23
24
|
}], false);
|
|
24
25
|
return _el$;
|
|
25
|
-
}
|
|
26
|
+
});
|
|
26
27
|
//#endregion
|
|
27
28
|
export { Separator };
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { ComponentProps } from "solid-js";
|
|
1
2
|
import { SignaturePad as SignaturePad$1 } from "@ark-ui/solid/signature-pad";
|
|
2
3
|
//#region src/components/signature-pad/index.d.ts
|
|
3
4
|
/** Ark's SignaturePad, dressed in the paper-and-ink system: a quiet paper
|
|
4
5
|
* field with a guide hairline where ink — real ink strokes — is laid down.
|
|
5
6
|
* The API is Ark's own — Root, Label, Control, Segment, SegmentPath, Guide,
|
|
6
7
|
* ClearTrigger, HiddenInput, Context. */
|
|
7
|
-
|
|
8
|
+
declare function SignaturePadRoot(props: ComponentProps<typeof SignaturePad$1.Root>): import("solid-js").JSX.Element;
|
|
9
|
+
export declare const SignaturePad: typeof SignaturePadRoot & Omit<typeof SignaturePad$1, "Root"> & {
|
|
10
|
+
Root: typeof SignaturePadRoot;
|
|
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 { SignaturePad as SignaturePad$1 } from "@ark-ui/solid/signature-pad";
|
|
3
6
|
//#region src/components/signature-pad/index.ts
|
|
4
7
|
/** Ark's SignaturePad, dressed in the paper-and-ink system: a quiet paper
|
|
5
8
|
* field with a guide hairline where ink — real ink strokes — is laid down.
|
|
6
9
|
* The API is Ark's own — Root, Label, Control, Segment, SegmentPath, Guide,
|
|
7
10
|
* ClearTrigger, HiddenInput, Context. */
|
|
8
|
-
|
|
11
|
+
function SignaturePadRoot(props) {
|
|
12
|
+
const id = useElementId("signature-pad", () => props.id);
|
|
13
|
+
return createComponent(SignaturePad$1.Root, mergeProps(props, { get id() {
|
|
14
|
+
return id();
|
|
15
|
+
} }));
|
|
16
|
+
}
|
|
17
|
+
const SignaturePad = defineFamily(SignaturePadRoot, {
|
|
18
|
+
...SignaturePad$1,
|
|
19
|
+
Root: SignaturePadRoot
|
|
20
|
+
});
|
|
9
21
|
injectComponentStyle("signature-pad");
|
|
10
22
|
//#endregion
|
|
11
23
|
export { SignaturePad };
|
|
@@ -3,5 +3,7 @@ import { JSX } from "solid-js";
|
|
|
3
3
|
/** A waiting sheet of unset paper. Size it from the outside; the breath
|
|
4
4
|
* is the component's own. */
|
|
5
5
|
export type SkeletonProps = JSX.HTMLAttributes<HTMLDivElement>;
|
|
6
|
-
export declare
|
|
6
|
+
export declare const Skeleton: ((props: SkeletonProps) => JSX.Element) & {
|
|
7
|
+
Root: (props: SkeletonProps) => JSX.Element;
|
|
8
|
+
};
|
|
7
9
|
//#endregion
|
|
@@ -1,8 +1,9 @@
|
|
|
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
|
//#region src/components/skeleton/index.tsx
|
|
4
5
|
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
5
|
-
function Skeleton(props) {
|
|
6
|
+
const Skeleton = withSelfRoot(function Skeleton(props) {
|
|
6
7
|
injectComponentStyle("skeleton");
|
|
7
8
|
var _el$ = _tmpl$();
|
|
8
9
|
spread(_el$, [props, {
|
|
@@ -10,6 +11,6 @@ function Skeleton(props) {
|
|
|
10
11
|
"data-part": "root"
|
|
11
12
|
}], false);
|
|
12
13
|
return _el$;
|
|
13
|
-
}
|
|
14
|
+
});
|
|
14
15
|
//#endregion
|
|
15
16
|
export { Skeleton };
|
|
@@ -9,7 +9,7 @@ type SliderOwnProps = {
|
|
|
9
9
|
size?: "sm" | "md" | "lg";
|
|
10
10
|
};
|
|
11
11
|
declare function SliderRoot(props: SliderRootProps & SliderOwnProps): import("solid-js").JSX.Element;
|
|
12
|
-
export declare const Slider: Omit<typeof Slider$1, "Root"> & {
|
|
12
|
+
export declare const Slider: typeof SliderRoot & Omit<typeof Slider$1, "Root"> & {
|
|
13
13
|
Root: typeof SliderRoot;
|
|
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 { Slider as Slider$1 } from "@ark-ui/solid/slider";
|
|
5
7
|
//#region src/components/slider/index.tsx
|
|
6
8
|
function SliderRoot(props) {
|
|
7
9
|
const [own, rest] = splitProps(props, ["size"]);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
const id = useElementId("slider", () => rest.id);
|
|
11
|
+
return createComponent(Slider$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 Slider = {
|
|
20
|
+
const Slider = defineFamily(SliderRoot, {
|
|
13
21
|
...Slider$1,
|
|
14
22
|
Root: SliderRoot
|
|
15
|
-
};
|
|
23
|
+
});
|
|
16
24
|
injectComponentStyle("slider");
|
|
17
25
|
//#endregion
|
|
18
26
|
export { Slider };
|
|
@@ -5,5 +5,7 @@ export interface SpinnerProps extends JSX.HTMLAttributes<HTMLElement> {
|
|
|
5
5
|
}
|
|
6
6
|
/** A wheel of waiting: one arc of ink turning about its center. Quiet by
|
|
7
7
|
* default — it reports progress without claiming attention. */
|
|
8
|
-
export declare
|
|
8
|
+
export declare const Spinner: ((props: SpinnerProps) => JSX.Element) & {
|
|
9
|
+
Root: (props: SpinnerProps) => JSX.Element;
|
|
10
|
+
};
|
|
9
11
|
//#endregion
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
1
2
|
import { n as useComponentMessages } from "../../use-component-messages-C4SCVYjD.mjs";
|
|
2
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
3
3
|
import { spread, template } from "@solidjs/web";
|
|
4
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
5
|
import { splitProps } from "solid-js";
|
|
5
6
|
//#region src/components/spinner/index.tsx
|
|
6
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>`);
|
|
7
8
|
/** A wheel of waiting: one arc of ink turning about its center. Quiet by
|
|
8
9
|
* default — it reports progress without claiming attention. */
|
|
9
|
-
function Spinner(props) {
|
|
10
|
+
const Spinner = withSelfRoot(function Spinner(props) {
|
|
10
11
|
injectComponentStyle("spinner");
|
|
11
12
|
const [own, rest] = splitProps(props, ["size"]);
|
|
12
13
|
const messages = useComponentMessages();
|
|
@@ -23,6 +24,6 @@ function Spinner(props) {
|
|
|
23
24
|
}
|
|
24
25
|
}], true);
|
|
25
26
|
return _el$;
|
|
26
|
-
}
|
|
27
|
+
});
|
|
27
28
|
//#endregion
|
|
28
29
|
export { Spinner };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Menu } from "../menu/index.mjs";
|
|
1
2
|
import { JSX } from "solid-js";
|
|
2
3
|
//#region src/components/split-button/index.d.ts
|
|
3
4
|
export interface SplitButtonEntry {
|
|
@@ -32,5 +33,6 @@ export interface SplitButtonProps extends Omit<JSX.HTMLAttributes<HTMLDivElement
|
|
|
32
33
|
* button stylesheet's trigger register dresses it. The popup keeps the
|
|
33
34
|
* menu parts untouched.
|
|
34
35
|
*/
|
|
35
|
-
|
|
36
|
+
declare function SplitButtonImpl(props: SplitButtonProps): JSX.Element;
|
|
37
|
+
export declare const SplitButton: typeof SplitButtonImpl & typeof Menu;
|
|
36
38
|
//#endregion
|
|
@@ -1,14 +1,17 @@
|
|
|
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";
|
|
1
4
|
import { Button } from "../button/index.mjs";
|
|
2
5
|
import { n as useComponentMessages } from "../../use-component-messages-C4SCVYjD.mjs";
|
|
3
|
-
import {
|
|
6
|
+
import { Menu as Menu$1 } from "../menu/index.mjs";
|
|
4
7
|
import { createComponent, insert, spread, template } from "@solidjs/web";
|
|
8
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
9
|
import { For, splitProps } from "solid-js";
|
|
6
10
|
import { Portal } from "solid-js/web";
|
|
7
11
|
import { Menu } from "@ark-ui/solid/menu";
|
|
8
12
|
//#region src/components/split-button/index.tsx
|
|
9
13
|
var _tmpl$ = /* @__PURE__ */ template(`<div><!><!>`);
|
|
10
14
|
var _tmpl$2 = /* @__PURE__ */ template(`<button>`);
|
|
11
|
-
var _tmpl$3 = /* @__PURE__ */ template(`<svg width=16 height=16 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=1.75 stroke-linecap=round stroke-linejoin=round aria-hidden=true><path d="m6 9 6 6 6-6">`);
|
|
12
15
|
/**
|
|
13
16
|
* A primary action with its alternatives one seam away: the main button
|
|
14
17
|
* fires `onClick`, the fitted arrow opens a paper vessel of the same
|
|
@@ -18,7 +21,7 @@ var _tmpl$3 = /* @__PURE__ */ template(`<svg width=16 height=16 viewBox="0 0 24
|
|
|
18
21
|
* button stylesheet's trigger register dresses it. The popup keeps the
|
|
19
22
|
* menu parts untouched.
|
|
20
23
|
*/
|
|
21
|
-
function
|
|
24
|
+
function SplitButtonImpl(props) {
|
|
22
25
|
injectComponentStyle("split-button");
|
|
23
26
|
injectComponentStyle("menu");
|
|
24
27
|
const [own, rest] = splitProps(props, [
|
|
@@ -35,6 +38,7 @@ function SplitButton(props) {
|
|
|
35
38
|
const variant = () => own.variant ?? "solid";
|
|
36
39
|
const tone = () => own.tone ?? "ink";
|
|
37
40
|
const size = () => own.size ?? "md";
|
|
41
|
+
const id = useElementId("split-button-menu");
|
|
38
42
|
const messages = useComponentMessages();
|
|
39
43
|
var _el$ = _tmpl$();
|
|
40
44
|
var _el$2 = _el$.firstChild;
|
|
@@ -62,6 +66,9 @@ function SplitButton(props) {
|
|
|
62
66
|
}
|
|
63
67
|
}), _el$2);
|
|
64
68
|
insert(_el$, createComponent(Menu.Root, {
|
|
69
|
+
get id() {
|
|
70
|
+
return id();
|
|
71
|
+
},
|
|
65
72
|
positioning: { placement: "bottom-end" },
|
|
66
73
|
get children() {
|
|
67
74
|
return [createComponent(Menu.Trigger, { asChild: (propsFn) => (() => {
|
|
@@ -122,7 +129,11 @@ function SplitButton(props) {
|
|
|
122
129
|
}
|
|
123
130
|
/** One stroke pointing down: all a fitted dropdown arrow needs. */
|
|
124
131
|
function chevronDown() {
|
|
125
|
-
return
|
|
132
|
+
return iconNode("chevron-down", {
|
|
133
|
+
width: "16",
|
|
134
|
+
height: "16"
|
|
135
|
+
});
|
|
126
136
|
}
|
|
137
|
+
const SplitButton = defineFamily(SplitButtonImpl, Menu$1);
|
|
127
138
|
//#endregion
|
|
128
139
|
export { SplitButton };
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import { ComponentProps } from "solid-js";
|
|
1
2
|
import { Splitter as Splitter$1 } from "@ark-ui/solid/splitter";
|
|
2
3
|
//#region src/components/splitter/index.d.ts
|
|
3
4
|
/** Ark's Splitter, dressed in the paper-and-ink system: panels divide on
|
|
4
5
|
* a hairline and a small paper-seal thumb answers the hand. The API is
|
|
5
6
|
* Ark's own — Root, Panel, ResizeTrigger, ResizeTriggerIndicator. */
|
|
6
|
-
|
|
7
|
+
declare function SplitterRoot(props: ComponentProps<typeof Splitter$1.Root>): import("solid-js").JSX.Element;
|
|
8
|
+
export declare const Splitter: typeof SplitterRoot & Omit<typeof Splitter$1, "Root"> & {
|
|
9
|
+
Root: typeof SplitterRoot;
|
|
10
|
+
};
|
|
7
11
|
//#endregion
|
|
@@ -1,10 +1,22 @@
|
|
|
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 { Splitter as Splitter$1 } from "@ark-ui/solid/splitter";
|
|
3
6
|
//#region src/components/splitter/index.ts
|
|
4
7
|
/** Ark's Splitter, dressed in the paper-and-ink system: panels divide on
|
|
5
8
|
* a hairline and a small paper-seal thumb answers the hand. The API is
|
|
6
9
|
* Ark's own — Root, Panel, ResizeTrigger, ResizeTriggerIndicator. */
|
|
7
|
-
|
|
10
|
+
function SplitterRoot(props) {
|
|
11
|
+
const id = useElementId("splitter", () => props.id);
|
|
12
|
+
return createComponent(Splitter$1.Root, mergeProps(props, { get id() {
|
|
13
|
+
return id();
|
|
14
|
+
} }));
|
|
15
|
+
}
|
|
16
|
+
const Splitter = defineFamily(SplitterRoot, {
|
|
17
|
+
...Splitter$1,
|
|
18
|
+
Root: SplitterRoot
|
|
19
|
+
});
|
|
8
20
|
injectComponentStyle("splitter");
|
|
9
21
|
//#endregion
|
|
10
22
|
export { Splitter };
|
|
@@ -7,5 +7,7 @@ export interface SpotlightProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
|
7
7
|
/** The ink-light card: a vessel whose rim and face take light from the
|
|
8
8
|
* reader's hand. The wrapper only measures and writes the geometry —
|
|
9
9
|
* the lamp itself is the two layers the stylesheet paints. */
|
|
10
|
-
export declare
|
|
10
|
+
export declare const Spotlight: ((props: SpotlightProps) => JSX.Element) & {
|
|
11
|
+
Root: (props: SpotlightProps) => JSX.Element;
|
|
12
|
+
};
|
|
11
13
|
//#endregion
|