@bysages/react 0.4.3 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-B3vbpXlK.mjs +309 -0
- package/dist/ai-prompt-input-k34KssHJ.mjs +401 -0
- package/dist/{ai-response-CjjjprMY.mjs → ai-response-DTxdL5rX.mjs} +9 -11
- package/dist/{chevron-BA7kV9m7.mjs → chevron-DnImlNip.mjs} +2 -3
- package/dist/components/accordion/index.d.mts +1 -2
- package/dist/components/accordion/index.mjs +3 -4
- package/dist/components/affix/index.d.mts +1 -2
- package/dist/components/affix/index.mjs +2 -3
- package/dist/components/ai/index.d.mts +107 -2
- package/dist/components/ai/index.mjs +7 -82
- package/dist/components/ai-action/index.d.mts +0 -2
- package/dist/components/ai-action/index.mjs +2 -3
- package/dist/components/ai-attachments/index.d.mts +0 -2
- package/dist/components/ai-attachments/index.mjs +4 -5
- package/dist/components/ai-message/index.d.mts +2 -14
- package/dist/components/ai-message/index.mjs +5 -4
- package/dist/components/ai-prompt-input/index.d.mts +14 -18
- package/dist/components/ai-prompt-input/index.mjs +1 -126
- package/dist/components/ai-reasoning/index.d.mts +0 -2
- package/dist/components/ai-reasoning/index.mjs +3 -4
- package/dist/components/ai-response/index.d.mts +1 -3
- package/dist/components/ai-response/index.mjs +1 -2
- package/dist/components/ai-source/index.d.mts +0 -2
- package/dist/components/ai-source/index.mjs +2 -3
- package/dist/components/ai-suggestion/index.d.mts +0 -2
- package/dist/components/ai-suggestion/index.mjs +2 -3
- package/dist/components/ai-tool/index.d.mts +2 -24
- package/dist/components/ai-tool/index.mjs +46 -14
- package/dist/components/alert/index.d.mts +1 -2
- package/dist/components/alert/index.mjs +2 -3
- package/dist/components/angle-slider/index.d.mts +1 -2
- package/dist/components/angle-slider/index.mjs +2 -3
- package/dist/components/aspect-ratio/index.d.mts +1 -2
- package/dist/components/aspect-ratio/index.mjs +2 -3
- package/dist/components/autocomplete/index.d.mts +1 -2
- package/dist/components/autocomplete/index.mjs +3 -4
- package/dist/components/avatar/index.d.mts +13 -4
- package/dist/components/avatar/index.mjs +20 -6
- package/dist/components/avatar-group/index.d.mts +1 -2
- package/dist/components/avatar-group/index.mjs +2 -3
- package/dist/components/back-top/index.d.mts +1 -2
- package/dist/components/back-top/index.mjs +3 -4
- package/dist/components/badge/index.d.mts +1 -2
- package/dist/components/badge/index.mjs +2 -3
- package/dist/components/banner/index.d.mts +17 -4
- package/dist/components/banner/index.mjs +21 -6
- package/dist/components/bento/index.d.mts +1 -3
- package/dist/components/bento/index.mjs +1 -2
- package/dist/components/block-ui/index.d.mts +1 -2
- package/dist/components/block-ui/index.mjs +2 -3
- package/dist/components/breadcrumb/index.d.mts +16 -3
- package/dist/components/breadcrumb/index.mjs +22 -5
- package/dist/components/browser/index.d.mts +1 -3
- package/dist/components/browser/index.mjs +1 -2
- package/dist/components/button/index.d.mts +1 -2
- package/dist/components/button/index.mjs +2 -3
- package/dist/components/button-group/index.d.mts +1 -2
- package/dist/components/button-group/index.mjs +1 -2
- package/dist/components/calendar/index.d.mts +1 -2
- package/dist/components/calendar/index.mjs +3 -4
- package/dist/components/card/index.d.mts +1 -3
- package/dist/components/card/index.mjs +1 -2
- package/dist/components/carousel/index.d.mts +1 -2
- package/dist/components/carousel/index.mjs +3 -4
- package/dist/components/cascade-select/index.d.mts +1 -2
- package/dist/components/cascade-select/index.mjs +6 -7
- package/dist/components/checkbox/index.d.mts +1 -2
- package/dist/components/checkbox/index.mjs +3 -4
- package/dist/components/checkbox-group/index.d.mts +1 -2
- package/dist/components/checkbox-group/index.mjs +3 -4
- package/dist/components/chip/index.d.mts +1 -2
- package/dist/components/chip/index.mjs +2 -3
- package/dist/components/client-only/index.d.mts +0 -2
- package/dist/components/client-only/index.mjs +2 -3
- package/dist/components/clipboard/index.d.mts +1 -2
- package/dist/components/clipboard/index.mjs +3 -4
- package/dist/components/collapsible/index.d.mts +1 -2
- package/dist/components/collapsible/index.mjs +3 -4
- package/dist/components/collection/index.mjs +1 -2
- package/dist/components/color-picker/index.d.mts +3 -2
- package/dist/components/color-picker/index.mjs +38 -25
- package/dist/components/combobox/index.d.mts +1 -2
- package/dist/components/combobox/index.mjs +3 -4
- package/dist/components/command/index.d.mts +1 -2
- package/dist/components/command/index.mjs +3 -4
- package/dist/components/comment/index.d.mts +1 -2
- package/dist/components/comment/index.mjs +2 -3
- package/dist/components/config-provider/index.d.mts +1 -2
- package/dist/components/config-provider/index.mjs +2 -3
- package/dist/components/container/index.d.mts +1 -2
- package/dist/components/container/index.mjs +2 -3
- package/dist/components/data-view/index.d.mts +1 -2
- package/dist/components/data-view/index.mjs +3 -4
- package/dist/components/date-input/index.d.mts +0 -2
- package/dist/components/date-input/index.mjs +2 -3
- package/dist/components/date-picker/index.d.mts +0 -2
- package/dist/components/date-picker/index.mjs +3 -4
- package/dist/components/deferred-content/index.d.mts +1 -2
- package/dist/components/deferred-content/index.mjs +2 -3
- package/dist/components/descriptions/index.d.mts +1 -2
- package/dist/components/descriptions/index.mjs +2 -3
- package/dist/components/dialog/index.d.mts +31 -4
- package/dist/components/dialog/index.mjs +41 -10
- package/dist/components/dock/index.d.mts +1 -3
- package/dist/components/dock/index.mjs +1 -2
- package/dist/components/download-trigger/index.d.mts +0 -2
- package/dist/components/download-trigger/index.mjs +2 -3
- package/dist/components/drawer/index.d.mts +1 -2
- package/dist/components/drawer/index.mjs +3 -4
- package/dist/components/dynamic-input/index.d.mts +1 -2
- package/dist/components/dynamic-input/index.mjs +5 -6
- package/dist/components/editable/index.d.mts +1 -2
- package/dist/components/editable/index.mjs +3 -4
- package/dist/components/ellipsis/index.d.mts +1 -2
- package/dist/components/ellipsis/index.mjs +2 -3
- package/dist/components/empty/index.d.mts +1 -3
- package/dist/components/empty/index.mjs +1 -2
- package/dist/components/field/index.d.mts +1 -2
- package/dist/components/field/index.mjs +2 -3
- package/dist/components/fieldset/index.d.mts +1 -2
- package/dist/components/fieldset/index.mjs +2 -3
- package/dist/components/file-upload/index.d.mts +1 -2
- package/dist/components/file-upload/index.mjs +4 -9
- package/dist/components/float-button/index.d.mts +23 -3
- package/dist/components/float-button/index.mjs +30 -5
- package/dist/components/floating-panel/index.d.mts +1 -2
- package/dist/components/floating-panel/index.mjs +8 -4
- package/dist/components/focus-trap/index.d.mts +0 -2
- package/dist/components/focus-trap/index.mjs +2 -3
- package/dist/components/form/index.d.mts +0 -2
- package/dist/components/form/index.mjs +2 -3
- package/dist/components/format/index.d.mts +1 -3
- package/dist/components/format/index.mjs +1 -2
- package/dist/components/frame/index.d.mts +1 -3
- package/dist/components/frame/index.mjs +3 -4
- package/dist/components/grid/index.d.mts +1 -2
- package/dist/components/grid/index.mjs +2 -3
- package/dist/components/highlight/index.d.mts +1 -3
- package/dist/components/highlight/index.mjs +2 -3
- package/dist/components/hover-card/index.d.mts +1 -2
- package/dist/components/hover-card/index.mjs +2 -3
- package/dist/components/icon/index.d.mts +1 -2
- package/dist/components/icon/index.mjs +2 -3
- package/dist/components/image/index.d.mts +1 -2
- package/dist/components/image/index.mjs +3 -4
- package/dist/components/image-cropper/index.d.mts +1 -2
- package/dist/components/image-cropper/index.mjs +2 -3
- package/dist/components/image-viewer/index.d.mts +1 -1
- package/dist/components/image-viewer/index.mjs +1 -2
- package/dist/components/input/index.d.mts +1 -3
- package/dist/components/input/index.mjs +1 -2
- package/dist/components/input-group/index.d.mts +1 -3
- package/dist/components/input-group/index.mjs +1 -2
- package/dist/components/json-tree-view/index.d.mts +1 -2
- package/dist/components/json-tree-view/index.mjs +3 -4
- package/dist/components/kbd/index.d.mts +1 -2
- package/dist/components/kbd/index.mjs +2 -3
- package/dist/components/layout/index.d.mts +1 -2
- package/dist/components/layout/index.mjs +19 -15
- package/dist/components/link/index.d.mts +1 -2
- package/dist/components/link/index.mjs +2 -3
- package/dist/components/list/index.d.mts +1 -2
- package/dist/components/list/index.mjs +1 -2
- package/dist/components/listbox/index.d.mts +0 -2
- package/dist/components/listbox/index.mjs +3 -4
- package/dist/components/marquee/index.d.mts +1 -2
- package/dist/components/marquee/index.mjs +2 -3
- package/dist/components/masonry/index.d.mts +1 -2
- package/dist/components/masonry/index.mjs +2 -3
- package/dist/components/media-player/index.d.mts +1 -1
- package/dist/components/media-player/index.mjs +1 -2
- package/dist/components/mentions/index.d.mts +2 -2
- package/dist/components/mentions/index.mjs +1 -2
- package/dist/components/menu/index.d.mts +1 -2
- package/dist/components/menu/index.mjs +3 -4
- package/dist/components/menubar/index.d.mts +1 -2
- package/dist/components/menubar/index.mjs +2 -3
- package/dist/components/meter/index.d.mts +1 -3
- package/dist/components/meter/index.mjs +1 -2
- package/dist/components/navigation-menu/index.d.mts +1 -2
- package/dist/components/navigation-menu/index.mjs +2 -3
- package/dist/components/number-input/index.d.mts +1 -2
- package/dist/components/number-input/index.mjs +3 -4
- package/dist/components/order-list/index.d.mts +1 -2
- package/dist/components/order-list/index.mjs +4 -5
- package/dist/components/page-header/index.d.mts +1 -3
- package/dist/components/page-header/index.mjs +1 -2
- package/dist/components/pagination/index.d.mts +3 -4
- package/dist/components/pagination/index.mjs +3 -4
- package/dist/components/password-input/index.d.mts +1 -2
- package/dist/components/password-input/index.mjs +3 -4
- package/dist/components/pin-input/index.d.mts +1 -2
- package/dist/components/pin-input/index.mjs +2 -3
- package/dist/components/popconfirm/index.d.mts +2 -3
- package/dist/components/popconfirm/index.mjs +2 -3
- package/dist/components/popover/index.d.mts +1 -1
- package/dist/components/popover/index.mjs +3 -4
- package/dist/components/presence/index.d.mts +0 -2
- package/dist/components/presence/index.mjs +2 -3
- package/dist/components/progress/index.d.mts +1 -2
- package/dist/components/progress/index.mjs +2 -3
- package/dist/components/progress-group/index.d.mts +1 -2
- package/dist/components/progress-group/index.mjs +2 -3
- package/dist/components/qr-code/index.d.mts +1 -2
- package/dist/components/qr-code/index.mjs +2 -3
- package/dist/components/radio-group/index.d.mts +1 -2
- package/dist/components/radio-group/index.mjs +2 -3
- package/dist/components/rating-group/index.d.mts +1 -2
- package/dist/components/rating-group/index.mjs +3 -4
- package/dist/components/result/index.d.mts +1 -2
- package/dist/components/result/index.mjs +2 -3
- package/dist/components/scroll-area/index.d.mts +8 -3
- package/dist/components/scroll-area/index.mjs +7 -6
- package/dist/components/segment-group/index.d.mts +1 -2
- package/dist/components/segment-group/index.mjs +2 -3
- package/dist/components/select/index.d.mts +1 -1
- package/dist/components/select/index.mjs +1 -2
- package/dist/components/separator/index.d.mts +1 -2
- package/dist/components/separator/index.mjs +2 -3
- package/dist/components/signature-pad/index.d.mts +1 -2
- package/dist/components/signature-pad/index.mjs +3 -4
- package/dist/components/skeleton/index.d.mts +1 -2
- package/dist/components/skeleton/index.mjs +2 -3
- package/dist/components/slider/index.d.mts +1 -2
- package/dist/components/slider/index.mjs +2 -3
- package/dist/components/spinner/index.d.mts +1 -2
- package/dist/components/spinner/index.mjs +3 -4
- package/dist/components/split-button/index.d.mts +1 -2
- package/dist/components/split-button/index.mjs +4 -5
- package/dist/components/splitter/index.d.mts +1 -2
- package/dist/components/splitter/index.mjs +2 -3
- package/dist/components/spotlight/index.d.mts +1 -2
- package/dist/components/spotlight/index.mjs +2 -3
- package/dist/components/stack/index.d.mts +1 -2
- package/dist/components/stack/index.mjs +2 -3
- package/dist/components/stat/index.d.mts +1 -3
- package/dist/components/stat/index.mjs +1 -2
- package/dist/components/steps/index.d.mts +0 -2
- package/dist/components/steps/index.mjs +2 -3
- package/dist/components/swap/index.d.mts +1 -2
- package/dist/components/swap/index.mjs +3 -4
- package/dist/components/switch/index.d.mts +1 -2
- package/dist/components/switch/index.mjs +2 -3
- package/dist/components/table/index.d.mts +0 -2
- package/dist/components/table/index.mjs +5 -6
- package/dist/components/tabs/index.d.mts +9 -3
- package/dist/components/tabs/index.mjs +36 -8
- package/dist/components/tag/index.d.mts +1 -2
- package/dist/components/tag/index.mjs +3 -4
- package/dist/components/tags-input/index.d.mts +1 -2
- package/dist/components/tags-input/index.mjs +3 -4
- package/dist/components/terminal/index.d.mts +4 -3
- package/dist/components/terminal/index.mjs +8 -7
- package/dist/components/textarea/index.d.mts +1 -2
- package/dist/components/textarea/index.mjs +2 -3
- package/dist/components/timeline/index.d.mts +1 -2
- package/dist/components/timeline/index.mjs +1 -2
- package/dist/components/timer/index.d.mts +1 -2
- package/dist/components/timer/index.mjs +2 -3
- package/dist/components/toast/index.d.mts +0 -2
- package/dist/components/toast/index.mjs +18 -6
- package/dist/components/toc/index.d.mts +1 -2
- package/dist/components/toc/index.mjs +2 -3
- package/dist/components/toggle/index.d.mts +1 -2
- package/dist/components/toggle/index.mjs +2 -3
- package/dist/components/toggle-group/index.d.mts +1 -2
- package/dist/components/toggle-group/index.mjs +3 -4
- package/dist/components/toolbar/index.d.mts +1 -2
- package/dist/components/toolbar/index.mjs +2 -3
- package/dist/components/tooltip/index.d.mts +1 -2
- package/dist/components/tooltip/index.mjs +2 -3
- package/dist/components/tour/index.d.mts +0 -2
- package/dist/components/tour/index.mjs +2 -3
- package/dist/components/transfer/index.d.mts +1 -2
- package/dist/components/transfer/index.mjs +5 -6
- package/dist/components/tree-select/index.d.mts +2 -3
- package/dist/components/tree-select/index.mjs +5 -6
- package/dist/components/tree-view/index.d.mts +15 -5
- package/dist/components/tree-view/index.mjs +30 -12
- package/dist/components/typography/index.d.mts +1 -3
- package/dist/components/typography/index.mjs +1 -2
- package/dist/components/user/index.d.mts +1 -2
- package/dist/components/user/index.mjs +2 -3
- package/dist/components/virtual-list/index.d.mts +1 -2
- package/dist/components/virtual-list/index.mjs +2 -3
- package/dist/components/watermark/index.d.mts +1 -2
- package/dist/components/watermark/index.mjs +2 -3
- package/dist/{family-DE_GQeeM.mjs → family-Co1YsN4N.mjs} +1 -2
- package/dist/generative/index.d.mts +0 -2
- package/dist/generative/index.mjs +146 -106
- package/dist/{icon-Cri0-7-x.mjs → icon-C9udWCyz.mjs} +1 -2
- package/dist/{id-C37UYLwJ.mjs → id-Ctic_3o8.mjs} +1 -2
- package/dist/{image-viewer-D4FuYrk6.mjs → image-viewer-BYiXpi1X.mjs} +21 -26
- package/dist/{index-Eu-Bttta.d.mts → index-BVdkcSSY.d.mts} +0 -2
- package/dist/index-CjO4Ggf0.d.mts +115 -0
- package/dist/{index-Dj8S4eyJ.d.mts → index-D4C52fI7.d.mts} +0 -4
- package/dist/{index-BcRdWGY-.d.mts → index-DIZEFqJM.d.mts} +0 -8
- package/dist/{index-Bbg4heDO.d.mts → index-DcpvCyt6.d.mts} +63 -18
- package/dist/{index-D_iKc2Uw.d.mts → index-DczfbPCg.d.mts} +0 -4
- package/dist/index-lCsvE2Vl.d.mts +37 -0
- package/dist/index.d.mts +14 -14
- package/dist/index.mjs +10 -10
- package/dist/{input-BDpQ0e6G.mjs → input-YRjehBhU.mjs} +3 -5
- package/dist/{media-player-C0WcjVI-.mjs → media-player-CO2Cczl-.mjs} +7 -12
- package/dist/mentions-De7ChJbl.mjs +335 -0
- package/dist/{messages-1jJWtaYU.mjs → messages-B6n0lVyt.mjs} +1 -2
- package/dist/{select-D_soVdWK.mjs → select-DQ5669_K.mjs} +4 -6
- package/package.json +17 -17
- package/dist/index-B4twHAQC.d.mts +0 -10456
- package/dist/mentions-BwnyvdXz.mjs +0 -213
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { FocusTrapBaseProps, FocusTrapProps } from "@ark-ui/react/focus-trap";
|
|
2
|
-
//#region src/components/focus-trap/index.d.ts
|
|
3
2
|
export declare const FocusTrap: import("react").ForwardRefExoticComponent<import("@ark-ui/react/focus-trap").FocusTrapProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
4
3
|
Root: import("react").ForwardRefExoticComponent<import("@ark-ui/react/focus-trap").FocusTrapProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
4
|
};
|
|
6
|
-
//#endregion
|
|
7
5
|
export type { FocusTrapBaseProps, FocusTrapProps };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { t as withSelfRoot } from "../../family-
|
|
1
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
2
2
|
import { FocusTrap as FocusTrap$1 } from "@ark-ui/react/focus-trap";
|
|
3
|
-
|
|
3
|
+
// src/components/focus-trap/index.tsx
|
|
4
4
|
const FocusTrap = withSelfRoot(FocusTrap$1);
|
|
5
|
-
//#endregion
|
|
6
5
|
export { FocusTrap };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentType, HTMLAttributes, ReactNode } from "react";
|
|
2
2
|
import { FieldApi, FormApi, useField, useForm } from "@tanstack/react-form";
|
|
3
|
-
//#region src/components/form/index.d.ts
|
|
4
3
|
/** The seam this family passes the engine through — the members the
|
|
5
4
|
* components drive, with the engine's field-name generics opened to
|
|
6
5
|
* `any`. The engine ships no "any form" alias: its loosest, `FormLikeAPI`,
|
|
@@ -44,5 +43,4 @@ declare function FormFieldImpl({ form: formProp, name, label, hint, required, in
|
|
|
44
43
|
export declare const FormField: typeof FormFieldImpl & {
|
|
45
44
|
Root: typeof FormFieldImpl;
|
|
46
45
|
};
|
|
47
|
-
//#endregion
|
|
48
46
|
export { type FieldApi, type FormApi, useField, useForm };
|
|
@@ -1,10 +1,10 @@
|
|
|
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 { createContext, useContext } from "react";
|
|
5
5
|
import { Field } from "@ark-ui/react/field";
|
|
6
6
|
import { useField, useForm } from "@tanstack/react-form";
|
|
7
|
-
|
|
7
|
+
// src/components/form/index.tsx
|
|
8
8
|
const FormContext = createContext(null);
|
|
9
9
|
/** A validator's complaint is a string or a Standard Schema issue; both
|
|
10
10
|
* reduce to the sentence the field shows. */
|
|
@@ -66,5 +66,4 @@ function FormFieldImpl({ form: formProp, name, label, hint, required = false, in
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
const FormField = withSelfRoot(FormFieldImpl);
|
|
69
|
-
//#endregion
|
|
70
69
|
export { Form, FormField, useField, useForm };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { Format as Format$1 } from "@ark-ui/react/format";
|
|
2
|
-
//#region src/components/format/index.d.ts
|
|
3
2
|
/** Ark's Format, dressed in the paper-and-ink system: Intl formatting for
|
|
4
3
|
* numbers, currency, bytes and relative time. The components render bare
|
|
5
4
|
* text with no DOM of their own — typography flows from the token layer,
|
|
6
5
|
* so there is no component stylesheet. The API is Ark's own — Number,
|
|
7
6
|
* Byte, Time, RelativeTime. */
|
|
8
|
-
export declare const Format: typeof Format$1;
|
|
9
|
-
//#endregion
|
|
7
|
+
export declare const Format: typeof Format$1;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Format as Format$1 } from "@ark-ui/react/format";
|
|
2
|
-
|
|
2
|
+
// src/components/format/index.tsx
|
|
3
3
|
/** Ark's Format, dressed in the paper-and-ink system: Intl formatting for
|
|
4
4
|
* numbers, currency, bytes and relative time. The components render bare
|
|
5
5
|
* text with no DOM of their own — typography flows from the token layer,
|
|
6
6
|
* so there is no component stylesheet. The API is Ark's own — Number,
|
|
7
7
|
* Byte, Time, RelativeTime. */
|
|
8
8
|
const Format = Format$1;
|
|
9
|
-
//#endregion
|
|
10
9
|
export { Format };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { FrameProps } from "@ark-ui/react/frame";
|
|
2
|
-
//#region src/components/frame/index.d.ts
|
|
3
2
|
export declare const Frame: import("react").ForwardRefExoticComponent<FrameProps & import("react").RefAttributes<HTMLIFrameElement>> & {
|
|
4
3
|
Root: import("react").ForwardRefExoticComponent<FrameProps & import("react").RefAttributes<HTMLIFrameElement>>;
|
|
5
|
-
};
|
|
6
|
-
//#endregion
|
|
4
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as useElementId } from "../../id-
|
|
2
|
-
import { t as withSelfRoot } from "../../family-
|
|
1
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
2
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
5
|
import { Frame as Frame$1 } from "@ark-ui/react/frame";
|
|
6
|
-
|
|
6
|
+
// src/components/frame/index.tsx
|
|
7
7
|
/** Ark's Frame, dressed in the paper-and-ink system: a sandboxed
|
|
8
8
|
* iframe whose body teleports the children and whose `head` prop
|
|
9
9
|
* carries extra <head> nodes — styles the child renders must travel
|
|
@@ -20,5 +20,4 @@ const FrameRoot = forwardRef(function FrameRoot(props, ref) {
|
|
|
20
20
|
});
|
|
21
21
|
});
|
|
22
22
|
const Frame = withSelfRoot(FrameRoot);
|
|
23
|
-
//#endregion
|
|
24
23
|
export { Frame };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/grid/index.d.ts
|
|
3
2
|
/** An alignment lattice: tracks of equal measure, sized by column count
|
|
4
3
|
* — or, with `minChildWidth`, as many tracks as the container fits. */
|
|
5
4
|
export interface GridProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -13,4 +12,4 @@ declare function GridImpl({ columns, gap, minChildWidth, ...rest }: GridProps):
|
|
|
13
12
|
export declare const Grid: typeof GridImpl & {
|
|
14
13
|
Root: typeof GridImpl;
|
|
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/grid/index.tsx
|
|
5
5
|
/** The same named steps of the space ramp the stack uses — one
|
|
6
6
|
* vocabulary of distance across the layout primitives. */
|
|
7
7
|
const gapVars = {
|
|
@@ -29,5 +29,4 @@ function GridImpl({ columns = 12, gap = "md", minChildWidth, ...rest }) {
|
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
const Grid = withSelfRoot(GridImpl);
|
|
32
|
-
//#endregion
|
|
33
32
|
export { Grid };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
//#region src/components/highlight/index.d.ts
|
|
2
1
|
export declare const Highlight: ((props: import("@ark-ui/react/highlight").HighlightProps) => import("react").JSX.Element) & {
|
|
3
2
|
Root: (props: import("@ark-ui/react/highlight").HighlightProps) => import("react").JSX.Element;
|
|
4
|
-
};
|
|
5
|
-
//#endregion
|
|
3
|
+
};
|
|
@@ -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 { Highlight as Highlight$1 } from "@ark-ui/react/highlight";
|
|
5
|
-
|
|
5
|
+
// src/components/highlight/index.tsx
|
|
6
6
|
/** Ark's Highlight, dressed in the paper-and-ink system: query hits are
|
|
7
7
|
* strokes of pigment on the page — a quiet tint of the accent behind the
|
|
8
8
|
* ink, never neon. The component renders bare <mark> elements, so the
|
|
@@ -12,5 +12,4 @@ function HighlightRoot(props) {
|
|
|
12
12
|
}
|
|
13
13
|
const Highlight = withSelfRoot(HighlightRoot);
|
|
14
14
|
injectComponentStyle("highlight");
|
|
15
|
-
//#endregion
|
|
16
15
|
export { Highlight };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { HoverCard as HoverCard$1 } from "@ark-ui/react/hover-card";
|
|
3
|
-
//#region src/components/hover-card/index.d.ts
|
|
4
3
|
type HoverCardPlacement = "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
|
|
5
4
|
export interface HoverCardFacadeProps {
|
|
6
5
|
open?: boolean;
|
|
@@ -20,4 +19,4 @@ declare namespace HoverCardFacade {
|
|
|
20
19
|
}
|
|
21
20
|
type HoverCardParts = typeof HoverCard$1;
|
|
22
21
|
export declare const HoverCard: typeof HoverCardFacade & HoverCardParts;
|
|
23
|
-
|
|
22
|
+
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 { HoverCard as HoverCard$1 } from "@ark-ui/react/hover-card";
|
|
5
|
-
|
|
5
|
+
// src/components/hover-card/index.tsx
|
|
6
6
|
/** Ark's HoverCard, dressed in the paper-and-ink system: a preview card
|
|
7
7
|
* that dissolves in over a quiet inline link, never stealing focus. The
|
|
8
8
|
* API is Ark's own — Root, Trigger, Positioner, Content, Arrow, ArrowTip. */
|
|
@@ -37,5 +37,4 @@ const HoverCard = Object.assign(HoverCardFacade, {
|
|
|
37
37
|
Root: HoverCardRoot
|
|
38
38
|
});
|
|
39
39
|
injectComponentStyle("hover-card");
|
|
40
|
-
//#endregion
|
|
41
40
|
export { HoverCard };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IconifyIcon } from "@bysages/core/icons";
|
|
2
2
|
import { HTMLAttributes } from "react";
|
|
3
|
-
//#region src/components/icon/index.d.ts
|
|
4
3
|
/** The inkwell: a standard box that keeps any inline svg at its optical
|
|
5
4
|
* measure and in the text's own ink — the icon carries no pigment and no
|
|
6
5
|
* size of its own. Bring an `@bysages/icons` export or any other
|
|
@@ -23,4 +22,4 @@ declare function IconImpl({ size, label, glyph, name, children, ...rest }: IconP
|
|
|
23
22
|
export declare const Icon: typeof IconImpl & {
|
|
24
23
|
Root: typeof IconImpl;
|
|
25
24
|
};
|
|
26
|
-
|
|
25
|
+
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 { getIcon } from "@bysages/core/icons";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/icon/index.tsx
|
|
6
6
|
function IconImpl({ size = "inherit", label, glyph, name, children, ...rest }) {
|
|
7
7
|
injectComponentStyle("icon");
|
|
8
8
|
const resolved = glyph ?? (name && children == null ? getIcon(name) : void 0);
|
|
@@ -24,5 +24,4 @@ function IconImpl({ size = "inherit", label, glyph, name, children, ...rest }) {
|
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
const Icon = withSelfRoot(IconImpl);
|
|
27
|
-
//#endregion
|
|
28
27
|
export { Icon };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
//#region src/components/image/index.d.ts
|
|
3
2
|
/** A framed picture: while the source loads, the frame keeps the
|
|
4
3
|
* skeleton's breath; the picture dissolves in when it lands; a broken
|
|
5
4
|
* source leaves the `fallback` — or the placeholder icon when the
|
|
@@ -23,4 +22,4 @@ declare function ImageImpl({ src, alt, fit, loading, width, height, fallback, ..
|
|
|
23
22
|
export declare const Image: typeof ImageImpl & {
|
|
24
23
|
Root: typeof ImageImpl;
|
|
25
24
|
};
|
|
26
|
-
|
|
25
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as iconNode } from "../../icon-
|
|
2
|
-
import { t as withSelfRoot } from "../../family-
|
|
1
|
+
import { r as iconNode } from "../../icon-C9udWCyz.mjs";
|
|
2
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { useEffect, useRef, useState } from "react";
|
|
6
|
-
|
|
6
|
+
// src/components/image/index.tsx
|
|
7
7
|
const placeholderIcon = iconNode("image");
|
|
8
8
|
function ImageImpl({ src, alt = "", fit = "cover", loading = "lazy", width, height, fallback, ...rest }) {
|
|
9
9
|
injectComponentStyle("image");
|
|
@@ -40,5 +40,4 @@ function ImageImpl({ src, alt = "", fit = "cover", loading = "lazy", width, heig
|
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
const Image = withSelfRoot(ImageImpl);
|
|
43
|
-
//#endregion
|
|
44
43
|
export { Image };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
import { ImageCropper as ImageCropper$1 } from "@ark-ui/react/image-cropper";
|
|
3
|
-
//#region src/components/image-cropper/index.d.ts
|
|
4
3
|
/** ImageCropper, dressed in the paper-and-ink system: a rounded vessel
|
|
5
4
|
* holding the photograph, one lit selection window framed by light hairlines.
|
|
6
5
|
* The API is Ark's own — Root, Viewport, Image, Selection, Handle, Grid,
|
|
@@ -16,4 +15,4 @@ declare function ImageCropperFacade({ src, alt }: ImageCropperFacadeProps): impo
|
|
|
16
15
|
export declare const ImageCropper: typeof ImageCropperFacade & typeof ImageCropper$1 & {
|
|
17
16
|
Root: typeof ImageCropperRoot;
|
|
18
17
|
};
|
|
19
|
-
|
|
18
|
+
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 { ImageCropper as ImageCropper$1 } from "@ark-ui/react/image-cropper";
|
|
5
|
-
|
|
5
|
+
// src/components/image-cropper/index.tsx
|
|
6
6
|
/** ImageCropper, dressed in the paper-and-ink system: a rounded vessel
|
|
7
7
|
* holding the photograph, one lit selection window framed by light hairlines.
|
|
8
8
|
* The API is Ark's own — Root, Viewport, Image, Selection, Handle, Grid,
|
|
@@ -39,5 +39,4 @@ const ImageCropper = Object.assign(ImageCropperFacade, {
|
|
|
39
39
|
Root: ImageCropperRoot
|
|
40
40
|
});
|
|
41
41
|
injectComponentStyle("image-cropper");
|
|
42
|
-
//#endregion
|
|
43
42
|
export { ImageCropper };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ImageViewerProps, t as ImageViewer } from "../../index-
|
|
1
|
+
import { n as ImageViewerProps, t as ImageViewer } from "../../index-D4C52fI7.mjs";
|
|
2
2
|
export { ImageViewer, ImageViewerProps };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/input/index.d.ts
|
|
3
2
|
/** The bare text input: the field recipe — border, surface, focus halo —
|
|
4
3
|
* on a native control. Standing alone it styles itself from the `invalid`
|
|
5
4
|
* prop; inside a `Field.Root` it consumes the field context, picking up
|
|
@@ -17,5 +16,4 @@ export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
|
17
16
|
}
|
|
18
17
|
export declare const Input: import("react").ForwardRefExoticComponent<InputProps & import("react").RefAttributes<HTMLInputElement>> & {
|
|
19
18
|
Root: import("react").ForwardRefExoticComponent<InputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
20
|
-
};
|
|
21
|
-
//#endregion
|
|
19
|
+
};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Input };
|
|
1
|
+
export { t as Input } from "../../input-YRjehBhU.mjs";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/input-group/index.d.ts
|
|
3
2
|
export type InputGroupPartProps = HTMLAttributes<HTMLDivElement>;
|
|
4
3
|
export declare const InputGroup: {
|
|
5
4
|
({ children, ...rest }: InputGroupPartProps): import("react").JSX.Element;
|
|
@@ -13,5 +12,4 @@ export declare const InputGroup: {
|
|
|
13
12
|
({ children, ...rest }: InputGroupPartProps): import("react").JSX.Element;
|
|
14
13
|
displayName: string;
|
|
15
14
|
};
|
|
16
|
-
};
|
|
17
|
-
//#endregion
|
|
15
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/input-group/index.tsx
|
|
4
4
|
function part(name) {
|
|
5
5
|
const Component = ({ children, ...rest }) => /* @__PURE__ */ jsx("div", {
|
|
6
6
|
...rest,
|
|
@@ -27,5 +27,4 @@ const InputGroup = Object.assign(Root, {
|
|
|
27
27
|
Addon
|
|
28
28
|
});
|
|
29
29
|
injectComponentStyle("input-group");
|
|
30
|
-
//#endregion
|
|
31
30
|
export { InputGroup };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
import { JsonTreeView as JsonTreeView$1 } from "@ark-ui/react/json-tree-view";
|
|
3
|
-
//#region src/components/json-tree-view/index.d.ts
|
|
4
3
|
/** The auto-rendered tree hands every branch its chevron from the
|
|
5
4
|
* `arrow` element — filled with the house icon unless the consumer
|
|
6
5
|
* draws their own, so a JSON tree never opens as a bare indent. */
|
|
@@ -20,4 +19,4 @@ export declare const JsonTreeView: typeof JsonTreeViewFacade & {
|
|
|
20
19
|
Tree: typeof JsonTreeViewTree;
|
|
21
20
|
RootProvider: import("react").ForwardRefExoticComponent<JsonTreeView$1.RootProviderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
22
21
|
};
|
|
23
|
-
|
|
22
|
+
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 { JsonTreeView as JsonTreeView$1 } from "@ark-ui/react/json-tree-view";
|
|
6
|
-
|
|
6
|
+
// src/components/json-tree-view/index.tsx
|
|
7
7
|
/** The auto-rendered tree hands every branch its chevron from the
|
|
8
8
|
* `arrow` element — filled with the house icon unless the consumer
|
|
9
9
|
* draws their own, so a JSON tree never opens as a bare indent. */
|
|
@@ -40,5 +40,4 @@ const JsonTreeView = Object.assign(JsonTreeViewFacade, {
|
|
|
40
40
|
Tree: JsonTreeViewTree
|
|
41
41
|
});
|
|
42
42
|
injectComponentStyle("json-tree-view");
|
|
43
|
-
//#endregion
|
|
44
43
|
export { JsonTreeView };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/kbd/index.d.ts
|
|
3
2
|
/** A keycap in miniature, riding the type it annotates. */
|
|
4
3
|
export type KbdProps = HTMLAttributes<HTMLElement>;
|
|
5
4
|
declare function KbdImpl({ children, ...rest }: KbdProps): import("react").JSX.Element;
|
|
6
5
|
export declare const Kbd: typeof KbdImpl & {
|
|
7
6
|
Root: typeof KbdImpl;
|
|
8
7
|
};
|
|
9
|
-
|
|
8
|
+
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/kbd/index.tsx
|
|
5
5
|
function KbdImpl({ children, ...rest }) {
|
|
6
6
|
injectComponentStyle("kbd");
|
|
7
7
|
return /* @__PURE__ */ jsx("kbd", {
|
|
@@ -12,5 +12,4 @@ function KbdImpl({ children, ...rest }) {
|
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
14
|
const Kbd = withSelfRoot(KbdImpl);
|
|
15
|
-
//#endregion
|
|
16
15
|
export { Kbd };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Dispatch, HTMLAttributes, ReactNode, SetStateAction } from "react";
|
|
2
|
-
//#region src/components/layout/index.d.ts
|
|
3
2
|
/** Declare which edge the skeleton reserves for its sider — without
|
|
4
3
|
* it the root is a single column. */
|
|
5
4
|
export interface LayoutRootProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -78,4 +77,4 @@ export declare const Layout: typeof Root & {
|
|
|
78
77
|
displayName: string;
|
|
79
78
|
};
|
|
80
79
|
};
|
|
81
|
-
|
|
80
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as useComponentMessages } from "../../messages-
|
|
1
|
+
import { n as useComponentMessages } from "../../messages-B6n0lVyt.mjs";
|
|
2
2
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { createContext, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
5
5
|
import { Splitter } from "@ark-ui/react/splitter";
|
|
6
|
-
|
|
6
|
+
// src/components/layout/index.tsx
|
|
7
7
|
const LAYOUT_CONTEXT = createContext(null);
|
|
8
8
|
/** One step of Ark's keyboard resize, converted to a splitter percentage
|
|
9
9
|
* at render time so the public behavior remains a 16px move. */
|
|
@@ -113,7 +113,7 @@ function region(name, tag) {
|
|
|
113
113
|
const Tag = tag;
|
|
114
114
|
const Component = ({ children, ...rest }) => {
|
|
115
115
|
const layout = useContext(LAYOUT_CONTEXT);
|
|
116
|
-
const splitPanel = name === "Content" && !!layout?.siderPlacement() && !!layout.getSiderState()?.resizable
|
|
116
|
+
const splitPanel = name === "Content" && !!layout?.siderPlacement() && !!layout.getSiderState()?.resizable;
|
|
117
117
|
return /* @__PURE__ */ jsx(Tag, {
|
|
118
118
|
...rest,
|
|
119
119
|
"data-scope": "layout",
|
|
@@ -141,24 +141,28 @@ function Sider({ collapsed = false, width: widthProp, collapsedWidth = "3.5rem",
|
|
|
141
141
|
const [innerWidth, setInnerWidth] = useState(widthProp ?? "16rem");
|
|
142
142
|
const width = widthProp !== void 0 ? widthProp : innerWidth;
|
|
143
143
|
useEffect(() => {
|
|
144
|
+
const railWidth = collapsed ? collapsedWidth : width;
|
|
145
|
+
const railMin = collapsed ? collapsedWidth : minWidth;
|
|
146
|
+
const railMax = collapsed ? collapsedWidth : maxWidth;
|
|
144
147
|
layout?.setSiderState((previous) => previous ? {
|
|
145
148
|
...previous,
|
|
146
149
|
resizable,
|
|
147
150
|
collapsed,
|
|
148
|
-
width,
|
|
149
|
-
minWidth,
|
|
150
|
-
maxWidth
|
|
151
|
+
width: railWidth,
|
|
152
|
+
minWidth: railMin,
|
|
153
|
+
maxWidth: railMax
|
|
151
154
|
} : {
|
|
152
155
|
resizable,
|
|
153
156
|
collapsed,
|
|
154
|
-
width,
|
|
155
|
-
minWidth,
|
|
156
|
-
maxWidth
|
|
157
|
+
width: railWidth,
|
|
158
|
+
minWidth: railMin,
|
|
159
|
+
maxWidth: railMax
|
|
157
160
|
});
|
|
158
161
|
}, [
|
|
159
162
|
layout,
|
|
160
163
|
resizable,
|
|
161
164
|
collapsed,
|
|
165
|
+
collapsedWidth,
|
|
162
166
|
width,
|
|
163
167
|
minWidth,
|
|
164
168
|
maxWidth
|
|
@@ -194,12 +198,13 @@ function Sider({ collapsed = false, width: widthProp, collapsedWidth = "3.5rem",
|
|
|
194
198
|
});
|
|
195
199
|
}, [layout, onWidthChange]);
|
|
196
200
|
const contents = typeof children === "function" ? children({ collapsed }) : children;
|
|
197
|
-
const
|
|
201
|
+
const resizeTrigger = active ? /* @__PURE__ */ jsx(Splitter.ResizeTrigger, {
|
|
202
|
+
id: layout?.siderPlacement() === "end" ? "flow:sider" : "sider:flow",
|
|
203
|
+
"aria-label": messages.sidebar.resize
|
|
204
|
+
}) : null;
|
|
205
|
+
const body = resizable && layout ? /* @__PURE__ */ jsxs(Splitter.Panel, {
|
|
198
206
|
id: "sider",
|
|
199
|
-
children: [contents,
|
|
200
|
-
id: layout?.siderPlacement() === "end" ? "flow:sider" : "sider:flow",
|
|
201
|
-
"aria-label": messages.sidebar.resize
|
|
202
|
-
})]
|
|
207
|
+
children: [contents, resizeTrigger]
|
|
203
208
|
}) : contents;
|
|
204
209
|
return /* @__PURE__ */ jsx("aside", {
|
|
205
210
|
...rest,
|
|
@@ -225,5 +230,4 @@ const Layout = Object.assign(Root, {
|
|
|
225
230
|
Footer
|
|
226
231
|
});
|
|
227
232
|
injectComponentStyle("layout");
|
|
228
|
-
//#endregion
|
|
229
233
|
export { Layout };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AnchorHTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/link/index.d.ts
|
|
3
2
|
export interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
4
3
|
underline?: "always" | "hover" | "none";
|
|
5
4
|
}
|
|
@@ -10,4 +9,4 @@ declare function LinkImpl({ underline, children, ...rest }: LinkProps): import("
|
|
|
10
9
|
export declare const Link: typeof LinkImpl & {
|
|
11
10
|
Root: typeof LinkImpl;
|
|
12
11
|
};
|
|
13
|
-
|
|
12
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as withSelfRoot } from "../../family-
|
|
1
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
2
2
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/link/index.tsx
|
|
5
5
|
/** A link is ink in the accent's voice: quiet at rest, deepening under
|
|
6
6
|
* the hand, the halo at focus. The underline follows the prose —
|
|
7
7
|
* always, on hover, or never. */
|
|
@@ -16,5 +16,4 @@ function LinkImpl({ underline = "hover", children, ...rest }) {
|
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
const Link = withSelfRoot(LinkImpl);
|
|
19
|
-
//#endregion
|
|
20
19
|
export { Link };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
//#region src/components/list/index.d.ts
|
|
3
2
|
export interface ListRootProps extends HTMLAttributes<HTMLUListElement> {
|
|
4
3
|
/** One hairline between rows. */
|
|
5
4
|
bordered?: boolean;
|
|
@@ -37,4 +36,4 @@ export declare const List: typeof Root & {
|
|
|
37
36
|
displayName: string;
|
|
38
37
|
};
|
|
39
38
|
};
|
|
40
|
-
|
|
39
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/list/index.tsx
|
|
4
4
|
/** A ledger of rows: Root is the list, Item one row, Leading the mark
|
|
5
5
|
* before the words, Content the title and its quiet echo, Actions the
|
|
6
6
|
* way out. The bordered variant draws the hairlines; the hoverable
|
|
@@ -71,5 +71,4 @@ const List = Object.assign(Root, {
|
|
|
71
71
|
Actions
|
|
72
72
|
});
|
|
73
73
|
injectComponentStyle("list");
|
|
74
|
-
//#endregion
|
|
75
74
|
export { List };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from "react";
|
|
2
2
|
import { CollectionItem } from "@ark-ui/react/collection";
|
|
3
3
|
import { Listbox as Listbox$1, ListboxRootComponentProps, createListCollection } from "@ark-ui/react/listbox";
|
|
4
|
-
//#region src/components/listbox/index.d.ts
|
|
5
4
|
/** Ark's Listbox, dressed in the paper-and-ink system: quiet rows of ink
|
|
6
5
|
* where the checked row alone takes the flat primary fill. The API is
|
|
7
6
|
* Ark's own — Root, Label, Input, Content, Empty, Item, ItemText,
|
|
@@ -35,5 +34,4 @@ declare function ListboxFacade(props: ListboxFacadeProps): import("react").JSX.E
|
|
|
35
34
|
export declare const Listbox: typeof ListboxFacade & Omit<typeof Listbox$1, "Root"> & {
|
|
36
35
|
Root: typeof ListboxRoot;
|
|
37
36
|
};
|
|
38
|
-
//#endregion
|
|
39
37
|
export { createListCollection };
|
|
@@ -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 { Listbox as Listbox$1, createListCollection } from "@ark-ui/react/listbox";
|
|
6
|
-
|
|
6
|
+
// src/components/listbox/index.tsx
|
|
7
7
|
function ListboxRoot(props) {
|
|
8
8
|
injectComponentStyle("listbox");
|
|
9
9
|
const id = useElementId("listbox", props);
|
|
@@ -46,5 +46,4 @@ const Listbox = Object.assign(ListboxFacade, {
|
|
|
46
46
|
...Listbox$1,
|
|
47
47
|
Root: ListboxRoot
|
|
48
48
|
});
|
|
49
|
-
//#endregion
|
|
50
49
|
export { Listbox, createListCollection };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ComponentProps } from "react";
|
|
2
2
|
import { Marquee as Marquee$1 } from "@ark-ui/react/marquee";
|
|
3
|
-
//#region src/components/marquee/index.d.ts
|
|
4
3
|
/** Ark's Marquee, dressed in the paper-and-ink system: a linear ribbon of
|
|
5
4
|
* seal-cut chips that dissolves into the paper at its edges rather than
|
|
6
5
|
* cutting off. The API is Ark's own — Root, Viewport, Content, Edge, Item. */
|
|
@@ -21,4 +20,4 @@ declare function MarqueeFacade(props: MarqueeFacadeProps): import("react").JSX.E
|
|
|
21
20
|
export declare const Marquee: typeof MarqueeFacade & Omit<typeof Marquee$1, "Root"> & {
|
|
22
21
|
Root: typeof MarqueeRoot;
|
|
23
22
|
};
|
|
24
|
-
|
|
23
|
+
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 { Marquee as Marquee$1 } from "@ark-ui/react/marquee";
|
|
5
|
-
|
|
5
|
+
// src/components/marquee/index.tsx
|
|
6
6
|
/** Ark's Marquee, dressed in the paper-and-ink system: a linear ribbon of
|
|
7
7
|
* seal-cut chips that dissolves into the paper at its edges rather than
|
|
8
8
|
* cutting off. The API is Ark's own — Root, Viewport, Content, Edge, Item. */
|
|
@@ -38,5 +38,4 @@ const Marquee = Object.assign(MarqueeFacade, {
|
|
|
38
38
|
...Marquee$1,
|
|
39
39
|
Root: MarqueeRoot
|
|
40
40
|
});
|
|
41
|
-
//#endregion
|
|
42
41
|
export { Marquee };
|