@bysages/react 0.4.4 → 0.6.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/dist/ai-B0o-dsAf.mjs +309 -0
- package/dist/ai-prompt-input-Cl9ulICF.mjs +401 -0
- package/dist/{ai-response-CjjjprMY.mjs → ai-response-DTxdL5rX.mjs} +9 -11
- package/dist/{chevron-BA7kV9m7.mjs → chevron-DnImlNip.mjs} +2 -3
- package/dist/components/accordion/index.d.mts +1 -2
- package/dist/components/accordion/index.mjs +3 -4
- package/dist/components/affix/index.d.mts +1 -2
- package/dist/components/affix/index.mjs +2 -3
- package/dist/components/ai/index.d.mts +107 -2
- package/dist/components/ai/index.mjs +7 -82
- package/dist/components/ai-action/index.d.mts +0 -2
- package/dist/components/ai-action/index.mjs +2 -3
- package/dist/components/ai-attachments/index.d.mts +0 -2
- package/dist/components/ai-attachments/index.mjs +4 -5
- package/dist/components/ai-message/index.d.mts +2 -14
- package/dist/components/ai-message/index.mjs +5 -4
- package/dist/components/ai-prompt-input/index.d.mts +14 -18
- package/dist/components/ai-prompt-input/index.mjs +1 -126
- package/dist/components/ai-reasoning/index.d.mts +0 -2
- package/dist/components/ai-reasoning/index.mjs +3 -4
- 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 +2 -3
- package/dist/components/ai-suggestion/index.d.mts +0 -2
- package/dist/components/ai-suggestion/index.mjs +2 -3
- package/dist/components/ai-tool/index.d.mts +2 -24
- package/dist/components/ai-tool/index.mjs +46 -14
- package/dist/components/alert/index.d.mts +1 -2
- package/dist/components/alert/index.mjs +2 -3
- package/dist/components/angle-slider/index.d.mts +1 -2
- package/dist/components/angle-slider/index.mjs +2 -3
- package/dist/components/aspect-ratio/index.d.mts +1 -2
- package/dist/components/aspect-ratio/index.mjs +2 -3
- package/dist/components/autocomplete/index.d.mts +5 -3
- package/dist/components/autocomplete/index.mjs +12 -10
- package/dist/components/avatar/index.d.mts +1 -2
- package/dist/components/avatar/index.mjs +2 -3
- package/dist/components/avatar-group/index.d.mts +1 -2
- package/dist/components/avatar-group/index.mjs +2 -3
- package/dist/components/back-top/index.d.mts +1 -2
- package/dist/components/back-top/index.mjs +3 -4
- package/dist/components/badge/index.d.mts +1 -2
- package/dist/components/badge/index.mjs +2 -3
- package/dist/components/banner/index.d.mts +1 -2
- package/dist/components/banner/index.mjs +3 -4
- package/dist/components/bento/index.d.mts +1 -3
- package/dist/components/bento/index.mjs +1 -2
- package/dist/components/block-ui/index.d.mts +1 -2
- package/dist/components/block-ui/index.mjs +2 -3
- package/dist/components/breadcrumb/index.d.mts +1 -2
- package/dist/components/breadcrumb/index.mjs +2 -3
- package/dist/components/browser/index.d.mts +1 -3
- package/dist/components/browser/index.mjs +1 -2
- package/dist/components/button/index.d.mts +1 -2
- package/dist/components/button/index.mjs +2 -3
- package/dist/components/button-group/index.d.mts +1 -2
- package/dist/components/button-group/index.mjs +1 -2
- package/dist/components/calendar/index.d.mts +1 -2
- package/dist/components/calendar/index.mjs +3 -4
- package/dist/components/card/index.d.mts +1 -3
- package/dist/components/card/index.mjs +1 -2
- package/dist/components/carousel/index.d.mts +1 -2
- package/dist/components/carousel/index.mjs +3 -4
- package/dist/components/cascade-select/index.d.mts +5 -3
- package/dist/components/cascade-select/index.mjs +42 -40
- package/dist/components/checkbox/index.d.mts +1 -2
- package/dist/components/checkbox/index.mjs +3 -4
- package/dist/components/checkbox-group/index.d.mts +1 -2
- package/dist/components/checkbox-group/index.mjs +3 -4
- package/dist/components/chip/index.d.mts +1 -2
- package/dist/components/chip/index.mjs +2 -3
- 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 +3 -4
- package/dist/components/collapsible/index.d.mts +1 -2
- package/dist/components/collapsible/index.mjs +3 -4
- package/dist/components/collection/index.mjs +1 -2
- package/dist/components/color-picker/index.d.mts +10 -3
- package/dist/components/color-picker/index.mjs +39 -33
- package/dist/components/combobox/index.d.mts +10 -3
- package/dist/components/combobox/index.mjs +17 -12
- package/dist/components/command/index.d.mts +5 -3
- package/dist/components/command/index.mjs +74 -72
- package/dist/components/comment/index.d.mts +1 -2
- package/dist/components/comment/index.mjs +2 -3
- package/dist/components/config-provider/index.d.mts +1 -2
- package/dist/components/config-provider/index.mjs +2 -3
- package/dist/components/container/index.d.mts +1 -2
- package/dist/components/container/index.mjs +2 -3
- package/dist/components/data-view/index.d.mts +1 -2
- package/dist/components/data-view/index.mjs +3 -4
- package/dist/components/date-input/index.d.mts +0 -2
- package/dist/components/date-input/index.mjs +2 -3
- package/dist/components/date-picker/index.d.mts +9 -3
- package/dist/components/date-picker/index.mjs +30 -25
- package/dist/components/deferred-content/index.d.mts +1 -2
- package/dist/components/deferred-content/index.mjs +2 -3
- package/dist/components/descriptions/index.d.mts +1 -2
- package/dist/components/descriptions/index.mjs +2 -3
- package/dist/components/dialog/index.d.mts +49 -5
- package/dist/components/dialog/index.mjs +67 -20
- package/dist/components/dock/index.d.mts +1 -3
- package/dist/components/dock/index.mjs +1 -2
- 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 +20 -5
- package/dist/components/drawer/index.mjs +21 -16
- package/dist/components/dynamic-input/index.d.mts +1 -2
- package/dist/components/dynamic-input/index.mjs +5 -6
- package/dist/components/editable/index.d.mts +1 -2
- package/dist/components/editable/index.mjs +3 -4
- package/dist/components/ellipsis/index.d.mts +1 -2
- package/dist/components/ellipsis/index.mjs +2 -3
- package/dist/components/empty/index.d.mts +1 -3
- package/dist/components/empty/index.mjs +1 -2
- package/dist/components/field/index.d.mts +1 -2
- package/dist/components/field/index.mjs +2 -3
- package/dist/components/fieldset/index.d.mts +1 -2
- package/dist/components/fieldset/index.mjs +2 -3
- package/dist/components/file-upload/index.d.mts +1 -2
- package/dist/components/file-upload/index.mjs +3 -4
- package/dist/components/float-button/index.d.mts +1 -2
- package/dist/components/float-button/index.mjs +3 -4
- package/dist/components/floating-panel/index.d.mts +20 -5
- package/dist/components/floating-panel/index.mjs +37 -32
- 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 +2 -3
- 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 -3
- package/dist/components/frame/index.mjs +3 -4
- package/dist/components/grid/index.d.mts +1 -2
- package/dist/components/grid/index.mjs +2 -3
- 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 +18 -5
- package/dist/components/hover-card/index.mjs +16 -11
- package/dist/components/icon/index.d.mts +1 -2
- package/dist/components/icon/index.mjs +2 -3
- package/dist/components/image/index.d.mts +1 -2
- package/dist/components/image/index.mjs +3 -4
- package/dist/components/image-cropper/index.d.mts +1 -2
- package/dist/components/image-cropper/index.mjs +2 -3
- 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 -3
- package/dist/components/input-group/index.mjs +1 -2
- package/dist/components/json-tree-view/index.d.mts +1 -2
- package/dist/components/json-tree-view/index.mjs +3 -4
- package/dist/components/kbd/index.d.mts +1 -2
- package/dist/components/kbd/index.mjs +2 -3
- package/dist/components/layout/index.d.mts +1 -2
- package/dist/components/layout/index.mjs +19 -15
- package/dist/components/link/index.d.mts +1 -2
- package/dist/components/link/index.mjs +2 -3
- package/dist/components/list/index.d.mts +1 -2
- package/dist/components/list/index.mjs +1 -2
- package/dist/components/listbox/index.d.mts +0 -2
- package/dist/components/listbox/index.mjs +3 -4
- package/dist/components/marquee/index.d.mts +1 -2
- package/dist/components/marquee/index.mjs +2 -3
- package/dist/components/masonry/index.d.mts +1 -2
- package/dist/components/masonry/index.mjs +2 -3
- 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 -2
- package/dist/components/menu/index.d.mts +11 -4
- package/dist/components/menu/index.mjs +15 -10
- package/dist/components/menubar/index.d.mts +5 -3
- package/dist/components/menubar/index.mjs +14 -12
- package/dist/components/meter/index.d.mts +1 -3
- package/dist/components/meter/index.mjs +1 -2
- package/dist/components/navigation-menu/index.d.mts +10 -3
- package/dist/components/navigation-menu/index.mjs +9 -4
- package/dist/components/number-input/index.d.mts +1 -2
- package/dist/components/number-input/index.mjs +3 -4
- package/dist/components/order-list/index.d.mts +1 -2
- package/dist/components/order-list/index.mjs +4 -5
- package/dist/components/page-header/index.d.mts +1 -3
- package/dist/components/page-header/index.mjs +1 -2
- package/dist/components/pagination/index.d.mts +3 -4
- package/dist/components/pagination/index.mjs +3 -4
- package/dist/components/password-input/index.d.mts +1 -2
- package/dist/components/password-input/index.mjs +3 -4
- package/dist/components/pin-input/index.d.mts +1 -2
- package/dist/components/pin-input/index.mjs +2 -3
- package/dist/components/popconfirm/index.d.mts +6 -4
- package/dist/components/popconfirm/index.mjs +33 -31
- package/dist/components/popover/index.d.mts +1 -1
- package/dist/components/popover/index.mjs +23 -18
- 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 +2 -3
- package/dist/components/progress-group/index.d.mts +1 -2
- package/dist/components/progress-group/index.mjs +2 -3
- package/dist/components/qr-code/index.d.mts +1 -2
- package/dist/components/qr-code/index.mjs +2 -3
- package/dist/components/radio-group/index.d.mts +1 -2
- package/dist/components/radio-group/index.mjs +2 -3
- package/dist/components/rating-group/index.d.mts +1 -2
- package/dist/components/rating-group/index.mjs +3 -4
- package/dist/components/result/index.d.mts +1 -2
- package/dist/components/result/index.mjs +2 -3
- package/dist/components/scroll-area/index.d.mts +8 -3
- package/dist/components/scroll-area/index.mjs +7 -6
- package/dist/components/segment-group/index.d.mts +1 -2
- package/dist/components/segment-group/index.mjs +2 -3
- 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 -2
- package/dist/components/separator/index.mjs +2 -3
- package/dist/components/signature-pad/index.d.mts +1 -2
- package/dist/components/signature-pad/index.mjs +3 -4
- package/dist/components/skeleton/index.d.mts +1 -2
- package/dist/components/skeleton/index.mjs +2 -3
- package/dist/components/slider/index.d.mts +1 -2
- package/dist/components/slider/index.mjs +2 -3
- package/dist/components/spinner/index.d.mts +1 -2
- package/dist/components/spinner/index.mjs +3 -4
- package/dist/components/split-button/index.d.mts +5 -3
- package/dist/components/split-button/index.mjs +16 -14
- package/dist/components/splitter/index.d.mts +1 -2
- package/dist/components/splitter/index.mjs +2 -3
- package/dist/components/spotlight/index.d.mts +1 -2
- package/dist/components/spotlight/index.mjs +2 -3
- package/dist/components/stack/index.d.mts +1 -2
- package/dist/components/stack/index.mjs +2 -3
- package/dist/components/stat/index.d.mts +1 -3
- package/dist/components/stat/index.mjs +1 -2
- package/dist/components/steps/index.d.mts +0 -2
- package/dist/components/steps/index.mjs +2 -3
- package/dist/components/swap/index.d.mts +1 -2
- package/dist/components/swap/index.mjs +3 -4
- package/dist/components/switch/index.d.mts +1 -2
- package/dist/components/switch/index.mjs +2 -3
- package/dist/components/table/index.d.mts +21 -3
- package/dist/components/table/index.mjs +28 -14
- package/dist/components/tabs/index.d.mts +9 -3
- package/dist/components/tabs/index.mjs +36 -8
- package/dist/components/tag/index.d.mts +1 -2
- package/dist/components/tag/index.mjs +3 -4
- package/dist/components/tags-input/index.d.mts +1 -2
- package/dist/components/tags-input/index.mjs +3 -4
- package/dist/components/terminal/index.d.mts +4 -3
- package/dist/components/terminal/index.mjs +8 -7
- package/dist/components/textarea/index.d.mts +1 -2
- package/dist/components/textarea/index.mjs +2 -3
- package/dist/components/timeline/index.d.mts +1 -2
- package/dist/components/timeline/index.mjs +1 -2
- package/dist/components/timer/index.d.mts +1 -2
- package/dist/components/timer/index.mjs +2 -3
- package/dist/components/toast/index.d.mts +0 -2
- package/dist/components/toast/index.mjs +4 -5
- package/dist/components/toc/index.d.mts +1 -2
- package/dist/components/toc/index.mjs +2 -3
- package/dist/components/toggle/index.d.mts +1 -2
- package/dist/components/toggle/index.mjs +2 -3
- package/dist/components/toggle-group/index.d.mts +1 -2
- package/dist/components/toggle-group/index.mjs +3 -4
- package/dist/components/toolbar/index.d.mts +1 -2
- package/dist/components/toolbar/index.mjs +2 -3
- package/dist/components/tooltip/index.d.mts +18 -5
- package/dist/components/tooltip/index.mjs +10 -5
- package/dist/components/tour/index.d.mts +20 -5
- package/dist/components/tour/index.mjs +18 -13
- package/dist/components/transfer/index.d.mts +1 -2
- package/dist/components/transfer/index.mjs +5 -6
- package/dist/components/tree-select/index.d.mts +6 -4
- package/dist/components/tree-select/index.mjs +43 -41
- package/dist/components/tree-view/index.d.mts +15 -5
- package/dist/components/tree-view/index.mjs +30 -12
- package/dist/components/typography/index.d.mts +9 -7
- package/dist/components/typography/index.mjs +10 -3
- package/dist/components/user/index.d.mts +1 -2
- package/dist/components/user/index.mjs +2 -3
- package/dist/components/virtual-list/index.d.mts +1 -2
- package/dist/components/virtual-list/index.mjs +2 -3
- package/dist/components/watermark/index.d.mts +1 -2
- package/dist/components/watermark/index.mjs +2 -3
- package/dist/{family-DE_GQeeM.mjs → family-Co1YsN4N.mjs} +1 -2
- package/dist/floating-BhcDRgnx.d.mts +7 -0
- package/dist/floating-CMR7cvmA.mjs +33 -0
- package/dist/generative/index.d.mts +0 -2
- package/dist/generative/index.mjs +28 -53
- package/dist/{icon-Cri0-7-x.mjs → icon-C9udWCyz.mjs} +1 -2
- package/dist/{id-C37UYLwJ.mjs → id-Ctic_3o8.mjs} +1 -2
- package/dist/{image-viewer-D4FuYrk6.mjs → image-viewer-BPTApdoP.mjs} +50 -52
- package/dist/index-CEYybyEQ.d.mts +163 -0
- package/dist/index-CjO4Ggf0.d.mts +115 -0
- package/dist/{index-BcRdWGY-.d.mts → index-DIZEFqJM.d.mts} +0 -8
- package/dist/{index-D_iKc2Uw.d.mts → index-DZ2S5rMj.d.mts} +10 -6
- package/dist/index-j02dTkfc.d.mts +37 -0
- package/dist/index-lCsvE2Vl.d.mts +37 -0
- package/dist/{index-Dj8S4eyJ.d.mts → index-n9VlNO7D.d.mts} +4 -5
- package/dist/index.d.mts +13 -13
- package/dist/index.mjs +10 -10
- package/dist/{input-BDpQ0e6G.mjs → input-YRjehBhU.mjs} +3 -5
- package/dist/{media-player-C0WcjVI-.mjs → media-player-DxG0EYz7.mjs} +7 -12
- package/dist/mentions-B59tQDPt.mjs +341 -0
- package/dist/{messages-1jJWtaYU.mjs → messages-B6n0lVyt.mjs} +1 -2
- package/dist/{select-D_soVdWK.mjs → select-BLFqfeVw.mjs} +24 -20
- package/package.json +17 -17
- package/dist/index-B4twHAQC.d.mts +0 -10456
- package/dist/index-Bbg4heDO.d.mts +0 -113
- package/dist/index-Eu-Bttta.d.mts +0 -24
- package/dist/mentions-BwnyvdXz.mjs +0 -213
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { t as useElementId } from "../../id-
|
|
2
|
-
import { n as useComponentMessages } from "../../messages-
|
|
1
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
2
|
+
import { n as useComponentMessages } from "../../messages-B6n0lVyt.mjs";
|
|
3
|
+
import { t as FloatingPortal } from "../../floating-CMR7cvmA.mjs";
|
|
3
4
|
import { Dialog as Dialog$1 } from "../dialog/index.mjs";
|
|
4
5
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
7
|
import { useEffect, useState } from "react";
|
|
7
|
-
import { Portal } from "@ark-ui/react/portal";
|
|
8
8
|
import { useListCollection } from "@ark-ui/react/collection";
|
|
9
9
|
import { Combobox } from "@ark-ui/react/combobox";
|
|
10
10
|
import { Dialog } from "@ark-ui/react/dialog";
|
|
11
|
-
|
|
12
|
-
function CommandImpl({ items = [], placeholder, open, autoFilter = true, inputValue, emptyText, onSelect, onOpenChange, onInputValueChange, id }) {
|
|
11
|
+
// src/components/command/index.tsx
|
|
12
|
+
function CommandImpl({ portal = true, items = [], placeholder, open, autoFilter = true, inputValue, emptyText, onSelect, onOpenChange, onInputValueChange, id }) {
|
|
13
13
|
injectComponentStyle("command");
|
|
14
14
|
injectComponentStyle("dialog");
|
|
15
15
|
const hostId = useElementId("command", { id });
|
|
@@ -72,78 +72,80 @@ function CommandImpl({ items = [], placeholder, open, autoFilter = true, inputVa
|
|
|
72
72
|
id: `${hostId}:dialog`,
|
|
73
73
|
open: currentOpen,
|
|
74
74
|
onOpenChange: (details) => setOpen(details.open),
|
|
75
|
-
children: /* @__PURE__ */ jsxs(
|
|
76
|
-
|
|
77
|
-
children: /* @__PURE__ */ jsx(
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
children: /* @__PURE__ */ jsx(
|
|
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
|
-
children: /* @__PURE__ */ jsx(
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
})
|
|
114
|
-
}), /* @__PURE__ */ jsx(Combobox.Content, {
|
|
115
|
-
asChild: true,
|
|
116
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
117
|
-
"data-scope": "command",
|
|
118
|
-
"data-part": "list",
|
|
119
|
-
children: [Array.from(groups, ([group, entries]) => group === "" ? entries.map(row) : /* @__PURE__ */ jsx(Combobox.ItemGroup, {
|
|
120
|
-
asChild: true,
|
|
121
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
122
|
-
"data-scope": "command",
|
|
123
|
-
"data-part": "group",
|
|
124
|
-
children: [/* @__PURE__ */ jsx(Combobox.ItemGroupLabel, {
|
|
125
|
-
asChild: true,
|
|
126
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
127
|
-
"data-scope": "command",
|
|
128
|
-
"data-part": "group-label",
|
|
129
|
-
children: group
|
|
130
|
-
})
|
|
131
|
-
}), entries.map(row)]
|
|
132
|
-
})
|
|
133
|
-
}, group)), groups.size === 0 ? /* @__PURE__ */ jsx("div", {
|
|
75
|
+
children: /* @__PURE__ */ jsxs(FloatingPortal, {
|
|
76
|
+
portal,
|
|
77
|
+
children: [/* @__PURE__ */ jsx(Dialog.Backdrop, {}), /* @__PURE__ */ jsx(Dialog.Positioner, {
|
|
78
|
+
asChild: true,
|
|
79
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
80
|
+
"data-scope": "command",
|
|
81
|
+
"data-part": "positioner",
|
|
82
|
+
children: /* @__PURE__ */ jsx(Dialog.Content, {
|
|
83
|
+
asChild: true,
|
|
84
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
85
|
+
"data-scope": "command",
|
|
86
|
+
"data-part": "content",
|
|
87
|
+
"aria-label": messages.command.palette,
|
|
88
|
+
children: /* @__PURE__ */ jsxs(Combobox.Root, {
|
|
89
|
+
id: `${hostId}:combobox`,
|
|
90
|
+
collection,
|
|
91
|
+
inputValue,
|
|
92
|
+
open: listOpen,
|
|
93
|
+
onOpenChange: (details) => setListOpen(details.open),
|
|
94
|
+
inputBehavior: "autohighlight",
|
|
95
|
+
loopFocus: true,
|
|
96
|
+
onInputValueChange: (details) => {
|
|
97
|
+
setFieldText(details.inputValue);
|
|
98
|
+
if (autoFilter) filter(details.inputValue);
|
|
99
|
+
onInputValueChange?.(details.inputValue);
|
|
100
|
+
},
|
|
101
|
+
onValueChange: (details) => {
|
|
102
|
+
const [first] = details.value;
|
|
103
|
+
if (first == null) return;
|
|
104
|
+
onSelect?.(first);
|
|
105
|
+
setOpen(false);
|
|
106
|
+
},
|
|
107
|
+
children: [/* @__PURE__ */ jsx(Combobox.Input, {
|
|
108
|
+
asChild: true,
|
|
109
|
+
children: /* @__PURE__ */ jsx("input", {
|
|
110
|
+
type: "text",
|
|
111
|
+
placeholder: resolvedPlaceholder,
|
|
112
|
+
"aria-label": resolvedPlaceholder,
|
|
134
113
|
"data-scope": "command",
|
|
135
|
-
"data-part": "
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
114
|
+
"data-part": "input"
|
|
115
|
+
})
|
|
116
|
+
}), /* @__PURE__ */ jsx(Combobox.Content, {
|
|
117
|
+
asChild: true,
|
|
118
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
119
|
+
"data-scope": "command",
|
|
120
|
+
"data-part": "list",
|
|
121
|
+
children: [Array.from(groups, ([group, entries]) => group === "" ? entries.map(row) : /* @__PURE__ */ jsx(Combobox.ItemGroup, {
|
|
122
|
+
asChild: true,
|
|
123
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
124
|
+
"data-scope": "command",
|
|
125
|
+
"data-part": "group",
|
|
126
|
+
children: [/* @__PURE__ */ jsx(Combobox.ItemGroupLabel, {
|
|
127
|
+
asChild: true,
|
|
128
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
129
|
+
"data-scope": "command",
|
|
130
|
+
"data-part": "group-label",
|
|
131
|
+
children: group
|
|
132
|
+
})
|
|
133
|
+
}), entries.map(row)]
|
|
134
|
+
})
|
|
135
|
+
}, group)), groups.size === 0 ? /* @__PURE__ */ jsx("div", {
|
|
136
|
+
"data-scope": "command",
|
|
137
|
+
"data-part": "empty",
|
|
138
|
+
children: resolvedEmptyText
|
|
139
|
+
}) : null]
|
|
140
|
+
})
|
|
141
|
+
})]
|
|
142
|
+
})
|
|
140
143
|
})
|
|
141
144
|
})
|
|
142
145
|
})
|
|
143
|
-
})
|
|
144
|
-
})
|
|
146
|
+
})]
|
|
147
|
+
})
|
|
145
148
|
});
|
|
146
149
|
}
|
|
147
150
|
const Command = Object.assign(CommandImpl, Dialog$1);
|
|
148
|
-
//#endregion
|
|
149
151
|
export { Command };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
//#region src/components/comment/index.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* A voice on the record: the portrait hangs left (the `avatar` prop),
|
|
5
4
|
* the body carries the byline from `author` and `datetime`, the ink is
|
|
@@ -17,4 +16,4 @@ declare function CommentImpl({ author, datetime, avatar, actions, children, ...r
|
|
|
17
16
|
export declare const Comment: typeof CommentImpl & {
|
|
18
17
|
Root: typeof CommentImpl;
|
|
19
18
|
};
|
|
20
|
-
|
|
19
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as withSelfRoot } from "../../family-
|
|
1
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
2
2
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/comment/index.tsx
|
|
5
5
|
function CommentImpl({ author, datetime, avatar, actions, children, ...rest }) {
|
|
6
6
|
injectComponentStyle("comment");
|
|
7
7
|
return /* @__PURE__ */ jsxs("article", {
|
|
@@ -45,5 +45,4 @@ function CommentImpl({ author, datetime, avatar, actions, children, ...rest }) {
|
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
const Comment = withSelfRoot(CommentImpl);
|
|
48
|
-
//#endregion
|
|
49
48
|
export { Comment };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentMessagesOverride, ThemeScene } from "@bysages/core";
|
|
2
2
|
import { HTMLAttributes, ReactNode } from "react";
|
|
3
|
-
//#region src/components/config-provider/index.d.ts
|
|
4
3
|
/** The four density tiers the token layer's `[data-density]` selectors
|
|
5
4
|
* name — whitespace and control heights compress, readability never
|
|
6
5
|
* does. */
|
|
@@ -49,4 +48,4 @@ declare function ConfigProviderImpl({ density, scene, accent, dir, locale, messa
|
|
|
49
48
|
export declare const ConfigProvider: typeof ConfigProviderImpl & {
|
|
50
49
|
Root: typeof ConfigProviderImpl;
|
|
51
50
|
};
|
|
52
|
-
|
|
51
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as withSelfRoot } from "../../family-
|
|
1
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { createContext, useContext } from "react";
|
|
4
|
-
|
|
4
|
+
// src/components/config-provider/index.tsx
|
|
5
5
|
const ConfigContextImpl = createContext({});
|
|
6
6
|
/** The nearest provider's snapshot, or an empty one when no provider
|
|
7
7
|
* wraps the caller — the hook the date and format families will consume
|
|
@@ -40,5 +40,4 @@ function ConfigProviderImpl({ density, scene, accent, dir, locale, messages, chi
|
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
const ConfigProvider = withSelfRoot(ConfigProviderImpl);
|
|
43
|
-
//#endregion
|
|
44
43
|
export { ConfigProvider, useConfig };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/container/index.d.ts
|
|
3
2
|
/** The reading frame: content held to a measure and centered on the
|
|
4
3
|
* page. The sizes name typographic measures, not breakpoints — the page
|
|
5
4
|
* owns its edges, the container only owns how long a line of ink runs. */
|
|
@@ -13,4 +12,4 @@ declare function ContainerImpl({ size, padding, ...rest }: ContainerProps): impo
|
|
|
13
12
|
export declare const Container: typeof ContainerImpl & {
|
|
14
13
|
Root: typeof ContainerImpl;
|
|
15
14
|
};
|
|
16
|
-
|
|
15
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as withSelfRoot } from "../../family-
|
|
1
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
2
2
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/container/index.tsx
|
|
5
5
|
function ContainerImpl({ size = "readable", padding = true, ...rest }) {
|
|
6
6
|
injectComponentStyle("container");
|
|
7
7
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -13,5 +13,4 @@ function ContainerImpl({ size = "readable", padding = true, ...rest }) {
|
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
15
|
const Container = withSelfRoot(ContainerImpl);
|
|
16
|
-
//#endregion
|
|
17
16
|
export { Container };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
//#region src/components/data-view/index.d.ts
|
|
3
2
|
export interface DataViewProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
3
|
items: unknown[];
|
|
5
4
|
/** Ledger rows or a lattice of cards. */
|
|
@@ -18,4 +17,4 @@ declare function DataViewImpl({ items, layout, pageSize, renderItem, header, ...
|
|
|
18
17
|
export declare const DataView: typeof DataViewImpl & {
|
|
19
18
|
Root: typeof DataViewImpl;
|
|
20
19
|
};
|
|
21
|
-
|
|
20
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as withSelfRoot } from "../../family-
|
|
2
|
-
import { n as useComponentMessages } from "../../messages-
|
|
1
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
2
|
+
import { n as useComponentMessages } from "../../messages-B6n0lVyt.mjs";
|
|
3
3
|
import { Pagination } from "../pagination/index.mjs";
|
|
4
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { useState } from "react";
|
|
7
|
-
|
|
7
|
+
// src/components/data-view/index.tsx
|
|
8
8
|
/** One vessel, two layouts: the caller renders each record through
|
|
9
9
|
* renderItem, the view lays the records out as a ledger or a lattice
|
|
10
10
|
* and — when a page size is given — pages them with the pagination
|
|
@@ -64,5 +64,4 @@ function DataViewImpl({ items, layout = "list", pageSize, renderItem, header, ..
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
const DataView = withSelfRoot(DataViewImpl);
|
|
67
|
-
//#endregion
|
|
68
67
|
export { DataView };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ComponentProps } from "react";
|
|
2
2
|
import { DateInput as DateInput$1, DateInputDateValue, DateInputFocusChangeDetails, DateInputValueChangeDetails } from "@ark-ui/react/date-input";
|
|
3
|
-
//#region src/components/date-input/index.d.ts
|
|
4
3
|
type DateInputRootProps = ComponentProps<typeof DateInput$1.Root> & {
|
|
5
4
|
/** One rung of the control-height ladder for the segmented field. */
|
|
6
5
|
size?: "sm" | "md" | "lg";
|
|
@@ -28,5 +27,4 @@ declare function DateInputFacade(props: DateInputFacadeProps): import("react").J
|
|
|
28
27
|
export declare const DateInput: typeof DateInputFacade & Omit<typeof DateInput$1, "Root"> & {
|
|
29
28
|
Root: typeof DateInputRoot;
|
|
30
29
|
};
|
|
31
|
-
//#endregion
|
|
32
30
|
export type { DateInputFocusChangeDetails, DateInputValueChangeDetails };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as useElementId } from "../../id-
|
|
1
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
2
2
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { DateInput as DateInput$1 } from "@ark-ui/react/date-input";
|
|
5
|
-
|
|
5
|
+
// src/components/date-input/index.tsx
|
|
6
6
|
function DateInputRoot(props) {
|
|
7
7
|
injectComponentStyle("date-input");
|
|
8
8
|
const id = useElementId("date-input", props);
|
|
@@ -41,5 +41,4 @@ const DateInput = Object.assign(DateInputFacade, {
|
|
|
41
41
|
...DateInput$1,
|
|
42
42
|
Root: DateInputRoot
|
|
43
43
|
});
|
|
44
|
-
//#endregion
|
|
45
44
|
export { DateInput };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { n as FloatingPortalTarget, t as FloatingPortalProps } from "../../floating-BhcDRgnx.mjs";
|
|
1
2
|
import { CSSProperties, ComponentProps } from "react";
|
|
2
3
|
import { DatePicker as DatePicker$1, DatePickerFocusChangeDetails, DatePickerOpenChangeDetails, DatePickerValueChangeDetails, DatePickerViewChangeDetails, DatePickerVisibleRangeChangeDetails, DateValue } from "@ark-ui/react/date-picker";
|
|
3
|
-
//#region src/components/date-picker/index.d.ts
|
|
4
4
|
type DatePickerRootProps$1 = ComponentProps<typeof DatePicker$1.Root> & {
|
|
5
5
|
/** One rung of the control-height ladder for the field row. */
|
|
6
6
|
size?: "sm" | "md" | "lg";
|
|
@@ -14,6 +14,8 @@ declare function DatePickerRoot(props: DatePickerRootProps$1): import("react").J
|
|
|
14
14
|
* NextTrigger, Table*, MonthSelect, YearSelect, PresetTrigger. */
|
|
15
15
|
type DatePickerFacadeValue = DateValue | DateValue[];
|
|
16
16
|
type DatePickerFacadeProps = {
|
|
17
|
+
/** Portal after hydration; `false` keeps the vessel inline. */
|
|
18
|
+
portal?: FloatingPortalTarget;
|
|
17
19
|
value?: DatePickerFacadeValue;
|
|
18
20
|
defaultValue?: DatePickerFacadeValue;
|
|
19
21
|
disabled?: boolean;
|
|
@@ -28,9 +30,13 @@ type DatePickerFacadeProps = {
|
|
|
28
30
|
};
|
|
29
31
|
/** The complete picker behind one date: the field opens a single day grid,
|
|
30
32
|
* while ranges, multiple selection, and custom views remain anatomy work. */
|
|
33
|
+
declare const DatePickerPositioner: {
|
|
34
|
+
({ portal, ...rest }: FloatingPortalProps & DatePicker$1.PositionerProps & import("react").RefAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
35
|
+
displayName: string;
|
|
36
|
+
};
|
|
31
37
|
declare function DatePickerFacade(props: DatePickerFacadeProps): import("react").JSX.Element;
|
|
32
|
-
export declare const DatePicker: typeof DatePickerFacade & Omit<typeof DatePicker$1, "Root"> & {
|
|
38
|
+
export declare const DatePicker: typeof DatePickerFacade & Omit<typeof DatePicker$1, "Root" | "Positioner"> & {
|
|
39
|
+
Positioner: typeof DatePickerPositioner;
|
|
33
40
|
Root: typeof DatePickerRoot;
|
|
34
41
|
};
|
|
35
|
-
//#endregion
|
|
36
42
|
export type { DatePickerFocusChangeDetails, DatePickerOpenChangeDetails, DatePickerValueChangeDetails, DatePickerViewChangeDetails, DatePickerVisibleRangeChangeDetails };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { r as iconNode } from "../../icon-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
1
|
+
import { r as iconNode } from "../../icon-C9udWCyz.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
3
|
+
import { n as definePositioner, t as FloatingPortal } from "../../floating-CMR7cvmA.mjs";
|
|
3
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
6
|
import { DatePicker as DatePicker$1 } from "@ark-ui/react/date-picker";
|
|
6
|
-
|
|
7
|
+
// src/components/date-picker/index.tsx
|
|
7
8
|
function DatePickerRoot(props) {
|
|
8
9
|
injectComponentStyle("date-picker");
|
|
9
10
|
const id = useElementId("date-picker", props);
|
|
@@ -20,8 +21,9 @@ function toDatePickerValue(value) {
|
|
|
20
21
|
}
|
|
21
22
|
/** The complete picker behind one date: the field opens a single day grid,
|
|
22
23
|
* while ranges, multiple selection, and custom views remain anatomy work. */
|
|
24
|
+
const DatePickerPositioner = definePositioner(DatePicker$1.Positioner);
|
|
23
25
|
function DatePickerFacade(props) {
|
|
24
|
-
const { value, defaultValue, disabled, invalid, required, label, placeholder, size = "md", className, style, onValueChange } = props;
|
|
26
|
+
const { portal = false, value, defaultValue, disabled, invalid, required, label, placeholder, size = "md", className, style, onValueChange } = props;
|
|
25
27
|
return /* @__PURE__ */ jsxs(DatePickerRoot, {
|
|
26
28
|
size,
|
|
27
29
|
defaultValue: toDatePickerValue(defaultValue),
|
|
@@ -39,32 +41,35 @@ function DatePickerFacade(props) {
|
|
|
39
41
|
width: 16,
|
|
40
42
|
height: 16
|
|
41
43
|
}) })] }),
|
|
42
|
-
/* @__PURE__ */ jsx(
|
|
43
|
-
|
|
44
|
-
children: /* @__PURE__ */ jsx(DatePicker$1.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
children: day.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
children: /* @__PURE__ */ jsx(DatePicker$1.
|
|
60
|
-
|
|
61
|
-
|
|
44
|
+
/* @__PURE__ */ jsx(FloatingPortal, {
|
|
45
|
+
portal,
|
|
46
|
+
children: /* @__PURE__ */ jsx(DatePicker$1.Positioner, { children: /* @__PURE__ */ jsx(DatePicker$1.Content, { children: /* @__PURE__ */ jsx(DatePicker$1.View, {
|
|
47
|
+
view: "day",
|
|
48
|
+
children: /* @__PURE__ */ jsx(DatePicker$1.Context, { children: (dp) => /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(DatePicker$1.ViewControl, { children: [
|
|
49
|
+
/* @__PURE__ */ jsx(DatePicker$1.PrevTrigger, { children: iconNode("chevron-left", {
|
|
50
|
+
width: 14,
|
|
51
|
+
height: 14
|
|
52
|
+
}) }),
|
|
53
|
+
/* @__PURE__ */ jsx(DatePicker$1.ViewTrigger, { children: /* @__PURE__ */ jsx(DatePicker$1.RangeText, {}) }),
|
|
54
|
+
/* @__PURE__ */ jsx(DatePicker$1.NextTrigger, { children: iconNode("chevron-right", {
|
|
55
|
+
width: 14,
|
|
56
|
+
height: 14
|
|
57
|
+
}) })
|
|
58
|
+
] }), /* @__PURE__ */ jsxs(DatePicker$1.Table, { children: [/* @__PURE__ */ jsx(DatePicker$1.TableHead, { children: /* @__PURE__ */ jsx(DatePicker$1.TableRow, { children: dp.weekDays.map((day, index) => /* @__PURE__ */ jsx(DatePicker$1.TableHeader, {
|
|
59
|
+
"aria-label": day.long,
|
|
60
|
+
children: day.narrow
|
|
61
|
+
}, index)) }) }), /* @__PURE__ */ jsx(DatePicker$1.TableBody, { children: dp.weeks.map((week, index) => /* @__PURE__ */ jsx(DatePicker$1.TableRow, { children: week.map((day, dayIndex) => /* @__PURE__ */ jsx(DatePicker$1.TableCell, {
|
|
62
|
+
value: day,
|
|
63
|
+
children: /* @__PURE__ */ jsx(DatePicker$1.TableCellTrigger, { children: day.day })
|
|
64
|
+
}, dayIndex)) }, index)) })] })] }) })
|
|
65
|
+
}) }) })
|
|
66
|
+
})
|
|
62
67
|
]
|
|
63
68
|
});
|
|
64
69
|
}
|
|
65
70
|
const DatePicker = Object.assign(DatePickerFacade, {
|
|
66
71
|
...DatePicker$1,
|
|
72
|
+
Positioner: DatePickerPositioner,
|
|
67
73
|
Root: DatePickerRoot
|
|
68
74
|
});
|
|
69
|
-
//#endregion
|
|
70
75
|
export { DatePicker };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
//#region src/components/deferred-content/index.d.ts
|
|
3
2
|
export interface DeferredContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
3
|
/** How much of the placeholder must be visible before the content
|
|
5
4
|
* mounts, from 0 (any pixel) to 1 (the whole box). */
|
|
@@ -16,4 +15,4 @@ declare function DeferredContentImpl({ threshold, placeholder, children, ...rest
|
|
|
16
15
|
export declare const DeferredContent: typeof DeferredContentImpl & {
|
|
17
16
|
Root: typeof DeferredContentImpl;
|
|
18
17
|
};
|
|
19
|
-
|
|
18
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as withSelfRoot } from "../../family-
|
|
1
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
2
2
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { useEffect, useRef, useState } from "react";
|
|
5
|
-
|
|
5
|
+
// src/components/deferred-content/index.tsx
|
|
6
6
|
/** Content that waits to be worth rendering: the slot stays off the
|
|
7
7
|
* tree until the placeholder scrolls near the viewport, then mounts
|
|
8
8
|
* once and stays. The placeholder is drawn by the caller, so the late
|
|
@@ -32,5 +32,4 @@ function DeferredContentImpl({ threshold = .2, placeholder, children, ...rest })
|
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
const DeferredContent = withSelfRoot(DeferredContentImpl);
|
|
35
|
-
//#endregion
|
|
36
35
|
export { DeferredContent };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/descriptions/index.d.ts
|
|
3
2
|
/** Simple term/detail records for the callable facade. */
|
|
4
3
|
export interface DescriptionsItemData {
|
|
5
4
|
term: string;
|
|
@@ -38,4 +37,4 @@ export declare const Descriptions: typeof DescriptionsRoot & {
|
|
|
38
37
|
displayName: string;
|
|
39
38
|
};
|
|
40
39
|
};
|
|
41
|
-
|
|
40
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as withSelfRoot } from "../../family-
|
|
1
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
2
2
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/descriptions/index.tsx
|
|
5
5
|
function DescriptionsRoot({ layout = "horizontal", bordered = false, column = 1, items, children, ...rest }) {
|
|
6
6
|
injectComponentStyle("descriptions");
|
|
7
7
|
return /* @__PURE__ */ jsx("dl", {
|
|
@@ -51,5 +51,4 @@ const Descriptions = Object.assign(withSelfRoot(DescriptionsRoot), {
|
|
|
51
51
|
Term,
|
|
52
52
|
Detail
|
|
53
53
|
});
|
|
54
|
-
//#endregion
|
|
55
54
|
export { Descriptions, DescriptionsRoot };
|
|
@@ -1,7 +1,40 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as FloatingPortalTarget, t as FloatingPortalProps } from "../../floating-BhcDRgnx.mjs";
|
|
2
|
+
import { ComponentProps, HTMLAttributes, ReactNode } from "react";
|
|
2
3
|
import { Dialog as Dialog$1, DialogOpenChangeDetails } from "@ark-ui/react/dialog";
|
|
3
|
-
|
|
4
|
+
export type DialogSize = "sm" | "md" | "lg" | "xl";
|
|
5
|
+
interface DialogPartProps extends HTMLAttributes<HTMLElement> {
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
/** A semantic section for the dialog's title and description. */
|
|
9
|
+
declare function Header({ children, ...rest }: DialogPartProps): import("react").JSX.Element;
|
|
10
|
+
declare namespace Header {
|
|
11
|
+
var displayName: string;
|
|
12
|
+
}
|
|
13
|
+
/** The dialog's principal content; it may shrink inside narrow sheets. */
|
|
14
|
+
declare function Body({ children, ...rest }: DialogPartProps): import("react").JSX.Element;
|
|
15
|
+
declare namespace Body {
|
|
16
|
+
var displayName: string;
|
|
17
|
+
}
|
|
18
|
+
/** The dialog's action row; actions read from start to end. */
|
|
19
|
+
declare function Footer({ children, ...rest }: DialogPartProps): import("react").JSX.Element;
|
|
20
|
+
declare namespace Footer {
|
|
21
|
+
var displayName: string;
|
|
22
|
+
}
|
|
23
|
+
/** The semantic sheet: `size` names one content measure instead of a caller
|
|
24
|
+
* overriding the sheet's max-width for every dialog. */
|
|
25
|
+
interface DialogContentProps extends ComponentProps<typeof Dialog$1.Content> {
|
|
26
|
+
size?: DialogSize;
|
|
27
|
+
}
|
|
28
|
+
declare function DialogContent({ size, ...rest }: DialogContentProps): import("react").JSX.Element;
|
|
29
|
+
/** Ark's Dialog, dressed in the paper-and-ink system: the sheet dissolves
|
|
30
|
+
* in on elevation, the backdrop fades, and nested overlays stack through
|
|
31
|
+
* the shared z-index ladder. The API is Ark's own — Root, Trigger,
|
|
32
|
+
* Backdrop, Positioner, Content, Title, Description, CloseTrigger —
|
|
33
|
+
* plus the Header, Body, and Footer anatomy parts. */
|
|
34
|
+
declare function DialogRoot(props: ComponentProps<typeof Dialog$1.Root>): import("react").JSX.Element;
|
|
4
35
|
export interface DialogFacadeProps {
|
|
36
|
+
/** Portal after hydration; `false` keeps the vessel inline. */
|
|
37
|
+
portal?: FloatingPortalTarget;
|
|
5
38
|
open?: boolean;
|
|
6
39
|
defaultOpen?: boolean;
|
|
7
40
|
trigger?: string;
|
|
@@ -9,14 +42,25 @@ export interface DialogFacadeProps {
|
|
|
9
42
|
label?: string;
|
|
10
43
|
description?: string;
|
|
11
44
|
disabled?: boolean;
|
|
45
|
+
size?: DialogSize;
|
|
12
46
|
children?: ReactNode;
|
|
13
47
|
onOpenChange?: (open: boolean) => void;
|
|
14
48
|
}
|
|
15
|
-
declare
|
|
49
|
+
declare const DialogPositioner: {
|
|
50
|
+
({ portal, ...rest }: FloatingPortalProps & Dialog$1.PositionerProps & import("react").RefAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
51
|
+
displayName: string;
|
|
52
|
+
};
|
|
53
|
+
declare function DialogFacade({ portal, open, defaultOpen, trigger, content, label, description, disabled, size, children, onOpenChange }: DialogFacadeProps): import("react").JSX.Element;
|
|
16
54
|
declare namespace DialogFacade {
|
|
17
55
|
var displayName: string;
|
|
18
56
|
}
|
|
19
|
-
type DialogParts = typeof Dialog$1
|
|
57
|
+
type DialogParts = Omit<typeof Dialog$1, "Root" | "Content" | "Positioner"> & {
|
|
58
|
+
Positioner: typeof DialogPositioner;
|
|
59
|
+
Root: typeof DialogRoot;
|
|
60
|
+
Content: typeof DialogContent;
|
|
61
|
+
Header: typeof Header;
|
|
62
|
+
Body: typeof Body;
|
|
63
|
+
Footer: typeof Footer;
|
|
64
|
+
};
|
|
20
65
|
export declare const Dialog: typeof DialogFacade & DialogParts;
|
|
21
|
-
//#endregion
|
|
22
66
|
export type { DialogOpenChangeDetails };
|