@bysages/react 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/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 +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 +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 +1 -2
- package/dist/components/color-picker/index.mjs +3 -4
- 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 +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 +1 -2
- package/dist/components/floating-panel/index.mjs +3 -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 +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 +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 +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-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 +10 -10
- 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 } from "react";
|
|
2
|
-
//#region src/components/chip/index.d.ts
|
|
3
2
|
/** A counting coin: the numeric value, capped at `max` with an ellipsis
|
|
4
3
|
* of the remainder ("99+"). */
|
|
5
4
|
export interface ChipProps extends HTMLAttributes<HTMLSpanElement> {
|
|
@@ -12,4 +11,4 @@ declare function ChipImpl({ value, max, tone, variant, ...rest }: ChipProps): im
|
|
|
12
11
|
export declare const Chip: typeof ChipImpl & {
|
|
13
12
|
Root: typeof ChipImpl;
|
|
14
13
|
};
|
|
15
|
-
|
|
14
|
+
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/chip/index.tsx
|
|
5
5
|
function ChipImpl({ value, max, tone = "ink", variant = "solid", ...rest }) {
|
|
6
6
|
injectComponentStyle("chip");
|
|
7
7
|
const text = max != null && value > max ? `${max}+` : String(value);
|
|
@@ -15,5 +15,4 @@ function ChipImpl({ value, max, tone = "ink", variant = "solid", ...rest }) {
|
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
const Chip = withSelfRoot(ChipImpl);
|
|
18
|
-
//#endregion
|
|
19
18
|
export { Chip };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { ClientOnlyProps } from "@ark-ui/react/client-only";
|
|
2
|
-
//#region src/components/client-only/index.d.ts
|
|
3
2
|
export declare const ClientOnly: ((props: import("@ark-ui/react/client-only").ClientOnlyProps) => React.ReactNode) & {
|
|
4
3
|
Root: (props: import("@ark-ui/react/client-only").ClientOnlyProps) => React.ReactNode;
|
|
5
4
|
};
|
|
6
|
-
//#endregion
|
|
7
5
|
export type { ClientOnlyProps };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { t as withSelfRoot } from "../../family-
|
|
1
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
2
2
|
import { ClientOnly as ClientOnly$1 } from "@ark-ui/react/client-only";
|
|
3
|
-
|
|
3
|
+
// src/components/client-only/index.tsx
|
|
4
4
|
const ClientOnly = withSelfRoot(ClientOnly$1);
|
|
5
|
-
//#endregion
|
|
6
5
|
export { ClientOnly };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ComponentProps, HTMLAttributes } from "react";
|
|
2
2
|
import { Clipboard as Clipboard$1 } from "@ark-ui/react/clipboard";
|
|
3
|
-
//#region src/components/clipboard/index.d.ts
|
|
4
3
|
/** Ark's Clipboard, dressed in the paper-and-ink system: a hairline value
|
|
5
4
|
* field beside an icon-sized copy trigger whose ink turns bamboo while the
|
|
6
5
|
* copy is confirmed. The API is Ark's own — Root, Label, Control, Input,
|
|
@@ -27,4 +26,4 @@ declare function ClipboardFacade(props: ClipboardFacadeProps): import("react").J
|
|
|
27
26
|
export declare const Clipboard: typeof ClipboardFacade & Omit<typeof Clipboard$1, "Root"> & {
|
|
28
27
|
Root: typeof ClipboardRoot;
|
|
29
28
|
};
|
|
30
|
-
|
|
29
|
+
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 { Clipboard as Clipboard$1 } from "@ark-ui/react/clipboard";
|
|
6
|
-
|
|
6
|
+
// src/components/clipboard/index.tsx
|
|
7
7
|
function ClipboardRoot(props) {
|
|
8
8
|
injectComponentStyle("clipboard");
|
|
9
9
|
const id = useElementId("clipboard", props);
|
|
@@ -41,5 +41,4 @@ const Clipboard = Object.assign(ClipboardFacade, {
|
|
|
41
41
|
...Clipboard$1,
|
|
42
42
|
Root: ClipboardRoot
|
|
43
43
|
});
|
|
44
|
-
//#endregion
|
|
45
44
|
export { Clipboard };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { Collapsible as Collapsible$1 } from "@ark-ui/react/collapsible";
|
|
3
|
-
//#region src/components/collapsible/index.d.ts
|
|
4
3
|
export interface CollapsibleFacadeProps {
|
|
5
4
|
open?: boolean;
|
|
6
5
|
defaultOpen?: boolean;
|
|
@@ -16,4 +15,4 @@ declare namespace CollapsibleFacade {
|
|
|
16
15
|
}
|
|
17
16
|
type CollapsibleParts = typeof Collapsible$1;
|
|
18
17
|
export declare const Collapsible: typeof CollapsibleFacade & CollapsibleParts;
|
|
19
|
-
|
|
18
|
+
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 { Collapsible as Collapsible$1 } from "@ark-ui/react/collapsible";
|
|
6
|
-
|
|
6
|
+
// src/components/collapsible/index.tsx
|
|
7
7
|
/** Ark's Collapsible, dressed in the paper-and-ink system: one control on
|
|
8
8
|
* the paper, its panel dissolving open to the machine's measured height.
|
|
9
9
|
* The API is Ark's own — Root, Trigger, Content, Indicator. */
|
|
@@ -30,5 +30,4 @@ const Collapsible = Object.assign(CollapsibleFacade, {
|
|
|
30
30
|
Root: CollapsibleRoot
|
|
31
31
|
});
|
|
32
32
|
injectComponentStyle("collapsible");
|
|
33
|
-
//#endregion
|
|
34
33
|
export { Collapsible };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { createFileTreeCollection, createGridCollection, createListCollection, createTreeCollection, useAsyncList, useListCollection, useListSelection };
|
|
1
|
+
export { createFileTreeCollection, createGridCollection, createListCollection, createTreeCollection, useAsyncList, useListCollection, useListSelection } from "@ark-ui/react/collection";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ComponentProps } from "react";
|
|
2
2
|
import { Color, ColorPicker as ColorPicker$1 } from "@ark-ui/react/color-picker";
|
|
3
|
-
//#region src/components/color-picker/index.d.ts
|
|
4
3
|
type ColorPickerRootProps = ComponentProps<typeof ColorPicker$1.Root> & {
|
|
5
4
|
/** One rung of the control-height ladder for the swatch seal. */
|
|
6
5
|
size?: "sm" | "md" | "lg";
|
|
@@ -35,4 +34,4 @@ declare function ColorPickerFacade(props: ColorPickerFacadeProps): import("react
|
|
|
35
34
|
export declare const ColorPicker: typeof ColorPickerFacade & Omit<typeof ColorPicker$1, "Root"> & {
|
|
36
35
|
Root: typeof ColorPickerRoot;
|
|
37
36
|
};
|
|
38
|
-
|
|
37
|
+
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 { ColorPicker as ColorPicker$1, parseColor } from "@ark-ui/react/color-picker";
|
|
6
|
-
|
|
6
|
+
// src/components/color-picker/index.tsx
|
|
7
7
|
const checkIcon = iconNode("check", {
|
|
8
8
|
width: 12,
|
|
9
9
|
height: 12
|
|
@@ -77,5 +77,4 @@ const ColorPicker = Object.assign(ColorPickerFacade, {
|
|
|
77
77
|
...ColorPicker$1,
|
|
78
78
|
Root: ColorPickerRoot
|
|
79
79
|
});
|
|
80
|
-
//#endregion
|
|
81
80
|
export { ColorPicker };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from "react";
|
|
2
2
|
import { CollectionItem } from "@ark-ui/react/collection";
|
|
3
3
|
import { Combobox as Combobox$1, ComboboxRootComponentProps } from "@ark-ui/react/combobox";
|
|
4
|
-
//#region src/components/combobox/index.d.ts
|
|
5
4
|
/** Ark's Combobox, dressed in the paper-and-ink system: the field carries
|
|
6
5
|
* the control recipe and its matches dissolve open as a paper vessel, the
|
|
7
6
|
* checked row taking the flat ink fill. The API is Ark's own — Root, Label,
|
|
@@ -40,4 +39,4 @@ declare function ComboboxFacade(props: ComboboxFacadeProps): import("react").JSX
|
|
|
40
39
|
export declare const Combobox: typeof ComboboxFacade & Omit<typeof Combobox$1, "Root"> & {
|
|
41
40
|
Root: typeof ComboboxRoot;
|
|
42
41
|
};
|
|
43
|
-
|
|
42
|
+
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 { Combobox as Combobox$1, createListCollection } from "@ark-ui/react/combobox";
|
|
6
|
-
|
|
6
|
+
// src/components/combobox/index.tsx
|
|
7
7
|
function ComboboxRoot(props) {
|
|
8
8
|
injectComponentStyle("combobox");
|
|
9
9
|
const id = useElementId("combobox", props);
|
|
@@ -71,5 +71,4 @@ const Combobox = Object.assign(ComboboxFacade, {
|
|
|
71
71
|
...Combobox$1,
|
|
72
72
|
Root: ComboboxRoot
|
|
73
73
|
});
|
|
74
|
-
//#endregion
|
|
75
74
|
export { Combobox };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Dialog } from "../dialog/index.mjs";
|
|
2
|
-
//#region src/components/command/index.d.ts
|
|
3
2
|
export interface CommandEntry {
|
|
4
3
|
label: string;
|
|
5
4
|
value: string;
|
|
@@ -43,4 +42,4 @@ export interface CommandProps {
|
|
|
43
42
|
}
|
|
44
43
|
declare function CommandImpl({ items, placeholder, open, autoFilter, inputValue, emptyText, onSelect, onOpenChange, onInputValueChange, id }: CommandProps): import("react").JSX.Element;
|
|
45
44
|
export declare const Command: typeof CommandImpl & typeof Dialog;
|
|
46
|
-
|
|
45
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
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
3
|
import { Dialog as Dialog$1 } from "../dialog/index.mjs";
|
|
4
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -8,7 +8,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
|
-
|
|
11
|
+
// src/components/command/index.tsx
|
|
12
12
|
function CommandImpl({ items = [], placeholder, open, autoFilter = true, inputValue, emptyText, onSelect, onOpenChange, onInputValueChange, id }) {
|
|
13
13
|
injectComponentStyle("command");
|
|
14
14
|
injectComponentStyle("dialog");
|
|
@@ -145,5 +145,4 @@ function CommandImpl({ items = [], placeholder, open, autoFilter = true, inputVa
|
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
const Command = Object.assign(CommandImpl, Dialog$1);
|
|
148
|
-
//#endregion
|
|
149
148
|
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,5 @@
|
|
|
1
1
|
import { CSSProperties, ComponentProps } from "react";
|
|
2
2
|
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
3
|
type DatePickerRootProps$1 = ComponentProps<typeof DatePicker$1.Root> & {
|
|
5
4
|
/** One rung of the control-height ladder for the field row. */
|
|
6
5
|
size?: "sm" | "md" | "lg";
|
|
@@ -32,5 +31,4 @@ declare function DatePickerFacade(props: DatePickerFacadeProps): import("react")
|
|
|
32
31
|
export declare const DatePicker: typeof DatePickerFacade & Omit<typeof DatePicker$1, "Root"> & {
|
|
33
32
|
Root: typeof DatePickerRoot;
|
|
34
33
|
};
|
|
35
|
-
//#endregion
|
|
36
34
|
export type { DatePickerFocusChangeDetails, DatePickerOpenChangeDetails, DatePickerValueChangeDetails, DatePickerViewChangeDetails, DatePickerVisibleRangeChangeDetails };
|
|
@@ -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 { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { DatePicker as DatePicker$1 } from "@ark-ui/react/date-picker";
|
|
6
|
-
|
|
6
|
+
// src/components/date-picker/index.tsx
|
|
7
7
|
function DatePickerRoot(props) {
|
|
8
8
|
injectComponentStyle("date-picker");
|
|
9
9
|
const id = useElementId("date-picker", props);
|
|
@@ -66,5 +66,4 @@ const DatePicker = Object.assign(DatePickerFacade, {
|
|
|
66
66
|
...DatePicker$1,
|
|
67
67
|
Root: DatePickerRoot
|
|
68
68
|
});
|
|
69
|
-
//#endregion
|
|
70
69
|
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,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 };
|