@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,12 +1,12 @@
|
|
|
1
|
-
import { n as withSelfRoot } from "../../family-
|
|
2
|
-
import { r as iconNode } from "../../icon-
|
|
3
|
-
import { n as useComponentMessages } from "../../use-component-messages-
|
|
4
|
-
import { createComponent, delegateEvents, effect, insert, setAttribute, spread, template } from "
|
|
1
|
+
import { n as withSelfRoot } from "../../family-B5HtE0on.mjs";
|
|
2
|
+
import { r as iconNode } from "../../icon-DQqYA2fO.mjs";
|
|
3
|
+
import { n as useComponentMessages } from "../../use-component-messages-DS9ppb4C.mjs";
|
|
4
|
+
import { createComponent, delegateEvents, effect, insert, mergeProps, setAttribute, spread, template } from "solid-js/web";
|
|
5
5
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
6
6
|
import { For, createSignal, splitProps } from "solid-js";
|
|
7
|
-
|
|
8
|
-
var _tmpl$ =
|
|
9
|
-
var _tmpl$2 =
|
|
7
|
+
// src/components/order-list/index.tsx
|
|
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
11
|
up: {
|
|
12
12
|
name: "chevron-up",
|
|
@@ -73,100 +73,85 @@ const OrderList = withSelfRoot(function OrderList(props) {
|
|
|
73
73
|
own.onValueChange?.(next);
|
|
74
74
|
reset();
|
|
75
75
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
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);
|
|
161
|
-
});
|
|
162
|
-
return _el$3;
|
|
163
|
-
}
|
|
164
|
-
}));
|
|
165
|
-
effect(() => own.label, (_v$) => {
|
|
166
|
-
setAttribute(_el$2, "aria-label", _v$);
|
|
167
|
-
});
|
|
168
|
-
return _el$;
|
|
76
|
+
return (() => {
|
|
77
|
+
var _el$ = _tmpl$(), _el$2 = _el$.firstChild;
|
|
78
|
+
spread(_el$, mergeProps(rest, {
|
|
79
|
+
"data-scope": "order-list",
|
|
80
|
+
"data-part": "root",
|
|
81
|
+
"onDragLeave": (event) => {
|
|
82
|
+
const host = event.currentTarget;
|
|
83
|
+
if (!event.relatedTarget || !host.contains(event.relatedTarget)) setDropLine(null);
|
|
84
|
+
}
|
|
85
|
+
}), false, true);
|
|
86
|
+
insert(_el$2, createComponent(For, {
|
|
87
|
+
get each() {
|
|
88
|
+
return rows();
|
|
89
|
+
},
|
|
90
|
+
children: (option, index) => {
|
|
91
|
+
const seam = () => dropLine() && dropLine().index === index() ? dropLine().before ? "top" : "bottom" : void 0;
|
|
92
|
+
return (() => {
|
|
93
|
+
var _el$3 = _tmpl$2(), _el$5 = _el$3.firstChild.nextSibling, _el$7 = _el$5.nextSibling.firstChild, _el$8 = _el$7.nextSibling, _el$9 = _el$8.nextSibling, _el$0 = _el$9.nextSibling;
|
|
94
|
+
_el$3.addEventListener("drop", (event) => {
|
|
95
|
+
event.preventDefault();
|
|
96
|
+
drop();
|
|
97
|
+
});
|
|
98
|
+
_el$3.addEventListener("dragover", (event) => {
|
|
99
|
+
event.preventDefault();
|
|
100
|
+
if (event.dataTransfer) event.dataTransfer.dropEffect = "move";
|
|
101
|
+
const rect = event.currentTarget.getBoundingClientRect();
|
|
102
|
+
const before = event.clientY < rect.top + rect.height / 2;
|
|
103
|
+
setDropLine(dragging() != null && !(option.value === dragging() && before) ? {
|
|
104
|
+
index: index(),
|
|
105
|
+
before
|
|
106
|
+
} : null);
|
|
107
|
+
});
|
|
108
|
+
_el$3.addEventListener("dragend", reset);
|
|
109
|
+
_el$3.addEventListener("dragstart", (event) => {
|
|
110
|
+
setDragging(option.value);
|
|
111
|
+
event.dataTransfer?.setData("text/plain", option.value);
|
|
112
|
+
if (event.dataTransfer) event.dataTransfer.effectAllowed = "move";
|
|
113
|
+
});
|
|
114
|
+
insert(_el$5, () => option.label);
|
|
115
|
+
_el$7.$$click = () => move(option.value, -index());
|
|
116
|
+
insert(_el$7, () => arrowIcon(ARROWS.top));
|
|
117
|
+
_el$8.$$click = () => move(option.value, -1);
|
|
118
|
+
insert(_el$8, () => arrowIcon(ARROWS.up));
|
|
119
|
+
_el$9.$$click = () => move(option.value, 1);
|
|
120
|
+
insert(_el$9, () => arrowIcon(ARROWS.down));
|
|
121
|
+
_el$0.$$click = () => move(option.value, rows().length - 1 - index());
|
|
122
|
+
insert(_el$0, () => arrowIcon(ARROWS.bottom));
|
|
123
|
+
effect((_p$) => {
|
|
124
|
+
var _v$ = dragging() === option.value ? "" : void 0, _v$2 = seam(), _v$3 = messages().orderList.toTop, _v$4 = index() === 0, _v$5 = messages().orderList.moveUp, _v$6 = index() === 0, _v$7 = messages().orderList.moveDown, _v$8 = index() === rows().length - 1, _v$9 = messages().orderList.toBottom, _v$0 = index() === rows().length - 1;
|
|
125
|
+
_v$ !== _p$.e && setAttribute(_el$3, "data-dragging", _p$.e = _v$);
|
|
126
|
+
_v$2 !== _p$.t && setAttribute(_el$3, "data-drop-line", _p$.t = _v$2);
|
|
127
|
+
_v$3 !== _p$.a && setAttribute(_el$7, "aria-label", _p$.a = _v$3);
|
|
128
|
+
_v$4 !== _p$.o && (_el$7.disabled = _p$.o = _v$4);
|
|
129
|
+
_v$5 !== _p$.i && setAttribute(_el$8, "aria-label", _p$.i = _v$5);
|
|
130
|
+
_v$6 !== _p$.n && (_el$8.disabled = _p$.n = _v$6);
|
|
131
|
+
_v$7 !== _p$.s && setAttribute(_el$9, "aria-label", _p$.s = _v$7);
|
|
132
|
+
_v$8 !== _p$.h && (_el$9.disabled = _p$.h = _v$8);
|
|
133
|
+
_v$9 !== _p$.r && setAttribute(_el$0, "aria-label", _p$.r = _v$9);
|
|
134
|
+
_v$0 !== _p$.d && (_el$0.disabled = _p$.d = _v$0);
|
|
135
|
+
return _p$;
|
|
136
|
+
}, {
|
|
137
|
+
e: void 0,
|
|
138
|
+
t: void 0,
|
|
139
|
+
a: void 0,
|
|
140
|
+
o: void 0,
|
|
141
|
+
i: void 0,
|
|
142
|
+
n: void 0,
|
|
143
|
+
s: void 0,
|
|
144
|
+
h: void 0,
|
|
145
|
+
r: void 0,
|
|
146
|
+
d: void 0
|
|
147
|
+
});
|
|
148
|
+
return _el$3;
|
|
149
|
+
})();
|
|
150
|
+
}
|
|
151
|
+
}));
|
|
152
|
+
effect(() => setAttribute(_el$2, "aria-label", own.label));
|
|
153
|
+
return _el$;
|
|
154
|
+
})();
|
|
169
155
|
});
|
|
170
156
|
delegateEvents(["click"]);
|
|
171
|
-
//#endregion
|
|
172
157
|
export { OrderList };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JSX } from "solid-js";
|
|
2
|
-
//#region src/components/page-header/index.d.ts
|
|
3
2
|
export declare const PageHeader: ((props: JSX.HTMLAttributes<HTMLElement>) => JSX.Element) & {
|
|
4
3
|
Root: (props: JSX.HTMLAttributes<HTMLElement>) => JSX.Element;
|
|
5
4
|
Heading: (props: JSX.HTMLAttributes<HTMLElement>) => JSX.Element;
|
|
@@ -7,5 +6,4 @@ export declare const PageHeader: ((props: JSX.HTMLAttributes<HTMLElement>) => JS
|
|
|
7
6
|
Title: (props: JSX.HTMLAttributes<HTMLElement>) => JSX.Element;
|
|
8
7
|
Description: (props: JSX.HTMLAttributes<HTMLElement>) => JSX.Element;
|
|
9
8
|
Actions: (props: JSX.HTMLAttributes<HTMLElement>) => JSX.Element;
|
|
10
|
-
};
|
|
11
|
-
//#endregion
|
|
9
|
+
};
|
|
@@ -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/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
|
|
6
6
|
* baseline. Heading groups title and actions; the rest compose below. */
|
|
@@ -8,7 +8,7 @@ function part(name, tag, extra = {}) {
|
|
|
8
8
|
function Component(props) {
|
|
9
9
|
return createComponent(tag, mergeProps(extra, props, {
|
|
10
10
|
"data-scope": "page-header",
|
|
11
|
-
get "data-part"() {
|
|
11
|
+
get ["data-part"]() {
|
|
12
12
|
return name.toLowerCase();
|
|
13
13
|
}
|
|
14
14
|
}));
|
|
@@ -30,5 +30,4 @@ const PageHeader = Object.assign(Root, {
|
|
|
30
30
|
Actions
|
|
31
31
|
});
|
|
32
32
|
injectComponentStyle("page-header");
|
|
33
|
-
//#endregion
|
|
34
33
|
export { PageHeader };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Pagination as Pagination$1, PaginationRootProps } from "@ark-ui/solid/pagination";
|
|
2
|
-
//#region src/components/pagination/index.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Pagination — paged navigation.
|
|
5
4
|
*
|
|
@@ -34,4 +33,4 @@ declare function PaginationFacade(props: PaginationFacadeProps): import("solid-j
|
|
|
34
33
|
export declare const Pagination: typeof PaginationFacade & Omit<typeof Pagination$1, "Root"> & {
|
|
35
34
|
Root: typeof PaginationRoot;
|
|
36
35
|
};
|
|
37
|
-
|
|
36
|
+
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, splitProps } from "solid-js";
|
|
7
7
|
import { Pagination as Pagination$1 } from "@ark-ui/solid/pagination";
|
|
8
|
-
|
|
9
|
-
var _tmpl$ =
|
|
8
|
+
// src/components/pagination/index.tsx
|
|
9
|
+
var _tmpl$ = /*#__PURE__*/ template(`<span data-scope=pagination data-part=status> / `);
|
|
10
10
|
function PaginationRoot(props) {
|
|
11
11
|
injectComponentStyle("pagination");
|
|
12
12
|
const [own, rest] = splitProps(props, [
|
|
@@ -19,13 +19,11 @@ function PaginationRoot(props) {
|
|
|
19
19
|
get id() {
|
|
20
20
|
return id();
|
|
21
21
|
},
|
|
22
|
-
get "data-size"() {
|
|
22
|
+
get ["data-size"]() {
|
|
23
23
|
return own.size ?? "md";
|
|
24
24
|
},
|
|
25
|
-
get "data-variant"() {
|
|
26
|
-
return memo(() =>
|
|
27
|
-
return own.variant === "simple";
|
|
28
|
-
})() ? own.variant : void 0;
|
|
25
|
+
get ["data-variant"]() {
|
|
26
|
+
return memo(() => own.variant === "simple")() ? own.variant : void 0;
|
|
29
27
|
}
|
|
30
28
|
}));
|
|
31
29
|
}
|
|
@@ -34,14 +32,14 @@ function PaginationRoot(props) {
|
|
|
34
32
|
function PaginationFacade(props) {
|
|
35
33
|
const variant = props.variant ?? "default";
|
|
36
34
|
return createComponent(PaginationRoot, {
|
|
37
|
-
get "class"() {
|
|
35
|
+
get ["class"]() {
|
|
38
36
|
return props.class;
|
|
39
37
|
},
|
|
40
38
|
get size() {
|
|
41
39
|
return props.size ?? "md";
|
|
42
40
|
},
|
|
43
41
|
variant,
|
|
44
|
-
get "aria-label"() {
|
|
42
|
+
get ["aria-label"]() {
|
|
45
43
|
return props.label;
|
|
46
44
|
},
|
|
47
45
|
get count() {
|
|
@@ -74,35 +72,27 @@ function PaginationFacade(props) {
|
|
|
74
72
|
});
|
|
75
73
|
}
|
|
76
74
|
}),
|
|
77
|
-
memo(() => {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
get
|
|
91
|
-
return
|
|
75
|
+
memo(() => variant === "simple" ? createComponent(Pagination$1.Context, { children: (pagination) => (() => {
|
|
76
|
+
var _el$ = _tmpl$(), _el$2 = _el$.firstChild;
|
|
77
|
+
insert(_el$, () => pagination().page, _el$2);
|
|
78
|
+
insert(_el$, () => pagination().totalPages, null);
|
|
79
|
+
return _el$;
|
|
80
|
+
})() }) : createComponent(Pagination$1.Context, { children: (pagination) => createComponent(For, {
|
|
81
|
+
get each() {
|
|
82
|
+
return pagination().pages;
|
|
83
|
+
},
|
|
84
|
+
children: (page, index) => page.type === "ellipsis" ? createComponent(Pagination$1.Ellipsis, { get index() {
|
|
85
|
+
return index();
|
|
86
|
+
} }) : createComponent(Pagination$1.Item, {
|
|
87
|
+
type: "page",
|
|
88
|
+
get value() {
|
|
89
|
+
return page.value;
|
|
92
90
|
},
|
|
93
|
-
|
|
94
|
-
return
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
return page.value;
|
|
99
|
-
},
|
|
100
|
-
get children() {
|
|
101
|
-
return page.value;
|
|
102
|
-
}
|
|
103
|
-
})
|
|
104
|
-
}) });
|
|
105
|
-
}),
|
|
91
|
+
get children() {
|
|
92
|
+
return page.value;
|
|
93
|
+
}
|
|
94
|
+
})
|
|
95
|
+
}) })),
|
|
106
96
|
createComponent(Pagination$1.NextTrigger, {
|
|
107
97
|
"aria-label": "Next page",
|
|
108
98
|
get children() {
|
|
@@ -121,5 +111,4 @@ const Pagination = defineFamily(PaginationFacade, {
|
|
|
121
111
|
Root: PaginationRoot
|
|
122
112
|
});
|
|
123
113
|
injectComponentStyle("pagination");
|
|
124
|
-
//#endregion
|
|
125
114
|
export { Pagination };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PasswordInput as PasswordInput$1, PasswordInputRootProps } from "@ark-ui/solid/password-input";
|
|
2
|
-
//#region src/components/password-input/index.d.ts
|
|
3
2
|
/** Ark's PasswordInput, dressed in the paper-and-ink system: the reveal
|
|
4
3
|
* eye sits quiet at the field's edge and swaps in place — no shift, no
|
|
5
4
|
* noise. The API is Ark's own — Root, Label, Control, Input, Indicator,
|
|
@@ -29,4 +28,4 @@ type PasswordInputParts = Omit<typeof PasswordInput$1, "Root"> & {
|
|
|
29
28
|
Root: typeof PasswordInputRoot;
|
|
30
29
|
};
|
|
31
30
|
export declare const PasswordInput: typeof PasswordInputFacade & PasswordInputParts;
|
|
32
|
-
|
|
31
|
+
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 { Show, splitProps } from "solid-js";
|
|
7
7
|
import { PasswordInput as PasswordInput$1 } from "@ark-ui/solid/password-input";
|
|
8
|
-
|
|
8
|
+
// src/components/password-input/index.tsx
|
|
9
9
|
function PasswordInputRoot(props) {
|
|
10
10
|
const [own, rest] = splitProps(props, ["size"]);
|
|
11
11
|
const id = useElementId("password-input", () => rest.id);
|
|
@@ -13,7 +13,7 @@ function PasswordInputRoot(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
|
}));
|
|
@@ -76,5 +76,4 @@ const PasswordInput = defineFamily(PasswordInputFacade, {
|
|
|
76
76
|
Root: PasswordInputRoot
|
|
77
77
|
});
|
|
78
78
|
injectComponentStyle("password-input");
|
|
79
|
-
//#endregion
|
|
80
79
|
export { PasswordInput };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PinInput as PinInput$1, PinInputRootProps } from "@ark-ui/solid/pin-input";
|
|
2
|
-
//#region src/components/pin-input/index.d.ts
|
|
3
2
|
/** Ark's PinInput, dressed in the paper-and-ink system: one character per
|
|
4
3
|
* square-cut seal, centered ink in tabular figures. The API is Ark's own —
|
|
5
4
|
* Root, Label, Control, Input, HiddenInput. */
|
|
@@ -28,4 +27,4 @@ type PinInputParts = Omit<typeof PinInput$1, "Root"> & {
|
|
|
28
27
|
Root: typeof PinInputRoot;
|
|
29
28
|
};
|
|
30
29
|
export declare const PinInput: typeof PinInputFacade & PinInputParts;
|
|
31
|
-
|
|
30
|
+
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 { PinInput as PinInput$1 } from "@ark-ui/solid/pin-input";
|
|
7
|
-
|
|
7
|
+
// src/components/pin-input/index.tsx
|
|
8
8
|
function PinInputRoot(props) {
|
|
9
9
|
const [own, rest] = splitProps(props, ["size"]);
|
|
10
10
|
const id = useElementId("pin-input", () => rest.id);
|
|
@@ -12,7 +12,7 @@ function PinInputRoot(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
|
}));
|
|
@@ -40,9 +40,7 @@ function PinInputFacade(props) {
|
|
|
40
40
|
get defaultValue() {
|
|
41
41
|
return props.defaultValue;
|
|
42
42
|
}
|
|
43
|
-
}, () => {
|
|
44
|
-
return props.value === void 0 ? {} : { value: props.value };
|
|
45
|
-
}, {
|
|
43
|
+
}, () => props.value === void 0 ? {} : { value: props.value }, {
|
|
46
44
|
onValueChange: (details) => props.onValueChange?.(details.value),
|
|
47
45
|
get children() {
|
|
48
46
|
return [
|
|
@@ -74,5 +72,4 @@ const PinInput = defineFamily(PinInputFacade, {
|
|
|
74
72
|
Root: PinInputRoot
|
|
75
73
|
});
|
|
76
74
|
injectComponentStyle("pin-input");
|
|
77
|
-
//#endregion
|
|
78
75
|
export { PinInput };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Popover } from "
|
|
1
|
+
import { t as Popover } from "../../index-BRvSfkKs.mjs";
|
|
2
2
|
import { JSX } from "solid-js";
|
|
3
|
-
//#region src/components/popconfirm/index.d.ts
|
|
4
3
|
export interface PopconfirmProps extends JSX.HTMLAttributes<HTMLButtonElement> {
|
|
5
4
|
/** The question the reader is answering. */
|
|
6
5
|
message: string;
|
|
@@ -16,4 +15,4 @@ export interface PopconfirmProps extends JSX.HTMLAttributes<HTMLButtonElement> {
|
|
|
16
15
|
* machine-driven trigger button. */
|
|
17
16
|
declare function PopconfirmImpl(props: PopconfirmProps): JSX.Element;
|
|
18
17
|
export declare const Popconfirm: typeof PopconfirmImpl & typeof Popover;
|
|
19
|
-
|
|
18
|
+
export {};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { t as defineFamily } from "../../family-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
1
|
+
import { t as defineFamily } from "../../family-B5HtE0on.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-DGvz-2rQ.mjs";
|
|
3
3
|
import { Button } from "../button/index.mjs";
|
|
4
4
|
import { Popover as Popover$1 } from "../popover/index.mjs";
|
|
5
|
-
import { createComponent, insert, mergeProps, spread, template } from "
|
|
5
|
+
import { Portal, createComponent, insert, mergeProps, spread, template } from "solid-js/web";
|
|
6
6
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
7
7
|
import { createSignal, splitProps } from "solid-js";
|
|
8
|
-
import { Portal } from "solid-js/web";
|
|
9
8
|
import { Popover } from "@ark-ui/solid/popover";
|
|
10
|
-
|
|
11
|
-
var _tmpl$ =
|
|
12
|
-
var _tmpl$2 =
|
|
13
|
-
var _tmpl$3 =
|
|
9
|
+
// src/components/popconfirm/index.tsx
|
|
10
|
+
var _tmpl$ = /*#__PURE__*/ template(`<p data-part=message>`);
|
|
11
|
+
var _tmpl$2 = /*#__PURE__*/ template(`<div data-part=actions>`);
|
|
12
|
+
var _tmpl$3 = /*#__PURE__*/ template(`<button>`);
|
|
14
13
|
/** A question at the point of no return: the trigger opens a small
|
|
15
14
|
* anchored vessel carrying the message and two answers. Confirmation
|
|
16
15
|
* and cancellation are the caller's to act on — the panel closes
|
|
@@ -43,27 +42,21 @@ function PopconfirmImpl(props) {
|
|
|
43
42
|
positioning: { placement: "top" },
|
|
44
43
|
get children() {
|
|
45
44
|
return [createComponent(Popover.Trigger, { asChild: (propsFn) => (() => {
|
|
46
|
-
var _el$
|
|
47
|
-
spread(_el$
|
|
48
|
-
insert(_el$
|
|
49
|
-
|
|
50
|
-
});
|
|
51
|
-
return _el$5;
|
|
45
|
+
var _el$3 = _tmpl$3();
|
|
46
|
+
spread(_el$3, mergeProps(propsFn, rest), false, true);
|
|
47
|
+
insert(_el$3, () => own.children);
|
|
48
|
+
return _el$3;
|
|
52
49
|
})() }), createComponent(Portal, { get children() {
|
|
53
50
|
return createComponent(Popover.Positioner, { get children() {
|
|
54
51
|
return createComponent(Popover.Content, {
|
|
55
|
-
class: "bs-popconfirm",
|
|
52
|
+
"class": "bs-popconfirm",
|
|
56
53
|
get children() {
|
|
57
54
|
return [(() => {
|
|
58
55
|
var _el$ = _tmpl$();
|
|
59
|
-
insert(_el$, () =>
|
|
60
|
-
return own.message;
|
|
61
|
-
});
|
|
56
|
+
insert(_el$, () => own.message);
|
|
62
57
|
return _el$;
|
|
63
58
|
})(), (() => {
|
|
64
59
|
var _el$2 = _tmpl$2();
|
|
65
|
-
var _el$3 = _el$2.firstChild;
|
|
66
|
-
var _el$4 = _el$3.nextSibling;
|
|
67
60
|
insert(_el$2, createComponent(Popover.CloseTrigger, { asChild: (closeProps) => createComponent(Button, mergeProps(closeProps, {
|
|
68
61
|
variant: "ghost",
|
|
69
62
|
size: "sm",
|
|
@@ -71,14 +64,14 @@ function PopconfirmImpl(props) {
|
|
|
71
64
|
get children() {
|
|
72
65
|
return own.cancelText ?? "Cancel";
|
|
73
66
|
}
|
|
74
|
-
})) }),
|
|
67
|
+
})) }), null);
|
|
75
68
|
insert(_el$2, createComponent(Popover.CloseTrigger, { asChild: (closeProps) => createComponent(Button, mergeProps(closeProps, {
|
|
76
69
|
size: "sm",
|
|
77
70
|
onClick: () => settle(true),
|
|
78
71
|
get children() {
|
|
79
72
|
return own.confirmText ?? "Confirm";
|
|
80
73
|
}
|
|
81
|
-
})) }),
|
|
74
|
+
})) }), null);
|
|
82
75
|
return _el$2;
|
|
83
76
|
})()];
|
|
84
77
|
}
|
|
@@ -89,5 +82,4 @@ function PopconfirmImpl(props) {
|
|
|
89
82
|
}));
|
|
90
83
|
}
|
|
91
84
|
const Popconfirm = defineFamily(PopconfirmImpl, Popover$1);
|
|
92
|
-
//#endregion
|
|
93
85
|
export { Popconfirm };
|
|
@@ -1,26 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/components/popover/index.d.ts
|
|
4
|
-
/** Ark's Popover, dressed in the paper-and-ink system: a paper vessel that
|
|
5
|
-
* dissolves in on elevation, anchored to its trigger by a whisker arrow. The
|
|
6
|
-
* API is Ark's own — Root, Trigger, Anchor, Indicator, Positioner, Content,
|
|
7
|
-
* Title, Description, CloseTrigger, Arrow, ArrowTip. */
|
|
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
|
-
};
|
|
26
|
-
//#endregion
|
|
1
|
+
import { n as PopoverFacadeProps, t as Popover } from "../../index-BRvSfkKs.mjs";
|
|
2
|
+
export { Popover, PopoverFacadeProps };
|