@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,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 { AngleSlider as AngleSlider$1 } from "@ark-ui/react/angle-slider";
|
|
5
|
-
|
|
5
|
+
// src/components/angle-slider/index.tsx
|
|
6
6
|
function AngleSliderRoot(props) {
|
|
7
7
|
const id = useElementId("angle-slider", props);
|
|
8
8
|
const { size = "md", ...rest } = props;
|
|
@@ -40,5 +40,4 @@ const AngleSlider = Object.assign(AngleSliderFacade, {
|
|
|
40
40
|
Root: AngleSliderRoot
|
|
41
41
|
});
|
|
42
42
|
injectComponentStyle("angle-slider");
|
|
43
|
-
//#endregion
|
|
44
43
|
export { AngleSlider };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/aspect-ratio/index.d.ts
|
|
3
2
|
/** A frame that keeps its shape: the box holds the given ratio whatever
|
|
4
3
|
* the width it is dealt, and the child fills the frame it is given. */
|
|
5
4
|
export interface AspectRatioProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -10,4 +9,4 @@ declare function AspectRatioImpl({ ratio, ...rest }: AspectRatioProps): import("
|
|
|
10
9
|
export declare const AspectRatio: typeof AspectRatioImpl & {
|
|
11
10
|
Root: typeof AspectRatioImpl;
|
|
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/aspect-ratio/index.tsx
|
|
5
5
|
function AspectRatioImpl({ ratio = "1 / 1", ...rest }) {
|
|
6
6
|
injectComponentStyle("aspect-ratio");
|
|
7
7
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -15,5 +15,4 @@ function AspectRatioImpl({ ratio = "1 / 1", ...rest }) {
|
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
const AspectRatio = withSelfRoot(AspectRatioImpl);
|
|
18
|
-
//#endregion
|
|
19
18
|
export { AspectRatio };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Combobox } from "../combobox/index.mjs";
|
|
2
2
|
import { HTMLAttributes } from "react";
|
|
3
|
-
//#region src/components/autocomplete/index.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Free text with suggestions: the reader types anything, the list
|
|
6
5
|
* narrows to help, and both a pick and a custom value end up in the
|
|
@@ -20,4 +19,4 @@ export interface AutoCompleteProps extends Omit<HTMLAttributes<HTMLDivElement>,
|
|
|
20
19
|
}
|
|
21
20
|
declare function AutoCompleteImpl({ value, items, placeholder, filter, size, onValueChange, ...rest }: AutoCompleteProps): import("react").JSX.Element;
|
|
22
21
|
export declare const AutoComplete: typeof AutoCompleteImpl & typeof Combobox;
|
|
23
|
-
|
|
22
|
+
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 { Combobox as Combobox$1 } from "../combobox/index.mjs";
|
|
4
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -7,7 +7,7 @@ import { useEffect, useRef } from "react";
|
|
|
7
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
|
+
// src/components/autocomplete/index.tsx
|
|
11
11
|
function AutoCompleteImpl({ value = "", items = [], placeholder, filter, size = "md", onValueChange, ...rest }) {
|
|
12
12
|
injectComponentStyle("combobox");
|
|
13
13
|
const messages = useComponentMessages();
|
|
@@ -45,5 +45,4 @@ function AutoCompleteImpl({ value = "", items = [], placeholder, filter, size =
|
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
const AutoComplete = Object.assign(AutoCompleteImpl, Combobox$1);
|
|
48
|
-
//#endregion
|
|
49
48
|
export { AutoComplete };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
import { Avatar as Avatar$1 } from "@ark-ui/react/avatar";
|
|
3
|
-
//#region src/components/avatar/index.d.ts
|
|
4
3
|
/** Avatar, dressed in the paper-and-ink system: a circular seal on
|
|
5
4
|
* inset paper that holds initials until the image loads over them.
|
|
6
5
|
* `size` picks a control-height rung for the seal — the core styles
|
|
@@ -9,7 +8,7 @@ import { Avatar as Avatar$1 } from "@ark-ui/react/avatar";
|
|
|
9
8
|
export type AvatarSize = "sm" | "md" | "lg";
|
|
10
9
|
export interface AvatarProps extends ComponentProps<typeof Avatar$1.Root> {
|
|
11
10
|
/** Seal diameter: the small, medium, or large control rung. The
|
|
12
|
-
* default (
|
|
11
|
+
* default (medium) stands as tall as the biggest control so an avatar
|
|
13
12
|
* rides a row without stretching it. */
|
|
14
13
|
size?: AvatarSize;
|
|
15
14
|
/** The corner: round by default; square cuts it sharp, a stamp
|
|
@@ -17,7 +16,17 @@ export interface AvatarProps extends ComponentProps<typeof Avatar$1.Root> {
|
|
|
17
16
|
shape?: "circle" | "square";
|
|
18
17
|
}
|
|
19
18
|
declare function AvatarRoot(props: AvatarProps): import("react").JSX.Element;
|
|
20
|
-
export
|
|
19
|
+
export interface AvatarFacadeProps extends AvatarProps {
|
|
20
|
+
/** The person's name; its first two initials wait beneath an image. */
|
|
21
|
+
name?: string;
|
|
22
|
+
/** The portrait to load over the name's initials. */
|
|
23
|
+
src?: string;
|
|
24
|
+
}
|
|
25
|
+
declare function AvatarFacade({ name, src, size, shape, children, ...rest }: AvatarFacadeProps): import("react").JSX.Element;
|
|
26
|
+
declare namespace AvatarFacade {
|
|
27
|
+
var displayName: string;
|
|
28
|
+
}
|
|
29
|
+
export declare const Avatar: typeof AvatarFacade & typeof Avatar$1 & {
|
|
21
30
|
Root: typeof AvatarRoot;
|
|
22
31
|
};
|
|
23
|
-
|
|
32
|
+
export {};
|
|
@@ -1,11 +1,14 @@
|
|
|
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
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { Avatar as Avatar$1 } from "@ark-ui/react/avatar";
|
|
5
|
-
|
|
5
|
+
// src/components/avatar/index.tsx
|
|
6
|
+
function initials(name) {
|
|
7
|
+
return name?.trim().split(/\s+/).filter(Boolean).slice(0, 2).map((part) => part[0]?.toUpperCase() ?? "").join("") ?? "";
|
|
8
|
+
}
|
|
6
9
|
function AvatarRoot(props) {
|
|
7
10
|
const id = useElementId("avatar", props);
|
|
8
|
-
const { size, shape = "circle", ...rest } = props;
|
|
11
|
+
const { size = "md", shape = "circle", ...rest } = props;
|
|
9
12
|
return /* @__PURE__ */ jsx(Avatar$1.Root, {
|
|
10
13
|
...rest,
|
|
11
14
|
id,
|
|
@@ -13,10 +16,21 @@ function AvatarRoot(props) {
|
|
|
13
16
|
"data-shape": shape
|
|
14
17
|
});
|
|
15
18
|
}
|
|
16
|
-
|
|
19
|
+
function AvatarFacade({ name, src, size = "md", shape, children, ...rest }) {
|
|
20
|
+
return /* @__PURE__ */ jsx(AvatarRoot, {
|
|
21
|
+
size,
|
|
22
|
+
shape,
|
|
23
|
+
...rest,
|
|
24
|
+
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [src ? /* @__PURE__ */ jsx(Avatar$1.Image, {
|
|
25
|
+
src,
|
|
26
|
+
alt: name
|
|
27
|
+
}) : null, name ? /* @__PURE__ */ jsx(Avatar$1.Fallback, { children: initials(name) }) : null] })
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
AvatarFacade.displayName = "SAvatar";
|
|
31
|
+
const Avatar = Object.assign(AvatarFacade, {
|
|
17
32
|
...Avatar$1,
|
|
18
33
|
Root: AvatarRoot
|
|
19
34
|
});
|
|
20
35
|
injectComponentStyle("avatar");
|
|
21
|
-
//#endregion
|
|
22
36
|
export { Avatar };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/avatar-group/index.d.ts
|
|
3
2
|
/** Avatars overlapping one row, each rimmed in the ground so the pile
|
|
4
3
|
* stays legible. */
|
|
5
4
|
export interface AvatarGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -11,4 +10,4 @@ declare function AvatarGroupImpl({ size, children, ...rest }: AvatarGroupProps):
|
|
|
11
10
|
export declare const AvatarGroup: typeof AvatarGroupImpl & {
|
|
12
11
|
Root: typeof AvatarGroupImpl;
|
|
13
12
|
};
|
|
14
|
-
|
|
13
|
+
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/avatar-group/index.tsx
|
|
5
5
|
function AvatarGroupImpl({ size, children, ...rest }) {
|
|
6
6
|
injectComponentStyle("avatar-group");
|
|
7
7
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -13,5 +13,4 @@ function AvatarGroupImpl({ size, children, ...rest }) {
|
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
15
|
const AvatarGroup = withSelfRoot(AvatarGroupImpl);
|
|
16
|
-
//#endregion
|
|
17
16
|
export { AvatarGroup };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/back-top/index.d.ts
|
|
3
2
|
export interface BackTopProps extends HTMLAttributes<HTMLButtonElement> {
|
|
4
3
|
/** How far the reader must have travelled (px) before the affordance
|
|
5
4
|
* appears. */
|
|
@@ -32,4 +31,4 @@ declare function BackTopImpl({ threshold, label, scrollEl, ...rest }: BackTopPro
|
|
|
32
31
|
export declare const BackTop: typeof BackTopImpl & {
|
|
33
32
|
Root: typeof BackTopImpl;
|
|
34
33
|
};
|
|
35
|
-
|
|
34
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
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 { Button } from "../button/index.mjs";
|
|
4
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { useEffect, useState } from "react";
|
|
7
|
-
|
|
7
|
+
// src/components/back-top/index.tsx
|
|
8
8
|
const chevronUp = iconNode("chevron-up", {
|
|
9
9
|
width: 16,
|
|
10
10
|
height: 16
|
|
@@ -73,5 +73,4 @@ function BackTopImpl({ threshold = 400, label = "Back to top", scrollEl, ...rest
|
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
const BackTop = withSelfRoot(BackTopImpl);
|
|
76
|
-
//#endregion
|
|
77
76
|
export { BackTop };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/badge/index.d.ts
|
|
3
2
|
/** A small seal of state. Ink is the neutral tone; the four semantic
|
|
4
3
|
* pigments are fixed. Subtle and outline re-register the same pigment. */
|
|
5
4
|
export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
@@ -10,4 +9,4 @@ declare function BadgeImpl({ tone, variant, ...rest }: BadgeProps): import("reac
|
|
|
10
9
|
export declare const Badge: typeof BadgeImpl & {
|
|
11
10
|
Root: typeof BadgeImpl;
|
|
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/badge/index.tsx
|
|
5
5
|
function BadgeImpl({ tone = "ink", variant = "solid", ...rest }) {
|
|
6
6
|
injectComponentStyle("badge");
|
|
7
7
|
return /* @__PURE__ */ jsx("span", {
|
|
@@ -13,5 +13,4 @@ function BadgeImpl({ tone = "ink", variant = "solid", ...rest }) {
|
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
15
|
const Badge = withSelfRoot(BadgeImpl);
|
|
16
|
-
//#endregion
|
|
17
16
|
export { Badge };
|
|
@@ -1,10 +1,23 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes, HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/banner/index.d.ts
|
|
1
|
+
import { ButtonHTMLAttributes, HTMLAttributes, ReactNode } from "react";
|
|
3
2
|
export type BannerStatus = "ink" | "info" | "success" | "warning" | "danger";
|
|
4
3
|
export interface BannerRootProps extends HTMLAttributes<HTMLElement> {
|
|
5
4
|
status?: BannerStatus;
|
|
6
5
|
}
|
|
7
|
-
export
|
|
6
|
+
export interface BannerFacadeProps extends Omit<BannerRootProps, "title"> {
|
|
7
|
+
/** The glance line, set in the serif. */
|
|
8
|
+
title?: string;
|
|
9
|
+
/** The supporting line beneath the title. */
|
|
10
|
+
message?: string;
|
|
11
|
+
/** Adds the close control and lets the facade own dismissal. */
|
|
12
|
+
dismissible?: boolean;
|
|
13
|
+
/** The reader's answers, laid beside the notice's prose. */
|
|
14
|
+
actions?: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
declare function BannerFacade({ status, title, message, dismissible, actions, children, ...rest }: BannerFacadeProps): import("react").JSX.Element | null;
|
|
17
|
+
declare namespace BannerFacade {
|
|
18
|
+
var displayName: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const Banner: typeof BannerFacade & {
|
|
8
21
|
Root: ({ status, children, ...rest }: BannerRootProps) => import("react").JSX.Element;
|
|
9
22
|
Icon: {
|
|
10
23
|
({ children, ...rest }: HTMLAttributes<HTMLElement>): import("react").JSX.Element;
|
|
@@ -28,4 +41,4 @@ export declare const Banner: (({ status, children, ...rest }: BannerRootProps) =
|
|
|
28
41
|
};
|
|
29
42
|
Close: (rest: ButtonHTMLAttributes<HTMLButtonElement>) => import("react").JSX.Element;
|
|
30
43
|
};
|
|
31
|
-
|
|
44
|
+
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { r as iconNode } from "../../icon-
|
|
2
|
-
import { n as useComponentMessages } from "../../messages-
|
|
1
|
+
import { r as iconNode } from "../../icon-C9udWCyz.mjs";
|
|
2
|
+
import { n as useComponentMessages } from "../../messages-B6n0lVyt.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { useState } from "react";
|
|
6
|
+
// src/components/banner/index.tsx
|
|
6
7
|
/** A page-level notice, spoken across the full measure: a wash of the
|
|
7
8
|
* status pigment, one heavier hairline on the leading edge, and room
|
|
8
9
|
* for actions and a quiet close. Ink is the neutral register; the four
|
|
@@ -44,7 +45,22 @@ const Close = (rest) => {
|
|
|
44
45
|
children: iconNode("x")
|
|
45
46
|
});
|
|
46
47
|
};
|
|
47
|
-
|
|
48
|
+
function BannerFacade({ status = "ink", title, message, dismissible = false, actions, children, ...rest }) {
|
|
49
|
+
const [open, setOpen] = useState(true);
|
|
50
|
+
if (!open) return null;
|
|
51
|
+
return /* @__PURE__ */ jsxs(Root, {
|
|
52
|
+
status,
|
|
53
|
+
...rest,
|
|
54
|
+
children: [/* @__PURE__ */ jsxs(Body, { children: [
|
|
55
|
+
title ? /* @__PURE__ */ jsx(Title, { children: title }) : null,
|
|
56
|
+
message ? /* @__PURE__ */ jsx(Description, { children: message }) : null,
|
|
57
|
+
children,
|
|
58
|
+
actions ? /* @__PURE__ */ jsx(Actions, { children: actions }) : null
|
|
59
|
+
] }), dismissible ? /* @__PURE__ */ jsx(Close, { onClick: () => setOpen(false) }) : null]
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
BannerFacade.displayName = "SBanner";
|
|
63
|
+
const Banner = Object.assign(BannerFacade, {
|
|
48
64
|
Root,
|
|
49
65
|
Icon,
|
|
50
66
|
Body,
|
|
@@ -54,5 +70,4 @@ const Banner = Object.assign(Root, {
|
|
|
54
70
|
Close
|
|
55
71
|
});
|
|
56
72
|
injectComponentStyle("banner");
|
|
57
|
-
//#endregion
|
|
58
73
|
export { Banner };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
//#region src/components/bento/index.d.ts
|
|
3
2
|
export interface BentoProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
3
|
/** Tracks across the lattice. */
|
|
5
4
|
columns?: number;
|
|
@@ -22,5 +21,4 @@ export declare function BentoCell({ span, rowSpan, children, ...rest }: BentoCel
|
|
|
22
21
|
export declare const Bento: typeof BentoRoot & {
|
|
23
22
|
Root: typeof BentoRoot;
|
|
24
23
|
Cell: typeof BentoCell;
|
|
25
|
-
};
|
|
26
|
-
//#endregion
|
|
24
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/bento/index.tsx
|
|
4
4
|
/** The bento lattice: a grid of unequal tiles that reads as one plate.
|
|
5
5
|
* The container owns the track count; each cell claims its own span. */
|
|
6
6
|
function BentoRoot({ columns = 3, children, ...rest }) {
|
|
@@ -37,5 +37,4 @@ const Bento = Object.assign(BentoRoot, {
|
|
|
37
37
|
Root: BentoRoot,
|
|
38
38
|
Cell: BentoCell
|
|
39
39
|
});
|
|
40
|
-
//#endregion
|
|
41
40
|
export { Bento, BentoCell, BentoRoot };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
//#region src/components/block-ui/index.d.ts
|
|
3
2
|
export interface BlockUIProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
3
|
/** Whether the curtain is drawn. */
|
|
5
4
|
blocked?: boolean;
|
|
@@ -12,4 +11,4 @@ declare function BlockUIImpl({ blocked, children, ...rest }: BlockUIProps): impo
|
|
|
12
11
|
export declare const BlockUI: typeof BlockUIImpl & {
|
|
13
12
|
Root: typeof BlockUIImpl;
|
|
14
13
|
};
|
|
15
|
-
|
|
14
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as withSelfRoot } from "../../family-
|
|
1
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
2
2
|
import { Spinner } from "../spinner/index.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/block-ui/index.tsx
|
|
6
6
|
/** A curtain over content that must wait: the blocked region keeps its
|
|
7
7
|
* shape and dims under frosted paper while a quiet wheel reports the
|
|
8
8
|
* wait. Callers own the state; the curtain only answers it. */
|
|
@@ -22,5 +22,4 @@ function BlockUIImpl({ blocked = false, children, ...rest }) {
|
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
const BlockUI = withSelfRoot(BlockUIImpl);
|
|
25
|
-
//#endregion
|
|
26
25
|
export { BlockUI };
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import { AnchorHTMLAttributes, HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/breadcrumb/index.d.ts
|
|
3
2
|
declare function Root({ children, ...rest }: HTMLAttributes<HTMLElement>): import("react").JSX.Element;
|
|
4
|
-
export
|
|
3
|
+
export type BreadcrumbItem = string | {
|
|
4
|
+
label: string;
|
|
5
|
+
href?: string;
|
|
6
|
+
};
|
|
7
|
+
export interface BreadcrumbFacadeProps extends Omit<HTMLAttributes<HTMLElement>, "children"> {
|
|
8
|
+
/** The trail, ordered from its origin to the current page. */
|
|
9
|
+
items: BreadcrumbItem[];
|
|
10
|
+
/** Replaces the shared accessible name for the trail. */
|
|
11
|
+
label?: string;
|
|
12
|
+
}
|
|
13
|
+
declare function BreadcrumbFacade({ items, label, className, ...rest }: BreadcrumbFacadeProps): import("react").JSX.Element;
|
|
14
|
+
declare namespace BreadcrumbFacade {
|
|
15
|
+
var displayName: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const Breadcrumb: typeof BreadcrumbFacade & {
|
|
5
18
|
Root: typeof Root;
|
|
6
19
|
List: {
|
|
7
20
|
({ children, ...rest }: HTMLAttributes<HTMLElement>): import("react").JSX.Element;
|
|
@@ -24,4 +37,4 @@ export declare const Breadcrumb: typeof Root & {
|
|
|
24
37
|
displayName: string;
|
|
25
38
|
};
|
|
26
39
|
};
|
|
27
|
-
|
|
40
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
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
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Fragment as Fragment$1 } from "react";
|
|
5
|
+
// src/components/breadcrumb/index.tsx
|
|
5
6
|
/** A trail of waymarks: Root wraps the nav, List the ordered trail, and
|
|
6
7
|
* each Item carries a Link — or the Current page — parted by a quiet
|
|
7
8
|
* Separator. Links take href and the rest through attributes. */
|
|
@@ -32,7 +33,24 @@ const Item = part("Item", "li");
|
|
|
32
33
|
const Link = part("Link", "a");
|
|
33
34
|
const Current = part("Current", "span", { "aria-current": "page" });
|
|
34
35
|
const Separator = part("Separator", "span", { "aria-hidden": "true" }, "/");
|
|
35
|
-
|
|
36
|
+
function BreadcrumbFacade({ items, label, className, ...rest }) {
|
|
37
|
+
const last = items.length - 1;
|
|
38
|
+
return /* @__PURE__ */ jsx(Root, {
|
|
39
|
+
className,
|
|
40
|
+
...rest,
|
|
41
|
+
"aria-label": rest["aria-label"] ?? label,
|
|
42
|
+
children: /* @__PURE__ */ jsx(List, { children: items.map((item, index) => {
|
|
43
|
+
const text = typeof item === "string" ? item : item.label;
|
|
44
|
+
const href = typeof item === "string" ? void 0 : item.href;
|
|
45
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Item, { children: index === last ? /* @__PURE__ */ jsx(Current, { children: text }) : /* @__PURE__ */ jsx(Link, {
|
|
46
|
+
href,
|
|
47
|
+
children: text
|
|
48
|
+
}) }), index < last ? /* @__PURE__ */ jsx(Separator, {}) : null] }, `${text}-${index}`);
|
|
49
|
+
}) })
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
BreadcrumbFacade.displayName = "SBreadcrumb";
|
|
53
|
+
const Breadcrumb = Object.assign(BreadcrumbFacade, {
|
|
36
54
|
Root,
|
|
37
55
|
List,
|
|
38
56
|
Item,
|
|
@@ -41,5 +59,4 @@ const Breadcrumb = Object.assign(Root, {
|
|
|
41
59
|
Separator
|
|
42
60
|
});
|
|
43
61
|
injectComponentStyle("breadcrumb");
|
|
44
|
-
//#endregion
|
|
45
62
|
export { Breadcrumb };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
//#region src/components/browser/index.d.ts
|
|
3
2
|
export interface BrowserPartProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
3
|
children?: ReactNode;
|
|
5
4
|
}
|
|
@@ -19,5 +18,4 @@ export declare const Browser: typeof BrowserRoot & {
|
|
|
19
18
|
Dots: typeof BrowserDots;
|
|
20
19
|
UrlBar: typeof BrowserUrlBar;
|
|
21
20
|
Body: typeof BrowserBody;
|
|
22
|
-
};
|
|
23
|
-
//#endregion
|
|
21
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/browser/index.tsx
|
|
4
4
|
/** The three lamps are the system's own fixed pigments — the same
|
|
5
5
|
* semantics reserved for danger, warning, and success. */
|
|
6
6
|
function BrowserDots(props) {
|
|
@@ -66,5 +66,4 @@ const Browser = Object.assign(BrowserRoot, {
|
|
|
66
66
|
UrlBar: BrowserUrlBar,
|
|
67
67
|
Body: BrowserBody
|
|
68
68
|
});
|
|
69
|
-
//#endregion
|
|
70
69
|
export { Browser, BrowserBody, BrowserDots, BrowserRoot, BrowserTitleBar, BrowserUrlBar };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, ReactNode } from "react";
|
|
2
|
-
//#region src/components/button/index.d.ts
|
|
3
2
|
/** The control recipe as a standalone button: the variant chooses how it
|
|
4
3
|
* rests, the tone chooses the pigment. Ink is the solemn default; any
|
|
5
4
|
* action can carry the primary weight. */
|
|
@@ -19,4 +18,4 @@ declare function ButtonImpl({ variant, tone, size, square, asChild, disabled, ty
|
|
|
19
18
|
export declare const Button: typeof ButtonImpl & {
|
|
20
19
|
Root: typeof ButtonImpl;
|
|
21
20
|
};
|
|
22
|
-
|
|
21
|
+
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 { Children, cloneElement, isValidElement } from "react";
|
|
5
|
-
|
|
5
|
+
// src/components/button/index.tsx
|
|
6
6
|
function ButtonImpl({ variant = "solid", tone = "ink", size = "md", square = false, asChild = false, disabled = false, type = "button", children, ...rest }) {
|
|
7
7
|
injectComponentStyle("button");
|
|
8
8
|
const partProps = {
|
|
@@ -27,5 +27,4 @@ function ButtonImpl({ variant = "solid", tone = "ink", size = "md", square = fal
|
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
const Button = withSelfRoot(ButtonImpl);
|
|
30
|
-
//#endregion
|
|
31
30
|
export { Button };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
//#region src/components/button-group/index.d.ts
|
|
3
2
|
export interface ButtonGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
3
|
/** The seam runs across the group (default) or down it. */
|
|
5
4
|
orientation?: "horizontal" | "vertical";
|
|
@@ -21,4 +20,4 @@ declare function Root({ orientation, size, radius, children, ...rest }: ButtonGr
|
|
|
21
20
|
export declare const ButtonGroup: typeof Root & {
|
|
22
21
|
Root: typeof Root;
|
|
23
22
|
};
|
|
24
|
-
|
|
23
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/button-group/index.tsx
|
|
4
4
|
/**
|
|
5
5
|
* Buttons fused into one control: the group owns only the joinery, so
|
|
6
6
|
* members keep every variant they were given — a solid action can sit
|
|
@@ -21,5 +21,4 @@ function Root({ orientation = "horizontal", size, radius, children, ...rest }) {
|
|
|
21
21
|
}
|
|
22
22
|
const ButtonGroup = Object.assign(Root, { Root });
|
|
23
23
|
injectComponentStyle("button-group");
|
|
24
|
-
//#endregion
|
|
25
24
|
export { ButtonGroup };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DatePicker as DatePicker$1 } from "../date-picker/index.mjs";
|
|
2
2
|
import { HTMLAttributes } from "react";
|
|
3
3
|
import { DatePickerRootProps } from "@ark-ui/react/date-picker";
|
|
4
|
-
//#region src/components/calendar/index.d.ts
|
|
5
4
|
export interface CalendarProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultValue"> {
|
|
6
5
|
/** Selected date(s) — an array, as the machine speaks in ranges. */
|
|
7
6
|
value?: DatePickerRootProps["value"];
|
|
@@ -27,4 +26,4 @@ export interface CalendarProps extends Omit<HTMLAttributes<HTMLDivElement>, "def
|
|
|
27
26
|
* on a month overview; choosing a month drills into its day grid. */
|
|
28
27
|
declare function CalendarImpl({ value, defaultValue, min, max, variant, mode, selectionMode, startOfWeek, fixedWeeks, showWeekNumbers, outsideDaySelectable, closeOnSelect, minView, maxView, onValueChange, children, ...rest }: CalendarProps): import("react").JSX.Element;
|
|
29
28
|
export declare const Calendar: typeof CalendarImpl & typeof DatePicker$1;
|
|
30
|
-
|
|
29
|
+
export {};
|
|
@@ -1,10 +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 { DatePicker as DatePicker$1 } from "../date-picker/index.mjs";
|
|
4
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { DatePicker } from "@ark-ui/react/date-picker";
|
|
7
|
-
|
|
7
|
+
// src/components/calendar/index.tsx
|
|
8
8
|
function chevron(dir) {
|
|
9
9
|
return iconNode(dir === "left" ? "chevron-left" : "chevron-right", {
|
|
10
10
|
width: 16,
|
|
@@ -127,5 +127,4 @@ function CalendarImpl({ value, defaultValue, min, max, variant = "compact", mode
|
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
const Calendar = Object.assign(CalendarImpl, DatePicker$1);
|
|
130
|
-
//#endregion
|
|
131
130
|
export { Calendar };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/card/index.d.ts
|
|
3
2
|
export declare const Card: {
|
|
4
3
|
({ asChild, children, ...rest }: HTMLAttributes<HTMLElement> & {
|
|
5
4
|
asChild?: boolean;
|
|
@@ -42,5 +41,4 @@ export declare const Card: {
|
|
|
42
41
|
}): import("react").JSX.Element | null;
|
|
43
42
|
displayName: string;
|
|
44
43
|
};
|
|
45
|
-
};
|
|
46
|
-
//#endregion
|
|
44
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Children, cloneElement, isValidElement } from "react";
|
|
4
|
-
|
|
4
|
+
// src/components/card/index.tsx
|
|
5
5
|
/** A vessel: round, resting at the first elevation, one hairline for its
|
|
6
6
|
* edge. Root, Header, Title, Description, Content, Footer — sections
|
|
7
7
|
* carry their own whitespace, so any subset composes. */
|
|
@@ -40,5 +40,4 @@ const Card = Object.assign(Root, {
|
|
|
40
40
|
Footer
|
|
41
41
|
});
|
|
42
42
|
injectComponentStyle("card");
|
|
43
|
-
//#endregion
|
|
44
43
|
export { Card };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ComponentProps } from "react";
|
|
2
2
|
import { Carousel as Carousel$1 } from "@ark-ui/react/carousel";
|
|
3
|
-
//#region src/components/carousel/index.d.ts
|
|
4
3
|
/** Ark's Carousel, dressed in the paper-and-ink system: slides ride in one
|
|
5
4
|
* hairline-clipped lane, the triggers are quiet outline controls, and the
|
|
6
5
|
* current indicator alone carries the ink. The API is Ark's own — Root,
|
|
@@ -26,4 +25,4 @@ declare function CarouselFacade(props: CarouselFacadeProps): import("react").JSX
|
|
|
26
25
|
export declare const Carousel: typeof CarouselFacade & Omit<typeof Carousel$1, "Root"> & {
|
|
27
26
|
Root: typeof CarouselRoot;
|
|
28
27
|
};
|
|
29
|
-
|
|
28
|
+
export {};
|