@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,13 +1,13 @@
|
|
|
1
|
-
import { t as defineFamily } from "../../family-
|
|
2
|
-
import { r as iconNode } from "../../icon-
|
|
3
|
-
import { t as useElementId } from "../../id-
|
|
4
|
-
import { n as withElementProps, t as isElement } from "../../element-
|
|
5
|
-
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 { n as withElementProps, t as isElement } from "../../element-liigPBUh.mjs";
|
|
5
|
+
import { createComponent, insert, memo, mergeProps, template } from "solid-js/web";
|
|
6
6
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
7
7
|
import { Show, createComponent as createComponent$1, mergeProps as mergeProps$1 } from "solid-js";
|
|
8
8
|
import { Popover as Popover$1 } from "@ark-ui/solid/popover";
|
|
9
|
-
|
|
10
|
-
var _tmpl$ =
|
|
9
|
+
// src/components/popover/index.tsx
|
|
10
|
+
var _tmpl$ = /*#__PURE__*/ template(`<p>`);
|
|
11
11
|
/** Ark's Popover, dressed in the paper-and-ink system: a paper vessel that
|
|
12
12
|
* dissolves in on elevation, anchored to its trigger by a whisker arrow. The
|
|
13
13
|
* API is Ark's own — Root, Trigger, Anchor, Indicator, Positioner, Content,
|
|
@@ -26,13 +26,7 @@ function PopoverFacade(props) {
|
|
|
26
26
|
const trigger = triggerElement();
|
|
27
27
|
return trigger ? withElementProps(trigger, propsFn()) : props.trigger ?? props.label;
|
|
28
28
|
};
|
|
29
|
-
return createComponent(PopoverRoot, mergeProps(() => {
|
|
30
|
-
return props.open === void 0 ? {} : { open: props.open };
|
|
31
|
-
}, () => {
|
|
32
|
-
return props.defaultOpen === void 0 ? {} : { defaultOpen: props.defaultOpen };
|
|
33
|
-
}, () => {
|
|
34
|
-
return props.placement === void 0 ? {} : { positioning: { placement: props.placement } };
|
|
35
|
-
}, {
|
|
29
|
+
return createComponent(PopoverRoot, mergeProps(() => props.open === void 0 ? {} : { open: props.open }, () => props.defaultOpen === void 0 ? {} : { defaultOpen: props.defaultOpen }, () => props.placement === void 0 ? {} : { positioning: { placement: props.placement } }, {
|
|
36
30
|
onOpenChange: (details) => props.onOpenChange?.(details.open),
|
|
37
31
|
get children() {
|
|
38
32
|
return [createComponent(Popover$1.Trigger, {
|
|
@@ -76,15 +70,11 @@ function PopoverFacade(props) {
|
|
|
76
70
|
},
|
|
77
71
|
get children() {
|
|
78
72
|
var _el$ = _tmpl$();
|
|
79
|
-
insert(_el$, () =>
|
|
80
|
-
return props.content;
|
|
81
|
-
});
|
|
73
|
+
insert(_el$, () => props.content);
|
|
82
74
|
return _el$;
|
|
83
75
|
}
|
|
84
76
|
}),
|
|
85
|
-
memo(() =>
|
|
86
|
-
return props.children;
|
|
87
|
-
})
|
|
77
|
+
memo(() => props.children)
|
|
88
78
|
];
|
|
89
79
|
} });
|
|
90
80
|
} })];
|
|
@@ -96,5 +86,4 @@ const Popover = defineFamily(PopoverFacade, {
|
|
|
96
86
|
Root: PopoverRoot
|
|
97
87
|
});
|
|
98
88
|
injectComponentStyle("popover");
|
|
99
|
-
//#endregion
|
|
100
89
|
export { Popover };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { PresenceProps, UsePresenceContext, UsePresenceProps, UsePresenceReturn, usePresence, usePresenceContext } from "@ark-ui/solid/presence";
|
|
2
|
-
//#region src/components/presence/index.d.ts
|
|
3
2
|
export declare const Presence: ((props: import("@ark-ui/solid/presence").PresenceProps) => import("solid-js").JSX.Element) & {
|
|
4
3
|
Root: (props: import("@ark-ui/solid/presence").PresenceProps) => import("solid-js").JSX.Element;
|
|
5
4
|
};
|
|
6
5
|
export declare const PresenceProvider: import("solid-js").ContextProviderComponent<import("@ark-ui/solid/presence").UsePresenceContext> & {
|
|
7
6
|
Root: import("solid-js").ContextProviderComponent<import("@ark-ui/solid/presence").UsePresenceContext>;
|
|
8
7
|
};
|
|
9
|
-
//#endregion
|
|
10
8
|
export { type PresenceProps, type UsePresenceContext, type UsePresenceProps, type UsePresenceReturn, usePresence, usePresenceContext };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { n as withSelfRoot } from "../../family-
|
|
1
|
+
import { n as withSelfRoot } from "../../family-B5HtE0on.mjs";
|
|
2
2
|
import { Presence as Presence$1, PresenceProvider as PresenceProvider$1, usePresence, usePresenceContext } from "@ark-ui/solid/presence";
|
|
3
|
-
|
|
3
|
+
// src/components/presence/index.ts
|
|
4
4
|
/** Mount/unmount children in step with CSS presence animations — the
|
|
5
5
|
* engine behind Ark's "postpone unmounting so exit animations finish"
|
|
6
6
|
* contract, exposed for composites of our own. */
|
|
7
7
|
const Presence = withSelfRoot(Presence$1);
|
|
8
8
|
const PresenceProvider = withSelfRoot(PresenceProvider$1);
|
|
9
|
-
//#endregion
|
|
10
9
|
export { Presence, PresenceProvider, usePresence, usePresenceContext };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Progress as Progress$1, ProgressRootProps } from "@ark-ui/solid/progress";
|
|
2
|
-
//#region src/components/progress/index.d.ts
|
|
3
2
|
/** Ark's Progress, dressed in the paper-and-ink system: a quiet hairline
|
|
4
3
|
* groove that the primary ink fills at the machine's pace. The API is
|
|
5
4
|
* Ark's own — Root, Label, ValueText, Track, Range, View, Circle,
|
|
@@ -30,4 +29,4 @@ declare function ProgressFacade(props: ProgressFacadeProps): import("solid-js").
|
|
|
30
29
|
export declare const Progress: typeof ProgressFacade & Omit<typeof Progress$1, "Root"> & {
|
|
31
30
|
Root: typeof ProgressRoot;
|
|
32
31
|
};
|
|
33
|
-
|
|
32
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as defineFamily } from "../../family-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
3
|
-
import { createComponent, effect, insert, memo, mergeProps, setStyleProperty, template } from "
|
|
1
|
+
import { t as defineFamily } from "../../family-B5HtE0on.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-DGvz-2rQ.mjs";
|
|
3
|
+
import { createComponent, effect, insert, memo, mergeProps, setStyleProperty, template } from "solid-js/web";
|
|
4
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { Show, createMemo, splitProps } from "solid-js";
|
|
6
6
|
import { Progress as Progress$1, useProgressContext } from "@ark-ui/solid/progress";
|
|
7
|
-
|
|
8
|
-
var _tmpl$ =
|
|
7
|
+
// src/components/progress/index.tsx
|
|
8
|
+
var _tmpl$ = /*#__PURE__*/ template(`<div data-scope=progress data-part=view data-view=dashboard><div aria-hidden=true data-scope=progress data-part=dash-ring>`);
|
|
9
9
|
function ProgressRoot(props) {
|
|
10
10
|
injectComponentStyle("progress");
|
|
11
11
|
const [own, rest] = splitProps(props, [
|
|
@@ -29,10 +29,10 @@ function ProgressRoot(props) {
|
|
|
29
29
|
get id() {
|
|
30
30
|
return id();
|
|
31
31
|
},
|
|
32
|
-
get "data-size"() {
|
|
32
|
+
get ["data-size"]() {
|
|
33
33
|
return own.size ?? "md";
|
|
34
34
|
},
|
|
35
|
-
get "data-variant"() {
|
|
35
|
+
get ["data-variant"]() {
|
|
36
36
|
return own.variant ?? "linear";
|
|
37
37
|
},
|
|
38
38
|
get children() {
|
|
@@ -44,19 +44,12 @@ function ProgressRoot(props) {
|
|
|
44
44
|
return rest.children;
|
|
45
45
|
},
|
|
46
46
|
get children() {
|
|
47
|
-
return [memo(() => {
|
|
48
|
-
return
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
return own.label;
|
|
52
|
-
} }) : null;
|
|
53
|
-
}), (() => {
|
|
54
|
-
var _el$ = _tmpl$();
|
|
55
|
-
var _el$2 = _el$.firstChild;
|
|
47
|
+
return [memo(() => memo(() => !!own.label)() ? createComponent(Progress$1.Label, { get children() {
|
|
48
|
+
return own.label;
|
|
49
|
+
} }) : null), (() => {
|
|
50
|
+
var _el$ = _tmpl$(), _el$2 = _el$.firstChild;
|
|
56
51
|
insert(_el$, createComponent(Progress$1.ValueText, {}), null);
|
|
57
|
-
effect(() => String(dashboardPercent())
|
|
58
|
-
setStyleProperty(_el$2, "--percent", _v$);
|
|
59
|
-
});
|
|
52
|
+
effect((_$p) => setStyleProperty(_el$2, "--percent", String(dashboardPercent())));
|
|
60
53
|
return _el$;
|
|
61
54
|
})()];
|
|
62
55
|
}
|
|
@@ -101,14 +94,10 @@ function ProgressFacade(props) {
|
|
|
101
94
|
get max() {
|
|
102
95
|
return props.max;
|
|
103
96
|
}
|
|
104
|
-
}, () => {
|
|
105
|
-
return props.value === void 0 ? {} : { value: props.value };
|
|
106
|
-
}, {
|
|
97
|
+
}, () => props.value === void 0 ? {} : { value: props.value }, {
|
|
107
98
|
onValueChange: (details) => props.onValueChange?.(details.value),
|
|
108
99
|
get children() {
|
|
109
|
-
return memo(() => {
|
|
110
|
-
return variant() === "dashboard";
|
|
111
|
-
})() ? null : [props.label ? createComponent(Progress$1.Label, { get children() {
|
|
100
|
+
return memo(() => variant() === "dashboard")() ? null : [props.label ? createComponent(Progress$1.Label, { get children() {
|
|
112
101
|
return props.label;
|
|
113
102
|
} }) : null, variant() === "circle" ? createComponent(ProgressCircleView, {}) : createComponent(Progress$1.Track, { get children() {
|
|
114
103
|
return createComponent(Progress$1.Range, {});
|
|
@@ -121,5 +110,4 @@ const Progress = defineFamily(ProgressFacade, {
|
|
|
121
110
|
Root: ProgressRoot
|
|
122
111
|
});
|
|
123
112
|
injectComponentStyle("progress");
|
|
124
|
-
//#endregion
|
|
125
113
|
export { Progress };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JSX } from "solid-js";
|
|
2
|
-
//#region src/components/progress-group/index.d.ts
|
|
3
2
|
/** One verdict on the bar. */
|
|
4
3
|
export interface ProgressSegment {
|
|
5
4
|
value: number;
|
|
@@ -20,5 +19,4 @@ export interface ProgressGroupProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
|
20
19
|
}
|
|
21
20
|
export declare const ProgressGroup: ((props: ProgressGroupProps) => JSX.Element) & {
|
|
22
21
|
Root: (props: ProgressGroupProps) => JSX.Element;
|
|
23
|
-
};
|
|
24
|
-
//#endregion
|
|
22
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as withSelfRoot } from "../../family-
|
|
2
|
-
import { createComponent, effect, insert, setAttribute, setStyleProperty, spread, template } from "
|
|
1
|
+
import { n as withSelfRoot } from "../../family-B5HtE0on.mjs";
|
|
2
|
+
import { createComponent, effect, insert, mergeProps, setAttribute, setStyleProperty, spread, template } from "solid-js/web";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { For, Show, splitProps } from "solid-js";
|
|
5
|
-
|
|
6
|
-
var _tmpl$ =
|
|
7
|
-
var _tmpl$2 =
|
|
8
|
-
var _tmpl$3 =
|
|
9
|
-
var _tmpl$4 =
|
|
5
|
+
// src/components/progress-group/index.tsx
|
|
6
|
+
var _tmpl$ = /*#__PURE__*/ template(`<div data-scope=progress-group data-part=legend>`);
|
|
7
|
+
var _tmpl$2 = /*#__PURE__*/ template(`<div><div data-scope=progress-group data-part=track>`);
|
|
8
|
+
var _tmpl$3 = /*#__PURE__*/ template(`<div data-scope=progress-group data-part=segment role=progressbar aria-valuemin=0>`);
|
|
9
|
+
var _tmpl$4 = /*#__PURE__*/ template(`<div data-scope=progress-group data-part=legend-item><span data-scope=progress-group data-part=swatch aria-hidden=true></span><span data-scope=progress-group data-part=legend-label></span><span data-scope=progress-group data-part=legend-value>`);
|
|
10
10
|
const ProgressGroup = withSelfRoot(function ProgressGroup(props) {
|
|
11
11
|
injectComponentStyle("progress-group");
|
|
12
12
|
const [own, rest] = splitProps(props, [
|
|
@@ -20,66 +20,58 @@ const ProgressGroup = withSelfRoot(function ProgressGroup(props) {
|
|
|
20
20
|
return whole > 0 ? `${value / whole * 100}%` : "0%";
|
|
21
21
|
};
|
|
22
22
|
const nameOf = (segment, index) => segment.label ?? segment.pigment ?? `Segment ${index + 1}`;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
e
|
|
38
|
-
t
|
|
39
|
-
a
|
|
40
|
-
o
|
|
41
|
-
i
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
return
|
|
69
|
-
})
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
return _el$5;
|
|
77
|
-
})()
|
|
78
|
-
}));
|
|
79
|
-
return _el$3;
|
|
80
|
-
}
|
|
81
|
-
}), null);
|
|
82
|
-
return _el$;
|
|
23
|
+
return (() => {
|
|
24
|
+
var _el$ = _tmpl$2(), _el$2 = _el$.firstChild;
|
|
25
|
+
spread(_el$, mergeProps(rest, {
|
|
26
|
+
"data-scope": "progress-group",
|
|
27
|
+
"data-part": "root"
|
|
28
|
+
}), false, true);
|
|
29
|
+
insert(_el$2, createComponent(For, {
|
|
30
|
+
get each() {
|
|
31
|
+
return own.segments;
|
|
32
|
+
},
|
|
33
|
+
children: (segment, index) => (() => {
|
|
34
|
+
var _el$4 = _tmpl$3();
|
|
35
|
+
effect((_p$) => {
|
|
36
|
+
var _v$ = segment.pigment, _v$2 = segment.value, _v$3 = total(), _v$4 = nameOf(segment, index()), _v$5 = share(segment.value);
|
|
37
|
+
_v$ !== _p$.e && setAttribute(_el$4, "data-pigment", _p$.e = _v$);
|
|
38
|
+
_v$2 !== _p$.t && setAttribute(_el$4, "aria-valuenow", _p$.t = _v$2);
|
|
39
|
+
_v$3 !== _p$.a && setAttribute(_el$4, "aria-valuemax", _p$.a = _v$3);
|
|
40
|
+
_v$4 !== _p$.o && setAttribute(_el$4, "aria-label", _p$.o = _v$4);
|
|
41
|
+
_v$5 !== _p$.i && setStyleProperty(_el$4, "--bs-progress-group-share", _p$.i = _v$5);
|
|
42
|
+
return _p$;
|
|
43
|
+
}, {
|
|
44
|
+
e: void 0,
|
|
45
|
+
t: void 0,
|
|
46
|
+
a: void 0,
|
|
47
|
+
o: void 0,
|
|
48
|
+
i: void 0
|
|
49
|
+
});
|
|
50
|
+
return _el$4;
|
|
51
|
+
})()
|
|
52
|
+
}));
|
|
53
|
+
insert(_el$, createComponent(Show, {
|
|
54
|
+
get when() {
|
|
55
|
+
return own.showLegend ?? true;
|
|
56
|
+
},
|
|
57
|
+
get children() {
|
|
58
|
+
var _el$3 = _tmpl$();
|
|
59
|
+
insert(_el$3, createComponent(For, {
|
|
60
|
+
get each() {
|
|
61
|
+
return own.segments;
|
|
62
|
+
},
|
|
63
|
+
children: (segment, index) => (() => {
|
|
64
|
+
var _el$5 = _tmpl$4(), _el$7 = _el$5.firstChild.nextSibling, _el$8 = _el$7.nextSibling;
|
|
65
|
+
insert(_el$7, () => nameOf(segment, index()));
|
|
66
|
+
insert(_el$8, () => String(segment.value));
|
|
67
|
+
effect(() => setAttribute(_el$5, "data-pigment", segment.pigment));
|
|
68
|
+
return _el$5;
|
|
69
|
+
})()
|
|
70
|
+
}));
|
|
71
|
+
return _el$3;
|
|
72
|
+
}
|
|
73
|
+
}), null);
|
|
74
|
+
return _el$;
|
|
75
|
+
})();
|
|
83
76
|
});
|
|
84
|
-
//#endregion
|
|
85
77
|
export { ProgressGroup };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "solid-js";
|
|
2
2
|
import { QrCode as QrCode$1 } from "@ark-ui/solid/qr-code";
|
|
3
|
-
//#region src/components/qr-code/index.d.ts
|
|
4
3
|
/** Ark's QrCode, dressed in the paper-and-ink system: the pattern prints in
|
|
5
4
|
* ink on the page, with an optional paper badge and a seal-cut download
|
|
6
5
|
* control. The API is Ark's own — Root, Frame, Pattern, Overlay,
|
|
@@ -16,4 +15,4 @@ declare function QrCodeFacade(props: QrCodeFacadeProps): import("solid-js").JSX.
|
|
|
16
15
|
export declare const QrCode: typeof QrCodeFacade & Omit<typeof QrCode$1, "Root"> & {
|
|
17
16
|
Root: typeof QrCodeRoot;
|
|
18
17
|
};
|
|
19
|
-
|
|
18
|
+
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 { createComponent as createComponent$1, mergeProps as mergeProps$1 } from "solid-js";
|
|
6
6
|
import { QrCode as QrCode$1 } from "@ark-ui/solid/qr-code";
|
|
7
|
-
|
|
7
|
+
// src/components/qr-code/index.tsx
|
|
8
8
|
/** Ark's QrCode, dressed in the paper-and-ink system: the pattern prints in
|
|
9
9
|
* ink on the page, with an optional paper badge and a seal-cut download
|
|
10
10
|
* control. The API is Ark's own — Root, Frame, Pattern, Overlay,
|
|
@@ -20,9 +20,7 @@ function QrCodeFacade(props) {
|
|
|
20
20
|
injectComponentStyle("qr-code");
|
|
21
21
|
return createComponent(QrCodeRoot, mergeProps({ get defaultValue() {
|
|
22
22
|
return props.defaultValue;
|
|
23
|
-
} }, () => {
|
|
24
|
-
return props.value === void 0 ? {} : { value: props.value };
|
|
25
|
-
}, {
|
|
23
|
+
} }, () => props.value === void 0 ? {} : { value: props.value }, {
|
|
26
24
|
onValueChange: (details) => props.onValueChange?.(details.value),
|
|
27
25
|
get children() {
|
|
28
26
|
return createComponent(QrCode$1.Frame, { get children() {
|
|
@@ -36,5 +34,4 @@ const QrCode = defineFamily(QrCodeFacade, {
|
|
|
36
34
|
Root: QrCodeRoot
|
|
37
35
|
});
|
|
38
36
|
injectComponentStyle("qr-code");
|
|
39
|
-
//#endregion
|
|
40
37
|
export { QrCode };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RadioGroup as RadioGroup$1, RadioGroupRootProps } from "@ark-ui/solid/radio-group";
|
|
2
|
-
//#region src/components/radio-group/index.d.ts
|
|
3
2
|
/** Ark's RadioGroup, dressed in the paper-and-ink system: a column of
|
|
4
3
|
* full-circle seals that fill flat with primary ink when chosen, the dot
|
|
5
4
|
* punched through as paper. The API is Ark's own — Root, Label, Item,
|
|
@@ -34,4 +33,4 @@ type RadioGroupParts = Omit<typeof RadioGroup$1, "Root"> & {
|
|
|
34
33
|
Root: typeof RadioGroupRoot;
|
|
35
34
|
};
|
|
36
35
|
export declare const RadioGroup: typeof RadioGroupFacade & RadioGroupParts;
|
|
37
|
-
|
|
36
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as defineFamily } from "../../family-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
3
|
-
import { createComponent, mergeProps } from "
|
|
1
|
+
import { t as defineFamily } from "../../family-B5HtE0on.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-DGvz-2rQ.mjs";
|
|
3
|
+
import { createComponent, mergeProps } from "solid-js/web";
|
|
4
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { For, Show, splitProps } from "solid-js";
|
|
6
6
|
import { RadioGroup as RadioGroup$1 } from "@ark-ui/solid/radio-group";
|
|
7
|
-
|
|
7
|
+
// src/components/radio-group/index.tsx
|
|
8
8
|
function RadioGroupRoot(props) {
|
|
9
9
|
const [own, rest] = splitProps(props, ["size"]);
|
|
10
10
|
const id = useElementId("radio-group", () => rest.id);
|
|
@@ -12,7 +12,7 @@ function RadioGroupRoot(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
|
}));
|
|
@@ -41,9 +41,7 @@ function RadioGroupFacade(props) {
|
|
|
41
41
|
get defaultValue() {
|
|
42
42
|
return props.defaultValue;
|
|
43
43
|
}
|
|
44
|
-
}, () => {
|
|
45
|
-
return props.value === void 0 ? {} : { value: props.value };
|
|
46
|
-
}, {
|
|
44
|
+
}, () => props.value === void 0 ? {} : { value: props.value }, {
|
|
47
45
|
onValueChange: (details) => props.onValueChange?.(details.value ?? ""),
|
|
48
46
|
get children() {
|
|
49
47
|
return [createComponent(Show, {
|
|
@@ -85,5 +83,4 @@ const RadioGroup = defineFamily(RadioGroupFacade, {
|
|
|
85
83
|
Root: RadioGroupRoot
|
|
86
84
|
});
|
|
87
85
|
injectComponentStyle("radio-group");
|
|
88
|
-
//#endregion
|
|
89
86
|
export { RadioGroup };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RatingGroup as RatingGroup$1, RatingGroupRootProps } from "@ark-ui/solid/rating-group";
|
|
2
|
-
//#region src/components/rating-group/index.d.ts
|
|
3
2
|
/** Ark's RatingGroup, dressed in the paper-and-ink system: a row of quiet
|
|
4
3
|
* seals whose icons take the primary pigment as they light up. The API is
|
|
5
4
|
* Ark's own — Root, Label, Control, Item, HiddenInput (plus the Context and
|
|
@@ -26,4 +25,4 @@ type RatingGroupParts = Omit<typeof RatingGroup$1, "Root"> & {
|
|
|
26
25
|
Root: typeof RatingGroupRoot;
|
|
27
26
|
};
|
|
28
27
|
export declare const RatingGroup: typeof RatingGroupFacade & RatingGroupParts;
|
|
29
|
-
|
|
28
|
+
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 { RatingGroup as RatingGroup$1 } from "@ark-ui/solid/rating-group";
|
|
8
|
-
|
|
8
|
+
// src/components/rating-group/index.tsx
|
|
9
9
|
function RatingGroupRoot(props) {
|
|
10
10
|
const [own, rest] = splitProps(props, ["size"]);
|
|
11
11
|
const id = useElementId("rating-group", () => rest.id);
|
|
@@ -13,7 +13,7 @@ function RatingGroupRoot(props) {
|
|
|
13
13
|
get id() {
|
|
14
14
|
return id();
|
|
15
15
|
},
|
|
16
|
-
get "data-size"() {
|
|
16
|
+
get ["data-size"]() {
|
|
17
17
|
return own.size ?? "md";
|
|
18
18
|
}
|
|
19
19
|
}));
|
|
@@ -36,9 +36,7 @@ function RatingGroupFacade(props) {
|
|
|
36
36
|
get defaultValue() {
|
|
37
37
|
return props.defaultValue ?? 0;
|
|
38
38
|
}
|
|
39
|
-
}, () => {
|
|
40
|
-
return props.value === void 0 ? {} : { value: props.value };
|
|
41
|
-
}, {
|
|
39
|
+
}, () => props.value === void 0 ? {} : { value: props.value }, {
|
|
42
40
|
onValueChange: (details) => props.onValueChange?.(details.value),
|
|
43
41
|
get children() {
|
|
44
42
|
return [createComponent(Show, {
|
|
@@ -71,5 +69,4 @@ const RatingGroup = defineFamily(RatingGroupFacade, {
|
|
|
71
69
|
Root: RatingGroupRoot
|
|
72
70
|
});
|
|
73
71
|
injectComponentStyle("rating-group");
|
|
74
|
-
//#endregion
|
|
75
72
|
export { RatingGroup };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JSX } from "solid-js";
|
|
2
|
-
//#region src/components/result/index.d.ts
|
|
3
2
|
type Status = "success" | "warning" | "danger" | "info";
|
|
4
3
|
export interface ResultRootProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
5
4
|
/** The verdict the operation returned; the fixed pigments speak it. */
|
|
@@ -19,4 +18,4 @@ export declare const Result: typeof ResultRoot & {
|
|
|
19
18
|
Description: (props: JSX.HTMLAttributes<HTMLElement>) => JSX.Element;
|
|
20
19
|
Extra: (props: JSX.HTMLAttributes<HTMLElement>) => JSX.Element;
|
|
21
20
|
};
|
|
22
|
-
|
|
21
|
+
export {};
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { t as defineFamily } from "../../family-
|
|
2
|
-
import { t as iconBody } from "../../icon-
|
|
3
|
-
import { createComponent, effect, insert, mergeProps, spread, template } from "
|
|
1
|
+
import { t as defineFamily } from "../../family-B5HtE0on.mjs";
|
|
2
|
+
import { t as iconBody } from "../../icon-DQqYA2fO.mjs";
|
|
3
|
+
import { createComponent, effect, insert, mergeProps, spread, template } from "solid-js/web";
|
|
4
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { splitProps } from "solid-js";
|
|
6
|
-
|
|
7
|
-
var _tmpl$ =
|
|
8
|
-
var _tmpl$2 =
|
|
6
|
+
// src/components/result/index.tsx
|
|
7
|
+
var _tmpl$ = /*#__PURE__*/ template(`<div>`);
|
|
8
|
+
var _tmpl$2 = /*#__PURE__*/ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round aria-hidden=true>`);
|
|
9
9
|
const MARK = { __html: `<g data-for="success">${iconBody("check")}</g><g data-for="warning">${iconBody("triangle-alert")}</g><g data-for="danger">${iconBody("circle-x")}</g><g data-for="info">${iconBody("info")}</g>` };
|
|
10
10
|
function ResultRoot(props) {
|
|
11
11
|
injectComponentStyle("result");
|
|
12
12
|
const [own, rest] = splitProps(props, ["status"]);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
return (() => {
|
|
14
|
+
var _el$ = _tmpl$();
|
|
15
|
+
spread(_el$, mergeProps(rest, {
|
|
16
|
+
"data-scope": "result",
|
|
17
|
+
"data-part": "root",
|
|
18
|
+
get ["data-status"]() {
|
|
19
|
+
return own.status ?? "info";
|
|
20
|
+
}
|
|
21
|
+
}), false, false);
|
|
22
|
+
return _el$;
|
|
23
|
+
})();
|
|
22
24
|
}
|
|
23
25
|
/** The mark carries all four verdicts and lets the root choose, so the
|
|
24
26
|
* icon can never drift from the status the root declares. */
|
|
25
27
|
function ResultIcon(props) {
|
|
26
28
|
injectComponentStyle("result");
|
|
27
29
|
const [own, rest] = splitProps(props, ["children"]);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
return (() => {
|
|
31
|
+
var _el$2 = _tmpl$();
|
|
32
|
+
spread(_el$2, mergeProps(rest, {
|
|
33
|
+
"data-scope": "result",
|
|
34
|
+
"data-part": "icon"
|
|
35
|
+
}), false, true);
|
|
36
|
+
insert(_el$2, () => own.children ?? (() => {
|
|
35
37
|
var _el$3 = _tmpl$2();
|
|
36
|
-
effect(() => MARK.__html
|
|
37
|
-
_el$3.innerHTML = _v$;
|
|
38
|
-
});
|
|
38
|
+
effect(() => _el$3.innerHTML = MARK.__html);
|
|
39
39
|
return _el$3;
|
|
40
|
-
})();
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
})());
|
|
41
|
+
return _el$2;
|
|
42
|
+
})();
|
|
43
43
|
}
|
|
44
44
|
function part(name, tag) {
|
|
45
45
|
return function Part(props) {
|
|
@@ -64,5 +64,4 @@ const Result = defineFamily(ResultRoot, {
|
|
|
64
64
|
Description: part("description", "p"),
|
|
65
65
|
Extra: part("extra", "div")
|
|
66
66
|
});
|
|
67
|
-
//#endregion
|
|
68
67
|
export { Result, ResultIcon, ResultRoot };
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { ComponentProps, JSX } from "solid-js";
|
|
2
2
|
import { ScrollArea as ScrollArea$1 } from "@ark-ui/solid/scroll-area";
|
|
3
|
-
|
|
3
|
+
type ScrollAreaFade = "vertical" | "horizontal" | "both";
|
|
4
|
+
type ScrollAreaRootProps = ComponentProps<typeof ScrollArea$1.Root> & {
|
|
5
|
+
fade?: ScrollAreaFade;
|
|
6
|
+
};
|
|
4
7
|
/** Ark's ScrollArea, dressed in the paper-and-ink system: native bars
|
|
5
8
|
* give way to quiet ink lanes that surface on hover and scroll. The API
|
|
6
9
|
* is Ark's own — Root, Viewport, Content, Scrollbar, Thumb, Corner. */
|
|
7
|
-
declare function ScrollAreaRoot(props:
|
|
10
|
+
declare function ScrollAreaRoot(props: ScrollAreaRootProps): JSX.Element;
|
|
8
11
|
export interface ScrollAreaFacadeProps {
|
|
9
12
|
class?: string;
|
|
10
13
|
orientation?: "vertical" | "horizontal" | "both";
|
|
14
|
+
/** Dissolve the viewport's edges — see Root's `fade`. */
|
|
15
|
+
fade?: ScrollAreaFade;
|
|
11
16
|
children?: JSX.Element;
|
|
12
17
|
}
|
|
13
18
|
/** The complete scroll vessel around caller content, with one or both quiet
|
|
@@ -16,4 +21,4 @@ declare function ScrollAreaFacade(props: ScrollAreaFacadeProps): JSX.Element;
|
|
|
16
21
|
export declare const ScrollArea: typeof ScrollAreaFacade & Omit<typeof ScrollArea$1, "Root"> & {
|
|
17
22
|
Root: typeof ScrollAreaRoot;
|
|
18
23
|
};
|
|
19
|
-
|
|
24
|
+
export {};
|