@bysages/solid 0.3.1 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ai-response-slzE03wh.mjs → ai-response-CJ-uEAgj.mjs} +14 -6
- package/dist/chevron-BHQrYKPM.mjs +8 -0
- package/dist/components/accordion/index.d.mts +22 -2
- package/dist/components/accordion/index.mjs +69 -3
- package/dist/components/affix/index.d.mts +3 -1
- package/dist/components/affix/index.mjs +6 -5
- package/dist/components/ai/index.d.mts +1 -1
- package/dist/components/ai/index.mjs +7 -6
- package/dist/components/ai-action/index.d.mts +3 -1
- package/dist/components/ai-action/index.mjs +4 -3
- package/dist/components/ai-attachments/index.d.mts +8 -4
- package/dist/components/ai-attachments/index.mjs +39 -37
- package/dist/components/ai-message/index.d.mts +3 -1
- package/dist/components/ai-message/index.mjs +4 -3
- package/dist/components/ai-prompt-input/index.d.mts +3 -1
- package/dist/components/ai-prompt-input/index.mjs +48 -44
- package/dist/components/ai-reasoning/index.d.mts +3 -1
- package/dist/components/ai-reasoning/index.mjs +5 -4
- package/dist/components/ai-response/index.d.mts +3 -1
- package/dist/components/ai-response/index.mjs +1 -1
- package/dist/components/ai-source/index.d.mts +6 -2
- package/dist/components/ai-source/index.mjs +6 -5
- package/dist/components/ai-suggestion/index.d.mts +3 -1
- package/dist/components/ai-suggestion/index.mjs +4 -3
- package/dist/components/ai-tool/index.d.mts +3 -1
- package/dist/components/ai-tool/index.mjs +5 -4
- package/dist/components/alert/index.mjs +32 -35
- package/dist/components/angle-slider/index.d.mts +1 -1
- package/dist/components/angle-slider/index.mjs +14 -6
- package/dist/components/aspect-ratio/index.d.mts +3 -1
- package/dist/components/aspect-ratio/index.mjs +4 -3
- package/dist/components/autocomplete/index.d.mts +4 -1
- package/dist/components/autocomplete/index.mjs +19 -4
- package/dist/components/avatar/index.d.mts +1 -1
- package/dist/components/avatar/index.mjs +11 -2
- package/dist/components/avatar-group/index.d.mts +3 -1
- package/dist/components/avatar-group/index.mjs +4 -3
- package/dist/components/back-top/index.d.mts +3 -1
- package/dist/components/back-top/index.mjs +10 -6
- package/dist/components/badge/index.d.mts +3 -1
- package/dist/components/badge/index.mjs +4 -3
- package/dist/components/banner/index.mjs +7 -3
- package/dist/components/bento/index.mjs +1 -1
- package/dist/components/block-ui/index.d.mts +3 -1
- package/dist/components/block-ui/index.mjs +4 -3
- package/dist/components/breadcrumb/index.mjs +1 -1
- package/dist/components/browser/index.mjs +1 -1
- package/dist/components/button/index.d.mts +3 -1
- package/dist/components/button/index.mjs +4 -3
- package/dist/components/button-group/index.mjs +1 -1
- package/dist/components/calendar/index.d.mts +3 -1
- package/dist/components/calendar/index.mjs +30 -22
- package/dist/components/card/index.mjs +1 -1
- package/dist/components/carousel/index.d.mts +5 -1
- package/dist/components/carousel/index.mjs +14 -2
- package/dist/components/cascade-select/index.d.mts +3 -1
- package/dist/components/cascade-select/index.mjs +74 -73
- package/dist/components/checkbox/index.d.mts +1 -1
- package/dist/components/checkbox/index.mjs +14 -6
- package/dist/components/checkbox-group/index.d.mts +4 -9
- package/dist/components/checkbox-group/index.mjs +66 -69
- package/dist/components/chip/index.d.mts +3 -1
- package/dist/components/chip/index.mjs +4 -3
- package/dist/components/client-only/index.d.mts +7 -2
- package/dist/components/client-only/index.mjs +8 -1
- package/dist/components/clipboard/index.d.mts +1 -1
- package/dist/components/clipboard/index.mjs +14 -6
- package/dist/components/collapsible/index.d.mts +15 -1
- package/dist/components/collapsible/index.mjs +40 -3
- package/dist/components/color-picker/index.d.mts +13 -2
- package/dist/components/color-picker/index.mjs +96 -9
- package/dist/components/combobox/index.d.mts +24 -1
- package/dist/components/combobox/index.mjs +130 -9
- package/dist/components/command/index.d.mts +4 -1
- package/dist/components/command/index.mjs +14 -2
- package/dist/components/comment/index.d.mts +3 -1
- package/dist/components/comment/index.mjs +4 -3
- package/dist/components/config-provider/index.d.mts +3 -1
- package/dist/components/config-provider/index.mjs +3 -2
- package/dist/components/container/index.d.mts +3 -1
- package/dist/components/container/index.mjs +4 -3
- package/dist/components/data-view/index.d.mts +3 -1
- package/dist/components/data-view/index.mjs +6 -7
- package/dist/components/date-input/index.d.mts +1 -1
- package/dist/components/date-input/index.mjs +14 -6
- package/dist/components/date-picker/index.d.mts +1 -1
- package/dist/components/date-picker/index.mjs +14 -6
- package/dist/components/deferred-content/index.d.mts +3 -1
- package/dist/components/deferred-content/index.mjs +4 -3
- package/dist/components/descriptions/index.d.mts +7 -0
- package/dist/components/descriptions/index.mjs +22 -3
- package/dist/components/dialog/index.d.mts +17 -1
- package/dist/components/dialog/index.mjs +85 -3
- package/dist/components/dock/index.mjs +1 -1
- package/dist/components/download-trigger/index.d.mts +7 -2
- package/dist/components/download-trigger/index.mjs +8 -1
- package/dist/components/drawer/index.d.mts +17 -1
- package/dist/components/drawer/index.mjs +84 -3
- package/dist/components/dynamic-input/index.d.mts +3 -1
- package/dist/components/dynamic-input/index.mjs +11 -7
- package/dist/components/editable/index.d.mts +1 -1
- package/dist/components/editable/index.mjs +14 -6
- package/dist/components/ellipsis/index.d.mts +3 -1
- package/dist/components/ellipsis/index.mjs +4 -3
- package/dist/components/empty/index.mjs +1 -1
- package/dist/components/field/index.d.mts +5 -1
- package/dist/components/field/index.mjs +14 -2
- package/dist/components/fieldset/index.d.mts +5 -1
- package/dist/components/fieldset/index.mjs +14 -2
- package/dist/components/file-upload/index.d.mts +1 -7
- package/dist/components/file-upload/index.mjs +14 -6
- package/dist/components/float-button/index.mjs +1 -1
- package/dist/components/floating-panel/index.d.mts +5 -1
- package/dist/components/floating-panel/index.mjs +14 -2
- package/dist/components/focus-trap/index.d.mts +7 -2
- package/dist/components/focus-trap/index.mjs +8 -1
- package/dist/components/form/index.d.mts +1 -1
- package/dist/components/form/index.mjs +11 -5
- package/dist/components/frame/index.d.mts +6 -1
- package/dist/components/frame/index.mjs +10 -1
- package/dist/components/grid/index.d.mts +3 -1
- package/dist/components/grid/index.mjs +4 -3
- package/dist/components/highlight/index.d.mts +3 -1
- package/dist/components/highlight/index.mjs +3 -2
- package/dist/components/hover-card/index.d.mts +19 -1
- package/dist/components/hover-card/index.mjs +92 -3
- package/dist/components/icon/index.d.mts +8 -7
- package/dist/components/icon/index.mjs +5 -4
- package/dist/components/image/index.d.mts +4 -2
- package/dist/components/image/index.mjs +35 -34
- package/dist/components/image-cropper/index.d.mts +5 -1
- package/dist/components/image-cropper/index.mjs +14 -2
- package/dist/components/image-viewer/index.d.mts +2 -23
- package/dist/components/image-viewer/index.mjs +3 -159
- package/dist/components/input/index.d.mts +3 -1
- package/dist/components/input/index.mjs +1 -1
- package/dist/components/input-group/index.mjs +1 -1
- package/dist/components/json-tree-view/index.d.mts +5 -4
- package/dist/components/json-tree-view/index.mjs +16 -19
- package/dist/components/kbd/index.d.mts +3 -1
- package/dist/components/kbd/index.mjs +4 -3
- package/dist/components/layout/index.mjs +1 -1
- package/dist/components/link/index.d.mts +3 -1
- package/dist/components/link/index.mjs +4 -3
- package/dist/components/list/index.mjs +1 -1
- package/dist/components/listbox/index.d.mts +1 -1
- package/dist/components/listbox/index.mjs +14 -6
- package/dist/components/marquee/index.d.mts +5 -1
- package/dist/components/marquee/index.mjs +14 -2
- package/dist/components/masonry/index.d.mts +3 -1
- package/dist/components/masonry/index.mjs +4 -3
- package/dist/components/media-player/index.d.mts +2 -0
- package/dist/components/media-player/index.mjs +2 -0
- package/dist/components/mentions/index.d.mts +1 -1
- package/dist/components/mentions/index.mjs +2 -2
- package/dist/components/menu/index.d.mts +21 -1
- package/dist/components/menu/index.mjs +63 -6
- package/dist/components/menubar/index.d.mts +3 -1
- package/dist/components/menubar/index.mjs +31 -10
- package/dist/components/meter/index.mjs +1 -1
- package/dist/components/navigation-menu/index.d.mts +5 -1
- package/dist/components/navigation-menu/index.mjs +14 -2
- package/dist/components/number-input/index.d.mts +1 -1
- package/dist/components/number-input/index.mjs +14 -6
- package/dist/components/order-list/index.d.mts +3 -1
- package/dist/components/order-list/index.mjs +68 -64
- package/dist/components/page-header/index.mjs +1 -1
- package/dist/components/pagination/index.d.mts +1 -1
- package/dist/components/pagination/index.mjs +14 -6
- package/dist/components/password-input/index.d.mts +1 -1
- package/dist/components/password-input/index.mjs +14 -6
- package/dist/components/pin-input/index.d.mts +1 -1
- package/dist/components/pin-input/index.mjs +14 -6
- package/dist/components/popconfirm/index.d.mts +3 -1
- package/dist/components/popconfirm/index.mjs +17 -9
- package/dist/components/popover/index.d.mts +19 -1
- package/dist/components/popover/index.mjs +92 -3
- package/dist/components/presence/index.d.mts +10 -2
- package/dist/components/presence/index.mjs +9 -1
- package/dist/components/progress/index.d.mts +1 -1
- package/dist/components/progress/index.mjs +14 -6
- package/dist/components/progress-group/index.d.mts +3 -1
- package/dist/components/progress-group/index.mjs +5 -4
- package/dist/components/qr-code/index.d.mts +5 -1
- package/dist/components/qr-code/index.mjs +14 -2
- package/dist/components/radio-group/index.d.mts +1 -1
- package/dist/components/radio-group/index.mjs +14 -6
- package/dist/components/rating-group/index.d.mts +2 -2
- package/dist/components/rating-group/index.mjs +14 -6
- package/dist/components/result/index.d.mts +1 -1
- package/dist/components/result/index.mjs +6 -4
- package/dist/components/scroll-area/index.d.mts +5 -1
- package/dist/components/scroll-area/index.mjs +14 -2
- package/dist/components/segment-group/index.d.mts +1 -1
- package/dist/components/segment-group/index.mjs +12 -7
- package/dist/components/select/index.d.mts +2 -2
- package/dist/components/select/index.mjs +1 -1
- package/dist/components/separator/index.d.mts +3 -1
- package/dist/components/separator/index.mjs +4 -3
- package/dist/components/signature-pad/index.d.mts +5 -1
- package/dist/components/signature-pad/index.mjs +14 -2
- package/dist/components/skeleton/index.d.mts +3 -1
- package/dist/components/skeleton/index.mjs +4 -3
- package/dist/components/slider/index.d.mts +1 -1
- package/dist/components/slider/index.mjs +14 -6
- package/dist/components/spinner/index.d.mts +3 -1
- package/dist/components/spinner/index.mjs +4 -3
- package/dist/components/split-button/index.d.mts +3 -1
- package/dist/components/split-button/index.mjs +15 -4
- package/dist/components/splitter/index.d.mts +5 -1
- package/dist/components/splitter/index.mjs +14 -2
- package/dist/components/spotlight/index.d.mts +3 -1
- package/dist/components/spotlight/index.mjs +4 -3
- package/dist/components/stack/index.d.mts +3 -1
- package/dist/components/stack/index.mjs +7 -6
- package/dist/components/stat/index.mjs +1 -1
- package/dist/components/steps/index.d.mts +20 -3
- package/dist/components/steps/index.mjs +67 -8
- package/dist/components/swap/index.d.mts +5 -1
- package/dist/components/swap/index.mjs +14 -2
- package/dist/components/switch/index.d.mts +1 -1
- package/dist/components/switch/index.mjs +14 -6
- package/dist/components/table/index.d.mts +3 -1
- package/dist/components/table/index.mjs +191 -153
- package/dist/components/tabs/index.d.mts +20 -2
- package/dist/components/tabs/index.mjs +60 -4
- package/dist/components/tags-input/index.d.mts +1 -1
- package/dist/components/tags-input/index.mjs +14 -6
- package/dist/components/terminal/index.d.mts +3 -1
- package/dist/components/terminal/index.mjs +4 -3
- package/dist/components/textarea/index.d.mts +3 -1
- package/dist/components/textarea/index.mjs +4 -3
- package/dist/components/timeline/index.mjs +1 -1
- package/dist/components/timer/index.d.mts +5 -1
- package/dist/components/timer/index.mjs +14 -2
- package/dist/components/toast/index.d.mts +8 -2
- package/dist/components/toast/index.mjs +15 -3
- package/dist/components/toc/index.d.mts +11 -2
- package/dist/components/toc/index.mjs +1 -1
- package/dist/components/toggle/index.d.mts +5 -1
- package/dist/components/toggle/index.mjs +14 -2
- package/dist/components/toggle-group/index.d.mts +1 -1
- package/dist/components/toggle-group/index.mjs +14 -6
- package/dist/components/toolbar/index.d.mts +3 -1
- package/dist/components/toolbar/index.mjs +4 -3
- package/dist/components/tooltip/index.d.mts +16 -1
- package/dist/components/tooltip/index.mjs +56 -3
- package/dist/components/tour/index.d.mts +16 -3
- package/dist/components/tour/index.mjs +75 -10
- package/dist/components/transfer/index.d.mts +3 -1
- package/dist/components/transfer/index.mjs +55 -51
- package/dist/components/tree-select/index.d.mts +3 -1
- package/dist/components/tree-select/index.mjs +38 -31
- package/dist/components/tree-view/index.d.mts +1 -8
- package/dist/components/tree-view/index.mjs +17 -22
- package/dist/components/typography/index.mjs +1 -1
- package/dist/components/user/index.d.mts +3 -1
- package/dist/components/user/index.mjs +9 -3
- package/dist/components/virtual-list/index.d.mts +3 -1
- package/dist/components/virtual-list/index.mjs +14 -10
- package/dist/components/watermark/index.d.mts +3 -1
- package/dist/components/watermark/index.mjs +5 -4
- package/dist/element-dGIhOTJ6.mjs +16 -0
- package/dist/family-Cmd8HEyK.mjs +11 -0
- package/dist/icon-DTqmJCd5.mjs +48 -0
- package/dist/id-2ygNzPHF.mjs +12 -0
- package/dist/image-viewer-19s75Hz_.mjs +228 -0
- package/dist/{index-B1xiJ5ki.d.mts → index-B1-quIrl.d.mts} +6 -2
- package/dist/{index-DDX7x8aT.d.mts → index-DEArHiFI.d.mts} +16 -7
- package/dist/{index-IfofF-SW.d.mts → index-DVc1L_zt.d.mts} +191 -112
- package/dist/index-DhripUtf.d.mts +39 -0
- package/dist/{index-YPUiqD3n.d.mts → index-ID48LCMU.d.mts} +28 -2
- package/dist/index-wW28BYf1.d.mts +124 -0
- package/dist/index.d.mts +23 -22
- package/dist/index.mjs +13 -12
- package/dist/{input-DoFQ7RXh.mjs → input-BL3N3L8g.mjs} +4 -3
- package/dist/media-player-yF7KVUxM.mjs +796 -0
- package/dist/{mentions-f5Js_2W7.mjs → mentions-DKUG7eHt.mjs} +68 -52
- package/dist/select-DI7pFspF.mjs +292 -0
- package/dist/{toc-CZmYEaQR.mjs → toc-CqvGOp34.mjs} +13 -3
- package/package.json +10 -82
- package/dist/chevron-D5RzcayK.mjs +0 -9
- package/dist/index-DdsnfV4f.d.mts +0 -16
- package/dist/select-CX6OuQlU.mjs +0 -123
|
@@ -1,39 +1,44 @@
|
|
|
1
|
+
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { r as iconNode } from "../../icon-DTqmJCd5.mjs";
|
|
1
3
|
import { n as useComponentMessages } from "../../use-component-messages-C4SCVYjD.mjs";
|
|
2
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
3
4
|
import { createComponent, delegateEvents, effect, insert, setAttribute, spread, template } from "@solidjs/web";
|
|
4
|
-
import {
|
|
5
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
6
|
+
import { For, createSignal, splitProps } from "solid-js";
|
|
5
7
|
//#region src/components/order-list/index.tsx
|
|
6
|
-
var _tmpl$ = /* @__PURE__ */ template(`<
|
|
7
|
-
var _tmpl$2 = /* @__PURE__ */ template(`<
|
|
8
|
-
var _tmpl$3 = /* @__PURE__ */ template(`<div><ol data-scope=order-list data-part=list>`);
|
|
9
|
-
var _tmpl$4 = /* @__PURE__ */ template(`<li draggable aria-roledescription="Sortable item"data-scope=order-list data-part=item><span data-scope=order-list data-part=grip aria-hidden=true>⋮⋮</span><span data-scope=order-list data-part=label></span><span data-scope=order-list data-part=controls><button type=button data-scope=order-list data-part=move></button><button type=button data-scope=order-list data-part=move></button><button type=button data-scope=order-list data-part=move></button><button type=button data-scope=order-list data-part=move>`);
|
|
8
|
+
var _tmpl$ = /* @__PURE__ */ template(`<div><ol data-scope=order-list data-part=list>`);
|
|
9
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<li draggable aria-roledescription="Sortable item"data-scope=order-list data-part=item><span data-scope=order-list data-part=grip aria-hidden=true>⋮⋮</span><span data-scope=order-list data-part=label></span><span data-scope=order-list data-part=controls><button type=button data-scope=order-list data-part=move></button><button type=button data-scope=order-list data-part=move></button><button type=button data-scope=order-list data-part=move></button><button type=button data-scope=order-list data-part=move>`);
|
|
10
10
|
const ARROWS = {
|
|
11
|
-
up:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
up: {
|
|
12
|
+
name: "chevron-up",
|
|
13
|
+
rail: ""
|
|
14
|
+
},
|
|
15
|
+
down: {
|
|
16
|
+
name: "chevron-down",
|
|
17
|
+
rail: ""
|
|
18
|
+
},
|
|
19
|
+
top: {
|
|
20
|
+
name: "chevron-up",
|
|
21
|
+
rail: "<path d=\"M5 4h14\"/>"
|
|
22
|
+
},
|
|
23
|
+
bottom: {
|
|
24
|
+
name: "chevron-down",
|
|
25
|
+
rail: "<path d=\"M5 20h14\"/>"
|
|
26
|
+
}
|
|
15
27
|
};
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var _el$2 = _tmpl$2();
|
|
22
|
-
setAttribute(_el$2, "d", d);
|
|
23
|
-
return _el$2;
|
|
24
|
-
})()
|
|
25
|
-
}));
|
|
26
|
-
return _el$;
|
|
28
|
+
function arrowIcon(arrow) {
|
|
29
|
+
return iconNode(arrow.name, {
|
|
30
|
+
width: "12",
|
|
31
|
+
height: "12"
|
|
32
|
+
}, arrow.rail);
|
|
27
33
|
}
|
|
28
34
|
/** A ledger the reader may rewrite: rows move by grip or by the side
|
|
29
35
|
* arrows, and the group reports the new order as the value itself —
|
|
30
36
|
* the model is the order. Dragging rides the native drag events — a
|
|
31
37
|
* hairline of primary ink marks the seam the row will land on — so
|
|
32
38
|
* touch keeps the buttons as its route. */
|
|
33
|
-
function OrderList(props) {
|
|
39
|
+
const OrderList = withSelfRoot(function OrderList(props) {
|
|
34
40
|
const messages = useComponentMessages();
|
|
35
41
|
injectComponentStyle("order-list");
|
|
36
|
-
const uid = createUniqueId();
|
|
37
42
|
const [own, rest] = splitProps(props, [
|
|
38
43
|
"value",
|
|
39
44
|
"options",
|
|
@@ -68,34 +73,33 @@ function OrderList(props) {
|
|
|
68
73
|
own.onValueChange?.(next);
|
|
69
74
|
reset();
|
|
70
75
|
}
|
|
71
|
-
var _el$
|
|
72
|
-
var _el$
|
|
73
|
-
spread(_el
|
|
76
|
+
var _el$ = _tmpl$();
|
|
77
|
+
var _el$2 = _el$.firstChild;
|
|
78
|
+
spread(_el$, [rest, {
|
|
74
79
|
"data-scope": "order-list",
|
|
75
80
|
"data-part": "root",
|
|
76
|
-
"data-uid": uid,
|
|
77
81
|
onDragLeave: (event) => {
|
|
78
82
|
const host = event.currentTarget;
|
|
79
83
|
if (!event.relatedTarget || !host.contains(event.relatedTarget)) setDropLine(null);
|
|
80
84
|
}
|
|
81
85
|
}], true);
|
|
82
|
-
insert(_el$
|
|
86
|
+
insert(_el$2, createComponent(For, {
|
|
83
87
|
get each() {
|
|
84
88
|
return rows();
|
|
85
89
|
},
|
|
86
90
|
children: (option, index) => {
|
|
87
91
|
const seam = () => dropLine() && dropLine().index === index() ? dropLine().before ? "top" : "bottom" : void 0;
|
|
88
|
-
var _el$
|
|
89
|
-
var _el$
|
|
90
|
-
var _el$
|
|
92
|
+
var _el$3 = _tmpl$2();
|
|
93
|
+
var _el$5 = _el$3.firstChild.nextSibling;
|
|
94
|
+
var _el$7 = _el$5.nextSibling.firstChild;
|
|
95
|
+
var _el$8 = _el$7.nextSibling;
|
|
96
|
+
var _el$9 = _el$8.nextSibling;
|
|
91
97
|
var _el$10 = _el$9.nextSibling;
|
|
92
|
-
|
|
93
|
-
var _el$12 = _el$11.nextSibling;
|
|
94
|
-
_el$5.addEventListener("drop", (event) => {
|
|
98
|
+
_el$3.addEventListener("drop", (event) => {
|
|
95
99
|
event.preventDefault();
|
|
96
100
|
drop();
|
|
97
101
|
});
|
|
98
|
-
_el$
|
|
102
|
+
_el$3.addEventListener("dragover", (event) => {
|
|
99
103
|
event.preventDefault();
|
|
100
104
|
if (event.dataTransfer) event.dataTransfer.dropEffect = "move";
|
|
101
105
|
const rect = event.currentTarget.getBoundingClientRect();
|
|
@@ -105,30 +109,30 @@ function OrderList(props) {
|
|
|
105
109
|
before
|
|
106
110
|
} : null);
|
|
107
111
|
});
|
|
108
|
-
_el$
|
|
109
|
-
_el$
|
|
112
|
+
_el$3.addEventListener("dragend", reset);
|
|
113
|
+
_el$3.addEventListener("dragstart", (event) => {
|
|
110
114
|
setDragging(option.value);
|
|
111
115
|
event.dataTransfer?.setData("text/plain", option.value);
|
|
112
116
|
if (event.dataTransfer) event.dataTransfer.effectAllowed = "move";
|
|
113
117
|
});
|
|
114
|
-
insert(_el$
|
|
118
|
+
insert(_el$5, () => {
|
|
115
119
|
return option.label;
|
|
116
120
|
});
|
|
117
|
-
_el$
|
|
118
|
-
insert(_el$
|
|
119
|
-
return
|
|
121
|
+
_el$7._$$click = () => move(option.value, -index());
|
|
122
|
+
insert(_el$7, () => {
|
|
123
|
+
return arrowIcon(ARROWS.top);
|
|
120
124
|
});
|
|
121
|
-
_el$
|
|
122
|
-
insert(_el$
|
|
123
|
-
return
|
|
125
|
+
_el$8._$$click = () => move(option.value, -1);
|
|
126
|
+
insert(_el$8, () => {
|
|
127
|
+
return arrowIcon(ARROWS.up);
|
|
124
128
|
});
|
|
125
|
-
_el$
|
|
126
|
-
insert(_el$
|
|
127
|
-
return
|
|
129
|
+
_el$9._$$click = () => move(option.value, 1);
|
|
130
|
+
insert(_el$9, () => {
|
|
131
|
+
return arrowIcon(ARROWS.down);
|
|
128
132
|
});
|
|
129
|
-
_el$
|
|
130
|
-
insert(_el$
|
|
131
|
-
return
|
|
133
|
+
_el$10._$$click = () => move(option.value, rows().length - 1 - index());
|
|
134
|
+
insert(_el$10, () => {
|
|
135
|
+
return arrowIcon(ARROWS.bottom);
|
|
132
136
|
});
|
|
133
137
|
effect(() => {
|
|
134
138
|
return {
|
|
@@ -144,25 +148,25 @@ function OrderList(props) {
|
|
|
144
148
|
d: index() === rows().length - 1
|
|
145
149
|
};
|
|
146
150
|
}, ({ e, t, a, o, i, n, s, h, r, d }, _p$) => {
|
|
147
|
-
e !== _p$?.e && setAttribute(_el$
|
|
148
|
-
t !== _p$?.t && setAttribute(_el$
|
|
149
|
-
a !== _p$?.a && setAttribute(_el$
|
|
150
|
-
o !== _p$?.o && setAttribute(_el$
|
|
151
|
-
i !== _p$?.i && setAttribute(_el$
|
|
152
|
-
n !== _p$?.n && setAttribute(_el$
|
|
153
|
-
s !== _p$?.s && setAttribute(_el$
|
|
154
|
-
h !== _p$?.h && setAttribute(_el$
|
|
155
|
-
r !== _p$?.r && setAttribute(_el$
|
|
156
|
-
d !== _p$?.d && setAttribute(_el$
|
|
151
|
+
e !== _p$?.e && setAttribute(_el$3, "data-dragging", e);
|
|
152
|
+
t !== _p$?.t && setAttribute(_el$3, "data-drop-line", t);
|
|
153
|
+
a !== _p$?.a && setAttribute(_el$7, "aria-label", a);
|
|
154
|
+
o !== _p$?.o && setAttribute(_el$7, "disabled", o);
|
|
155
|
+
i !== _p$?.i && setAttribute(_el$8, "aria-label", i);
|
|
156
|
+
n !== _p$?.n && setAttribute(_el$8, "disabled", n);
|
|
157
|
+
s !== _p$?.s && setAttribute(_el$9, "aria-label", s);
|
|
158
|
+
h !== _p$?.h && setAttribute(_el$9, "disabled", h);
|
|
159
|
+
r !== _p$?.r && setAttribute(_el$10, "aria-label", r);
|
|
160
|
+
d !== _p$?.d && setAttribute(_el$10, "disabled", d);
|
|
157
161
|
});
|
|
158
|
-
return _el$
|
|
162
|
+
return _el$3;
|
|
159
163
|
}
|
|
160
164
|
}));
|
|
161
165
|
effect(() => own.label, (_v$) => {
|
|
162
|
-
setAttribute(_el$
|
|
166
|
+
setAttribute(_el$2, "aria-label", _v$);
|
|
163
167
|
});
|
|
164
|
-
return _el
|
|
165
|
-
}
|
|
168
|
+
return _el$;
|
|
169
|
+
});
|
|
166
170
|
delegateEvents(["click"]);
|
|
167
171
|
//#endregion
|
|
168
172
|
export { OrderList };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
2
1
|
import { createComponent, mergeProps } from "@solidjs/web";
|
|
2
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
//#region src/components/page-header/index.tsx
|
|
4
4
|
/** The page's face: an eyebrow whisper, a serif title, one line of
|
|
5
5
|
* description, and the actions resting beside the title on the same
|
|
@@ -11,7 +11,7 @@ type PaginationOwnProps = {
|
|
|
11
11
|
size?: "sm" | "md" | "lg";
|
|
12
12
|
};
|
|
13
13
|
declare function PaginationRoot(props: PaginationRootProps & PaginationOwnProps): import("solid-js").JSX.Element;
|
|
14
|
-
export declare const Pagination: Omit<typeof Pagination$1, "Root"> & {
|
|
14
|
+
export declare const Pagination: typeof PaginationRoot & Omit<typeof Pagination$1, "Root"> & {
|
|
15
15
|
Root: typeof PaginationRoot;
|
|
16
16
|
};
|
|
17
17
|
//#endregion
|
|
@@ -1,18 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
2
3
|
import { createComponent, mergeProps } from "@solidjs/web";
|
|
4
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
5
|
import { splitProps } from "solid-js";
|
|
4
6
|
import { Pagination as Pagination$1 } from "@ark-ui/solid/pagination";
|
|
5
7
|
//#region src/components/pagination/index.tsx
|
|
6
8
|
function PaginationRoot(props) {
|
|
7
9
|
const [own, rest] = splitProps(props, ["size"]);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
const id = useElementId("pagination", () => rest.id);
|
|
11
|
+
return createComponent(Pagination$1.Root, mergeProps(rest, {
|
|
12
|
+
get id() {
|
|
13
|
+
return id();
|
|
14
|
+
},
|
|
15
|
+
get "data-size"() {
|
|
16
|
+
return own.size ?? "md";
|
|
17
|
+
}
|
|
18
|
+
}));
|
|
11
19
|
}
|
|
12
|
-
const Pagination = {
|
|
20
|
+
const Pagination = defineFamily(PaginationRoot, {
|
|
13
21
|
...Pagination$1,
|
|
14
22
|
Root: PaginationRoot
|
|
15
|
-
};
|
|
23
|
+
});
|
|
16
24
|
injectComponentStyle("pagination");
|
|
17
25
|
//#endregion
|
|
18
26
|
export { Pagination };
|
|
@@ -9,7 +9,7 @@ type PasswordInputOwnProps = {
|
|
|
9
9
|
size?: "sm" | "md" | "lg";
|
|
10
10
|
};
|
|
11
11
|
declare function PasswordInputRoot(props: PasswordInputRootProps & PasswordInputOwnProps): import("solid-js").JSX.Element;
|
|
12
|
-
export declare const PasswordInput: Omit<typeof PasswordInput$1, "Root"> & {
|
|
12
|
+
export declare const PasswordInput: typeof PasswordInputRoot & Omit<typeof PasswordInput$1, "Root"> & {
|
|
13
13
|
Root: typeof PasswordInputRoot;
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
@@ -1,18 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
2
3
|
import { createComponent, mergeProps } from "@solidjs/web";
|
|
4
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
5
|
import { splitProps } from "solid-js";
|
|
4
6
|
import { PasswordInput as PasswordInput$1 } from "@ark-ui/solid/password-input";
|
|
5
7
|
//#region src/components/password-input/index.tsx
|
|
6
8
|
function PasswordInputRoot(props) {
|
|
7
9
|
const [own, rest] = splitProps(props, ["size"]);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
const id = useElementId("password-input", () => rest.id);
|
|
11
|
+
return createComponent(PasswordInput$1.Root, mergeProps(rest, {
|
|
12
|
+
get id() {
|
|
13
|
+
return id();
|
|
14
|
+
},
|
|
15
|
+
get "data-size"() {
|
|
16
|
+
return own.size ?? "md";
|
|
17
|
+
}
|
|
18
|
+
}));
|
|
11
19
|
}
|
|
12
|
-
const PasswordInput = {
|
|
20
|
+
const PasswordInput = defineFamily(PasswordInputRoot, {
|
|
13
21
|
...PasswordInput$1,
|
|
14
22
|
Root: PasswordInputRoot
|
|
15
|
-
};
|
|
23
|
+
});
|
|
16
24
|
injectComponentStyle("password-input");
|
|
17
25
|
//#endregion
|
|
18
26
|
export { PasswordInput };
|
|
@@ -8,7 +8,7 @@ type PinInputOwnProps = {
|
|
|
8
8
|
size?: "sm" | "md" | "lg";
|
|
9
9
|
};
|
|
10
10
|
declare function PinInputRoot(props: PinInputRootProps & PinInputOwnProps): import("solid-js").JSX.Element;
|
|
11
|
-
export declare const PinInput: Omit<typeof PinInput$1, "Root"> & {
|
|
11
|
+
export declare const PinInput: typeof PinInputRoot & Omit<typeof PinInput$1, "Root"> & {
|
|
12
12
|
Root: typeof PinInputRoot;
|
|
13
13
|
};
|
|
14
14
|
//#endregion
|
|
@@ -1,18 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
2
3
|
import { createComponent, mergeProps } from "@solidjs/web";
|
|
4
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
5
|
import { splitProps } from "solid-js";
|
|
4
6
|
import { PinInput as PinInput$1 } from "@ark-ui/solid/pin-input";
|
|
5
7
|
//#region src/components/pin-input/index.tsx
|
|
6
8
|
function PinInputRoot(props) {
|
|
7
9
|
const [own, rest] = splitProps(props, ["size"]);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
const id = useElementId("pin-input", () => rest.id);
|
|
11
|
+
return createComponent(PinInput$1.Root, mergeProps(rest, {
|
|
12
|
+
get id() {
|
|
13
|
+
return id();
|
|
14
|
+
},
|
|
15
|
+
get "data-size"() {
|
|
16
|
+
return own.size ?? "md";
|
|
17
|
+
}
|
|
18
|
+
}));
|
|
11
19
|
}
|
|
12
|
-
const PinInput = {
|
|
20
|
+
const PinInput = defineFamily(PinInputRoot, {
|
|
13
21
|
...PinInput$1,
|
|
14
22
|
Root: PinInputRoot
|
|
15
|
-
};
|
|
23
|
+
});
|
|
16
24
|
injectComponentStyle("pin-input");
|
|
17
25
|
//#endregion
|
|
18
26
|
export { PinInput };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Popover } from "../popover/index.mjs";
|
|
1
2
|
import { JSX } from "solid-js";
|
|
2
3
|
//#region src/components/popconfirm/index.d.ts
|
|
3
4
|
export interface PopconfirmProps extends JSX.HTMLAttributes<HTMLButtonElement> {
|
|
@@ -13,5 +14,6 @@ export interface PopconfirmProps extends JSX.HTMLAttributes<HTMLButtonElement> {
|
|
|
13
14
|
* and cancellation are the caller's to act on — the panel closes
|
|
14
15
|
* either way. The children are the trigger's content, riding the
|
|
15
16
|
* machine-driven trigger button. */
|
|
16
|
-
|
|
17
|
+
declare function PopconfirmImpl(props: PopconfirmProps): JSX.Element;
|
|
18
|
+
export declare const Popconfirm: typeof PopconfirmImpl & typeof Popover;
|
|
17
19
|
//#endregion
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
1
3
|
import { Button } from "../button/index.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { createComponent, insert, spread, template } from "@solidjs/web";
|
|
4
|
+
import { Popover as Popover$1 } from "../popover/index.mjs";
|
|
5
|
+
import { createComponent, insert, mergeProps, spread, template } from "@solidjs/web";
|
|
6
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
7
|
import { createSignal, splitProps } from "solid-js";
|
|
5
8
|
import { Portal } from "solid-js/web";
|
|
6
9
|
import { Popover } from "@ark-ui/solid/popover";
|
|
@@ -13,7 +16,7 @@ var _tmpl$3 = /* @__PURE__ */ template(`<button>`);
|
|
|
13
16
|
* and cancellation are the caller's to act on — the panel closes
|
|
14
17
|
* either way. The children are the trigger's content, riding the
|
|
15
18
|
* machine-driven trigger button. */
|
|
16
|
-
function
|
|
19
|
+
function PopconfirmImpl(props) {
|
|
17
20
|
injectComponentStyle("popconfirm");
|
|
18
21
|
const [own, rest] = splitProps(props, [
|
|
19
22
|
"message",
|
|
@@ -23,12 +26,16 @@ function Popconfirm(props) {
|
|
|
23
26
|
"onCancel",
|
|
24
27
|
"children"
|
|
25
28
|
]);
|
|
29
|
+
const id = useElementId("popconfirm");
|
|
26
30
|
const [open, setOpen] = createSignal(false);
|
|
27
31
|
function settle(confirmed) {
|
|
28
32
|
setOpen(false);
|
|
29
33
|
(confirmed ? own.onConfirm : own.onCancel)?.();
|
|
30
34
|
}
|
|
31
|
-
return createComponent(Popover.Root, {
|
|
35
|
+
return createComponent(Popover.Root, mergeProps(rest, {
|
|
36
|
+
get id() {
|
|
37
|
+
return id();
|
|
38
|
+
},
|
|
32
39
|
get open() {
|
|
33
40
|
return open();
|
|
34
41
|
},
|
|
@@ -57,21 +64,21 @@ function Popconfirm(props) {
|
|
|
57
64
|
var _el$2 = _tmpl$2();
|
|
58
65
|
var _el$3 = _el$2.firstChild;
|
|
59
66
|
var _el$4 = _el$3.nextSibling;
|
|
60
|
-
insert(_el$2, createComponent(Button, {
|
|
67
|
+
insert(_el$2, createComponent(Popover.CloseTrigger, { asChild: (closeProps) => createComponent(Button, mergeProps(closeProps, {
|
|
61
68
|
variant: "ghost",
|
|
62
69
|
size: "sm",
|
|
63
70
|
onClick: () => settle(false),
|
|
64
71
|
get children() {
|
|
65
72
|
return own.cancelText ?? "Cancel";
|
|
66
73
|
}
|
|
67
|
-
}), _el$3);
|
|
68
|
-
insert(_el$2, createComponent(Button, {
|
|
74
|
+
})) }), _el$3);
|
|
75
|
+
insert(_el$2, createComponent(Popover.CloseTrigger, { asChild: (closeProps) => createComponent(Button, mergeProps(closeProps, {
|
|
69
76
|
size: "sm",
|
|
70
77
|
onClick: () => settle(true),
|
|
71
78
|
get children() {
|
|
72
79
|
return own.confirmText ?? "Confirm";
|
|
73
80
|
}
|
|
74
|
-
}), _el$4);
|
|
81
|
+
})) }), _el$4);
|
|
75
82
|
return _el$2;
|
|
76
83
|
})()];
|
|
77
84
|
}
|
|
@@ -79,7 +86,8 @@ function Popconfirm(props) {
|
|
|
79
86
|
} });
|
|
80
87
|
} })];
|
|
81
88
|
}
|
|
82
|
-
});
|
|
89
|
+
}));
|
|
83
90
|
}
|
|
91
|
+
const Popconfirm = defineFamily(PopconfirmImpl, Popover$1);
|
|
84
92
|
//#endregion
|
|
85
93
|
export { Popconfirm };
|
|
@@ -1,8 +1,26 @@
|
|
|
1
|
+
import { ComponentProps, JSX } from "solid-js";
|
|
1
2
|
import { Popover as Popover$1 } from "@ark-ui/solid/popover";
|
|
2
3
|
//#region src/components/popover/index.d.ts
|
|
3
4
|
/** Ark's Popover, dressed in the paper-and-ink system: a paper vessel that
|
|
4
5
|
* dissolves in on elevation, anchored to its trigger by a whisker arrow. The
|
|
5
6
|
* API is Ark's own — Root, Trigger, Anchor, Indicator, Positioner, Content,
|
|
6
7
|
* Title, Description, CloseTrigger, Arrow, ArrowTip. */
|
|
7
|
-
|
|
8
|
+
declare function PopoverRoot(props: ComponentProps<typeof Popover$1.Root>): JSX.Element;
|
|
9
|
+
type PopoverPlacement = "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
|
|
10
|
+
export interface PopoverFacadeProps {
|
|
11
|
+
open?: boolean;
|
|
12
|
+
defaultOpen?: boolean;
|
|
13
|
+
trigger?: string | Element;
|
|
14
|
+
content?: string;
|
|
15
|
+
label: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
placement?: PopoverPlacement;
|
|
19
|
+
children?: JSX.Element;
|
|
20
|
+
onOpenChange?: (open: boolean) => void;
|
|
21
|
+
}
|
|
22
|
+
declare function PopoverFacade(props: PopoverFacadeProps): JSX.Element;
|
|
23
|
+
export declare const Popover: typeof PopoverFacade & Omit<typeof Popover$1, "Root"> & {
|
|
24
|
+
Root: typeof PopoverRoot;
|
|
25
|
+
};
|
|
8
26
|
//#endregion
|
|
@@ -1,11 +1,100 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { r as iconNode } from "../../icon-DTqmJCd5.mjs";
|
|
3
|
+
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
4
|
+
import { n as withElementProps, t as isElement } from "../../element-dGIhOTJ6.mjs";
|
|
5
|
+
import { createComponent, insert, memo, mergeProps, template } from "@solidjs/web";
|
|
6
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
7
|
+
import { Show, createComponent as createComponent$1, mergeProps as mergeProps$1 } from "solid-js";
|
|
2
8
|
import { Popover as Popover$1 } from "@ark-ui/solid/popover";
|
|
3
|
-
//#region src/components/popover/index.
|
|
9
|
+
//#region src/components/popover/index.tsx
|
|
10
|
+
var _tmpl$ = /* @__PURE__ */ template(`<p>`);
|
|
4
11
|
/** Ark's Popover, dressed in the paper-and-ink system: a paper vessel that
|
|
5
12
|
* dissolves in on elevation, anchored to its trigger by a whisker arrow. The
|
|
6
13
|
* API is Ark's own — Root, Trigger, Anchor, Indicator, Positioner, Content,
|
|
7
14
|
* Title, Description, CloseTrigger, Arrow, ArrowTip. */
|
|
8
|
-
|
|
15
|
+
function PopoverRoot(props) {
|
|
16
|
+
const id = useElementId("popover", () => props.id);
|
|
17
|
+
return createComponent$1(Popover$1.Root, mergeProps$1(props, { get id() {
|
|
18
|
+
return id();
|
|
19
|
+
} }));
|
|
20
|
+
}
|
|
21
|
+
function PopoverFacade(props) {
|
|
22
|
+
injectComponentStyle("popover");
|
|
23
|
+
const triggerElement = () => isElement(props.trigger) ? props.trigger : void 0;
|
|
24
|
+
const triggerChildren = () => triggerElement() ? void 0 : props.trigger ?? props.label;
|
|
25
|
+
const triggerAsChild = (propsFn) => {
|
|
26
|
+
const trigger = triggerElement();
|
|
27
|
+
return trigger ? withElementProps(trigger, propsFn()) : props.trigger ?? props.label;
|
|
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
|
+
}, {
|
|
36
|
+
onOpenChange: (details) => props.onOpenChange?.(details.open),
|
|
37
|
+
get children() {
|
|
38
|
+
return [createComponent(Popover$1.Trigger, {
|
|
39
|
+
get disabled() {
|
|
40
|
+
return props.disabled;
|
|
41
|
+
},
|
|
42
|
+
get asChild() {
|
|
43
|
+
return triggerElement() ? triggerAsChild : void 0;
|
|
44
|
+
},
|
|
45
|
+
get children() {
|
|
46
|
+
return triggerChildren();
|
|
47
|
+
}
|
|
48
|
+
}), createComponent(Popover$1.Positioner, { get children() {
|
|
49
|
+
return createComponent(Popover$1.Content, { get children() {
|
|
50
|
+
return [
|
|
51
|
+
createComponent(Popover$1.CloseTrigger, {
|
|
52
|
+
"aria-label": "Close",
|
|
53
|
+
get children() {
|
|
54
|
+
return iconNode("x", {
|
|
55
|
+
width: "14",
|
|
56
|
+
height: "14"
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}),
|
|
60
|
+
createComponent(Popover$1.Title, { get children() {
|
|
61
|
+
return props.label;
|
|
62
|
+
} }),
|
|
63
|
+
createComponent(Show, {
|
|
64
|
+
get when() {
|
|
65
|
+
return props.description;
|
|
66
|
+
},
|
|
67
|
+
get children() {
|
|
68
|
+
return createComponent(Popover$1.Description, { get children() {
|
|
69
|
+
return props.description;
|
|
70
|
+
} });
|
|
71
|
+
}
|
|
72
|
+
}),
|
|
73
|
+
createComponent(Show, {
|
|
74
|
+
get when() {
|
|
75
|
+
return props.content;
|
|
76
|
+
},
|
|
77
|
+
get children() {
|
|
78
|
+
var _el$ = _tmpl$();
|
|
79
|
+
insert(_el$, () => {
|
|
80
|
+
return props.content;
|
|
81
|
+
});
|
|
82
|
+
return _el$;
|
|
83
|
+
}
|
|
84
|
+
}),
|
|
85
|
+
memo(() => {
|
|
86
|
+
return props.children;
|
|
87
|
+
})
|
|
88
|
+
];
|
|
89
|
+
} });
|
|
90
|
+
} })];
|
|
91
|
+
}
|
|
92
|
+
}));
|
|
93
|
+
}
|
|
94
|
+
const Popover = defineFamily(PopoverFacade, {
|
|
95
|
+
...Popover$1,
|
|
96
|
+
Root: PopoverRoot
|
|
97
|
+
});
|
|
9
98
|
injectComponentStyle("popover");
|
|
10
99
|
//#endregion
|
|
11
100
|
export { Popover };
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { PresenceProps, UsePresenceContext, UsePresenceProps, UsePresenceReturn, usePresence, usePresenceContext } from "@ark-ui/solid/presence";
|
|
2
|
+
//#region src/components/presence/index.d.ts
|
|
3
|
+
export declare const Presence: ((props: import("@ark-ui/solid/presence").PresenceProps) => import("solid-js").JSX.Element) & {
|
|
4
|
+
Root: (props: import("@ark-ui/solid/presence").PresenceProps) => import("solid-js").JSX.Element;
|
|
5
|
+
};
|
|
6
|
+
export declare const PresenceProvider: import("solid-js").ContextProviderComponent<import("@ark-ui/solid/presence").UsePresenceContext> & {
|
|
7
|
+
Root: import("solid-js").ContextProviderComponent<import("@ark-ui/solid/presence").UsePresenceContext>;
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { type PresenceProps, type UsePresenceContext, type UsePresenceProps, type UsePresenceReturn, usePresence, usePresenceContext };
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { Presence as Presence$1, PresenceProvider as PresenceProvider$1, usePresence, usePresenceContext } from "@ark-ui/solid/presence";
|
|
3
|
+
//#region src/components/presence/index.ts
|
|
4
|
+
/** Mount/unmount children in step with CSS presence animations — the
|
|
5
|
+
* engine behind Ark's "postpone unmounting so exit animations finish"
|
|
6
|
+
* contract, exposed for composites of our own. */
|
|
7
|
+
const Presence = withSelfRoot(Presence$1);
|
|
8
|
+
const PresenceProvider = withSelfRoot(PresenceProvider$1);
|
|
9
|
+
//#endregion
|
|
2
10
|
export { Presence, PresenceProvider, usePresence, usePresenceContext };
|
|
@@ -9,7 +9,7 @@ type ProgressOwnProps = {
|
|
|
9
9
|
size?: "sm" | "md" | "lg";
|
|
10
10
|
};
|
|
11
11
|
declare function ProgressRoot(props: ProgressRootProps & ProgressOwnProps): import("solid-js").JSX.Element;
|
|
12
|
-
export declare const Progress: Omit<typeof Progress$1, "Root"> & {
|
|
12
|
+
export declare const Progress: typeof ProgressRoot & Omit<typeof Progress$1, "Root"> & {
|
|
13
13
|
Root: typeof ProgressRoot;
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
@@ -1,18 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-2ygNzPHF.mjs";
|
|
2
3
|
import { createComponent, mergeProps } from "@solidjs/web";
|
|
4
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
5
|
import { splitProps } from "solid-js";
|
|
4
6
|
import { Progress as Progress$1 } from "@ark-ui/solid/progress";
|
|
5
7
|
//#region src/components/progress/index.tsx
|
|
6
8
|
function ProgressRoot(props) {
|
|
7
9
|
const [own, rest] = splitProps(props, ["size"]);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
const id = useElementId("progress", () => rest.id);
|
|
11
|
+
return createComponent(Progress$1.Root, mergeProps(rest, {
|
|
12
|
+
get id() {
|
|
13
|
+
return id();
|
|
14
|
+
},
|
|
15
|
+
get "data-size"() {
|
|
16
|
+
return own.size ?? "md";
|
|
17
|
+
}
|
|
18
|
+
}));
|
|
11
19
|
}
|
|
12
|
-
const Progress = {
|
|
20
|
+
const Progress = defineFamily(ProgressRoot, {
|
|
13
21
|
...Progress$1,
|
|
14
22
|
Root: ProgressRoot
|
|
15
|
-
};
|
|
23
|
+
});
|
|
16
24
|
injectComponentStyle("progress");
|
|
17
25
|
//#endregion
|
|
18
26
|
export { Progress };
|
|
@@ -18,5 +18,7 @@ export interface ProgressGroupProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
|
18
18
|
max?: number;
|
|
19
19
|
showLegend?: boolean;
|
|
20
20
|
}
|
|
21
|
-
export declare
|
|
21
|
+
export declare const ProgressGroup: ((props: ProgressGroupProps) => JSX.Element) & {
|
|
22
|
+
Root: (props: ProgressGroupProps) => JSX.Element;
|
|
23
|
+
};
|
|
22
24
|
//#endregion
|