@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,11 +1,12 @@
|
|
|
1
|
+
import { r as iconNode } from "../../icon-DQqYA2fO.mjs";
|
|
1
2
|
import { Button } from "../button/index.mjs";
|
|
2
|
-
import { n as useComponentMessages } from "../../use-component-messages-
|
|
3
|
-
import { createComponent, insert, mergeProps, spread, template } from "
|
|
3
|
+
import { n as useComponentMessages } from "../../use-component-messages-DS9ppb4C.mjs";
|
|
4
|
+
import { createComponent, insert, mergeProps, spread, template } from "solid-js/web";
|
|
4
5
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
|
-
import { createContext, createSignal, splitProps, useContext } from "solid-js";
|
|
6
|
-
|
|
7
|
-
var _tmpl$ =
|
|
8
|
-
var _tmpl$2 =
|
|
6
|
+
import { For, Show, createContext, createSignal, splitProps, useContext } from "solid-js";
|
|
7
|
+
// src/components/float-button/index.tsx
|
|
8
|
+
var _tmpl$ = /*#__PURE__*/ template(`<div>`);
|
|
9
|
+
var _tmpl$2 = /*#__PURE__*/ template(`<div><span data-scope=float-button data-part=item-label aria-hidden=true>`);
|
|
9
10
|
/** Solid context for {@link FloatButtonContext}, exported so a custom
|
|
10
11
|
* part can read the group's state with `useContext`. */
|
|
11
12
|
const FloatButtonContextKey = createContext();
|
|
@@ -41,16 +42,16 @@ function FloatButtonRoot(props) {
|
|
|
41
42
|
value: context,
|
|
42
43
|
get children() {
|
|
43
44
|
var _el$ = _tmpl$();
|
|
44
|
-
spread(_el$,
|
|
45
|
+
spread(_el$, mergeProps(rest, {
|
|
45
46
|
"data-scope": "float-button",
|
|
46
47
|
"data-part": "root",
|
|
47
|
-
get "data-placement"() {
|
|
48
|
+
get ["data-placement"]() {
|
|
48
49
|
return own.placement ?? "bottom-end";
|
|
49
50
|
},
|
|
50
|
-
get "data-state"() {
|
|
51
|
+
get ["data-state"]() {
|
|
51
52
|
return open() ? "open" : "closed";
|
|
52
53
|
}
|
|
53
|
-
}
|
|
54
|
+
}), false, false);
|
|
54
55
|
return _el$;
|
|
55
56
|
}
|
|
56
57
|
});
|
|
@@ -71,10 +72,10 @@ function FloatButtonTrigger(props) {
|
|
|
71
72
|
return context?.size() ?? "lg";
|
|
72
73
|
},
|
|
73
74
|
onClick: () => context?.toggle(),
|
|
74
|
-
get "aria-label"() {
|
|
75
|
+
get ["aria-label"]() {
|
|
75
76
|
return own.label || messages().floatButton.actions;
|
|
76
77
|
},
|
|
77
|
-
get "aria-expanded"() {
|
|
78
|
+
get ["aria-expanded"]() {
|
|
78
79
|
return context?.open() ?? false;
|
|
79
80
|
},
|
|
80
81
|
get children() {
|
|
@@ -90,42 +91,110 @@ function FloatButtonItem(props) {
|
|
|
90
91
|
"children"
|
|
91
92
|
]);
|
|
92
93
|
const context = useContext(FloatButtonContextKey);
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
94
|
+
return (() => {
|
|
95
|
+
var _el$2 = _tmpl$2(), _el$3 = _el$2.firstChild;
|
|
96
|
+
spread(_el$2, mergeProps(rest, {
|
|
97
|
+
"data-scope": "float-button",
|
|
98
|
+
"data-part": "item"
|
|
99
|
+
}), false, true);
|
|
100
|
+
insert(_el$2, createComponent(Button, {
|
|
101
|
+
variant: "outline",
|
|
102
|
+
square: true,
|
|
103
|
+
get size() {
|
|
104
|
+
return context ? STEP_DOWN[context.size()] : "md";
|
|
105
|
+
},
|
|
106
|
+
get disabled() {
|
|
107
|
+
return own.disabled;
|
|
108
|
+
},
|
|
109
|
+
get ["aria-label"]() {
|
|
110
|
+
return own.label;
|
|
111
|
+
},
|
|
112
|
+
onClick: (event) => {
|
|
113
|
+
own.onClick?.(event);
|
|
114
|
+
context?.close();
|
|
115
|
+
},
|
|
116
|
+
get children() {
|
|
117
|
+
return own.children;
|
|
118
|
+
}
|
|
119
|
+
}), _el$3);
|
|
120
|
+
insert(_el$3, () => own.label);
|
|
121
|
+
return _el$2;
|
|
122
|
+
})();
|
|
123
|
+
}
|
|
124
|
+
/** The shorthand: a speed dial from plain actions; the trigger and
|
|
125
|
+
* openness stay inside the family. */
|
|
126
|
+
function FloatButtonFacade(props) {
|
|
127
|
+
const [own, rest] = splitProps(props, [
|
|
128
|
+
"actions",
|
|
129
|
+
"children",
|
|
130
|
+
"defaultOpen",
|
|
131
|
+
"label",
|
|
132
|
+
"onOpenChange",
|
|
133
|
+
"open",
|
|
134
|
+
"placement",
|
|
135
|
+
"size"
|
|
136
|
+
]);
|
|
137
|
+
const [inner, setInner] = createSignal(own.defaultOpen ?? false);
|
|
138
|
+
const open = () => own.open ?? inner();
|
|
139
|
+
const setOpen = (value) => {
|
|
140
|
+
setInner(value);
|
|
141
|
+
own.onOpenChange?.(value);
|
|
142
|
+
};
|
|
143
|
+
return createComponent(FloatButtonRoot, mergeProps(rest, {
|
|
144
|
+
onOpenChange: setOpen,
|
|
145
|
+
get open() {
|
|
146
|
+
return open();
|
|
107
147
|
},
|
|
108
|
-
get
|
|
109
|
-
return own.
|
|
148
|
+
get placement() {
|
|
149
|
+
return own.placement;
|
|
110
150
|
},
|
|
111
|
-
|
|
112
|
-
own.
|
|
113
|
-
context?.close();
|
|
151
|
+
get size() {
|
|
152
|
+
return own.size;
|
|
114
153
|
},
|
|
115
154
|
get children() {
|
|
116
|
-
return
|
|
155
|
+
return createComponent(Show, {
|
|
156
|
+
get when() {
|
|
157
|
+
return own.children;
|
|
158
|
+
},
|
|
159
|
+
get fallback() {
|
|
160
|
+
return [createComponent(FloatButtonTrigger, {
|
|
161
|
+
get label() {
|
|
162
|
+
return own.label;
|
|
163
|
+
},
|
|
164
|
+
get children() {
|
|
165
|
+
return iconNode("plus");
|
|
166
|
+
}
|
|
167
|
+
}), createComponent(For, {
|
|
168
|
+
get each() {
|
|
169
|
+
return own.actions ?? [];
|
|
170
|
+
},
|
|
171
|
+
children: (action) => createComponent(FloatButtonItem, {
|
|
172
|
+
get disabled() {
|
|
173
|
+
return action.disabled;
|
|
174
|
+
},
|
|
175
|
+
get label() {
|
|
176
|
+
return action.label;
|
|
177
|
+
},
|
|
178
|
+
get onClick() {
|
|
179
|
+
return action.onClick;
|
|
180
|
+
},
|
|
181
|
+
get children() {
|
|
182
|
+
return iconNode(action.icon ?? "pencil");
|
|
183
|
+
}
|
|
184
|
+
})
|
|
185
|
+
})];
|
|
186
|
+
},
|
|
187
|
+
get children() {
|
|
188
|
+
return own.children;
|
|
189
|
+
}
|
|
190
|
+
});
|
|
117
191
|
}
|
|
118
|
-
})
|
|
119
|
-
insert(_el$3, () => {
|
|
120
|
-
return own.label;
|
|
121
|
-
});
|
|
122
|
-
return _el$2;
|
|
192
|
+
}));
|
|
123
193
|
}
|
|
124
|
-
const FloatButton = Object.assign(
|
|
194
|
+
const FloatButton = Object.assign(FloatButtonFacade, {
|
|
125
195
|
Root: FloatButtonRoot,
|
|
126
196
|
Trigger: FloatButtonTrigger,
|
|
127
197
|
Item: FloatButtonItem
|
|
128
198
|
});
|
|
129
199
|
injectComponentStyle("float-button");
|
|
130
|
-
//#endregion
|
|
131
200
|
export { FloatButton, FloatButtonContextKey };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, JSX } from "solid-js";
|
|
2
2
|
import { FloatingPanel as FloatingPanel$1 } from "@ark-ui/solid/floating-panel";
|
|
3
|
-
//#region src/components/floating-panel/index.d.ts
|
|
4
3
|
/** Ark's FloatingPanel, dressed in the paper-and-ink system: the shared
|
|
5
4
|
* popup vessel let loose — a draggable, resizable sheet whose header is the
|
|
6
5
|
* handle. The API is Ark's own — Root, Trigger, Positioner, Content, Header,
|
|
@@ -22,4 +21,4 @@ declare function FloatingPanelFacade(props: FloatingPanelFacadeProps): JSX.Eleme
|
|
|
22
21
|
export declare const FloatingPanel: typeof FloatingPanelFacade & Omit<typeof FloatingPanel$1, "Root"> & {
|
|
23
22
|
Root: typeof FloatingPanelRoot;
|
|
24
23
|
};
|
|
25
|
-
|
|
24
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as defineFamily } from "../../family-
|
|
2
|
-
import { r as iconNode } from "../../icon-
|
|
3
|
-
import { t as useElementId } from "../../id-
|
|
4
|
-
import { createComponent, insert, memo, mergeProps, template } 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, insert, memo, mergeProps, template } from "solid-js/web";
|
|
5
5
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
6
6
|
import { For, Show, createComponent as createComponent$1, mergeProps as mergeProps$1 } from "solid-js";
|
|
7
7
|
import { FloatingPanel as FloatingPanel$1 } from "@ark-ui/solid/floating-panel";
|
|
8
|
-
|
|
9
|
-
var _tmpl$ =
|
|
8
|
+
// src/components/floating-panel/index.tsx
|
|
9
|
+
var _tmpl$ = /*#__PURE__*/ template(`<p>`);
|
|
10
10
|
/** Ark's FloatingPanel, dressed in the paper-and-ink system: the shared
|
|
11
11
|
* popup vessel let loose — a draggable, resizable sheet whose header is the
|
|
12
12
|
* handle. The API is Ark's own — Root, Trigger, Positioner, Content, Header,
|
|
@@ -30,11 +30,7 @@ const resizeAxes = [
|
|
|
30
30
|
];
|
|
31
31
|
function FloatingPanelFacade(props) {
|
|
32
32
|
injectComponentStyle("floating-panel");
|
|
33
|
-
return createComponent(FloatingPanelRoot, mergeProps(() => {
|
|
34
|
-
return props.open === void 0 ? {} : { open: props.open };
|
|
35
|
-
}, () => {
|
|
36
|
-
return props.defaultOpen === void 0 ? {} : { defaultOpen: props.defaultOpen };
|
|
37
|
-
}, {
|
|
33
|
+
return createComponent(FloatingPanelRoot, mergeProps(() => props.open === void 0 ? {} : { open: props.open }, () => props.defaultOpen === void 0 ? {} : { defaultOpen: props.defaultOpen }, {
|
|
38
34
|
get disabled() {
|
|
39
35
|
return props.disabled;
|
|
40
36
|
},
|
|
@@ -88,9 +84,7 @@ function FloatingPanelFacade(props) {
|
|
|
88
84
|
},
|
|
89
85
|
get children() {
|
|
90
86
|
var _el$ = _tmpl$();
|
|
91
|
-
insert(_el$, () =>
|
|
92
|
-
return props.description;
|
|
93
|
-
});
|
|
87
|
+
insert(_el$, () => props.description);
|
|
94
88
|
return _el$;
|
|
95
89
|
}
|
|
96
90
|
}),
|
|
@@ -100,15 +94,11 @@ function FloatingPanelFacade(props) {
|
|
|
100
94
|
},
|
|
101
95
|
get children() {
|
|
102
96
|
var _el$2 = _tmpl$();
|
|
103
|
-
insert(_el$2, () =>
|
|
104
|
-
return props.content;
|
|
105
|
-
});
|
|
97
|
+
insert(_el$2, () => props.content);
|
|
106
98
|
return _el$2;
|
|
107
99
|
}
|
|
108
100
|
}),
|
|
109
|
-
memo(() =>
|
|
110
|
-
return props.children;
|
|
111
|
-
})
|
|
101
|
+
memo(() => props.children)
|
|
112
102
|
];
|
|
113
103
|
} }),
|
|
114
104
|
createComponent(For, {
|
|
@@ -128,5 +118,4 @@ const FloatingPanel = defineFamily(FloatingPanelFacade, {
|
|
|
128
118
|
Root: FloatingPanelRoot
|
|
129
119
|
});
|
|
130
120
|
injectComponentStyle("floating-panel");
|
|
131
|
-
//#endregion
|
|
132
121
|
export { FloatingPanel };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { FocusTrapBaseProps, FocusTrapProps } from "@ark-ui/solid/focus-trap";
|
|
2
|
-
//#region src/components/focus-trap/index.d.ts
|
|
3
2
|
export declare const FocusTrap: ((props: import("@ark-ui/solid/focus-trap").FocusTrapProps) => import("solid-js").JSX.Element) & {
|
|
4
3
|
Root: (props: import("@ark-ui/solid/focus-trap").FocusTrapProps) => import("solid-js").JSX.Element;
|
|
5
4
|
};
|
|
6
|
-
//#endregion
|
|
7
5
|
export type { FocusTrapBaseProps, FocusTrapProps };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { n as withSelfRoot } from "../../family-
|
|
1
|
+
import { n as withSelfRoot } from "../../family-B5HtE0on.mjs";
|
|
2
2
|
import { FocusTrap as FocusTrap$1 } from "@ark-ui/solid/focus-trap";
|
|
3
|
-
|
|
3
|
+
// src/components/focus-trap/index.ts
|
|
4
4
|
/** Trap focus within a subtree — for containers that live outside the
|
|
5
5
|
* dialog machine but still owe the keyboard a boundary. Headless, like
|
|
6
6
|
* the rest of Ark's utilities. */
|
|
7
7
|
const FocusTrap = withSelfRoot(FocusTrap$1);
|
|
8
|
-
//#endregion
|
|
9
8
|
export { FocusTrap };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Component, JSX } from "solid-js";
|
|
2
2
|
import { FieldApi, FormApi, SolidFormApi, createField, createForm } from "@tanstack/solid-form";
|
|
3
|
-
//#region src/components/form/index.d.ts
|
|
4
3
|
/** The seam this family passes the engine through — the members the
|
|
5
4
|
* components drive, with the engine's field-name generics opened to
|
|
6
5
|
* `any`. The engine ships no "any form" alias: its loosest, `FormLikeAPI`,
|
|
@@ -40,5 +39,4 @@ export interface FormFieldProps extends Omit<JSX.HTMLAttributes<HTMLDivElement>,
|
|
|
40
39
|
export declare const FormField: ((props: FormFieldProps) => JSX.Element) & {
|
|
41
40
|
Root: (props: FormFieldProps) => JSX.Element;
|
|
42
41
|
};
|
|
43
|
-
//#endregion
|
|
44
42
|
export { type FieldApi, type FormApi, type SolidFormApi, createField, createField as useField, createForm, createForm as useForm };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as withSelfRoot } from "../../family-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
3
|
-
import {
|
|
1
|
+
import { n as withSelfRoot } from "../../family-B5HtE0on.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-DGvz-2rQ.mjs";
|
|
3
|
+
import { createComponent, insert, memo, mergeProps, spread, template } from "solid-js/web";
|
|
4
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { Show, createContext, splitProps, useContext } from "solid-js";
|
|
6
6
|
import { Field } from "@ark-ui/solid/field";
|
|
7
7
|
import { createField, createForm } from "@tanstack/solid-form";
|
|
8
|
-
|
|
9
|
-
var _tmpl$ =
|
|
10
|
-
var _tmpl$2 =
|
|
8
|
+
// src/components/form/index.tsx
|
|
9
|
+
var _tmpl$ = /*#__PURE__*/ template(`<form>`);
|
|
10
|
+
var _tmpl$2 = /*#__PURE__*/ template(`<div>`);
|
|
11
11
|
const FormContext = createContext(null);
|
|
12
12
|
/** A validator's complaint is a string or a Standard Schema issue; both
|
|
13
13
|
* reduce to the sentence the field shows. */
|
|
@@ -27,16 +27,15 @@ const Form = withSelfRoot(function Form(props) {
|
|
|
27
27
|
},
|
|
28
28
|
get children() {
|
|
29
29
|
var _el$ = _tmpl$();
|
|
30
|
-
|
|
31
|
-
spread(_el$, [rest, {
|
|
30
|
+
spread(_el$, mergeProps(rest, {
|
|
32
31
|
"data-scope": "form",
|
|
33
32
|
"data-part": "root",
|
|
34
|
-
novalidate: true,
|
|
35
|
-
onSubmit: (event) => {
|
|
33
|
+
"novalidate": true,
|
|
34
|
+
"onSubmit": (event) => {
|
|
36
35
|
event.preventDefault();
|
|
37
36
|
own.form.handleSubmit();
|
|
38
37
|
}
|
|
39
|
-
}
|
|
38
|
+
}), false, false);
|
|
40
39
|
return _el$;
|
|
41
40
|
}
|
|
42
41
|
});
|
|
@@ -61,55 +60,41 @@ const FormField = withSelfRoot(function FormField(props) {
|
|
|
61
60
|
const meta = field().state.meta;
|
|
62
61
|
return (meta.isTouched ? meta.errors ?? [] : [meta.errorMap?.onSubmit].flat().filter(Boolean)).map(errorText).filter(Boolean);
|
|
63
62
|
};
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
return !!own.label;
|
|
86
|
-
})() ? createComponent(Field.Label, { get children() {
|
|
63
|
+
return (() => {
|
|
64
|
+
var _el$2 = _tmpl$2();
|
|
65
|
+
spread(_el$2, mergeProps(rest, { get ["data-form-field"]() {
|
|
66
|
+
return own.name;
|
|
67
|
+
} }), false, true);
|
|
68
|
+
insert(_el$2, createComponent(Field.Root, {
|
|
69
|
+
get id() {
|
|
70
|
+
return id();
|
|
71
|
+
},
|
|
72
|
+
get invalid() {
|
|
73
|
+
return own.invalid || errors().length > 0;
|
|
74
|
+
},
|
|
75
|
+
get required() {
|
|
76
|
+
return own.required;
|
|
77
|
+
},
|
|
78
|
+
get disabled() {
|
|
79
|
+
return own.disabled;
|
|
80
|
+
},
|
|
81
|
+
get children() {
|
|
82
|
+
return [
|
|
83
|
+
memo(() => memo(() => !!own.label)() ? createComponent(Field.Label, { get children() {
|
|
87
84
|
return own.label;
|
|
88
|
-
} }) : null
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
return memo(() => {
|
|
92
|
-
return typeof own.children === "function";
|
|
93
|
-
})() ? own.children(field) : own.children;
|
|
94
|
-
}),
|
|
95
|
-
memo(() => {
|
|
96
|
-
return memo(() => {
|
|
97
|
-
return !!(own.hint && errors().length === 0);
|
|
98
|
-
})() ? createComponent(Field.HelperText, { get children() {
|
|
85
|
+
} }) : null),
|
|
86
|
+
memo(() => memo(() => typeof own.children === "function")() ? own.children(field) : own.children),
|
|
87
|
+
memo(() => memo(() => !!(own.hint && errors().length === 0))() ? createComponent(Field.HelperText, { get children() {
|
|
99
88
|
return own.hint;
|
|
100
|
-
} }) : null
|
|
101
|
-
|
|
102
|
-
memo(() => {
|
|
103
|
-
return memo(() => {
|
|
104
|
-
return errors().length > 0;
|
|
105
|
-
})() ? createComponent(Field.ErrorText, { get children() {
|
|
89
|
+
} }) : null),
|
|
90
|
+
memo(() => memo(() => errors().length > 0)() ? createComponent(Field.ErrorText, { get children() {
|
|
106
91
|
return errors()[0];
|
|
107
|
-
} }) : null
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
|
|
92
|
+
} }) : null)
|
|
93
|
+
];
|
|
94
|
+
}
|
|
95
|
+
}));
|
|
96
|
+
return _el$2;
|
|
97
|
+
})();
|
|
113
98
|
};
|
|
114
99
|
return createComponent(Show, {
|
|
115
100
|
get when() {
|
|
@@ -127,5 +112,4 @@ const FormField = withSelfRoot(function FormField(props) {
|
|
|
127
112
|
}))
|
|
128
113
|
});
|
|
129
114
|
});
|
|
130
|
-
//#endregion
|
|
131
115
|
export { Form, FormField, createField, createField as useField, createForm, createForm as useForm };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { Format as Format$1 } from "@ark-ui/solid/format";
|
|
2
|
-
//#region src/components/format/index.d.ts
|
|
3
2
|
/** Ark's Format, dressed in the paper-and-ink system: Intl formatting for
|
|
4
3
|
* numbers, currency, bytes and relative time. The components render bare
|
|
5
4
|
* text with no DOM of their own — typography flows from the token layer,
|
|
6
5
|
* so there is no component stylesheet. The API is Ark's own — Number,
|
|
7
6
|
* Byte, Time, RelativeTime. */
|
|
8
|
-
export declare const Format: typeof Format$1;
|
|
9
|
-
//#endregion
|
|
7
|
+
export declare const Format: typeof Format$1;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Format as Format$1 } from "@ark-ui/solid/format";
|
|
2
|
-
|
|
2
|
+
// src/components/format/index.ts
|
|
3
3
|
/** Ark's Format, dressed in the paper-and-ink system: Intl formatting for
|
|
4
4
|
* numbers, currency, bytes and relative time. The components render bare
|
|
5
5
|
* text with no DOM of their own — typography flows from the token layer,
|
|
6
6
|
* so there is no component stylesheet. The API is Ark's own — Number,
|
|
7
7
|
* Byte, Time, RelativeTime. */
|
|
8
8
|
const Format = Format$1;
|
|
9
|
-
//#endregion
|
|
10
9
|
export { Format };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "solid-js";
|
|
2
2
|
import { Frame as Frame$1 } from "@ark-ui/solid/frame";
|
|
3
|
-
//#region src/components/frame/index.d.ts
|
|
4
3
|
/** Ark's Frame, dressed in the paper-and-ink system: a sandboxed
|
|
5
4
|
* iframe whose body mounts the children and whose `head` prop
|
|
6
5
|
* carries extra <head> elements — styles the child renders must
|
|
@@ -12,4 +11,4 @@ declare function FrameRoot(props: ComponentProps<typeof Frame$1>): import("solid
|
|
|
12
11
|
export declare const Frame: typeof FrameRoot & {
|
|
13
12
|
Root: typeof FrameRoot;
|
|
14
13
|
};
|
|
15
|
-
|
|
14
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as withSelfRoot } from "../../family-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
1
|
+
import { n as withSelfRoot } from "../../family-B5HtE0on.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-DGvz-2rQ.mjs";
|
|
3
3
|
import { createComponent, mergeProps } from "solid-js";
|
|
4
4
|
import { Frame as Frame$1 } from "@ark-ui/solid/frame";
|
|
5
|
-
|
|
5
|
+
// src/components/frame/index.ts
|
|
6
6
|
/** Ark's Frame, dressed in the paper-and-ink system: a sandboxed
|
|
7
7
|
* iframe whose body mounts the children and whose `head` prop
|
|
8
8
|
* carries extra <head> elements — styles the child renders must
|
|
@@ -17,5 +17,4 @@ function FrameRoot(props) {
|
|
|
17
17
|
} }));
|
|
18
18
|
}
|
|
19
19
|
const Frame = withSelfRoot(FrameRoot);
|
|
20
|
-
//#endregion
|
|
21
20
|
export { Frame };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JSX } from "solid-js";
|
|
2
|
-
//#region src/components/grid/index.d.ts
|
|
3
2
|
/** An alignment lattice: tracks of equal measure, sized by column count
|
|
4
3
|
* — or, with `minChildWidth`, as many tracks as the container fits. */
|
|
5
4
|
export interface GridProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
@@ -11,5 +10,4 @@ export interface GridProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
|
11
10
|
}
|
|
12
11
|
export declare const Grid: ((props: GridProps) => JSX.Element) & {
|
|
13
12
|
Root: (props: GridProps) => JSX.Element;
|
|
14
|
-
};
|
|
15
|
-
//#endregion
|
|
13
|
+
};
|
|
@@ -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/grid/index.tsx
|
|
6
|
+
var _tmpl$ = /*#__PURE__*/ template(`<div>`);
|
|
7
7
|
/** The same named steps of the space ramp the stack uses — one
|
|
8
8
|
* vocabulary of distance across the layout primitives. */
|
|
9
9
|
const gapVars = {
|
|
@@ -21,23 +21,24 @@ const Grid = withSelfRoot(function Grid(props) {
|
|
|
21
21
|
"gap",
|
|
22
22
|
"minChildWidth"
|
|
23
23
|
]);
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
24
|
+
return (() => {
|
|
25
|
+
var _el$ = _tmpl$();
|
|
26
|
+
spread(_el$, mergeProps(rest, {
|
|
27
|
+
get style() {
|
|
28
|
+
return {
|
|
29
|
+
...rest.style,
|
|
30
|
+
"--bs-grid-columns": String(own.columns ?? 12),
|
|
31
|
+
"--bs-grid-gap": gapVars[own.gap ?? "md"] ?? gapVars.md,
|
|
32
|
+
...own.minChildWidth != null ? { "--bs-grid-min-child-width": own.minChildWidth } : {}
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
"data-scope": "grid",
|
|
36
|
+
"data-part": "root",
|
|
37
|
+
get ["data-autofill"]() {
|
|
38
|
+
return own.minChildWidth != null ? "" : void 0;
|
|
39
|
+
}
|
|
40
|
+
}), false, false);
|
|
41
|
+
return _el$;
|
|
42
|
+
})();
|
|
41
43
|
});
|
|
42
|
-
//#endregion
|
|
43
44
|
export { Grid };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
//#region src/components/highlight/index.d.ts
|
|
2
1
|
/** Ark's Highlight, dressed in the paper-and-ink system: query hits are
|
|
3
2
|
* strokes of pigment on the page — a quiet tint of the accent behind the
|
|
4
3
|
* ink, never neon. The component renders bare <mark> elements, so the
|
|
5
4
|
* document-wide mark default carries the look. The API is Ark's own. */
|
|
6
5
|
export declare const Highlight: ((props: import("@ark-ui/solid/highlight").HighlightProps) => import("solid-js").JSX.Element) & {
|
|
7
6
|
Root: (props: import("@ark-ui/solid/highlight").HighlightProps) => import("solid-js").JSX.Element;
|
|
8
|
-
};
|
|
9
|
-
//#endregion
|
|
7
|
+
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { n as withSelfRoot } from "../../family-
|
|
1
|
+
import { n as withSelfRoot } from "../../family-B5HtE0on.mjs";
|
|
2
2
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { Highlight as Highlight$1 } from "@ark-ui/solid/highlight";
|
|
4
|
-
|
|
4
|
+
// src/components/highlight/index.ts
|
|
5
5
|
/** Ark's Highlight, dressed in the paper-and-ink system: query hits are
|
|
6
6
|
* strokes of pigment on the page — a quiet tint of the accent behind the
|
|
7
7
|
* ink, never neon. The component renders bare <mark> elements, so the
|
|
8
8
|
* document-wide mark default carries the look. The API is Ark's own. */
|
|
9
9
|
const Highlight = withSelfRoot(Highlight$1);
|
|
10
10
|
injectComponentStyle("highlight");
|
|
11
|
-
//#endregion
|
|
12
11
|
export { Highlight };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, JSX } from "solid-js";
|
|
2
2
|
import { HoverCard as HoverCard$1 } from "@ark-ui/solid/hover-card";
|
|
3
|
-
//#region src/components/hover-card/index.d.ts
|
|
4
3
|
/** Ark's HoverCard, dressed in the paper-and-ink system: a preview card
|
|
5
4
|
* that dissolves in over a quiet inline link, never stealing focus. The
|
|
6
5
|
* API is Ark's own — Root, Trigger, Positioner, Content, Arrow, ArrowTip. */
|
|
@@ -22,4 +21,4 @@ declare function HoverCardFacade(props: HoverCardFacadeProps): JSX.Element;
|
|
|
22
21
|
export declare const HoverCard: typeof HoverCardFacade & Omit<typeof HoverCard$1, "Root"> & {
|
|
23
22
|
Root: typeof HoverCardRoot;
|
|
24
23
|
};
|
|
25
|
-
|
|
24
|
+
export {};
|