@bysages/solid 0.4.3 → 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 +17 -6
- package/dist/components/avatar/index.mjs +66 -10
- 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 +18 -3
- package/dist/components/banner/index.mjs +108 -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 +15 -3
- package/dist/components/breadcrumb/index.mjs +56 -12
- 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 +5 -2
- package/dist/components/color-picker/index.mjs +69 -39
- 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 +25 -3
- package/dist/components/float-button/index.mjs +108 -39
- 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 +240 -248
- 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 +17 -17
- 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,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 } from "solid-js";
|
|
6
6
|
import { Splitter as Splitter$1 } from "@ark-ui/solid/splitter";
|
|
7
|
-
|
|
7
|
+
// src/components/splitter/index.tsx
|
|
8
8
|
/** Ark's Splitter, dressed in the paper-and-ink system: panels divide on
|
|
9
9
|
* a hairline and a small paper-seal thumb answers the hand. The API is
|
|
10
10
|
* Ark's own — Root, Panel, ResizeTrigger, ResizeTriggerIndicator. */
|
|
@@ -29,9 +29,7 @@ function SplitterFacade(props) {
|
|
|
29
29
|
get defaultSize() {
|
|
30
30
|
return props.defaultValue;
|
|
31
31
|
}
|
|
32
|
-
}, () => {
|
|
33
|
-
return props.value === void 0 ? {} : { size: props.value };
|
|
34
|
-
}, {
|
|
32
|
+
}, () => props.value === void 0 ? {} : { size: props.value }, {
|
|
35
33
|
onResize: (size) => props.onValueChange?.(size.size),
|
|
36
34
|
get children() {
|
|
37
35
|
return createComponent(For, {
|
|
@@ -71,5 +69,4 @@ const Splitter = defineFamily(SplitterFacade, {
|
|
|
71
69
|
Root: SplitterRoot
|
|
72
70
|
});
|
|
73
71
|
injectComponentStyle("splitter");
|
|
74
|
-
//#endregion
|
|
75
72
|
export { Splitter };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JSX } from "solid-js";
|
|
2
|
-
//#region src/components/spotlight/index.d.ts
|
|
3
2
|
export interface SpotlightProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
4
3
|
/** How far the lamp throws before the ink swallows it. */
|
|
5
4
|
radius?: string;
|
|
@@ -9,5 +8,4 @@ export interface SpotlightProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
|
9
8
|
* the lamp itself is the two layers the stylesheet paints. */
|
|
10
9
|
export declare const Spotlight: ((props: SpotlightProps) => JSX.Element) & {
|
|
11
10
|
Root: (props: SpotlightProps) => JSX.Element;
|
|
12
|
-
};
|
|
13
|
-
//#endregion
|
|
11
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as withSelfRoot } from "../../family-
|
|
2
|
-
import { insert, spread, template } from "
|
|
1
|
+
import { n as withSelfRoot } from "../../family-B5HtE0on.mjs";
|
|
2
|
+
import { insert, 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/spotlight/index.tsx
|
|
6
|
+
var _tmpl$ = /*#__PURE__*/ template(`<div>`);
|
|
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. */
|
|
@@ -16,24 +16,23 @@ const Spotlight = withSelfRoot(function Spotlight(props) {
|
|
|
16
16
|
host.style.setProperty("--bs-spot-x", `${event.clientX - rect.left}px`);
|
|
17
17
|
host.style.setProperty("--bs-spot-y", `${event.clientY - rect.top}px`);
|
|
18
18
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
19
|
+
return (() => {
|
|
20
|
+
var _el$ = _tmpl$();
|
|
21
|
+
spread(_el$, mergeProps(rest, {
|
|
22
|
+
"data-scope": "spotlight",
|
|
23
|
+
"data-part": "root",
|
|
24
|
+
get style() {
|
|
25
|
+
return { "--bs-spot-radius": own.radius };
|
|
26
|
+
},
|
|
27
|
+
"onPointerMove": track,
|
|
28
|
+
"onPointerEnter": (event) => {
|
|
29
|
+
track(event);
|
|
30
|
+
event.currentTarget.setAttribute("data-hovered", "");
|
|
31
|
+
},
|
|
32
|
+
"onPointerLeave": (event) => event.currentTarget.removeAttribute("data-hovered")
|
|
33
|
+
}), false, true);
|
|
34
|
+
insert(_el$, () => props.children);
|
|
35
|
+
return _el$;
|
|
36
|
+
})();
|
|
37
37
|
});
|
|
38
|
-
//#endregion
|
|
39
38
|
export { Spotlight };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JSX } from "solid-js";
|
|
2
|
-
//#region src/components/stack/index.d.ts
|
|
3
2
|
export interface StackProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
4
3
|
direction?: "column" | "row";
|
|
5
4
|
gap?: "none" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
@@ -9,5 +8,4 @@ export interface StackProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
|
9
8
|
}
|
|
10
9
|
export declare const Stack: ((props: StackProps) => JSX.Element) & {
|
|
11
10
|
Root: (props: StackProps) => JSX.Element;
|
|
12
|
-
};
|
|
13
|
-
//#endregion
|
|
11
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
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
4
|
import { splitProps } from "solid-js";
|
|
5
|
-
|
|
6
|
-
var _tmpl$ =
|
|
5
|
+
// src/components/stack/index.tsx
|
|
6
|
+
var _tmpl$ = /*#__PURE__*/ template(`<div>`);
|
|
7
7
|
/** Whitespace chosen by name: the named steps point at the space ramp so
|
|
8
8
|
* siblings are held apart by one token, never by ad-hoc margins. */
|
|
9
9
|
const gapVars = {
|
|
@@ -23,24 +23,25 @@ const Stack = withSelfRoot(function Stack(props) {
|
|
|
23
23
|
"align",
|
|
24
24
|
"justify"
|
|
25
25
|
]);
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
26
|
+
return (() => {
|
|
27
|
+
var _el$ = _tmpl$();
|
|
28
|
+
spread(_el$, mergeProps(rest, {
|
|
29
|
+
get style() {
|
|
30
|
+
return {
|
|
31
|
+
...rest.style,
|
|
32
|
+
"--bs-stack-gap": gapVars[own.gap ?? "md"] ?? gapVars.md,
|
|
33
|
+
"--bs-stack-align": own.align,
|
|
34
|
+
"--bs-stack-justify": own.justify,
|
|
35
|
+
"--bs-stack-wrap": own.wrap ? "wrap" : void 0
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
"data-scope": "stack",
|
|
39
|
+
"data-part": "root",
|
|
40
|
+
get ["data-direction"]() {
|
|
41
|
+
return own.direction ?? "column";
|
|
42
|
+
}
|
|
43
|
+
}), false, false);
|
|
44
|
+
return _el$;
|
|
45
|
+
})();
|
|
44
46
|
});
|
|
45
|
-
//#endregion
|
|
46
47
|
export { Stack };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JSX } from "solid-js";
|
|
2
|
-
//#region src/components/stat/index.d.ts
|
|
3
2
|
export interface StatDeltaProps extends JSX.HTMLAttributes<HTMLElement> {
|
|
4
3
|
direction?: "up" | "down" | "flat";
|
|
5
4
|
"data-direction"?: string;
|
|
@@ -14,4 +13,4 @@ export declare const Stat: ((props: JSX.HTMLAttributes<HTMLDivElement>) => JSX.E
|
|
|
14
13
|
Delta: typeof Delta;
|
|
15
14
|
Description: (props: JSX.HTMLAttributes<HTMLDivElement>) => JSX.Element;
|
|
16
15
|
};
|
|
17
|
-
|
|
16
|
+
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { createComponent, mergeProps, spread, template } from "
|
|
1
|
+
import { createComponent, mergeProps, spread, template } from "solid-js/web";
|
|
2
2
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { splitProps } from "solid-js";
|
|
4
|
-
|
|
5
|
-
var _tmpl$ =
|
|
4
|
+
// src/components/stat/index.tsx
|
|
5
|
+
var _tmpl$ = /*#__PURE__*/ template(`<span>`);
|
|
6
6
|
function part(name, tag) {
|
|
7
7
|
function Component(props) {
|
|
8
8
|
return createComponent(tag, mergeProps(props, {
|
|
9
9
|
"data-scope": "stat",
|
|
10
|
-
get "data-part"() {
|
|
10
|
+
get ["data-part"]() {
|
|
11
11
|
return name.toLowerCase();
|
|
12
12
|
}
|
|
13
13
|
}));
|
|
@@ -22,15 +22,17 @@ const Description = part("Description", "p");
|
|
|
22
22
|
* explicit `data-direction` attribute on the consumer side still wins. */
|
|
23
23
|
function Delta(props) {
|
|
24
24
|
const [own, rest] = splitProps(props, ["direction"]);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
25
|
+
return (() => {
|
|
26
|
+
var _el$ = _tmpl$();
|
|
27
|
+
spread(_el$, mergeProps(rest, {
|
|
28
|
+
"data-scope": "stat",
|
|
29
|
+
"data-part": "delta",
|
|
30
|
+
get ["data-direction"]() {
|
|
31
|
+
return rest["data-direction"] ?? own.direction ?? "flat";
|
|
32
|
+
}
|
|
33
|
+
}), false, false);
|
|
34
|
+
return _el$;
|
|
35
|
+
})();
|
|
34
36
|
}
|
|
35
37
|
const Stat = Object.assign(Root, {
|
|
36
38
|
Root,
|
|
@@ -40,5 +42,4 @@ const Stat = Object.assign(Root, {
|
|
|
40
42
|
Description
|
|
41
43
|
});
|
|
42
44
|
injectComponentStyle("stat");
|
|
43
|
-
//#endregion
|
|
44
45
|
export { Stat };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "solid-js";
|
|
2
2
|
import { Steps as Steps$1, StepsRootProps } from "@ark-ui/solid/steps";
|
|
3
|
-
//#region src/components/steps/index.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Steps — linear progress through a sequence.
|
|
6
5
|
*
|
|
@@ -40,5 +39,4 @@ export declare const Steps: typeof StepsFacade & Omit<typeof Steps$1, "Root" | "
|
|
|
40
39
|
Root: typeof StepsRoot;
|
|
41
40
|
Item: typeof StepsItem;
|
|
42
41
|
};
|
|
43
|
-
//#endregion
|
|
44
42
|
export { StepsItem };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as defineFamily } from "../../family-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
3
|
-
import { createComponent, memo, mergeProps } from "
|
|
1
|
+
import { t as defineFamily } from "../../family-B5HtE0on.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-DGvz-2rQ.mjs";
|
|
3
|
+
import { createComponent, memo, mergeProps } from "solid-js/web";
|
|
4
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { For, splitProps } from "solid-js";
|
|
6
6
|
import { Steps as Steps$1 } from "@ark-ui/solid/steps";
|
|
7
|
-
|
|
7
|
+
// src/components/steps/index.tsx
|
|
8
8
|
function StepsRoot(props) {
|
|
9
9
|
const [own, rest] = splitProps(props, ["size", "variant"]);
|
|
10
10
|
const id = useElementId("steps", () => rest.id);
|
|
@@ -12,13 +12,11 @@ function StepsRoot(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
|
-
get "data-variant"() {
|
|
19
|
-
return memo(() =>
|
|
20
|
-
return own.variant === "dot";
|
|
21
|
-
})() ? own.variant : void 0;
|
|
18
|
+
get ["data-variant"]() {
|
|
19
|
+
return memo(() => own.variant === "dot")() ? own.variant : void 0;
|
|
22
20
|
}
|
|
23
21
|
}));
|
|
24
22
|
}
|
|
@@ -26,7 +24,7 @@ function StepsFacade(props) {
|
|
|
26
24
|
injectComponentStyle("steps");
|
|
27
25
|
const variant = props.variant ?? "default";
|
|
28
26
|
return createComponent(StepsRoot, mergeProps({
|
|
29
|
-
get "class"() {
|
|
27
|
+
get ["class"]() {
|
|
30
28
|
return props.class;
|
|
31
29
|
},
|
|
32
30
|
get size() {
|
|
@@ -45,9 +43,7 @@ function StepsFacade(props) {
|
|
|
45
43
|
get defaultStep() {
|
|
46
44
|
return props.defaultStep ?? 0;
|
|
47
45
|
}
|
|
48
|
-
}, () => {
|
|
49
|
-
return props.step === void 0 ? {} : { step: props.step };
|
|
50
|
-
}, {
|
|
46
|
+
}, () => props.step === void 0 ? {} : { step: props.step }, {
|
|
51
47
|
onStepChange: (details) => props.onStepChange?.(details.step),
|
|
52
48
|
get children() {
|
|
53
49
|
return createComponent(Steps$1.List, { get children() {
|
|
@@ -64,9 +60,7 @@ function StepsFacade(props) {
|
|
|
64
60
|
return [createComponent(Steps$1.Trigger, { get children() {
|
|
65
61
|
return [createComponent(Steps$1.Indicator, { get children() {
|
|
66
62
|
return variant === "dot" ? null : String(index() + 1);
|
|
67
|
-
} }), memo(() =>
|
|
68
|
-
return item.title;
|
|
69
|
-
})];
|
|
63
|
+
} }), memo(() => item.title)];
|
|
70
64
|
} }), createComponent(Steps$1.Separator, {})];
|
|
71
65
|
}
|
|
72
66
|
})
|
|
@@ -86,5 +80,4 @@ const Steps = defineFamily(StepsFacade, {
|
|
|
86
80
|
Item: StepsItem
|
|
87
81
|
});
|
|
88
82
|
injectComponentStyle("steps");
|
|
89
|
-
//#endregion
|
|
90
83
|
export { Steps };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, JSX } from "solid-js";
|
|
2
2
|
import { Swap as Swap$1 } from "@ark-ui/solid/swap";
|
|
3
|
-
//#region src/components/swap/index.d.ts
|
|
4
3
|
/** Ark's Swap, dressed in the paper-and-ink system: two impressions
|
|
5
4
|
* occupying one seal, the arriving one growing into place on the spring
|
|
6
5
|
* while the departing one shrinks away. The API is Ark's own — Root,
|
|
@@ -17,4 +16,4 @@ declare function SwapFacade(props: SwapFacadeProps): JSX.Element;
|
|
|
17
16
|
export declare const Swap: typeof SwapFacade & Omit<typeof Swap$1, "Root"> & {
|
|
18
17
|
Root: typeof SwapRoot;
|
|
19
18
|
};
|
|
20
|
-
|
|
19
|
+
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 } 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 } from "solid-js/web";
|
|
5
5
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
6
6
|
import { createComponent as createComponent$1, mergeProps as mergeProps$1 } from "solid-js";
|
|
7
7
|
import { Swap as Swap$1 } from "@ark-ui/solid/swap";
|
|
8
|
-
|
|
8
|
+
// src/components/swap/index.tsx
|
|
9
9
|
/** Ark's Swap, dressed in the paper-and-ink system: two impressions
|
|
10
10
|
* occupying one seal, the arriving one growing into place on the spring
|
|
11
11
|
* while the departing one shrinks away. The API is Ark's own — Root,
|
|
@@ -49,5 +49,4 @@ const Swap = defineFamily(SwapFacade, {
|
|
|
49
49
|
Root: SwapRoot
|
|
50
50
|
});
|
|
51
51
|
injectComponentStyle("swap");
|
|
52
|
-
//#endregion
|
|
53
52
|
export { Swap };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Switch as Switch$1, SwitchRootProps } from "@ark-ui/solid/switch";
|
|
2
|
-
//#region src/components/switch/index.d.ts
|
|
3
2
|
/** Ark's Switch, dressed in the paper-and-ink system: a track that rests
|
|
4
3
|
* in the inset shade of the paper and fills flat with primary ink when on,
|
|
5
4
|
* the thumb sliding on the spring. The API is Ark's own — Root, Label,
|
|
@@ -27,4 +26,4 @@ type SwitchParts = Omit<typeof Switch$1, "Root"> & {
|
|
|
27
26
|
Root: typeof SwitchRoot;
|
|
28
27
|
};
|
|
29
28
|
export declare const Switch: typeof SwitchFacade & SwitchParts;
|
|
30
|
-
|
|
29
|
+
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 { Switch as Switch$1 } from "@ark-ui/solid/switch";
|
|
7
|
-
|
|
7
|
+
// src/components/switch/index.tsx
|
|
8
8
|
function SwitchRoot(props) {
|
|
9
9
|
const [own, rest] = splitProps(props, ["size"]);
|
|
10
10
|
const id = useElementId("switch", () => rest.id);
|
|
@@ -12,7 +12,7 @@ function SwitchRoot(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
|
}));
|
|
@@ -38,9 +38,7 @@ function SwitchFacade(props) {
|
|
|
38
38
|
get defaultChecked() {
|
|
39
39
|
return props.defaultValue ?? false;
|
|
40
40
|
}
|
|
41
|
-
}, () => {
|
|
42
|
-
return props.checked === void 0 ? {} : { checked: props.checked };
|
|
43
|
-
}, {
|
|
41
|
+
}, () => props.checked === void 0 ? {} : { checked: props.checked }, {
|
|
44
42
|
onCheckedChange: (details) => props.onCheckedChange?.(details.checked),
|
|
45
43
|
get children() {
|
|
46
44
|
return [
|
|
@@ -67,5 +65,4 @@ const Switch = defineFamily(SwitchFacade, {
|
|
|
67
65
|
Root: SwitchRoot
|
|
68
66
|
});
|
|
69
67
|
injectComponentStyle("switch");
|
|
70
|
-
//#endregion
|
|
71
68
|
export { Switch };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { JSX } from "solid-js";
|
|
2
2
|
import { CellData, ColumnDef, FlexRender, RowData, SortingState, TableFeatures, createColumnHelper } from "@tanstack/solid-table";
|
|
3
|
-
//#region src/components/table/index.d.ts
|
|
4
3
|
/** Column metadata understood by this table: mark columns whose values
|
|
5
4
|
* read right-aligned in tabular figures. The type parameters mirror the
|
|
6
5
|
* library's own declaration — augmentation merging demands an identical
|
|
@@ -77,5 +76,4 @@ export interface DataTableProps {
|
|
|
77
76
|
export declare const DataTable: ((props: DataTableProps) => JSX.Element) & {
|
|
78
77
|
Root: (props: DataTableProps) => JSX.Element;
|
|
79
78
|
};
|
|
80
|
-
//#endregion
|
|
81
79
|
export { type ColumnDef, FlexRender, type SortingState, createColumnHelper };
|