@bysages/react 0.4.3 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-B3vbpXlK.mjs +309 -0
- package/dist/ai-prompt-input-k34KssHJ.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 +1 -2
- package/dist/components/autocomplete/index.mjs +3 -4
- package/dist/components/avatar/index.d.mts +13 -4
- package/dist/components/avatar/index.mjs +20 -6
- 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 +17 -4
- package/dist/components/banner/index.mjs +21 -6
- 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 +16 -3
- package/dist/components/breadcrumb/index.mjs +22 -5
- 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 +1 -2
- package/dist/components/cascade-select/index.mjs +6 -7
- 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 +3 -2
- package/dist/components/color-picker/index.mjs +38 -25
- package/dist/components/combobox/index.d.mts +1 -2
- package/dist/components/combobox/index.mjs +3 -4
- package/dist/components/command/index.d.mts +1 -2
- package/dist/components/command/index.mjs +3 -4
- 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 +0 -2
- package/dist/components/date-picker/index.mjs +3 -4
- 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 +31 -4
- package/dist/components/dialog/index.mjs +41 -10
- 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 +1 -2
- package/dist/components/drawer/index.mjs +3 -4
- 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 +4 -9
- package/dist/components/float-button/index.d.mts +23 -3
- package/dist/components/float-button/index.mjs +30 -5
- package/dist/components/floating-panel/index.d.mts +1 -2
- package/dist/components/floating-panel/index.mjs +8 -4
- 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 +1 -2
- package/dist/components/hover-card/index.mjs +2 -3
- 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 +1 -2
- package/dist/components/menu/index.mjs +3 -4
- package/dist/components/menubar/index.d.mts +1 -2
- package/dist/components/menubar/index.mjs +2 -3
- 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 +1 -2
- package/dist/components/navigation-menu/index.mjs +2 -3
- 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 +2 -3
- package/dist/components/popconfirm/index.mjs +2 -3
- package/dist/components/popover/index.d.mts +1 -1
- package/dist/components/popover/index.mjs +3 -4
- 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 +1 -2
- package/dist/components/split-button/index.mjs +4 -5
- 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 +0 -2
- package/dist/components/table/index.mjs +5 -6
- 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 +18 -6
- 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 +1 -2
- package/dist/components/tooltip/index.mjs +2 -3
- package/dist/components/tour/index.d.mts +0 -2
- package/dist/components/tour/index.mjs +2 -3
- 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 +2 -3
- package/dist/components/tree-select/index.mjs +5 -6
- 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 +1 -3
- package/dist/components/typography/index.mjs +1 -2
- 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/generative/index.d.mts +0 -2
- package/dist/generative/index.mjs +146 -106
- 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-BYiXpi1X.mjs} +21 -26
- package/dist/{index-Eu-Bttta.d.mts → index-BVdkcSSY.d.mts} +0 -2
- package/dist/index-CjO4Ggf0.d.mts +115 -0
- package/dist/{index-Dj8S4eyJ.d.mts → index-D4C52fI7.d.mts} +0 -4
- package/dist/{index-BcRdWGY-.d.mts → index-DIZEFqJM.d.mts} +0 -8
- package/dist/{index-Bbg4heDO.d.mts → index-DcpvCyt6.d.mts} +63 -18
- package/dist/{index-D_iKc2Uw.d.mts → index-DczfbPCg.d.mts} +0 -4
- package/dist/index-lCsvE2Vl.d.mts +37 -0
- package/dist/index.d.mts +14 -14
- package/dist/index.mjs +10 -10
- package/dist/{input-BDpQ0e6G.mjs → input-YRjehBhU.mjs} +3 -5
- package/dist/{media-player-C0WcjVI-.mjs → media-player-CO2Cczl-.mjs} +7 -12
- package/dist/mentions-De7ChJbl.mjs +335 -0
- package/dist/{messages-1jJWtaYU.mjs → messages-B6n0lVyt.mjs} +1 -2
- package/dist/{select-D_soVdWK.mjs → select-DQ5669_K.mjs} +4 -6
- package/package.json +17 -17
- package/dist/index-B4twHAQC.d.mts +0 -10456
- package/dist/mentions-BwnyvdXz.mjs +0 -213
|
@@ -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,6 +1,29 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
1
|
+
import { ComponentProps, HTMLAttributes, ReactNode } from "react";
|
|
2
2
|
import { Dialog as Dialog$1, DialogOpenChangeDetails } from "@ark-ui/react/dialog";
|
|
3
|
-
|
|
3
|
+
interface DialogPartProps extends HTMLAttributes<HTMLElement> {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
/** A semantic section for the dialog's title and description. */
|
|
7
|
+
declare function Header({ children, ...rest }: DialogPartProps): import("react").JSX.Element;
|
|
8
|
+
declare namespace Header {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
}
|
|
11
|
+
/** The dialog's principal content; it may shrink inside narrow sheets. */
|
|
12
|
+
declare function Body({ children, ...rest }: DialogPartProps): import("react").JSX.Element;
|
|
13
|
+
declare namespace Body {
|
|
14
|
+
var displayName: string;
|
|
15
|
+
}
|
|
16
|
+
/** The dialog's action row; actions read from start to end. */
|
|
17
|
+
declare function Footer({ children, ...rest }: DialogPartProps): import("react").JSX.Element;
|
|
18
|
+
declare namespace Footer {
|
|
19
|
+
var displayName: string;
|
|
20
|
+
}
|
|
21
|
+
/** Ark's Dialog, dressed in the paper-and-ink system: the sheet dissolves
|
|
22
|
+
* in on elevation, the backdrop fades, and nested overlays stack through
|
|
23
|
+
* the shared z-index ladder. The API is Ark's own — Root, Trigger,
|
|
24
|
+
* Backdrop, Positioner, Content, Title, Description, CloseTrigger —
|
|
25
|
+
* plus the Header, Body, and Footer anatomy parts. */
|
|
26
|
+
declare function DialogRoot(props: ComponentProps<typeof Dialog$1.Root>): import("react").JSX.Element;
|
|
4
27
|
export interface DialogFacadeProps {
|
|
5
28
|
open?: boolean;
|
|
6
29
|
defaultOpen?: boolean;
|
|
@@ -17,6 +40,10 @@ declare namespace DialogFacade {
|
|
|
17
40
|
var displayName: string;
|
|
18
41
|
}
|
|
19
42
|
type DialogParts = typeof Dialog$1;
|
|
20
|
-
export declare const Dialog: typeof DialogFacade & DialogParts
|
|
21
|
-
|
|
43
|
+
export declare const Dialog: typeof DialogFacade & Omit<DialogParts, "Root"> & {
|
|
44
|
+
Root: typeof DialogRoot;
|
|
45
|
+
Header: typeof Header;
|
|
46
|
+
Body: typeof Body;
|
|
47
|
+
Footer: typeof Footer;
|
|
48
|
+
};
|
|
22
49
|
export type { DialogOpenChangeDetails };
|
|
@@ -1,13 +1,44 @@
|
|
|
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
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { Dialog as Dialog$1 } from "@ark-ui/react/dialog";
|
|
6
|
-
|
|
6
|
+
// src/components/dialog/index.tsx
|
|
7
|
+
/** A semantic section for the dialog's title and description. */
|
|
8
|
+
function Header({ children, ...rest }) {
|
|
9
|
+
return /* @__PURE__ */ jsx("header", {
|
|
10
|
+
...rest,
|
|
11
|
+
"data-scope": "dialog",
|
|
12
|
+
"data-part": "header",
|
|
13
|
+
children
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
/** The dialog's principal content; it may shrink inside narrow sheets. */
|
|
17
|
+
function Body({ children, ...rest }) {
|
|
18
|
+
return /* @__PURE__ */ jsx("div", {
|
|
19
|
+
...rest,
|
|
20
|
+
"data-scope": "dialog",
|
|
21
|
+
"data-part": "body",
|
|
22
|
+
children
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/** The dialog's action row; actions read from start to end. */
|
|
26
|
+
function Footer({ children, ...rest }) {
|
|
27
|
+
return /* @__PURE__ */ jsx("footer", {
|
|
28
|
+
...rest,
|
|
29
|
+
"data-scope": "dialog",
|
|
30
|
+
"data-part": "footer",
|
|
31
|
+
children
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
Header.displayName = "DialogHeader";
|
|
35
|
+
Body.displayName = "DialogBody";
|
|
36
|
+
Footer.displayName = "DialogFooter";
|
|
7
37
|
/** Ark's Dialog, dressed in the paper-and-ink system: the sheet dissolves
|
|
8
38
|
* in on elevation, the backdrop fades, and nested overlays stack through
|
|
9
39
|
* the shared z-index ladder. The API is Ark's own — Root, Trigger,
|
|
10
|
-
* Backdrop, Positioner, Content, Title, Description, CloseTrigger
|
|
40
|
+
* Backdrop, Positioner, Content, Title, Description, CloseTrigger —
|
|
41
|
+
* plus the Header, Body, and Footer anatomy parts. */
|
|
11
42
|
function DialogRoot(props) {
|
|
12
43
|
const id = useElementId("dialog", props);
|
|
13
44
|
return /* @__PURE__ */ jsx(Dialog$1.Root, {
|
|
@@ -28,10 +59,8 @@ function DialogFacade({ open, defaultOpen, trigger, content, label, description,
|
|
|
28
59
|
}),
|
|
29
60
|
/* @__PURE__ */ jsx(Dialog$1.Backdrop, {}),
|
|
30
61
|
/* @__PURE__ */ jsx(Dialog$1.Positioner, { children: /* @__PURE__ */ jsxs(Dialog$1.Content, { children: [
|
|
31
|
-
/* @__PURE__ */ jsx(Dialog$1.Title, { children: title }),
|
|
32
|
-
|
|
33
|
-
content ? /* @__PURE__ */ jsx("p", { children: content }) : null,
|
|
34
|
-
children,
|
|
62
|
+
/* @__PURE__ */ jsxs(Header, { children: [/* @__PURE__ */ jsx(Dialog$1.Title, { children: title }), description ? /* @__PURE__ */ jsx(Dialog$1.Description, { children: description }) : null] }),
|
|
63
|
+
/* @__PURE__ */ jsxs(Body, { children: [content ? /* @__PURE__ */ jsx("p", { children: content }) : null, children] }),
|
|
35
64
|
/* @__PURE__ */ jsx(Dialog$1.CloseTrigger, {
|
|
36
65
|
"aria-label": "Close",
|
|
37
66
|
children: iconNode("x", {
|
|
@@ -46,8 +75,10 @@ function DialogFacade({ open, defaultOpen, trigger, content, label, description,
|
|
|
46
75
|
DialogFacade.displayName = "SDialog";
|
|
47
76
|
const Dialog = Object.assign(DialogFacade, {
|
|
48
77
|
...Dialog$1,
|
|
49
|
-
Root: DialogRoot
|
|
78
|
+
Root: DialogRoot,
|
|
79
|
+
Header,
|
|
80
|
+
Body,
|
|
81
|
+
Footer
|
|
50
82
|
});
|
|
51
83
|
injectComponentStyle("dialog");
|
|
52
|
-
//#endregion
|
|
53
84
|
export { Dialog };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
//#region src/components/dock/index.d.ts
|
|
3
2
|
export interface DockProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
3
|
/** The tallest an item swells under the hand — 1 stands still. */
|
|
5
4
|
maxScale?: number;
|
|
@@ -21,5 +20,4 @@ export declare function DockItem({ children, ...rest }: DockItemProps): import("
|
|
|
21
20
|
export declare const Dock: typeof DockRoot & {
|
|
22
21
|
Root: typeof DockRoot;
|
|
23
22
|
Item: typeof DockItem;
|
|
24
|
-
};
|
|
25
|
-
//#endregion
|
|
23
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/dock/index.tsx
|
|
4
4
|
const ITEM = "[data-scope=\"dock\"][data-part=\"item\"]";
|
|
5
5
|
/** The magnifying dock: a floating rail whose icons swell toward the
|
|
6
6
|
* hand. The wrapper measures per item and writes --bs-dock-scale; CSS
|
|
@@ -47,5 +47,4 @@ const Dock = Object.assign(DockRoot, {
|
|
|
47
47
|
Root: DockRoot,
|
|
48
48
|
Item: DockItem
|
|
49
49
|
});
|
|
50
|
-
//#endregion
|
|
51
50
|
export { Dock, DockItem, DockRoot };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { DownloadTriggerBaseProps, DownloadTriggerProps, DownloadableData, UseDownloadProps, UseDownloadReturn, useDownload } from "@ark-ui/react/download-trigger";
|
|
2
|
-
//#region src/components/download-trigger/index.d.ts
|
|
3
2
|
export declare const DownloadTrigger: import("react").ForwardRefExoticComponent<import("@ark-ui/react/download-trigger").DownloadTriggerProps & import("react").RefAttributes<HTMLButtonElement>> & {
|
|
4
3
|
Root: import("react").ForwardRefExoticComponent<import("@ark-ui/react/download-trigger").DownloadTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
5
4
|
};
|
|
6
|
-
//#endregion
|
|
7
5
|
export { type DownloadTriggerBaseProps, type DownloadTriggerProps, type DownloadableData, type UseDownloadProps, type UseDownloadReturn, useDownload };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { t as withSelfRoot } from "../../family-
|
|
1
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
2
2
|
import { DownloadTrigger as DownloadTrigger$1, useDownload } from "@ark-ui/react/download-trigger";
|
|
3
|
-
|
|
3
|
+
// src/components/download-trigger/index.tsx
|
|
4
4
|
const DownloadTrigger = withSelfRoot(DownloadTrigger$1);
|
|
5
|
-
//#endregion
|
|
6
5
|
export { DownloadTrigger, useDownload };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { Drawer as Drawer$1 } from "@ark-ui/react/drawer";
|
|
3
|
-
//#region src/components/drawer/index.d.ts
|
|
4
3
|
export interface DrawerFacadeProps {
|
|
5
4
|
open?: boolean;
|
|
6
5
|
defaultOpen?: boolean;
|
|
@@ -18,4 +17,4 @@ declare namespace DrawerFacade {
|
|
|
18
17
|
}
|
|
19
18
|
type DrawerParts = typeof Drawer$1;
|
|
20
19
|
export declare const Drawer: typeof DrawerFacade & DrawerParts;
|
|
21
|
-
|
|
20
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
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
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { Drawer as Drawer$1 } from "@ark-ui/react/drawer";
|
|
6
|
-
|
|
6
|
+
// src/components/drawer/index.tsx
|
|
7
7
|
/** Ark's Drawer, dressed in the paper-and-ink system: a full-height sheet
|
|
8
8
|
* cut flush to the edge it rises from, sliding on the machine's translate
|
|
9
9
|
* under the grabber's hand. The API is Ark's own — Root, Trigger,
|
|
@@ -47,5 +47,4 @@ const Drawer = Object.assign(DrawerFacade, {
|
|
|
47
47
|
Root: DrawerRoot
|
|
48
48
|
});
|
|
49
49
|
injectComponentStyle("drawer");
|
|
50
|
-
//#endregion
|
|
51
50
|
export { Drawer };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/dynamic-input/index.d.ts
|
|
3
2
|
export interface DynamicInputProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
3
|
/** The rows' values; the group renders one Input per entry. */
|
|
5
4
|
value?: string[];
|
|
@@ -28,4 +27,4 @@ declare function DynamicInputImpl({ value, min, max, placeholder, addLabel, disa
|
|
|
28
27
|
export declare const DynamicInput: typeof DynamicInputImpl & {
|
|
29
28
|
Root: typeof DynamicInputImpl;
|
|
30
29
|
};
|
|
31
|
-
|
|
30
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r as iconNode } from "../../icon-
|
|
2
|
-
import { t as withSelfRoot } from "../../family-
|
|
3
|
-
import { n as useComponentMessages } from "../../messages-
|
|
1
|
+
import { r as iconNode } from "../../icon-C9udWCyz.mjs";
|
|
2
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
3
|
+
import { n as useComponentMessages } from "../../messages-B6n0lVyt.mjs";
|
|
4
4
|
import { Button } from "../button/index.mjs";
|
|
5
|
-
import { t as Input } from "../../input-
|
|
5
|
+
import { t as Input } from "../../input-YRjehBhU.mjs";
|
|
6
6
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/components/dynamic-input/index.tsx
|
|
9
9
|
/**
|
|
10
10
|
* A column of entry rows: one Input per line, each with a quiet remove
|
|
11
11
|
* seal, and an add row at the tail. The list is controlled — every edit
|
|
@@ -73,5 +73,4 @@ const crossIcon = iconNode("x", {
|
|
|
73
73
|
width: 16,
|
|
74
74
|
height: 16
|
|
75
75
|
});
|
|
76
|
-
//#endregion
|
|
77
76
|
export { DynamicInput };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, ReactNode } from "react";
|
|
2
2
|
import { Editable as Editable$1 } from "@ark-ui/react/editable";
|
|
3
|
-
//#region src/components/editable/index.d.ts
|
|
4
3
|
type EditableRootProps = ComponentProps<typeof Editable$1.Root> & {
|
|
5
4
|
/** One rung of the control-height ladder for the editing field. */
|
|
6
5
|
size?: "sm" | "md" | "lg";
|
|
@@ -34,4 +33,4 @@ export declare const Editable: typeof EditableFacade & {
|
|
|
34
33
|
RootProvider: import("react").ForwardRefExoticComponent<Editable$1.RootProviderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
35
34
|
SubmitTrigger: import("react").ForwardRefExoticComponent<Editable$1.SubmitTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
36
35
|
};
|
|
37
|
-
|
|
36
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
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
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { Editable as Editable$1 } from "@ark-ui/react/editable";
|
|
6
|
-
|
|
6
|
+
// src/components/editable/index.tsx
|
|
7
7
|
function EditableRoot(props) {
|
|
8
8
|
const id = useElementId("editable", props);
|
|
9
9
|
const { size = "md", ...rest } = props;
|
|
@@ -52,5 +52,4 @@ const Editable = Object.assign(EditableFacade, {
|
|
|
52
52
|
Root: EditableRoot
|
|
53
53
|
});
|
|
54
54
|
injectComponentStyle("editable");
|
|
55
|
-
//#endregion
|
|
56
55
|
export { Editable };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/ellipsis/index.d.ts
|
|
3
2
|
/** The overflow knife: text cut at one line, or held to N lines. The
|
|
4
3
|
* primitive only draws the cut — reaching the full text (title,
|
|
5
4
|
* tooltip) stays the consumer's decision. */
|
|
@@ -10,4 +9,4 @@ declare function EllipsisImpl({ lines, ...rest }: EllipsisProps): import("react"
|
|
|
10
9
|
export declare const Ellipsis: typeof EllipsisImpl & {
|
|
11
10
|
Root: typeof EllipsisImpl;
|
|
12
11
|
};
|
|
13
|
-
|
|
12
|
+
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/ellipsis/index.tsx
|
|
5
5
|
function EllipsisImpl({ lines = 1, ...rest }) {
|
|
6
6
|
injectComponentStyle("ellipsis");
|
|
7
7
|
const multiline = lines > 1;
|
|
@@ -17,5 +17,4 @@ function EllipsisImpl({ lines = 1, ...rest }) {
|
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
const Ellipsis = withSelfRoot(EllipsisImpl);
|
|
20
|
-
//#endregion
|
|
21
20
|
export { Ellipsis };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/empty/index.d.ts
|
|
3
2
|
export declare const Empty: {
|
|
4
3
|
({ children, ...rest }: HTMLAttributes<HTMLElement>): import("react").JSX.Element;
|
|
5
4
|
displayName: string;
|
|
@@ -24,5 +23,4 @@ export declare const Empty: {
|
|
|
24
23
|
({ children, ...rest }: HTMLAttributes<HTMLElement>): import("react").JSX.Element;
|
|
25
24
|
displayName: string;
|
|
26
25
|
};
|
|
27
|
-
};
|
|
28
|
-
//#endregion
|
|
26
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/empty/index.tsx
|
|
4
4
|
/** An empty state: the page holds its breath. Root centers the column,
|
|
5
5
|
* Visual carries the mark, Title and Description carry the ink, Actions
|
|
6
6
|
* the way out. Any subset composes. */
|
|
@@ -28,5 +28,4 @@ const Empty = Object.assign(Root, {
|
|
|
28
28
|
Actions
|
|
29
29
|
});
|
|
30
30
|
injectComponentStyle("empty");
|
|
31
|
-
//#endregion
|
|
32
31
|
export { Empty };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Field as Field$1 } from "@ark-ui/react/field";
|
|
2
|
-
//#region src/components/field/index.d.ts
|
|
3
2
|
interface FieldFacadeProps {
|
|
4
3
|
value?: string | number;
|
|
5
4
|
defaultValue?: string | number;
|
|
@@ -30,4 +29,4 @@ export declare const Field: typeof FieldFacade & {
|
|
|
30
29
|
Select: import("react").ForwardRefExoticComponent<Field$1.SelectProps & import("react").RefAttributes<HTMLSelectElement>>;
|
|
31
30
|
Textarea: import("react").ForwardRefExoticComponent<Field$1.TextareaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
32
31
|
};
|
|
33
|
-
|
|
32
|
+
export {};
|
|
@@ -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 { Field as Field$1 } from "@ark-ui/react/field";
|
|
5
|
-
|
|
5
|
+
// src/components/field/index.tsx
|
|
6
6
|
/** Field, dressed in the paper-and-ink system: a tracked label, a
|
|
7
7
|
* border-and-halo control, and quiet help text. The parts —
|
|
8
8
|
* Root, Label, Input, Textarea, Select, HelperText, ErrorText,
|
|
@@ -40,5 +40,4 @@ const Field = Object.assign(FieldFacade, {
|
|
|
40
40
|
Root: FieldRoot
|
|
41
41
|
});
|
|
42
42
|
injectComponentStyle("field");
|
|
43
|
-
//#endregion
|
|
44
43
|
export { Field };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { Fieldset as Fieldset$1 } from "@ark-ui/react/fieldset";
|
|
3
|
-
//#region src/components/fieldset/index.d.ts
|
|
4
3
|
interface FieldsetFacadeProps {
|
|
5
4
|
label?: string;
|
|
6
5
|
description?: string;
|
|
@@ -19,4 +18,4 @@ export declare const Fieldset: typeof FieldsetFacade & {
|
|
|
19
18
|
Legend: import("react").ForwardRefExoticComponent<Fieldset$1.LegendProps & import("react").RefAttributes<HTMLLegendElement>>;
|
|
20
19
|
RootProvider: import("react").ForwardRefExoticComponent<Fieldset$1.RootProviderProps & import("react").RefAttributes<HTMLFieldSetElement>>;
|
|
21
20
|
};
|
|
22
|
-
|
|
21
|
+
export {};
|
|
@@ -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 { Fieldset as Fieldset$1 } from "@ark-ui/react/fieldset";
|
|
5
|
-
|
|
5
|
+
// src/components/fieldset/index.tsx
|
|
6
6
|
/** Fieldset, dressed in the paper-and-ink system: a song-serif
|
|
7
7
|
* legend heading a column of fields. The parts — Root, Legend,
|
|
8
8
|
* HelperText, ErrorText. */
|
|
@@ -31,5 +31,4 @@ const Fieldset = Object.assign(FieldsetFacade, {
|
|
|
31
31
|
Root: FieldsetRoot
|
|
32
32
|
});
|
|
33
33
|
injectComponentStyle("fieldset");
|
|
34
|
-
//#endregion
|
|
35
34
|
export { Fieldset };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, ReactNode } from "react";
|
|
2
2
|
import { FileUpload as FileUpload$1 } from "@ark-ui/react/file-upload";
|
|
3
|
-
//#region src/components/file-upload/index.d.ts
|
|
4
3
|
type FileUploadRootProps = ComponentProps<typeof FileUpload$1.Root> & {
|
|
5
4
|
/** One rung of the control-height ladder for the trigger. */
|
|
6
5
|
size?: "sm" | "md" | "lg";
|
|
@@ -42,4 +41,4 @@ export declare const FileUpload: typeof FileUploadFacade & {
|
|
|
42
41
|
Label: import("react").ForwardRefExoticComponent<FileUpload$1.LabelProps & import("react").RefAttributes<HTMLLabelElement>>;
|
|
43
42
|
RootProvider: import("react").ForwardRefExoticComponent<FileUpload$1.RootProviderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
44
43
|
};
|
|
45
|
-
|
|
44
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
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
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { FileUpload as FileUpload$1 } from "@ark-ui/react/file-upload";
|
|
6
|
-
|
|
6
|
+
// src/components/file-upload/index.tsx
|
|
7
7
|
function FileUploadRoot(props) {
|
|
8
8
|
const id = useElementId("file-upload", props);
|
|
9
9
|
const { size = "md", ...rest } = props;
|
|
@@ -35,10 +35,6 @@ const fileIcon = iconNode("file", {
|
|
|
35
35
|
width: 16,
|
|
36
36
|
height: 16
|
|
37
37
|
});
|
|
38
|
-
const uploadIcon = iconNode("upload", {
|
|
39
|
-
width: 28,
|
|
40
|
-
height: 28
|
|
41
|
-
});
|
|
42
38
|
const closeIcon = iconNode("x", {
|
|
43
39
|
width: 14,
|
|
44
40
|
height: 14
|
|
@@ -54,7 +50,7 @@ function FileUploadFacade({ label, placeholder, disabled = false, invalid = fals
|
|
|
54
50
|
maxFiles,
|
|
55
51
|
children: [
|
|
56
52
|
label ? /* @__PURE__ */ jsx(FileUpload$1.Label, { children: label }) : null,
|
|
57
|
-
/* @__PURE__ */ jsx(FileUpload$1.Dropzone, { children: /* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ jsx(FileUpload$1.Dropzone, { children: /* @__PURE__ */ jsx(FileUploadTrigger, { children: placeholder ?? "Choose files" }) }),
|
|
58
54
|
/* @__PURE__ */ jsx(FileUpload$1.ItemGroup, { children: /* @__PURE__ */ jsx(FileUpload$1.Context, { children: (api) => api.acceptedFiles.map((file) => /* @__PURE__ */ jsxs(FileUpload$1.Item, {
|
|
59
55
|
file,
|
|
60
56
|
children: [
|
|
@@ -74,5 +70,4 @@ const FileUpload = Object.assign(FileUploadFacade, {
|
|
|
74
70
|
Trigger: FileUploadTrigger
|
|
75
71
|
});
|
|
76
72
|
injectComponentStyle("file-upload");
|
|
77
|
-
//#endregion
|
|
78
73
|
export { FileUpload };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
//#region src/components/float-button/index.d.ts
|
|
3
2
|
export type FloatButtonPlacement = "bottom-end" | "bottom-start" | "top-end" | "top-start";
|
|
4
3
|
export type FloatButtonSize = "sm" | "md" | "lg";
|
|
5
4
|
/** The group's openness, shared from the mooring to its parts. */
|
|
@@ -51,9 +50,30 @@ interface FloatButtonItemProps {
|
|
|
51
50
|
children?: ReactNode;
|
|
52
51
|
}
|
|
53
52
|
declare function Item({ label, disabled, onClick, children }: FloatButtonItemProps): import("react").JSX.Element;
|
|
54
|
-
export
|
|
53
|
+
export interface FloatButtonAction {
|
|
54
|
+
/** The action's accessible name and its surfaced annotation. */
|
|
55
|
+
label: string;
|
|
56
|
+
/** A curated core icon; pencil is the fallback mark. */
|
|
57
|
+
icon?: string;
|
|
58
|
+
disabled?: boolean;
|
|
59
|
+
/** The action fires before the fan folds. */
|
|
60
|
+
onClick?: () => void;
|
|
61
|
+
}
|
|
62
|
+
export interface FloatButtonFacadeProps extends FloatButtonRootProps {
|
|
63
|
+
/** The trigger's accessible name. */
|
|
64
|
+
label?: string;
|
|
65
|
+
/** The fanned actions behind the trigger. */
|
|
66
|
+
actions?: FloatButtonAction[];
|
|
67
|
+
/** Starts the speed dial open before the reader touches it. */
|
|
68
|
+
defaultOpen?: boolean;
|
|
69
|
+
}
|
|
70
|
+
declare function FloatButtonFacade({ label, actions, placement, size, defaultOpen, children, open: openProp, onOpenChange, ...rest }: FloatButtonFacadeProps): import("react").JSX.Element;
|
|
71
|
+
declare namespace FloatButtonFacade {
|
|
72
|
+
var displayName: string;
|
|
73
|
+
}
|
|
74
|
+
export declare const FloatButton: typeof FloatButtonFacade & {
|
|
55
75
|
Root: typeof Root;
|
|
56
76
|
Trigger: typeof Trigger;
|
|
57
77
|
Item: typeof Item;
|
|
58
78
|
};
|
|
59
|
-
|
|
79
|
+
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as iconNode } from "../../icon-C9udWCyz.mjs";
|
|
2
|
+
import { n as useComponentMessages } from "../../messages-B6n0lVyt.mjs";
|
|
2
3
|
import { Button } from "../button/index.mjs";
|
|
3
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
6
|
import { createContext, useContext, useState } from "react";
|
|
6
|
-
|
|
7
|
+
// src/components/float-button/index.tsx
|
|
7
8
|
/** Context for {@link FloatButtonContextValue}, exported so a custom
|
|
8
9
|
* part can read the group's state. */
|
|
9
10
|
const FLOAT_BUTTON_CONTEXT = createContext(null);
|
|
@@ -82,11 +83,35 @@ function Item({ label, disabled = false, onClick, children }) {
|
|
|
82
83
|
})]
|
|
83
84
|
});
|
|
84
85
|
}
|
|
85
|
-
|
|
86
|
+
function FloatButtonFacade({ label, actions = [], placement, size, defaultOpen = false, children, open: openProp, onOpenChange, ...rest }) {
|
|
87
|
+
const [innerOpen, setInnerOpen] = useState(defaultOpen);
|
|
88
|
+
const open = openProp ?? innerOpen;
|
|
89
|
+
const setOpen = (value) => {
|
|
90
|
+
setInnerOpen(value);
|
|
91
|
+
onOpenChange?.(value);
|
|
92
|
+
};
|
|
93
|
+
return /* @__PURE__ */ jsx(Root, {
|
|
94
|
+
open,
|
|
95
|
+
onOpenChange: setOpen,
|
|
96
|
+
placement,
|
|
97
|
+
size,
|
|
98
|
+
...rest,
|
|
99
|
+
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Trigger, {
|
|
100
|
+
label,
|
|
101
|
+
children: iconNode("plus")
|
|
102
|
+
}), actions.map((action) => /* @__PURE__ */ jsx(Item, {
|
|
103
|
+
label: action.label,
|
|
104
|
+
disabled: action.disabled,
|
|
105
|
+
onClick: action.onClick,
|
|
106
|
+
children: iconNode(action.icon ?? "pencil")
|
|
107
|
+
}, action.label))] })
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
FloatButtonFacade.displayName = "SFloatButton";
|
|
111
|
+
const FloatButton = Object.assign(FloatButtonFacade, {
|
|
86
112
|
Root,
|
|
87
113
|
Trigger,
|
|
88
114
|
Item
|
|
89
115
|
});
|
|
90
116
|
injectComponentStyle("float-button");
|
|
91
|
-
//#endregion
|
|
92
117
|
export { FLOAT_BUTTON_CONTEXT, FloatButton };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { FloatingPanel as FloatingPanel$1 } from "@ark-ui/react/floating-panel";
|
|
3
|
-
//#region src/components/floating-panel/index.d.ts
|
|
4
3
|
export interface FloatingPanelFacadeProps {
|
|
5
4
|
open?: boolean;
|
|
6
5
|
defaultOpen?: boolean;
|
|
@@ -18,4 +17,4 @@ declare namespace FloatingPanelFacade {
|
|
|
18
17
|
}
|
|
19
18
|
type FloatingPanelParts = typeof FloatingPanel$1;
|
|
20
19
|
export declare const FloatingPanel: typeof FloatingPanelFacade & FloatingPanelParts;
|
|
21
|
-
|
|
20
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
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
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { FloatingPanel as FloatingPanel$1 } from "@ark-ui/react/floating-panel";
|
|
6
|
-
|
|
6
|
+
// src/components/floating-panel/index.tsx
|
|
7
7
|
/** Ark's FloatingPanel, dressed in the paper-and-ink system: the shared
|
|
8
8
|
* popup vessel let loose — a draggable, resizable sheet whose header is the
|
|
9
9
|
* handle. The API is Ark's own — Root, Trigger, Positioner, Content, Header,
|
|
@@ -42,6 +42,11 @@ function FloatingPanelFacade({ open, defaultOpen, trigger, content, label, descr
|
|
|
42
42
|
stage: "maximized",
|
|
43
43
|
children: iconNode("maximize-2")
|
|
44
44
|
}),
|
|
45
|
+
/* @__PURE__ */ jsx(FloatingPanel$1.StageTrigger, {
|
|
46
|
+
stage: "default",
|
|
47
|
+
"aria-label": "Restore",
|
|
48
|
+
children: iconNode("minimize-2")
|
|
49
|
+
}),
|
|
45
50
|
/* @__PURE__ */ jsx(FloatingPanel$1.CloseTrigger, {
|
|
46
51
|
"aria-label": "Close",
|
|
47
52
|
children: iconNode("x")
|
|
@@ -62,5 +67,4 @@ const FloatingPanel = Object.assign(FloatingPanelFacade, {
|
|
|
62
67
|
Root: FloatingPanelRoot
|
|
63
68
|
});
|
|
64
69
|
injectComponentStyle("floating-panel");
|
|
65
|
-
//#endregion
|
|
66
70
|
export { FloatingPanel };
|