@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,11 +1,11 @@
|
|
|
1
|
-
import { r as iconNode } from "../../icon-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
3
|
-
import { t as withSelfRoot } from "../../family-
|
|
1
|
+
import { r as iconNode } from "../../icon-C9udWCyz.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
3
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
4
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { forwardRef } from "react";
|
|
7
7
|
import { Toast as Toast$1, Toaster as Toaster$1, createToaster } from "@ark-ui/react/toast";
|
|
8
|
-
|
|
8
|
+
// src/components/toast/index.tsx
|
|
9
9
|
/** Ark's Toast, dressed in the paper-and-ink system: each notice rides the
|
|
10
10
|
* popup vessel while a pigment accents the title by type, and the machine's
|
|
11
11
|
* translate variables carry the slide. The API is Ark's own — Toaster,
|
|
@@ -42,5 +42,4 @@ const ToasterRoot = forwardRef(function ToasterRoot(props, ref) {
|
|
|
42
42
|
});
|
|
43
43
|
const Toaster = withSelfRoot(ToasterRoot);
|
|
44
44
|
injectComponentStyle("toast");
|
|
45
|
-
//#endregion
|
|
46
45
|
export { Toast, Toaster, createToaster };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ComponentProps } from "react";
|
|
2
2
|
import { Toc as Toc$1, TocItemData } from "@ark-ui/react/toc";
|
|
3
|
-
//#region src/components/toc/index.d.ts
|
|
4
3
|
/** Toc, dressed in the paper-and-ink system: a quiet rail of links
|
|
5
4
|
* beside the scroll, one stroke of primary ink marking where the reader
|
|
6
5
|
* stands. The parts — Root, Title, List, Item, Link, Indicator. */
|
|
@@ -24,4 +23,4 @@ export declare const Toc: typeof TocFacade & Omit<typeof Toc$1, "Root" | "Indica
|
|
|
24
23
|
Root: typeof TocRoot;
|
|
25
24
|
Indicator: typeof TocIndicator;
|
|
26
25
|
};
|
|
27
|
-
|
|
26
|
+
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 { Toc as Toc$1 } from "@ark-ui/react/toc";
|
|
5
|
-
|
|
5
|
+
// src/components/toc/index.tsx
|
|
6
6
|
/** Toc, dressed in the paper-and-ink system: a quiet rail of links
|
|
7
7
|
* beside the scroll, one stroke of primary ink marking where the reader
|
|
8
8
|
* stands. The parts — Root, Title, List, Item, Link, Indicator. */
|
|
@@ -44,5 +44,4 @@ const Toc = Object.assign(TocFacade, {
|
|
|
44
44
|
Indicator: TocIndicator
|
|
45
45
|
});
|
|
46
46
|
injectComponentStyle("toc");
|
|
47
|
-
//#endregion
|
|
48
47
|
export { Toc };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
import { Toggle as Toggle$1 } from "@ark-ui/react/toggle";
|
|
3
|
-
//#region src/components/toggle/index.d.ts
|
|
4
3
|
export interface ToggleFacadeProps extends ComponentProps<typeof Toggle$1.Root> {
|
|
5
4
|
/** The accessible name when the content is only an icon. */
|
|
6
5
|
label?: string;
|
|
@@ -11,4 +10,4 @@ declare namespace ToggleFacade {
|
|
|
11
10
|
}
|
|
12
11
|
type ToggleParts = typeof Toggle$1;
|
|
13
12
|
export declare const Toggle: typeof ToggleFacade & ToggleParts;
|
|
14
|
-
|
|
13
|
+
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 } from "react/jsx-runtime";
|
|
4
4
|
import { Toggle as Toggle$1 } from "@ark-ui/react/toggle";
|
|
5
|
-
|
|
5
|
+
// src/components/toggle/index.tsx
|
|
6
6
|
/** Ark's Toggle, dressed in the paper-and-ink system: a standalone seal that
|
|
7
7
|
* settles into the flat ink fill while pressed on. The API is Ark's own —
|
|
8
8
|
* Root, Indicator. */
|
|
@@ -26,5 +26,4 @@ const Toggle = Object.assign(ToggleFacade, {
|
|
|
26
26
|
Root: ToggleRoot
|
|
27
27
|
});
|
|
28
28
|
injectComponentStyle("toggle");
|
|
29
|
-
//#endregion
|
|
30
29
|
export { Toggle };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
import { ToggleGroup as ToggleGroup$1 } from "@ark-ui/react/toggle-group";
|
|
3
|
-
//#region src/components/toggle-group/index.d.ts
|
|
4
3
|
type ToggleGroupRootProps = ComponentProps<typeof ToggleGroup$1.Root> & {
|
|
5
4
|
/** One rung of the control-height ladder for the items. */
|
|
6
5
|
size?: "sm" | "md" | "lg";
|
|
@@ -36,4 +35,4 @@ type ToggleGroupParts = Omit<typeof ToggleGroup$1, "Root"> & {
|
|
|
36
35
|
Root: typeof ToggleGroupRoot;
|
|
37
36
|
};
|
|
38
37
|
export declare const ToggleGroup: typeof ToggleGroupFacade & ToggleGroupParts;
|
|
39
|
-
|
|
38
|
+
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 } from "react/jsx-runtime";
|
|
5
5
|
import { ToggleGroup as ToggleGroup$1 } from "@ark-ui/react/toggle-group";
|
|
6
|
-
|
|
6
|
+
// src/components/toggle-group/index.tsx
|
|
7
7
|
function ToggleGroupRoot(props) {
|
|
8
8
|
const id = useElementId("toggle-group", props);
|
|
9
9
|
const { size = "md", ...rest } = props;
|
|
@@ -41,5 +41,4 @@ const ToggleGroup = Object.assign(ToggleGroupFacade, {
|
|
|
41
41
|
Root: ToggleGroupRoot
|
|
42
42
|
});
|
|
43
43
|
injectComponentStyle("toggle-group");
|
|
44
|
-
//#endregion
|
|
45
44
|
export { ToggleGroup };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
//#region src/components/toolbar/index.d.ts
|
|
3
2
|
export interface ToolbarProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
3
|
/** Accessible name when more than one toolbar shares a page. */
|
|
5
4
|
label?: string;
|
|
@@ -17,4 +16,4 @@ declare function ToolbarImpl({ label, start, end, children, ...rest }: ToolbarPr
|
|
|
17
16
|
export declare const Toolbar: typeof ToolbarImpl & {
|
|
18
17
|
Root: typeof ToolbarImpl;
|
|
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/toolbar/index.tsx
|
|
5
5
|
/** A workbench rail: the start tools at the leading edge, the end tools
|
|
6
6
|
* at the trailing, the rail itself carrying the toolbar role so
|
|
7
7
|
* assistive tech reads it as one group of commands. */
|
|
@@ -27,5 +27,4 @@ function ToolbarImpl({ label, start, end, children, ...rest }) {
|
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
const Toolbar = withSelfRoot(ToolbarImpl);
|
|
30
|
-
//#endregion
|
|
31
30
|
export { Toolbar };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { Tooltip as Tooltip$1 } from "@ark-ui/react/tooltip";
|
|
3
|
-
//#region src/components/tooltip/index.d.ts
|
|
4
3
|
type TooltipPlacement = "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
|
|
5
4
|
export interface TooltipFacadeProps {
|
|
6
5
|
open?: boolean;
|
|
@@ -17,4 +16,4 @@ declare namespace TooltipFacade {
|
|
|
17
16
|
}
|
|
18
17
|
type TooltipParts = typeof Tooltip$1;
|
|
19
18
|
export declare const Tooltip: typeof TooltipFacade & TooltipParts;
|
|
20
|
-
|
|
19
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
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 { isValidElement } from "react";
|
|
5
5
|
import { Tooltip as Tooltip$1 } from "@ark-ui/react/tooltip";
|
|
6
|
-
|
|
6
|
+
// src/components/tooltip/index.tsx
|
|
7
7
|
/** Ark's Tooltip, dressed in the paper-and-ink system: the smallest
|
|
8
8
|
* vessel — a tight chip of ink that dissolves in over its anchor. The
|
|
9
9
|
* API is Ark's own — Root, Trigger, Positioner, Content, Arrow, ArrowTip. */
|
|
@@ -33,5 +33,4 @@ const Tooltip = Object.assign(TooltipFacade, {
|
|
|
33
33
|
Root: TooltipRoot
|
|
34
34
|
});
|
|
35
35
|
injectComponentStyle("tooltip");
|
|
36
|
-
//#endregion
|
|
37
36
|
export { Tooltip };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { Tour as Tour$1, TourInteractOutsideEvent, TourPointerDownOutsideEvent, TourStepDetails, UseTourProps, UseTourReturn } from "@ark-ui/react/tour";
|
|
3
|
-
//#region src/components/tour/index.d.ts
|
|
4
3
|
export interface TourFacadeProps {
|
|
5
4
|
tour: UseTourReturn;
|
|
6
5
|
trigger?: string;
|
|
@@ -16,5 +15,4 @@ type TourParts = typeof Tour$1;
|
|
|
16
15
|
export declare const Tour: typeof TourFacade & TourParts;
|
|
17
16
|
/** Tour machines are created by useTour, so the stable id belongs there. */
|
|
18
17
|
export declare function useTour(props?: UseTourProps): UseTourReturn;
|
|
19
|
-
//#endregion
|
|
20
18
|
export type { TourInteractOutsideEvent, TourPointerDownOutsideEvent, TourStepDetails };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as useElementId } from "../../id-
|
|
1
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
2
2
|
import { Button } from "../button/index.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { Tour as Tour$1, useTour as useTour$1 } from "@ark-ui/react/tour";
|
|
6
|
-
|
|
6
|
+
// src/components/tour/index.tsx
|
|
7
7
|
/** Ark's Tour, dressed in the paper-and-ink system: a dimmed page where
|
|
8
8
|
* the spotlight alone keeps the focus halo, and the anchored card rides
|
|
9
9
|
* the shared popup vessel. The API is Ark's own — Root, Backdrop,
|
|
@@ -51,5 +51,4 @@ function useTour(props = {}) {
|
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
injectComponentStyle("tour");
|
|
54
|
-
//#endregion
|
|
55
54
|
export { Tour, useTour };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Checkbox } from "../checkbox/index.mjs";
|
|
2
2
|
import { HTMLAttributes } from "react";
|
|
3
|
-
//#region src/components/transfer/index.d.ts
|
|
4
3
|
export interface TransferItem {
|
|
5
4
|
label: string;
|
|
6
5
|
value: string;
|
|
@@ -22,4 +21,4 @@ export interface TransferProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
22
21
|
*/
|
|
23
22
|
declare function TransferImpl({ value, data, titles, searchable, disabled, onValueChange, ...rest }: TransferProps): import("react").JSX.Element;
|
|
24
23
|
export declare const Transfer: typeof TransferImpl & typeof Checkbox;
|
|
25
|
-
|
|
24
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { r as iconNode } from "../../icon-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
3
|
-
import { n as useComponentMessages, t as formatMessage } from "../../messages-
|
|
1
|
+
import { r as iconNode } from "../../icon-C9udWCyz.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
3
|
+
import { n as useComponentMessages, t as formatMessage } 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 { Checkbox as Checkbox$1 } from "../checkbox/index.mjs";
|
|
7
7
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { useState } from "react";
|
|
10
10
|
import { Checkbox } from "@ark-ui/react/checkbox";
|
|
11
|
-
|
|
11
|
+
// src/components/transfer/index.tsx
|
|
12
12
|
const checkIcon = iconNode("check");
|
|
13
13
|
function arrowIcon(direction) {
|
|
14
14
|
return iconNode(direction === "right" ? "arrow-right" : "arrow-left");
|
|
@@ -140,5 +140,4 @@ function TransferImpl({ value = [], data, titles = ["Source", "Target"], searcha
|
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
const Transfer = Object.assign(TransferImpl, Checkbox$1);
|
|
143
|
-
//#endregion
|
|
144
143
|
export { Transfer };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { t as Popover } from "../../index-
|
|
1
|
+
import { t as Popover } from "../../index-BVdkcSSY.mjs";
|
|
2
2
|
import { HTMLAttributes } from "react";
|
|
3
|
-
//#region src/components/tree-select/index.d.ts
|
|
4
3
|
export interface TreeSelectNode {
|
|
5
4
|
label: string;
|
|
6
5
|
value: string;
|
|
@@ -27,4 +26,4 @@ export interface TreeSelectProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
27
26
|
}
|
|
28
27
|
declare function TreeSelectImpl({ value, data, placeholder, filterable, disabled, size, onValueChange, ...rest }: TreeSelectProps): import("react").JSX.Element;
|
|
29
28
|
export declare const TreeSelect: typeof TreeSelectImpl & typeof Popover;
|
|
30
|
-
|
|
29
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as iconNode } from "../../icon-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
3
|
-
import { n as useComponentMessages } from "../../messages-
|
|
1
|
+
import { r as iconNode } from "../../icon-C9udWCyz.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
3
|
+
import { n as useComponentMessages } from "../../messages-B6n0lVyt.mjs";
|
|
4
4
|
import { Popover as Popover$1 } from "../popover/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
|
import { useMemo, useState } from "react";
|
|
@@ -10,7 +10,7 @@ import { Popover } from "@ark-ui/react/popover";
|
|
|
10
10
|
import { Portal } from "@ark-ui/react/portal";
|
|
11
11
|
import { useFilter } from "@ark-ui/react/locale";
|
|
12
12
|
import { TreeView, createTreeCollection } from "@ark-ui/react/tree-view";
|
|
13
|
-
|
|
13
|
+
// src/components/tree-select/index.tsx
|
|
14
14
|
const chevron = iconNode("chevron-right");
|
|
15
15
|
const chevronDown = /* @__PURE__ */ jsx("span", {
|
|
16
16
|
"data-part": "chevron",
|
|
@@ -144,5 +144,4 @@ function TreeSelectImpl({ value, data, placeholder = "Select…", filterable = f
|
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
146
|
const TreeSelect = Object.assign(TreeSelectImpl, Popover$1);
|
|
147
|
-
//#endregion
|
|
148
147
|
export { TreeSelect };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { CSSProperties, ComponentProps } from "react";
|
|
1
|
+
import { CSSProperties, ComponentProps, ReactNode } from "react";
|
|
2
2
|
import { CollectionItem } from "@ark-ui/react/collection";
|
|
3
3
|
import { TreeView as TreeView$1, TreeViewRootComponentProps } from "@ark-ui/react/tree-view";
|
|
4
|
-
//#region src/components/tree-view/index.d.ts
|
|
5
4
|
/** Ark's TreeView, dressed in the paper-and-ink system: quiet rows where
|
|
6
5
|
* selection is pure light on the paper, one hairline plumb line per depth,
|
|
7
6
|
* and branches that swing open on the spring. The API is Ark's own —
|
|
@@ -20,15 +19,24 @@ declare function TreeViewNodeCheckbox(props: ComponentProps<typeof TreeView$1.No
|
|
|
20
19
|
/** A branch is born with its chevron — the indicator stays a consumer's
|
|
21
20
|
* children to override, never a chore to remember. */
|
|
22
21
|
declare function TreeViewBranchIndicator(props: ComponentProps<typeof TreeView$1.BranchIndicator>): import("react").JSX.Element;
|
|
23
|
-
type
|
|
22
|
+
export type TreeViewOption = {
|
|
24
23
|
label: string;
|
|
25
24
|
value: string;
|
|
26
25
|
disabled?: boolean;
|
|
27
|
-
|
|
26
|
+
/** A curated core icon at the row's leading edge. */
|
|
27
|
+
icon?: string;
|
|
28
|
+
/** A quiet trailing label, commonly a count. */
|
|
29
|
+
meta?: string;
|
|
30
|
+
children?: TreeViewOption[];
|
|
28
31
|
};
|
|
32
|
+
type TreeOption = TreeViewOption;
|
|
29
33
|
type TreeViewFacadeProps = {
|
|
30
34
|
value?: string[];
|
|
31
35
|
defaultValue?: string[];
|
|
36
|
+
/** Branch values expanded on first render; top-level branches by default. */
|
|
37
|
+
defaultExpandedValue?: string[];
|
|
38
|
+
/** Controlled expanded branch values. */
|
|
39
|
+
expandedValue?: string[];
|
|
32
40
|
options: TreeOption[];
|
|
33
41
|
multiple?: boolean;
|
|
34
42
|
label?: string;
|
|
@@ -36,6 +44,8 @@ type TreeViewFacadeProps = {
|
|
|
36
44
|
className?: string;
|
|
37
45
|
style?: CSSProperties;
|
|
38
46
|
onValueChange?: (value: string[]) => void;
|
|
47
|
+
onExpandedChange?: (value: string[]) => void;
|
|
48
|
+
renderTrailing?: (node: TreeOption) => ReactNode;
|
|
39
49
|
};
|
|
40
50
|
/** The complete tree behind selected values: nested options render their own
|
|
41
51
|
* branches and leaves, while async and checkbox trees remain anatomy work. */
|
|
@@ -45,4 +55,4 @@ export declare const TreeView: typeof TreeViewFacade & Omit<typeof TreeView$1, "
|
|
|
45
55
|
NodeCheckbox: typeof TreeViewNodeCheckbox;
|
|
46
56
|
BranchIndicator: typeof TreeViewBranchIndicator;
|
|
47
57
|
};
|
|
48
|
-
|
|
58
|
+
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { r as iconNode } from "../../icon-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
1
|
+
import { r as iconNode } from "../../icon-C9udWCyz.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { useMemo } from "react";
|
|
5
6
|
import { TreeView as TreeView$1, createTreeCollection } from "@ark-ui/react/tree-view";
|
|
6
|
-
|
|
7
|
+
// src/components/tree-view/index.tsx
|
|
7
8
|
function TreeViewRoot(props) {
|
|
8
9
|
injectComponentStyle("tree-view");
|
|
9
10
|
const id = useElementId("tree-view", props);
|
|
@@ -31,10 +32,26 @@ function TreeViewBranchIndicator(props) {
|
|
|
31
32
|
children
|
|
32
33
|
});
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
+
function nodeTrailing(node, props) {
|
|
36
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [node.meta ? /* @__PURE__ */ jsx("span", {
|
|
37
|
+
"data-scope": "tree-view",
|
|
38
|
+
"data-part": "node-meta",
|
|
39
|
+
children: node.meta
|
|
40
|
+
}) : null, props.renderTrailing?.(node)] });
|
|
41
|
+
}
|
|
42
|
+
function treeNodes(items, path = [], facade) {
|
|
35
43
|
return items.map((node, index) => {
|
|
36
44
|
const indexPath = [...path, index];
|
|
37
|
-
const row = node.children?.length ? /* @__PURE__ */ jsxs(TreeView$1.Branch, { children: [/* @__PURE__ */ jsxs(TreeView$1.BranchControl, { children: [
|
|
45
|
+
const row = node.children?.length ? /* @__PURE__ */ jsxs(TreeView$1.Branch, { children: [/* @__PURE__ */ jsxs(TreeView$1.BranchControl, { children: [
|
|
46
|
+
node.icon ? iconNode(node.icon) : null,
|
|
47
|
+
/* @__PURE__ */ jsx(TreeView$1.BranchIndicator, { children: iconNode("chevron-right") }),
|
|
48
|
+
/* @__PURE__ */ jsx(TreeView$1.BranchText, { children: node.label }),
|
|
49
|
+
nodeTrailing(node, facade)
|
|
50
|
+
] }), /* @__PURE__ */ jsx(TreeView$1.BranchContent, { children: treeNodes(node.children, indexPath, facade) })] }) : /* @__PURE__ */ jsxs(TreeView$1.Item, { children: [
|
|
51
|
+
node.icon ? iconNode(node.icon) : null,
|
|
52
|
+
/* @__PURE__ */ jsx(TreeView$1.ItemText, { children: node.label }),
|
|
53
|
+
nodeTrailing(node, facade)
|
|
54
|
+
] });
|
|
38
55
|
return /* @__PURE__ */ jsx(TreeView$1.NodeProvider, {
|
|
39
56
|
node,
|
|
40
57
|
indexPath,
|
|
@@ -45,9 +62,9 @@ function treeNodes(items, path = []) {
|
|
|
45
62
|
/** The complete tree behind selected values: nested options render their own
|
|
46
63
|
* branches and leaves, while async and checkbox trees remain anatomy work. */
|
|
47
64
|
function TreeViewFacade(props) {
|
|
48
|
-
const { value, defaultValue, options, multiple, label, size = "md", className, style, onValueChange } = props;
|
|
65
|
+
const { value, defaultValue, defaultExpandedValue, expandedValue, options, multiple, label, size = "md", className, style, onValueChange, onExpandedChange } = props;
|
|
49
66
|
const branchValues = options.filter((option) => option.children?.length).map((option) => option.value);
|
|
50
|
-
const collection = createTreeCollection({
|
|
67
|
+
const collection = useMemo(() => createTreeCollection({
|
|
51
68
|
nodeToValue: (node) => node.value,
|
|
52
69
|
nodeToString: (node) => node.label,
|
|
53
70
|
isNodeDisabled: (node) => !!node.disabled,
|
|
@@ -56,11 +73,12 @@ function TreeViewFacade(props) {
|
|
|
56
73
|
label: "",
|
|
57
74
|
children: options
|
|
58
75
|
}
|
|
59
|
-
});
|
|
76
|
+
}), [options]);
|
|
60
77
|
return /* @__PURE__ */ jsx(TreeViewRoot, {
|
|
61
78
|
size,
|
|
62
79
|
collection,
|
|
63
|
-
defaultExpandedValue: branchValues,
|
|
80
|
+
defaultExpandedValue: defaultExpandedValue ?? branchValues,
|
|
81
|
+
...expandedValue === void 0 ? {} : { expandedValue },
|
|
64
82
|
defaultSelectedValue: defaultValue,
|
|
65
83
|
selectedValue: value,
|
|
66
84
|
selectionMode: multiple ? "multiple" : "single",
|
|
@@ -68,7 +86,8 @@ function TreeViewFacade(props) {
|
|
|
68
86
|
className,
|
|
69
87
|
style,
|
|
70
88
|
onSelectionChange: (event) => onValueChange?.(event.selectedValue),
|
|
71
|
-
|
|
89
|
+
onExpandedChange: (event) => onExpandedChange?.(event.expandedValue),
|
|
90
|
+
children: /* @__PURE__ */ jsx(TreeView$1.Tree, { children: treeNodes(options, [], props) })
|
|
72
91
|
});
|
|
73
92
|
}
|
|
74
93
|
const TreeView = Object.assign(TreeViewFacade, {
|
|
@@ -77,5 +96,4 @@ const TreeView = Object.assign(TreeViewFacade, {
|
|
|
77
96
|
NodeCheckbox: TreeViewNodeCheckbox,
|
|
78
97
|
BranchIndicator: TreeViewBranchIndicator
|
|
79
98
|
});
|
|
80
|
-
//#endregion
|
|
81
99
|
export { TreeView };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/typography/index.d.ts
|
|
3
2
|
export declare const Typography: {
|
|
4
3
|
({ children, ...rest }: HTMLAttributes<HTMLElement>): import("react").JSX.Element;
|
|
5
4
|
displayName: string;
|
|
@@ -32,5 +31,4 @@ export declare const Typography: {
|
|
|
32
31
|
({ children, ...rest }: HTMLAttributes<HTMLElement>): import("react").JSX.Element;
|
|
33
32
|
displayName: string;
|
|
34
33
|
};
|
|
35
|
-
};
|
|
36
|
-
//#endregion
|
|
34
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/typography/index.tsx
|
|
4
4
|
/** The typographic voices, named so prose can ask for one: display and
|
|
5
5
|
* heading ride the song-serif, the rest ride the hei. Nothing here is
|
|
6
6
|
* decorative — hierarchy is size, weight, and space. */
|
|
@@ -31,5 +31,4 @@ const Typography = Object.assign(Display, {
|
|
|
31
31
|
Label
|
|
32
32
|
});
|
|
33
33
|
injectComponentStyle("typography");
|
|
34
|
-
//#endregion
|
|
35
34
|
export { Typography };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AvatarSize } from "../avatar/index.mjs";
|
|
2
2
|
import { HTMLAttributes, ReactNode } from "react";
|
|
3
|
-
//#region src/components/user/index.d.ts
|
|
4
3
|
export interface UserProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
4
|
/** The person's name — the loud line. */
|
|
6
5
|
name: string;
|
|
@@ -20,4 +19,4 @@ declare function UserImpl({ name, description, size, src, shape, children, ...re
|
|
|
20
19
|
export declare const User: typeof UserImpl & {
|
|
21
20
|
Root: typeof UserImpl;
|
|
22
21
|
};
|
|
23
|
-
|
|
22
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as withSelfRoot } from "../../family-
|
|
1
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
2
2
|
import { Avatar } from "../avatar/index.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/user/index.tsx
|
|
6
6
|
function initialsOf(name) {
|
|
7
7
|
return name.split(/\s+/).filter(Boolean).slice(0, 2).map((word) => word[0]?.toUpperCase() ?? "").join("");
|
|
8
8
|
}
|
|
@@ -40,5 +40,4 @@ function UserImpl({ name, description, size, src, shape = "circle", children, ..
|
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
const User = withSelfRoot(UserImpl);
|
|
43
|
-
//#endregion
|
|
44
43
|
export { User };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
//#region src/components/virtual-list/index.d.ts
|
|
3
2
|
export interface VirtualListProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
3
|
items: unknown[];
|
|
5
4
|
/** The height every row occupies — fixed rows keep it simple. */
|
|
@@ -17,4 +16,4 @@ declare function VirtualListImpl({ items, itemHeight, height, renderItem, ...res
|
|
|
17
16
|
export declare const VirtualList: typeof VirtualListImpl & {
|
|
18
17
|
Root: typeof VirtualListImpl;
|
|
19
18
|
};
|
|
20
|
-
|
|
19
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
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 { useRef } from "react";
|
|
5
5
|
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
6
|
-
|
|
6
|
+
// src/components/virtual-list/index.tsx
|
|
7
7
|
function toCssLength(length) {
|
|
8
8
|
return typeof length === "number" ? `${length}px` : length;
|
|
9
9
|
}
|
|
@@ -47,5 +47,4 @@ function VirtualListImpl({ items, itemHeight = 40, height = 320, renderItem, ...
|
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
const VirtualList = withSelfRoot(VirtualListImpl);
|
|
50
|
-
//#endregion
|
|
51
50
|
export { VirtualList };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/watermark/index.d.ts
|
|
3
2
|
export interface WatermarkProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
3
|
content: string;
|
|
5
4
|
opacity?: number;
|
|
@@ -16,4 +15,4 @@ declare function WatermarkImpl({ content, opacity, rotate, fontSize, children, .
|
|
|
16
15
|
export declare const Watermark: typeof WatermarkImpl & {
|
|
17
16
|
Root: typeof WatermarkImpl;
|
|
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, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { useEffect, useState } from "react";
|
|
5
|
-
|
|
5
|
+
// src/components/watermark/index.tsx
|
|
6
6
|
/** Font-relative measures ride the root's own measure; absolute units
|
|
7
7
|
* pass through untouched — the canvas needs a number, the prop may
|
|
8
8
|
* speak in CSS. */
|
|
@@ -78,5 +78,4 @@ function WatermarkImpl({ content, opacity = .06, rotate = -20, fontSize = "0.875
|
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
const Watermark = withSelfRoot(WatermarkImpl);
|
|
81
|
-
//#endregion
|
|
82
81
|
export { Watermark };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
// src/internal/family.ts
|
|
2
2
|
/** Gives a single-component family the same callable + Root surface. */
|
|
3
3
|
function withSelfRoot(component) {
|
|
4
4
|
const family = component;
|
|
5
5
|
family.Root = component;
|
|
6
6
|
return family;
|
|
7
7
|
}
|
|
8
|
-
//#endregion
|
|
9
8
|
export { withSelfRoot as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
//#region src/generative/index.d.ts
|
|
3
2
|
export declare const catalog: import("@json-render/core").Catalog<{
|
|
4
3
|
spec: import("@json-render/core").SchemaType<"object", {
|
|
5
4
|
root: import("@json-render/core").SchemaType<"string", unknown>;
|
|
@@ -49,5 +48,4 @@ declare const registry: import("@json-render/react").ComponentRegistry;
|
|
|
49
48
|
* several names - Layout plus its parts, Bento plus its cell - and the
|
|
50
49
|
* palette groups by provenance, never by guessing from the name. */
|
|
51
50
|
export declare const faceFamilies: Record<string, string>;
|
|
52
|
-
//#endregion
|
|
53
51
|
export { registry };
|