@bysages/solid 0.4.4 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/ai-NX47X8sz.mjs +365 -0
- package/dist/ai-prompt-input-CEnnpkgi.mjs +486 -0
- package/dist/{ai-response-CJ-uEAgj.mjs → ai-response-BM_DVIDY.mjs} +25 -27
- package/dist/{chevron-BHQrYKPM.mjs → chevron-DGKPHc2O.mjs} +2 -3
- package/dist/components/accordion/index.d.mts +1 -2
- package/dist/components/accordion/index.mjs +9 -16
- package/dist/components/affix/index.d.mts +1 -3
- package/dist/components/affix/index.mjs +19 -18
- package/dist/components/ai/index.d.mts +95 -2
- package/dist/components/ai/index.mjs +7 -69
- package/dist/components/ai-action/index.d.mts +0 -2
- package/dist/components/ai-action/index.mjs +4 -5
- package/dist/components/ai-attachments/index.d.mts +0 -2
- package/dist/components/ai-attachments/index.mjs +39 -52
- package/dist/components/ai-message/index.d.mts +2 -15
- package/dist/components/ai-message/index.mjs +18 -15
- package/dist/components/ai-prompt-input/index.d.mts +19 -15
- package/dist/components/ai-prompt-input/index.mjs +1 -168
- package/dist/components/ai-reasoning/index.d.mts +0 -2
- package/dist/components/ai-reasoning/index.mjs +8 -13
- package/dist/components/ai-response/index.d.mts +1 -3
- package/dist/components/ai-response/index.mjs +1 -2
- package/dist/components/ai-source/index.d.mts +0 -2
- package/dist/components/ai-source/index.mjs +25 -26
- package/dist/components/ai-suggestion/index.d.mts +0 -2
- package/dist/components/ai-suggestion/index.mjs +3 -4
- package/dist/components/ai-tool/index.d.mts +2 -25
- package/dist/components/ai-tool/index.mjs +75 -40
- package/dist/components/alert/index.d.mts +1 -2
- package/dist/components/alert/index.mjs +38 -33
- package/dist/components/angle-slider/index.d.mts +1 -2
- package/dist/components/angle-slider/index.mjs +6 -9
- package/dist/components/aspect-ratio/index.d.mts +1 -3
- package/dist/components/aspect-ratio/index.mjs +18 -17
- package/dist/components/autocomplete/index.d.mts +1 -2
- package/dist/components/autocomplete/index.mjs +6 -8
- package/dist/components/avatar/index.d.mts +1 -2
- package/dist/components/avatar/index.mjs +6 -7
- package/dist/components/avatar-group/index.d.mts +1 -3
- package/dist/components/avatar-group/index.mjs +15 -14
- package/dist/components/back-top/index.d.mts +1 -3
- package/dist/components/back-top/index.mjs +29 -34
- package/dist/components/badge/index.d.mts +1 -3
- package/dist/components/badge/index.mjs +18 -17
- package/dist/components/banner/index.d.mts +1 -2
- package/dist/components/banner/index.mjs +32 -31
- package/dist/components/bento/index.d.mts +1 -3
- package/dist/components/bento/index.mjs +30 -31
- package/dist/components/block-ui/index.d.mts +1 -3
- package/dist/components/block-ui/index.mjs +30 -33
- package/dist/components/breadcrumb/index.d.mts +1 -2
- package/dist/components/breadcrumb/index.mjs +8 -13
- package/dist/components/browser/index.d.mts +1 -3
- package/dist/components/browser/index.mjs +50 -51
- package/dist/components/button/index.d.mts +1 -3
- package/dist/components/button/index.mjs +31 -30
- package/dist/components/button-group/index.d.mts +1 -3
- package/dist/components/button-group/index.mjs +21 -20
- package/dist/components/calendar/index.d.mts +0 -2
- package/dist/components/calendar/index.mjs +73 -116
- package/dist/components/card/index.d.mts +1 -3
- package/dist/components/card/index.mjs +3 -4
- package/dist/components/carousel/index.d.mts +1 -2
- package/dist/components/carousel/index.mjs +6 -7
- package/dist/components/cascade-select/index.d.mts +1 -3
- package/dist/components/cascade-select/index.mjs +127 -167
- package/dist/components/checkbox/index.d.mts +1 -2
- package/dist/components/checkbox/index.mjs +7 -10
- package/dist/components/checkbox-group/index.d.mts +1 -2
- package/dist/components/checkbox-group/index.mjs +9 -12
- package/dist/components/chip/index.d.mts +1 -3
- package/dist/components/chip/index.mjs +22 -25
- package/dist/components/client-only/index.d.mts +0 -2
- package/dist/components/client-only/index.mjs +2 -3
- package/dist/components/clipboard/index.d.mts +1 -2
- package/dist/components/clipboard/index.mjs +10 -17
- package/dist/components/collapsible/index.d.mts +1 -2
- package/dist/components/collapsible/index.mjs +7 -14
- package/dist/components/collection/index.mjs +1 -2
- package/dist/components/color-picker/index.d.mts +1 -2
- package/dist/components/color-picker/index.mjs +10 -14
- package/dist/components/combobox/index.d.mts +1 -2
- package/dist/components/combobox/index.mjs +9 -14
- package/dist/components/command/index.d.mts +1 -2
- package/dist/components/command/index.mjs +63 -80
- package/dist/components/comment/index.d.mts +1 -3
- package/dist/components/comment/index.mjs +64 -80
- package/dist/components/config-provider/index.d.mts +1 -3
- package/dist/components/config-provider/index.mjs +10 -13
- package/dist/components/container/index.d.mts +1 -3
- package/dist/components/container/index.mjs +18 -17
- package/dist/components/data-view/index.d.mts +1 -3
- package/dist/components/data-view/index.mjs +81 -90
- package/dist/components/date-input/index.d.mts +1 -2
- package/dist/components/date-input/index.mjs +6 -9
- package/dist/components/date-picker/index.d.mts +1 -2
- package/dist/components/date-picker/index.mjs +11 -16
- package/dist/components/deferred-content/index.d.mts +1 -3
- package/dist/components/deferred-content/index.mjs +24 -25
- package/dist/components/descriptions/index.d.mts +1 -2
- package/dist/components/descriptions/index.mjs +40 -39
- package/dist/components/dialog/index.d.mts +11 -2
- package/dist/components/dialog/index.mjs +78 -40
- package/dist/components/dock/index.d.mts +1 -3
- package/dist/components/dock/index.mjs +29 -30
- package/dist/components/download-trigger/index.d.mts +0 -2
- package/dist/components/download-trigger/index.mjs +2 -3
- package/dist/components/drawer/index.d.mts +1 -2
- package/dist/components/drawer/index.mjs +9 -18
- package/dist/components/dynamic-input/index.d.mts +1 -3
- package/dist/components/dynamic-input/index.mjs +73 -77
- package/dist/components/editable/index.d.mts +1 -2
- package/dist/components/editable/index.mjs +7 -10
- package/dist/components/ellipsis/index.d.mts +1 -3
- package/dist/components/ellipsis/index.mjs +21 -20
- package/dist/components/empty/index.d.mts +1 -3
- package/dist/components/empty/index.mjs +3 -4
- package/dist/components/field/index.d.mts +1 -2
- package/dist/components/field/index.mjs +4 -5
- package/dist/components/fieldset/index.d.mts +1 -2
- package/dist/components/fieldset/index.mjs +6 -9
- package/dist/components/file-upload/index.d.mts +1 -2
- package/dist/components/file-upload/index.mjs +6 -7
- package/dist/components/float-button/index.d.mts +1 -2
- package/dist/components/float-button/index.mjs +41 -43
- package/dist/components/floating-panel/index.d.mts +1 -2
- package/dist/components/floating-panel/index.mjs +10 -21
- package/dist/components/focus-trap/index.d.mts +0 -2
- package/dist/components/focus-trap/index.mjs +2 -3
- package/dist/components/form/index.d.mts +0 -2
- package/dist/components/form/index.mjs +42 -58
- package/dist/components/format/index.d.mts +1 -3
- package/dist/components/format/index.mjs +1 -2
- package/dist/components/frame/index.d.mts +1 -2
- package/dist/components/frame/index.mjs +3 -4
- package/dist/components/grid/index.d.mts +1 -3
- package/dist/components/grid/index.mjs +23 -22
- package/dist/components/highlight/index.d.mts +1 -3
- package/dist/components/highlight/index.mjs +2 -3
- package/dist/components/hover-card/index.d.mts +1 -2
- package/dist/components/hover-card/index.mjs +12 -27
- package/dist/components/icon/index.d.mts +1 -3
- package/dist/components/icon/index.mjs +35 -36
- package/dist/components/image/index.d.mts +1 -3
- package/dist/components/image/index.mjs +48 -52
- package/dist/components/image-cropper/index.d.mts +1 -2
- package/dist/components/image-cropper/index.mjs +5 -6
- package/dist/components/image-viewer/index.d.mts +1 -1
- package/dist/components/image-viewer/index.mjs +1 -2
- package/dist/components/input/index.d.mts +1 -3
- package/dist/components/input/index.mjs +1 -2
- package/dist/components/input-group/index.d.mts +1 -2
- package/dist/components/input-group/index.mjs +19 -16
- package/dist/components/json-tree-view/index.d.mts +1 -2
- package/dist/components/json-tree-view/index.mjs +5 -6
- package/dist/components/kbd/index.d.mts +1 -3
- package/dist/components/kbd/index.mjs +12 -11
- package/dist/components/layout/index.d.mts +1 -2
- package/dist/components/layout/index.mjs +92 -84
- package/dist/components/link/index.d.mts +1 -3
- package/dist/components/link/index.mjs +15 -15
- package/dist/components/list/index.d.mts +1 -2
- package/dist/components/list/index.mjs +57 -61
- package/dist/components/listbox/index.d.mts +1 -2
- package/dist/components/listbox/index.mjs +8 -11
- package/dist/components/marquee/index.d.mts +1 -2
- package/dist/components/marquee/index.mjs +7 -8
- package/dist/components/masonry/index.d.mts +1 -3
- package/dist/components/masonry/index.mjs +19 -18
- package/dist/components/media-player/index.d.mts +1 -1
- package/dist/components/media-player/index.mjs +1 -2
- package/dist/components/mentions/index.d.mts +2 -2
- package/dist/components/mentions/index.mjs +1 -3
- package/dist/components/menu/index.d.mts +1 -2
- package/dist/components/menu/index.mjs +8 -17
- package/dist/components/menubar/index.d.mts +1 -2
- package/dist/components/menubar/index.mjs +66 -72
- package/dist/components/meter/index.d.mts +1 -2
- package/dist/components/meter/index.mjs +42 -43
- package/dist/components/navigation-menu/index.d.mts +1 -2
- package/dist/components/navigation-menu/index.mjs +7 -12
- package/dist/components/number-input/index.d.mts +1 -2
- package/dist/components/number-input/index.mjs +7 -10
- package/dist/components/order-list/index.d.mts +1 -3
- package/dist/components/order-list/index.mjs +86 -101
- package/dist/components/page-header/index.d.mts +1 -3
- package/dist/components/page-header/index.mjs +3 -4
- package/dist/components/pagination/index.d.mts +1 -2
- package/dist/components/pagination/index.mjs +31 -42
- package/dist/components/password-input/index.d.mts +1 -2
- package/dist/components/password-input/index.mjs +6 -7
- package/dist/components/pin-input/index.d.mts +1 -2
- package/dist/components/pin-input/index.mjs +6 -9
- package/dist/components/popconfirm/index.d.mts +2 -3
- package/dist/components/popconfirm/index.mjs +15 -23
- package/dist/components/popover/index.d.mts +2 -26
- package/dist/components/popover/index.mjs +10 -21
- package/dist/components/presence/index.d.mts +0 -2
- package/dist/components/presence/index.mjs +2 -3
- package/dist/components/progress/index.d.mts +1 -2
- package/dist/components/progress/index.mjs +14 -26
- package/dist/components/progress-group/index.d.mts +1 -3
- package/dist/components/progress-group/index.mjs +60 -68
- package/dist/components/qr-code/index.d.mts +1 -2
- package/dist/components/qr-code/index.mjs +5 -8
- package/dist/components/radio-group/index.d.mts +1 -2
- package/dist/components/radio-group/index.mjs +6 -9
- package/dist/components/rating-group/index.d.mts +1 -2
- package/dist/components/rating-group/index.mjs +7 -10
- package/dist/components/result/index.d.mts +1 -2
- package/dist/components/result/index.mjs +28 -29
- package/dist/components/scroll-area/index.d.mts +8 -3
- package/dist/components/scroll-area/index.mjs +19 -11
- package/dist/components/segment-group/index.d.mts +1 -2
- package/dist/components/segment-group/index.mjs +5 -8
- package/dist/components/select/index.d.mts +1 -1
- package/dist/components/select/index.mjs +1 -2
- package/dist/components/separator/index.d.mts +1 -3
- package/dist/components/separator/index.mjs +21 -20
- package/dist/components/signature-pad/index.d.mts +1 -2
- package/dist/components/signature-pad/index.mjs +7 -10
- package/dist/components/skeleton/index.d.mts +1 -3
- package/dist/components/skeleton/index.mjs +12 -11
- package/dist/components/slider/index.d.mts +1 -2
- package/dist/components/slider/index.mjs +6 -9
- package/dist/components/spinner/index.d.mts +1 -3
- package/dist/components/spinner/index.mjs +20 -19
- package/dist/components/split-button/index.d.mts +1 -2
- package/dist/components/split-button/index.mjs +92 -94
- package/dist/components/splitter/index.d.mts +1 -2
- package/dist/components/splitter/index.mjs +5 -8
- package/dist/components/spotlight/index.d.mts +1 -3
- package/dist/components/spotlight/index.mjs +22 -23
- package/dist/components/stack/index.d.mts +1 -3
- package/dist/components/stack/index.mjs +24 -23
- package/dist/components/stat/index.d.mts +1 -2
- package/dist/components/stat/index.mjs +15 -14
- package/dist/components/steps/index.d.mts +0 -2
- package/dist/components/steps/index.mjs +10 -17
- package/dist/components/swap/index.d.mts +1 -2
- package/dist/components/swap/index.mjs +5 -6
- package/dist/components/switch/index.d.mts +1 -2
- package/dist/components/switch/index.mjs +6 -9
- package/dist/components/table/index.d.mts +0 -2
- package/dist/components/table/index.mjs +233 -320
- package/dist/components/tabs/index.d.mts +8 -12
- package/dist/components/tabs/index.mjs +83 -34
- package/dist/components/tag/index.d.mts +1 -2
- package/dist/components/tag/index.mjs +46 -70
- package/dist/components/tags-input/index.d.mts +1 -2
- package/dist/components/tags-input/index.mjs +7 -10
- package/dist/components/terminal/index.d.mts +3 -3
- package/dist/components/terminal/index.mjs +61 -56
- package/dist/components/textarea/index.d.mts +1 -3
- package/dist/components/textarea/index.mjs +10 -11
- package/dist/components/timeline/index.d.mts +1 -2
- package/dist/components/timeline/index.mjs +15 -14
- package/dist/components/timer/index.d.mts +1 -2
- package/dist/components/timer/index.mjs +5 -6
- package/dist/components/toast/index.d.mts +0 -2
- package/dist/components/toast/index.mjs +5 -6
- package/dist/components/toc/index.d.mts +1 -1
- package/dist/components/toc/index.mjs +1 -2
- package/dist/components/toggle/index.d.mts +1 -2
- package/dist/components/toggle/index.mjs +5 -6
- package/dist/components/toggle-group/index.d.mts +1 -2
- package/dist/components/toggle-group/index.mjs +11 -16
- package/dist/components/toolbar/index.d.mts +1 -3
- package/dist/components/toolbar/index.mjs +27 -31
- package/dist/components/tooltip/index.d.mts +1 -2
- package/dist/components/tooltip/index.mjs +7 -16
- package/dist/components/tour/index.d.mts +0 -2
- package/dist/components/tour/index.mjs +11 -16
- package/dist/components/transfer/index.d.mts +1 -2
- package/dist/components/transfer/index.mjs +115 -126
- package/dist/components/tree-select/index.d.mts +2 -3
- package/dist/components/tree-select/index.mjs +24 -33
- package/dist/components/tree-view/index.d.mts +10 -4
- package/dist/components/tree-view/index.mjs +32 -23
- package/dist/components/typography/index.d.mts +2 -3
- package/dist/components/typography/index.mjs +4 -4
- package/dist/components/user/index.d.mts +1 -3
- package/dist/components/user/index.mjs +40 -57
- package/dist/components/virtual-list/index.d.mts +1 -3
- package/dist/components/virtual-list/index.mjs +39 -45
- package/dist/components/watermark/index.d.mts +1 -3
- package/dist/components/watermark/index.mjs +15 -22
- package/dist/{element-dGIhOTJ6.mjs → element-liigPBUh.mjs} +1 -2
- package/dist/{family-Cmd8HEyK.mjs → family-B5HtE0on.mjs} +1 -2
- package/dist/generative/index.d.mts +0 -2
- package/dist/generative/index.mjs +28 -53
- package/dist/{icon-DTqmJCd5.mjs → icon-DQqYA2fO.mjs} +11 -17
- package/dist/{id-2ygNzPHF.mjs → id-DGvz-2rQ.mjs} +1 -2
- package/dist/{image-viewer-19s75Hz_.mjs → image-viewer-TEia4PaY.mjs} +73 -101
- package/dist/{index-BU5U5w04.d.mts → index-B4WyTngM.d.mts} +0 -4
- package/dist/index-BRvSfkKs.d.mts +25 -0
- package/dist/{index-DhripUtf.d.mts → index-CTsFsYdA.d.mts} +0 -4
- package/dist/index-CutrHCzU.d.mts +153 -0
- package/dist/{index-wW28BYf1.d.mts → index-CwmZdzxT.d.mts} +0 -8
- package/dist/index-DK7YgaAU.d.mts +37 -0
- package/dist/index-Dms00480.d.mts +115 -0
- package/dist/{index-ID48LCMU.d.mts → index-Dv6mwzIr.d.mts} +3 -7
- package/dist/index.d.mts +13 -13
- package/dist/index.mjs +12 -12
- package/dist/{input-BL3N3L8g.mjs → input-2xfPP-7Z.mjs} +11 -13
- package/dist/{media-player-yF7KVUxM.mjs → media-player-LHnTiSiN.mjs} +248 -259
- package/dist/mentions-CvY9IGzc.mjs +438 -0
- package/dist/{select-DI7pFspF.mjs → select-NaNlrYUT.mjs} +72 -96
- package/dist/{toc-DRHr8_eD.mjs → toc-RnPG3w7q.mjs} +5 -7
- package/dist/{use-component-messages-C4SCVYjD.mjs → use-component-messages-DS9ppb4C.mjs} +1 -2
- package/package.json +13 -13
- package/dist/index-DEArHiFI.d.mts +0 -104
- package/dist/index-DVc1L_zt.d.mts +0 -10435
- package/dist/mentions-DKUG7eHt.mjs +0 -279
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { n as withSelfRoot } from "../../family-
|
|
2
|
-
import { spread, template } from "
|
|
1
|
+
import { n as withSelfRoot } from "../../family-B5HtE0on.mjs";
|
|
2
|
+
import { 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/ellipsis/index.tsx
|
|
6
|
+
var _tmpl$ = /*#__PURE__*/ template(`<span>`);
|
|
7
7
|
const Ellipsis = withSelfRoot(function Ellipsis(props) {
|
|
8
8
|
injectComponentStyle("ellipsis");
|
|
9
9
|
const [own, rest] = splitProps(props, ["lines"]);
|
|
10
10
|
const multiline = () => (own.lines ?? 1) > 1;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
11
|
+
return (() => {
|
|
12
|
+
var _el$ = _tmpl$();
|
|
13
|
+
spread(_el$, mergeProps(rest, {
|
|
14
|
+
get style() {
|
|
15
|
+
return {
|
|
16
|
+
...rest.style,
|
|
17
|
+
...multiline() ? { "--bs-ellipsis-lines": String(own.lines) } : {}
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
"data-scope": "ellipsis",
|
|
21
|
+
"data-part": "root",
|
|
22
|
+
get ["data-multiline"]() {
|
|
23
|
+
return multiline() ? "" : void 0;
|
|
24
|
+
}
|
|
25
|
+
}), false, false);
|
|
26
|
+
return _el$;
|
|
27
|
+
})();
|
|
26
28
|
});
|
|
27
|
-
//#endregion
|
|
28
29
|
export { Ellipsis };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { Component } from "solid-js";
|
|
2
|
-
//#region src/components/empty/index.d.ts
|
|
3
2
|
export declare const Empty: Component<Record<string, unknown>> & {
|
|
4
3
|
Root: Component<Record<string, unknown>>;
|
|
5
4
|
Visual: Component<Record<string, unknown>>;
|
|
6
5
|
Title: Component<Record<string, unknown>>;
|
|
7
6
|
Description: Component<Record<string, unknown>>;
|
|
8
7
|
Actions: Component<Record<string, unknown>>;
|
|
9
|
-
};
|
|
10
|
-
//#endregion
|
|
8
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createComponent, mergeProps } from "
|
|
1
|
+
import { createComponent, mergeProps } from "solid-js/web";
|
|
2
2
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
|
-
|
|
3
|
+
// src/components/empty/index.tsx
|
|
4
4
|
/** An empty state: the page holds its breath. Root centers the column,
|
|
5
5
|
* Visual carries the mark, Title and Description carry the ink, Actions
|
|
6
6
|
* the way out. Any subset composes. */
|
|
@@ -8,7 +8,7 @@ function part(name, tag) {
|
|
|
8
8
|
return ((props) => {
|
|
9
9
|
return createComponent(tag, mergeProps(props, {
|
|
10
10
|
"data-scope": "empty",
|
|
11
|
-
get "data-part"() {
|
|
11
|
+
get ["data-part"]() {
|
|
12
12
|
return name.toLowerCase();
|
|
13
13
|
}
|
|
14
14
|
}));
|
|
@@ -27,5 +27,4 @@ const Empty = Object.assign(Root, {
|
|
|
27
27
|
Actions
|
|
28
28
|
});
|
|
29
29
|
injectComponentStyle("empty");
|
|
30
|
-
//#endregion
|
|
31
30
|
export { Empty };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "solid-js";
|
|
2
2
|
import { Field as Field$1 } from "@ark-ui/solid/field";
|
|
3
|
-
//#region src/components/field/index.d.ts
|
|
4
3
|
/** Ark's Field, dressed in the paper-and-ink system: a tracked label, a
|
|
5
4
|
* border-and-halo control, and quiet help text. The API is Ark's own —
|
|
6
5
|
* Root, Label, Input, Textarea, Select, HelperText, ErrorText,
|
|
@@ -24,4 +23,4 @@ type FieldParts = Omit<typeof Field$1, "Root"> & {
|
|
|
24
23
|
Root: typeof FieldRoot;
|
|
25
24
|
};
|
|
26
25
|
export declare const Field: typeof FieldFacade & FieldParts;
|
|
27
|
-
|
|
26
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as defineFamily } from "../../family-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
3
|
-
import { createComponent } from "
|
|
1
|
+
import { t as defineFamily } from "../../family-B5HtE0on.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-DGvz-2rQ.mjs";
|
|
3
|
+
import { createComponent } from "solid-js/web";
|
|
4
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { Show, createComponent as createComponent$1, mergeProps as mergeProps$1 } from "solid-js";
|
|
6
6
|
import { Field as Field$1 } from "@ark-ui/solid/field";
|
|
7
|
-
|
|
7
|
+
// src/components/field/index.tsx
|
|
8
8
|
/** Ark's Field, dressed in the paper-and-ink system: a tracked label, a
|
|
9
9
|
* border-and-halo control, and quiet help text. The API is Ark's own —
|
|
10
10
|
* Root, Label, Input, Textarea, Select, HelperText, ErrorText,
|
|
@@ -67,5 +67,4 @@ const Field = defineFamily(FieldFacade, {
|
|
|
67
67
|
Root: FieldRoot
|
|
68
68
|
});
|
|
69
69
|
injectComponentStyle("field");
|
|
70
|
-
//#endregion
|
|
71
70
|
export { Field };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, JSX } from "solid-js";
|
|
2
2
|
import { Fieldset as Fieldset$1 } from "@ark-ui/solid/fieldset";
|
|
3
|
-
//#region src/components/fieldset/index.d.ts
|
|
4
3
|
/** Ark's Fieldset, dressed in the paper-and-ink system: a song-serif
|
|
5
4
|
* legend heading a column of fields. The API is Ark's own — Root, Legend,
|
|
6
5
|
* HelperText, ErrorText. */
|
|
@@ -20,4 +19,4 @@ type FieldsetParts = Omit<typeof Fieldset$1, "Root"> & {
|
|
|
20
19
|
Root: typeof FieldsetRoot;
|
|
21
20
|
};
|
|
22
21
|
export declare const Fieldset: typeof FieldsetFacade & FieldsetParts;
|
|
23
|
-
|
|
22
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as defineFamily } from "../../family-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
3
|
-
import { createComponent, memo } from "
|
|
1
|
+
import { t as defineFamily } from "../../family-B5HtE0on.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-DGvz-2rQ.mjs";
|
|
3
|
+
import { createComponent, memo } from "solid-js/web";
|
|
4
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { Show, createComponent as createComponent$1, mergeProps as mergeProps$1 } from "solid-js";
|
|
6
6
|
import { Fieldset as Fieldset$1 } from "@ark-ui/solid/fieldset";
|
|
7
|
-
|
|
7
|
+
// src/components/fieldset/index.tsx
|
|
8
8
|
/** Ark's Fieldset, dressed in the paper-and-ink system: a song-serif
|
|
9
9
|
* legend heading a column of fields. The API is Ark's own — Root, Legend,
|
|
10
10
|
* HelperText, ErrorText. */
|
|
@@ -23,7 +23,7 @@ function FieldsetFacade(props) {
|
|
|
23
23
|
get invalid() {
|
|
24
24
|
return props.invalid;
|
|
25
25
|
},
|
|
26
|
-
get "data-required"() {
|
|
26
|
+
get ["data-required"]() {
|
|
27
27
|
return props.required || void 0;
|
|
28
28
|
},
|
|
29
29
|
get children() {
|
|
@@ -38,9 +38,7 @@ function FieldsetFacade(props) {
|
|
|
38
38
|
} });
|
|
39
39
|
}
|
|
40
40
|
}),
|
|
41
|
-
memo(() =>
|
|
42
|
-
return props.children;
|
|
43
|
-
}),
|
|
41
|
+
memo(() => props.children),
|
|
44
42
|
createComponent(Show, {
|
|
45
43
|
get when() {
|
|
46
44
|
return props.description;
|
|
@@ -60,5 +58,4 @@ const Fieldset = defineFamily(FieldsetFacade, {
|
|
|
60
58
|
Root: FieldsetRoot
|
|
61
59
|
});
|
|
62
60
|
injectComponentStyle("fieldset");
|
|
63
|
-
//#endregion
|
|
64
61
|
export { Fieldset };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "solid-js";
|
|
2
2
|
import { FileUpload as FileUpload$1, FileUploadRootProps } from "@ark-ui/solid/file-upload";
|
|
3
|
-
//#region src/components/file-upload/index.d.ts
|
|
4
3
|
/** The inner trigger repeats the click binding the dropzone already
|
|
5
4
|
* owns: keyboard users enter through the dropzone, so the button
|
|
6
5
|
* leaves the tab order and the semantic tree entirely. */
|
|
@@ -34,4 +33,4 @@ type FileUploadParts = Omit<typeof FileUpload$1, "Root" | "Trigger"> & {
|
|
|
34
33
|
Trigger: typeof FileUploadTrigger;
|
|
35
34
|
};
|
|
36
35
|
export declare const FileUpload: typeof FileUploadFacade & FileUploadParts;
|
|
37
|
-
|
|
36
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as defineFamily } from "../../family-
|
|
2
|
-
import { r as iconNode } from "../../icon-
|
|
3
|
-
import { t as useElementId } from "../../id-
|
|
4
|
-
import { createComponent, mergeProps } from "
|
|
1
|
+
import { t as defineFamily } from "../../family-B5HtE0on.mjs";
|
|
2
|
+
import { r as iconNode } from "../../icon-DQqYA2fO.mjs";
|
|
3
|
+
import { t as useElementId } from "../../id-DGvz-2rQ.mjs";
|
|
4
|
+
import { createComponent, mergeProps } from "solid-js/web";
|
|
5
5
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
6
6
|
import { For, Show, splitProps } from "solid-js";
|
|
7
7
|
import { FileUpload as FileUpload$1 } from "@ark-ui/solid/file-upload";
|
|
8
|
-
|
|
8
|
+
// src/components/file-upload/index.tsx
|
|
9
9
|
/** The inner trigger repeats the click binding the dropzone already
|
|
10
10
|
* owns: keyboard users enter through the dropzone, so the button
|
|
11
11
|
* leaves the tab order and the semantic tree entirely. */
|
|
@@ -22,7 +22,7 @@ function FileUploadRoot(props) {
|
|
|
22
22
|
get id() {
|
|
23
23
|
return id();
|
|
24
24
|
},
|
|
25
|
-
get "data-size"() {
|
|
25
|
+
get ["data-size"]() {
|
|
26
26
|
return own.size ?? "md";
|
|
27
27
|
}
|
|
28
28
|
}));
|
|
@@ -95,5 +95,4 @@ const FileUpload = defineFamily(FileUploadFacade, {
|
|
|
95
95
|
Trigger: FileUploadTrigger
|
|
96
96
|
});
|
|
97
97
|
injectComponentStyle("file-upload");
|
|
98
|
-
//#endregion
|
|
99
98
|
export { FileUpload };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JSX } from "solid-js";
|
|
2
|
-
//#region src/components/float-button/index.d.ts
|
|
3
2
|
export type FloatButtonPlacement = "bottom-end" | "bottom-start" | "top-end" | "top-start";
|
|
4
3
|
export type FloatButtonSize = "sm" | "md" | "lg";
|
|
5
4
|
/** The group's openness, shared from the mooring to its parts. */
|
|
@@ -81,4 +80,4 @@ export declare const FloatButton: typeof FloatButtonFacade & {
|
|
|
81
80
|
Trigger: typeof FloatButtonTrigger;
|
|
82
81
|
Item: typeof FloatButtonItem;
|
|
83
82
|
};
|
|
84
|
-
|
|
83
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { r as iconNode } from "../../icon-
|
|
1
|
+
import { r as iconNode } from "../../icon-DQqYA2fO.mjs";
|
|
2
2
|
import { Button } from "../button/index.mjs";
|
|
3
|
-
import { n as useComponentMessages } from "../../use-component-messages-
|
|
4
|
-
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";
|
|
5
5
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
6
6
|
import { For, Show, createContext, createSignal, splitProps, useContext } from "solid-js";
|
|
7
|
-
|
|
8
|
-
var _tmpl$ =
|
|
9
|
-
var _tmpl$2 =
|
|
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>`);
|
|
10
10
|
/** Solid context for {@link FloatButtonContext}, exported so a custom
|
|
11
11
|
* part can read the group's state with `useContext`. */
|
|
12
12
|
const FloatButtonContextKey = createContext();
|
|
@@ -42,16 +42,16 @@ function FloatButtonRoot(props) {
|
|
|
42
42
|
value: context,
|
|
43
43
|
get children() {
|
|
44
44
|
var _el$ = _tmpl$();
|
|
45
|
-
spread(_el$,
|
|
45
|
+
spread(_el$, mergeProps(rest, {
|
|
46
46
|
"data-scope": "float-button",
|
|
47
47
|
"data-part": "root",
|
|
48
|
-
get "data-placement"() {
|
|
48
|
+
get ["data-placement"]() {
|
|
49
49
|
return own.placement ?? "bottom-end";
|
|
50
50
|
},
|
|
51
|
-
get "data-state"() {
|
|
51
|
+
get ["data-state"]() {
|
|
52
52
|
return open() ? "open" : "closed";
|
|
53
53
|
}
|
|
54
|
-
}
|
|
54
|
+
}), false, false);
|
|
55
55
|
return _el$;
|
|
56
56
|
}
|
|
57
57
|
});
|
|
@@ -72,10 +72,10 @@ function FloatButtonTrigger(props) {
|
|
|
72
72
|
return context?.size() ?? "lg";
|
|
73
73
|
},
|
|
74
74
|
onClick: () => context?.toggle(),
|
|
75
|
-
get "aria-label"() {
|
|
75
|
+
get ["aria-label"]() {
|
|
76
76
|
return own.label || messages().floatButton.actions;
|
|
77
77
|
},
|
|
78
|
-
get "aria-expanded"() {
|
|
78
|
+
get ["aria-expanded"]() {
|
|
79
79
|
return context?.open() ?? false;
|
|
80
80
|
},
|
|
81
81
|
get children() {
|
|
@@ -91,36 +91,35 @@ function FloatButtonItem(props) {
|
|
|
91
91
|
"children"
|
|
92
92
|
]);
|
|
93
93
|
const context = useContext(FloatButtonContextKey);
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
return
|
|
122
|
-
});
|
|
123
|
-
return _el$2;
|
|
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
|
+
})();
|
|
124
123
|
}
|
|
125
124
|
/** The shorthand: a speed dial from plain actions; the trigger and
|
|
126
125
|
* openness stay inside the family. */
|
|
@@ -198,5 +197,4 @@ const FloatButton = Object.assign(FloatButtonFacade, {
|
|
|
198
197
|
Item: FloatButtonItem
|
|
199
198
|
});
|
|
200
199
|
injectComponentStyle("float-button");
|
|
201
|
-
//#endregion
|
|
202
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 {};
|