@bysages/react 0.4.4 → 0.6.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-B0o-dsAf.mjs +309 -0
- package/dist/ai-prompt-input-Cl9ulICF.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 +5 -3
- package/dist/components/autocomplete/index.mjs +12 -10
- package/dist/components/avatar/index.d.mts +1 -2
- package/dist/components/avatar/index.mjs +2 -3
- package/dist/components/avatar-group/index.d.mts +1 -2
- package/dist/components/avatar-group/index.mjs +2 -3
- package/dist/components/back-top/index.d.mts +1 -2
- package/dist/components/back-top/index.mjs +3 -4
- package/dist/components/badge/index.d.mts +1 -2
- package/dist/components/badge/index.mjs +2 -3
- package/dist/components/banner/index.d.mts +1 -2
- package/dist/components/banner/index.mjs +3 -4
- package/dist/components/bento/index.d.mts +1 -3
- package/dist/components/bento/index.mjs +1 -2
- package/dist/components/block-ui/index.d.mts +1 -2
- package/dist/components/block-ui/index.mjs +2 -3
- package/dist/components/breadcrumb/index.d.mts +1 -2
- package/dist/components/breadcrumb/index.mjs +2 -3
- package/dist/components/browser/index.d.mts +1 -3
- package/dist/components/browser/index.mjs +1 -2
- package/dist/components/button/index.d.mts +1 -2
- package/dist/components/button/index.mjs +2 -3
- package/dist/components/button-group/index.d.mts +1 -2
- package/dist/components/button-group/index.mjs +1 -2
- package/dist/components/calendar/index.d.mts +1 -2
- package/dist/components/calendar/index.mjs +3 -4
- package/dist/components/card/index.d.mts +1 -3
- package/dist/components/card/index.mjs +1 -2
- package/dist/components/carousel/index.d.mts +1 -2
- package/dist/components/carousel/index.mjs +3 -4
- package/dist/components/cascade-select/index.d.mts +5 -3
- package/dist/components/cascade-select/index.mjs +42 -40
- 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 +10 -3
- package/dist/components/color-picker/index.mjs +39 -33
- package/dist/components/combobox/index.d.mts +10 -3
- package/dist/components/combobox/index.mjs +17 -12
- package/dist/components/command/index.d.mts +5 -3
- package/dist/components/command/index.mjs +74 -72
- 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 +9 -3
- package/dist/components/date-picker/index.mjs +30 -25
- 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 +49 -5
- package/dist/components/dialog/index.mjs +67 -20
- 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 +20 -5
- package/dist/components/drawer/index.mjs +21 -16
- package/dist/components/dynamic-input/index.d.mts +1 -2
- package/dist/components/dynamic-input/index.mjs +5 -6
- package/dist/components/editable/index.d.mts +1 -2
- package/dist/components/editable/index.mjs +3 -4
- package/dist/components/ellipsis/index.d.mts +1 -2
- package/dist/components/ellipsis/index.mjs +2 -3
- package/dist/components/empty/index.d.mts +1 -3
- package/dist/components/empty/index.mjs +1 -2
- package/dist/components/field/index.d.mts +1 -2
- package/dist/components/field/index.mjs +2 -3
- package/dist/components/fieldset/index.d.mts +1 -2
- package/dist/components/fieldset/index.mjs +2 -3
- package/dist/components/file-upload/index.d.mts +1 -2
- package/dist/components/file-upload/index.mjs +3 -4
- package/dist/components/float-button/index.d.mts +1 -2
- package/dist/components/float-button/index.mjs +3 -4
- package/dist/components/floating-panel/index.d.mts +20 -5
- package/dist/components/floating-panel/index.mjs +37 -32
- 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 +18 -5
- package/dist/components/hover-card/index.mjs +16 -11
- 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 +11 -4
- package/dist/components/menu/index.mjs +15 -10
- package/dist/components/menubar/index.d.mts +5 -3
- package/dist/components/menubar/index.mjs +14 -12
- 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 +10 -3
- package/dist/components/navigation-menu/index.mjs +9 -4
- 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 +6 -4
- package/dist/components/popconfirm/index.mjs +33 -31
- package/dist/components/popover/index.d.mts +1 -1
- package/dist/components/popover/index.mjs +23 -18
- 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 +5 -3
- package/dist/components/split-button/index.mjs +16 -14
- 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 +21 -3
- package/dist/components/table/index.mjs +28 -14
- package/dist/components/tabs/index.d.mts +9 -3
- package/dist/components/tabs/index.mjs +36 -8
- package/dist/components/tag/index.d.mts +1 -2
- package/dist/components/tag/index.mjs +3 -4
- package/dist/components/tags-input/index.d.mts +1 -2
- package/dist/components/tags-input/index.mjs +3 -4
- package/dist/components/terminal/index.d.mts +4 -3
- package/dist/components/terminal/index.mjs +8 -7
- package/dist/components/textarea/index.d.mts +1 -2
- package/dist/components/textarea/index.mjs +2 -3
- package/dist/components/timeline/index.d.mts +1 -2
- package/dist/components/timeline/index.mjs +1 -2
- package/dist/components/timer/index.d.mts +1 -2
- package/dist/components/timer/index.mjs +2 -3
- package/dist/components/toast/index.d.mts +0 -2
- package/dist/components/toast/index.mjs +4 -5
- package/dist/components/toc/index.d.mts +1 -2
- package/dist/components/toc/index.mjs +2 -3
- package/dist/components/toggle/index.d.mts +1 -2
- package/dist/components/toggle/index.mjs +2 -3
- package/dist/components/toggle-group/index.d.mts +1 -2
- package/dist/components/toggle-group/index.mjs +3 -4
- package/dist/components/toolbar/index.d.mts +1 -2
- package/dist/components/toolbar/index.mjs +2 -3
- package/dist/components/tooltip/index.d.mts +18 -5
- package/dist/components/tooltip/index.mjs +10 -5
- package/dist/components/tour/index.d.mts +20 -5
- package/dist/components/tour/index.mjs +18 -13
- 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 +6 -4
- package/dist/components/tree-select/index.mjs +43 -41
- 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 +9 -7
- package/dist/components/typography/index.mjs +10 -3
- 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/floating-BhcDRgnx.d.mts +7 -0
- package/dist/floating-CMR7cvmA.mjs +33 -0
- package/dist/generative/index.d.mts +0 -2
- package/dist/generative/index.mjs +28 -53
- package/dist/{icon-Cri0-7-x.mjs → icon-C9udWCyz.mjs} +1 -2
- package/dist/{id-C37UYLwJ.mjs → id-Ctic_3o8.mjs} +1 -2
- package/dist/{image-viewer-D4FuYrk6.mjs → image-viewer-BPTApdoP.mjs} +50 -52
- package/dist/index-CEYybyEQ.d.mts +163 -0
- package/dist/index-CjO4Ggf0.d.mts +115 -0
- package/dist/{index-BcRdWGY-.d.mts → index-DIZEFqJM.d.mts} +0 -8
- package/dist/{index-D_iKc2Uw.d.mts → index-DZ2S5rMj.d.mts} +10 -6
- package/dist/index-j02dTkfc.d.mts +37 -0
- package/dist/index-lCsvE2Vl.d.mts +37 -0
- package/dist/{index-Dj8S4eyJ.d.mts → index-n9VlNO7D.d.mts} +4 -5
- package/dist/index.d.mts +13 -13
- package/dist/index.mjs +10 -10
- package/dist/{input-BDpQ0e6G.mjs → input-YRjehBhU.mjs} +3 -5
- package/dist/{media-player-C0WcjVI-.mjs → media-player-DxG0EYz7.mjs} +7 -12
- package/dist/mentions-B59tQDPt.mjs +341 -0
- package/dist/{messages-1jJWtaYU.mjs → messages-B6n0lVyt.mjs} +1 -2
- package/dist/{select-D_soVdWK.mjs → select-BLFqfeVw.mjs} +24 -20
- package/package.json +17 -17
- package/dist/index-B4twHAQC.d.mts +0 -10456
- package/dist/index-Bbg4heDO.d.mts +0 -113
- package/dist/index-Eu-Bttta.d.mts +0 -24
- package/dist/mentions-BwnyvdXz.mjs +0 -213
|
@@ -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 { SignaturePad as SignaturePad$1 } from "@ark-ui/react/signature-pad";
|
|
6
|
-
|
|
6
|
+
// src/components/signature-pad/index.tsx
|
|
7
7
|
/** SignaturePad, dressed in the paper-and-ink system: a quiet paper
|
|
8
8
|
* field with a guide hairline where ink — real ink strokes — is laid down.
|
|
9
9
|
* The parts — Root, Label, Control, Segment, SegmentPath, Guide,
|
|
@@ -41,5 +41,4 @@ const SignaturePad = Object.assign(SignaturePadFacade, {
|
|
|
41
41
|
Root: SignaturePadRoot
|
|
42
42
|
});
|
|
43
43
|
injectComponentStyle("signature-pad");
|
|
44
|
-
//#endregion
|
|
45
44
|
export { SignaturePad };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/skeleton/index.d.ts
|
|
3
2
|
/** A waiting sheet of unset paper. Size it from the outside; the breath
|
|
4
3
|
* is the component's own. */
|
|
5
4
|
export type SkeletonProps = HTMLAttributes<HTMLDivElement>;
|
|
@@ -7,4 +6,4 @@ declare function SkeletonImpl({ ...rest }: SkeletonProps): import("react").JSX.E
|
|
|
7
6
|
export declare const Skeleton: typeof SkeletonImpl & {
|
|
8
7
|
Root: typeof SkeletonImpl;
|
|
9
8
|
};
|
|
10
|
-
|
|
9
|
+
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/skeleton/index.tsx
|
|
5
5
|
function SkeletonImpl({ ...rest }) {
|
|
6
6
|
injectComponentStyle("skeleton");
|
|
7
7
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -11,5 +11,4 @@ function SkeletonImpl({ ...rest }) {
|
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
13
|
const Skeleton = withSelfRoot(SkeletonImpl);
|
|
14
|
-
//#endregion
|
|
15
14
|
export { Skeleton };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
import { Slider as Slider$1 } from "@ark-ui/react/slider";
|
|
3
|
-
//#region src/components/slider/index.d.ts
|
|
4
3
|
type SliderRootProps = ComponentProps<typeof Slider$1.Root> & {
|
|
5
4
|
/** One rung of the part-size ladder for the thumb seal. */
|
|
6
5
|
size?: "sm" | "md" | "lg";
|
|
@@ -32,4 +31,4 @@ type SliderParts = Omit<typeof Slider$1, "Root"> & {
|
|
|
32
31
|
Root: typeof SliderRoot;
|
|
33
32
|
};
|
|
34
33
|
export declare const Slider: typeof SliderFacade & SliderParts;
|
|
35
|
-
|
|
34
|
+
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 { Slider as Slider$1 } from "@ark-ui/react/slider";
|
|
5
|
-
|
|
5
|
+
// src/components/slider/index.tsx
|
|
6
6
|
function SliderRoot(props) {
|
|
7
7
|
const id = useElementId("slider", props);
|
|
8
8
|
const { size = "md", ...rest } = props;
|
|
@@ -40,5 +40,4 @@ const Slider = Object.assign(SliderFacade, {
|
|
|
40
40
|
Root: SliderRoot
|
|
41
41
|
});
|
|
42
42
|
injectComponentStyle("slider");
|
|
43
|
-
//#endregion
|
|
44
43
|
export { Slider };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/spinner/index.d.ts
|
|
3
2
|
export interface SpinnerProps extends HTMLAttributes<HTMLElement> {
|
|
4
3
|
size?: "sm" | "md" | "lg";
|
|
5
4
|
}
|
|
@@ -9,4 +8,4 @@ declare function SpinnerImpl({ size, children, ...rest }: SpinnerProps): import(
|
|
|
9
8
|
export declare const Spinner: typeof SpinnerImpl & {
|
|
10
9
|
Root: typeof SpinnerImpl;
|
|
11
10
|
};
|
|
12
|
-
|
|
11
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as withSelfRoot } from "../../family-
|
|
2
|
-
import { n as useComponentMessages } from "../../messages-
|
|
1
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
2
|
+
import { n as useComponentMessages } from "../../messages-B6n0lVyt.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/spinner/index.tsx
|
|
6
6
|
/** A wheel of waiting: one arc of ink turning about its center. Quiet by
|
|
7
7
|
* default — it reports progress without claiming attention. */
|
|
8
8
|
function SpinnerImpl({ size = "md", children, ...rest }) {
|
|
@@ -36,5 +36,4 @@ function SpinnerImpl({ size = "md", children, ...rest }) {
|
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
const Spinner = withSelfRoot(SpinnerImpl);
|
|
39
|
-
//#endregion
|
|
40
39
|
export { Spinner };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { n as FloatingPortalTarget } from "../../floating-BhcDRgnx.mjs";
|
|
1
2
|
import { Menu } from "../menu/index.mjs";
|
|
2
3
|
import { HTMLAttributes } from "react";
|
|
3
|
-
//#region src/components/split-button/index.d.ts
|
|
4
4
|
export interface SplitButtonEntry {
|
|
5
5
|
label: string;
|
|
6
6
|
/** Handed back with `onSelect` when the entry is chosen. */
|
|
@@ -9,6 +9,8 @@ export interface SplitButtonEntry {
|
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
}
|
|
11
11
|
export interface SplitButtonProps extends Omit<HTMLAttributes<HTMLDivElement>, "onSelect"> {
|
|
12
|
+
/** Portal after hydration; `false` keeps the vessel inline. */
|
|
13
|
+
portal?: FloatingPortalTarget;
|
|
12
14
|
/** The main action's label. */
|
|
13
15
|
label: string;
|
|
14
16
|
/** The dropdown's entries. */
|
|
@@ -33,6 +35,6 @@ export interface SplitButtonProps extends Omit<HTMLAttributes<HTMLDivElement>, "
|
|
|
33
35
|
* button stylesheet's trigger register dresses it. The popup keeps the
|
|
34
36
|
* menu parts untouched.
|
|
35
37
|
*/
|
|
36
|
-
declare function SplitButtonImpl({ label, items, variant, tone, size, disabled, onClick, onSelect, ...rest }: SplitButtonProps): import("react").JSX.Element;
|
|
38
|
+
declare function SplitButtonImpl({ portal, label, items, variant, tone, size, disabled, onClick, onSelect, ...rest }: SplitButtonProps): import("react").JSX.Element;
|
|
37
39
|
export declare const SplitButton: typeof SplitButtonImpl & typeof Menu;
|
|
38
|
-
|
|
40
|
+
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { r as iconNode } from "../../icon-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
3
|
-
import { n as useComponentMessages } from "../../messages-
|
|
1
|
+
import { r as iconNode } from "../../icon-C9udWCyz.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
3
|
+
import { n as useComponentMessages } from "../../messages-B6n0lVyt.mjs";
|
|
4
4
|
import { Button } from "../button/index.mjs";
|
|
5
|
+
import { t as FloatingPortal } from "../../floating-CMR7cvmA.mjs";
|
|
5
6
|
import { Menu as Menu$1 } from "../menu/index.mjs";
|
|
6
7
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
7
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import { Portal } from "@ark-ui/react/portal";
|
|
9
9
|
import { Menu } from "@ark-ui/react/menu";
|
|
10
|
-
|
|
10
|
+
// src/components/split-button/index.tsx
|
|
11
11
|
/**
|
|
12
12
|
* A primary action with its alternatives one seam away: the main button
|
|
13
13
|
* fires `onClick`, the fitted arrow opens a paper vessel of the same
|
|
@@ -17,7 +17,7 @@ import { Menu } from "@ark-ui/react/menu";
|
|
|
17
17
|
* button stylesheet's trigger register dresses it. The popup keeps the
|
|
18
18
|
* menu parts untouched.
|
|
19
19
|
*/
|
|
20
|
-
function SplitButtonImpl({ label, items = [], variant = "solid", tone = "ink", size = "md", disabled = false, onClick, onSelect, ...rest }) {
|
|
20
|
+
function SplitButtonImpl({ portal = false, label, items = [], variant = "solid", tone = "ink", size = "md", disabled = false, onClick, onSelect, ...rest }) {
|
|
21
21
|
injectComponentStyle("split-button");
|
|
22
22
|
injectComponentStyle("menu");
|
|
23
23
|
const hostId = useElementId("split-button", rest);
|
|
@@ -49,13 +49,16 @@ function SplitButtonImpl({ label, items = [], variant = "solid", tone = "ink", s
|
|
|
49
49
|
"aria-label": messages.more.actions,
|
|
50
50
|
children: chevronDown
|
|
51
51
|
})
|
|
52
|
-
}), /* @__PURE__ */ jsx(
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
}), /* @__PURE__ */ jsx(FloatingPortal, {
|
|
53
|
+
portal,
|
|
54
|
+
children: /* @__PURE__ */ jsx(Menu.Positioner, { children: /* @__PURE__ */ jsx(Menu.Content, { children: items.map((entry) => /* @__PURE__ */ jsx(Menu.Item, {
|
|
55
|
+
value: entry.value,
|
|
56
|
+
disabled: entry.disabled,
|
|
57
|
+
"data-danger": entry.danger ? "" : void 0,
|
|
58
|
+
onSelect: () => onSelect?.(entry.value),
|
|
59
|
+
children: /* @__PURE__ */ jsx(Menu.ItemText, { children: entry.label })
|
|
60
|
+
}, entry.value)) }) })
|
|
61
|
+
})]
|
|
59
62
|
})]
|
|
60
63
|
});
|
|
61
64
|
}
|
|
@@ -64,5 +67,4 @@ const chevronDown = iconNode("chevron-down", {
|
|
|
64
67
|
width: 16,
|
|
65
68
|
height: 16
|
|
66
69
|
});
|
|
67
|
-
//#endregion
|
|
68
70
|
export { SplitButton };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Splitter as Splitter$1 } from "@ark-ui/react/splitter";
|
|
2
|
-
//#region src/components/splitter/index.d.ts
|
|
3
2
|
export type SplitterItem = {
|
|
4
3
|
id: string;
|
|
5
4
|
label: string;
|
|
@@ -17,4 +16,4 @@ declare namespace SplitterFacade {
|
|
|
17
16
|
}
|
|
18
17
|
type SplitterParts = typeof Splitter$1;
|
|
19
18
|
export declare const Splitter: typeof SplitterFacade & SplitterParts;
|
|
20
|
-
|
|
19
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as useElementId } from "../../id-
|
|
1
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
2
2
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { Fragment as Fragment$1 } from "react";
|
|
5
5
|
import { Splitter as Splitter$1 } from "@ark-ui/react/splitter";
|
|
6
|
-
|
|
6
|
+
// src/components/splitter/index.tsx
|
|
7
7
|
/** Ark's Splitter, dressed in the paper-and-ink system: panels divide on
|
|
8
8
|
* a hairline and a small paper-seal thumb answers the hand. The API is
|
|
9
9
|
* Ark's own — Root, Panel, ResizeTrigger, ResizeTriggerIndicator. */
|
|
@@ -40,5 +40,4 @@ const Splitter = Object.assign(SplitterFacade, {
|
|
|
40
40
|
Root: SplitterRoot
|
|
41
41
|
});
|
|
42
42
|
injectComponentStyle("splitter");
|
|
43
|
-
//#endregion
|
|
44
43
|
export { Splitter };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
//#region src/components/spotlight/index.d.ts
|
|
3
2
|
export interface SpotlightProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
3
|
/** How far the lamp throws before the ink swallows it. */
|
|
5
4
|
radius?: string;
|
|
@@ -12,4 +11,4 @@ declare function SpotlightImpl({ radius, children, ...rest }: SpotlightProps): i
|
|
|
12
11
|
export declare const Spotlight: typeof SpotlightImpl & {
|
|
13
12
|
Root: typeof SpotlightImpl;
|
|
14
13
|
};
|
|
15
|
-
|
|
14
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as withSelfRoot } from "../../family-
|
|
1
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
2
2
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/spotlight/index.tsx
|
|
5
5
|
/** The ink-light card: a vessel whose rim and face take light from the
|
|
6
6
|
* reader's hand. The wrapper only measures and writes the geometry —
|
|
7
7
|
* the lamp itself is the two layers the stylesheet paints. */
|
|
@@ -31,5 +31,4 @@ function SpotlightImpl({ radius, children, ...rest }) {
|
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
const Spotlight = withSelfRoot(SpotlightImpl);
|
|
34
|
-
//#endregion
|
|
35
34
|
export { Spotlight };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/stack/index.d.ts
|
|
3
2
|
export interface StackProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
3
|
direction?: "column" | "row";
|
|
5
4
|
gap?: "none" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
@@ -11,4 +10,4 @@ declare function StackImpl({ direction, gap, wrap, align, justify, ...rest }: St
|
|
|
11
10
|
export declare const Stack: typeof StackImpl & {
|
|
12
11
|
Root: typeof StackImpl;
|
|
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/stack/index.tsx
|
|
5
5
|
/** Whitespace chosen by name: the named steps point at the space ramp so
|
|
6
6
|
* siblings are held apart by one token, never by ad-hoc margins. */
|
|
7
7
|
const gapVars = {
|
|
@@ -30,5 +30,4 @@ function StackImpl({ direction = "column", gap = "md", wrap = false, align, just
|
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
const Stack = withSelfRoot(StackImpl);
|
|
33
|
-
//#endregion
|
|
34
33
|
export { Stack };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/stat/index.d.ts
|
|
3
2
|
export interface StatDeltaProps extends HTMLAttributes<HTMLElement> {
|
|
4
3
|
direction?: "up" | "down" | "flat";
|
|
5
4
|
"data-direction"?: string;
|
|
@@ -25,5 +24,4 @@ export declare const Stat: {
|
|
|
25
24
|
({ children, ...rest }: HTMLAttributes<HTMLElement>): import("react").JSX.Element;
|
|
26
25
|
displayName: string;
|
|
27
26
|
};
|
|
28
|
-
};
|
|
29
|
-
//#endregion
|
|
27
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/stat/index.tsx
|
|
4
4
|
function part(name, tag) {
|
|
5
5
|
const Tag = tag;
|
|
6
6
|
const Component = ({ children, ...rest }) => /* @__PURE__ */ jsx(Tag, {
|
|
@@ -33,5 +33,4 @@ const Stat = Object.assign(Root, {
|
|
|
33
33
|
Description
|
|
34
34
|
});
|
|
35
35
|
injectComponentStyle("stat");
|
|
36
|
-
//#endregion
|
|
37
36
|
export { Stat };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
import { Steps as Steps$1 } from "@ark-ui/react/steps";
|
|
3
|
-
//#region src/components/steps/index.d.ts
|
|
4
3
|
type StepsRootProps = ComponentProps<typeof Steps$1.Root> & {
|
|
5
4
|
/** One rung of the control-height ladder every indicator stands on. */
|
|
6
5
|
size?: "sm" | "md" | "lg";
|
|
@@ -43,5 +42,4 @@ type StepsParts = Omit<typeof Steps$1, "Root" | "Item"> & {
|
|
|
43
42
|
Item: typeof StepsItem;
|
|
44
43
|
};
|
|
45
44
|
export declare const Steps: typeof StepsFacade & StepsParts;
|
|
46
|
-
//#endregion
|
|
47
45
|
export { StepsItem };
|
|
@@ -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 { Steps as Steps$1 } from "@ark-ui/react/steps";
|
|
5
|
-
|
|
5
|
+
// src/components/steps/index.tsx
|
|
6
6
|
function StepsRoot(props) {
|
|
7
7
|
const id = useElementId("steps", props);
|
|
8
8
|
const { size = "md", variant = "default", ...rest } = props;
|
|
@@ -46,5 +46,4 @@ const Steps = Object.assign(StepsFacade, {
|
|
|
46
46
|
Item: StepsItem
|
|
47
47
|
});
|
|
48
48
|
injectComponentStyle("steps");
|
|
49
|
-
//#endregion
|
|
50
49
|
export { Steps };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { Swap as Swap$1 } from "@ark-ui/react/swap";
|
|
3
|
-
//#region src/components/swap/index.d.ts
|
|
4
3
|
interface SwapFacadeProps {
|
|
5
4
|
swap?: boolean;
|
|
6
5
|
on?: ReactNode;
|
|
@@ -11,4 +10,4 @@ interface SwapFacadeProps {
|
|
|
11
10
|
* transitions and indicators stay on the anatomy. */
|
|
12
11
|
declare function SwapFacade({ swap, on, off }: SwapFacadeProps): import("react").JSX.Element;
|
|
13
12
|
export declare const Swap: typeof SwapFacade & typeof Swap$1;
|
|
14
|
-
|
|
13
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as iconNode } from "../../icon-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
1
|
+
import { r as iconNode } from "../../icon-C9udWCyz.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { Swap as Swap$1 } from "@ark-ui/react/swap";
|
|
6
|
-
|
|
6
|
+
// src/components/swap/index.tsx
|
|
7
7
|
/** Swap, dressed in the paper-and-ink system: two impressions
|
|
8
8
|
* occupying one seal, the arriving one growing into place on the spring
|
|
9
9
|
* while the departing one shrinks away. The parts — Root,
|
|
@@ -34,5 +34,4 @@ const Swap = Object.assign(SwapFacade, {
|
|
|
34
34
|
Root: SwapRoot
|
|
35
35
|
});
|
|
36
36
|
injectComponentStyle("swap");
|
|
37
|
-
//#endregion
|
|
38
37
|
export { Swap };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
import { Switch as Switch$1 } from "@ark-ui/react/switch";
|
|
3
|
-
//#region src/components/switch/index.d.ts
|
|
4
3
|
type SwitchRootProps = ComponentProps<typeof Switch$1.Root> & {
|
|
5
4
|
/** One rung for the thumb; the track travels with it. */
|
|
6
5
|
size?: "sm" | "md" | "lg";
|
|
@@ -31,4 +30,4 @@ type SwitchParts = Omit<typeof Switch$1, "Root"> & {
|
|
|
31
30
|
Root: typeof SwitchRoot;
|
|
32
31
|
};
|
|
33
32
|
export declare const Switch: typeof SwitchFacade & SwitchParts;
|
|
34
|
-
|
|
33
|
+
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 { Switch as Switch$1 } from "@ark-ui/react/switch";
|
|
5
|
-
|
|
5
|
+
// src/components/switch/index.tsx
|
|
6
6
|
function SwitchRoot(props) {
|
|
7
7
|
const id = useElementId("switch", props);
|
|
8
8
|
const { size = "md", ...rest } = props;
|
|
@@ -36,5 +36,4 @@ const Switch = Object.assign(SwitchFacade, {
|
|
|
36
36
|
Root: SwitchRoot
|
|
37
37
|
});
|
|
38
38
|
injectComponentStyle("switch");
|
|
39
|
-
//#endregion
|
|
40
39
|
export { Switch };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { CSSProperties } from "react";
|
|
1
|
+
import { CSSProperties, ReactNode } from "react";
|
|
2
2
|
import { CellData, ColumnDef, FlexRender, RowData, SortingState, TableFeatures, createColumnHelper } from "@tanstack/react-table";
|
|
3
|
-
//#region src/components/table/index.d.ts
|
|
4
3
|
/** Column metadata understood by this table: mark columns whose values
|
|
5
4
|
* read right-aligned in tabular figures. The type parameters mirror the
|
|
6
5
|
* library's own declaration — augmentation merging demands an identical
|
|
@@ -73,12 +72,31 @@ export interface DataTableProps {
|
|
|
73
72
|
onRowReorder?: (rows: RowData[]) => void;
|
|
74
73
|
/** Fires with the full leaf-column id order after a header drop. */
|
|
75
74
|
onColumnReorder?: (ids: string[]) => void;
|
|
75
|
+
/** Render a caller-owned toolbar instead of the built-in global filter.
|
|
76
|
+
* The function receives the live filter values and setters. */
|
|
77
|
+
toolbar?: (slot: DataTableToolbarSlot) => ReactNode;
|
|
76
78
|
/** Applied to the root vessel. */
|
|
77
79
|
style?: CSSProperties;
|
|
78
80
|
}
|
|
81
|
+
/** A stable toolbar contract: the wrapper owns TanStack's state atoms and
|
|
82
|
+
* exposes only the two filter decisions a caller toolbar needs. */
|
|
83
|
+
export interface DataTableToolbarSlot {
|
|
84
|
+
/** The current global filter value; empty string reads as no filter. */
|
|
85
|
+
globalFilter: string;
|
|
86
|
+
setGlobalFilter(value: string): void;
|
|
87
|
+
/** Current per-column filters, each as `{ id, value }`. */
|
|
88
|
+
columnFilters: Array<{
|
|
89
|
+
id: string;
|
|
90
|
+
value: unknown;
|
|
91
|
+
}>;
|
|
92
|
+
setColumnFilters(filters: Array<{
|
|
93
|
+
id: string;
|
|
94
|
+
value: unknown;
|
|
95
|
+
}>): void;
|
|
96
|
+
clearFilters(): void;
|
|
97
|
+
}
|
|
79
98
|
declare function DataTableImpl(rawProps: DataTableProps): import("react").JSX.Element;
|
|
80
99
|
export declare const DataTable: typeof DataTableImpl & {
|
|
81
100
|
Root: typeof DataTableImpl;
|
|
82
101
|
};
|
|
83
|
-
//#endregion
|
|
84
102
|
export { type ColumnDef, FlexRender, type SortingState, createColumnHelper };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { r as iconNode } from "../../icon-
|
|
2
|
-
import { t as withSelfRoot } from "../../family-
|
|
3
|
-
import { n as useComponentMessages, t as formatMessage } from "../../messages-
|
|
1
|
+
import { r as iconNode } from "../../icon-C9udWCyz.mjs";
|
|
2
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
3
|
+
import { n as useComponentMessages, t as formatMessage } from "../../messages-B6n0lVyt.mjs";
|
|
4
4
|
import { Pagination } from "../pagination/index.mjs";
|
|
5
|
-
import { t as Select$1 } from "../../select-
|
|
5
|
+
import { t as Select$1 } from "../../select-BLFqfeVw.mjs";
|
|
6
6
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
9
9
|
import { createListCollection } from "@ark-ui/react/select";
|
|
10
10
|
import { FlexRender, cellSpanningFeature, columnFilteringFeature, columnOrderingFeature, columnPinningFeature, columnSizingFeature, columnVisibilityFeature, createColumnHelper, createExpandedRowModel, createFilteredRowModel, createPaginatedRowModel, createSortedRowModel, filterFn_arrIncludes, filterFn_equals, filterFn_inDateRange, filterFn_inNumberRange, filterFn_includesString, filterFn_weakEquals, globalFilteringFeature, rowExpandingFeature, rowPaginationFeature, rowSelectionFeature, rowSortingFeature, sortFn_alphanumeric, sortFn_alphanumericCaseSensitive, sortFn_basic, sortFn_datetime, sortFn_text, sortFn_textCaseSensitive, tableFeatures, useTable } from "@tanstack/react-table";
|
|
11
11
|
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
12
|
-
|
|
12
|
+
// src/components/table/index.tsx
|
|
13
13
|
function pageIcon(direction) {
|
|
14
14
|
return iconNode(direction === "start" ? "chevron-left" : "chevron-right", {
|
|
15
15
|
width: 14,
|
|
@@ -584,13 +584,16 @@ function DataTableImpl(rawProps) {
|
|
|
584
584
|
children: [/* @__PURE__ */ jsx(Select$1.Control, { children: /* @__PURE__ */ jsxs(Select$1.Trigger, {
|
|
585
585
|
"aria-label": messages.table.rowsPerPage,
|
|
586
586
|
children: [/* @__PURE__ */ jsx(Select$1.ValueText, {}), /* @__PURE__ */ jsx(Select$1.Indicator, { children: chevronDownIcon })]
|
|
587
|
-
}) }), /* @__PURE__ */ jsx(Select$1.Positioner, {
|
|
588
|
-
|
|
589
|
-
children:
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
587
|
+
}) }), /* @__PURE__ */ jsx(Select$1.Positioner, {
|
|
588
|
+
portal: true,
|
|
589
|
+
children: /* @__PURE__ */ jsx(Select$1.Content, { children: sizeItems.items.map((item) => /* @__PURE__ */ jsxs(Select$1.Item, {
|
|
590
|
+
item,
|
|
591
|
+
children: [/* @__PURE__ */ jsx(Select$1.ItemText, { children: item.label }), /* @__PURE__ */ jsx(Select$1.ItemIndicator, { children: iconNode("check", {
|
|
592
|
+
width: 14,
|
|
593
|
+
height: 14
|
|
594
|
+
}) })]
|
|
595
|
+
}, item.value)) })
|
|
596
|
+
})]
|
|
594
597
|
});
|
|
595
598
|
const pager = /* @__PURE__ */ jsxs(Pagination.Root, {
|
|
596
599
|
count: rowCount,
|
|
@@ -621,7 +624,19 @@ function DataTableImpl(rawProps) {
|
|
|
621
624
|
})]
|
|
622
625
|
});
|
|
623
626
|
})() : null;
|
|
624
|
-
const
|
|
627
|
+
const toolbarSlot = filterable ? {
|
|
628
|
+
globalFilter: table.atoms.globalFilter.get() ?? "",
|
|
629
|
+
setGlobalFilter: (value) => table.setGlobalFilter(value),
|
|
630
|
+
columnFilters: table.atoms.columnFilters.get().map((filter) => ({ ...filter })),
|
|
631
|
+
setColumnFilters: (filters) => table.setColumnFilters(filters),
|
|
632
|
+
clearFilters: () => table.setColumnFilters([])
|
|
633
|
+
} : void 0;
|
|
634
|
+
const customToolbar = toolbarSlot ? props.toolbar?.(toolbarSlot) : void 0;
|
|
635
|
+
const toolbar = customToolbar !== void 0 ? /* @__PURE__ */ jsx("div", {
|
|
636
|
+
"data-scope": "table",
|
|
637
|
+
"data-part": "toolbar",
|
|
638
|
+
children: customToolbar
|
|
639
|
+
}) : filterable && showToolbar ? /* @__PURE__ */ jsx("div", {
|
|
625
640
|
"data-scope": "table",
|
|
626
641
|
"data-part": "toolbar",
|
|
627
642
|
children: /* @__PURE__ */ jsx("input", {
|
|
@@ -667,5 +682,4 @@ function DataTableImpl(rawProps) {
|
|
|
667
682
|
});
|
|
668
683
|
}
|
|
669
684
|
const DataTable = withSelfRoot(DataTableImpl);
|
|
670
|
-
//#endregion
|
|
671
685
|
export { DataTable, FlexRender, createColumnHelper };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ComponentProps, ReactNode } from "react";
|
|
2
2
|
import { Tabs as Tabs$1 } from "@ark-ui/react/tabs";
|
|
3
|
-
//#region src/components/tabs/index.d.ts
|
|
4
3
|
export type TabsItem = {
|
|
5
4
|
value: string;
|
|
6
5
|
label: string;
|
|
7
6
|
content?: ReactNode;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
closable?: boolean;
|
|
9
|
+
icon?: string;
|
|
8
10
|
};
|
|
9
11
|
export interface TabsFacadeProps {
|
|
10
12
|
value?: string;
|
|
@@ -16,9 +18,13 @@ export interface TabsFacadeProps {
|
|
|
16
18
|
/** One rung of the control-height ladder for the tab rows. */
|
|
17
19
|
size?: "sm" | "md" | "lg";
|
|
18
20
|
className?: string;
|
|
21
|
+
scrollable?: boolean;
|
|
22
|
+
contentless?: boolean;
|
|
23
|
+
closable?: boolean;
|
|
19
24
|
onValueChange?: (value: string) => void;
|
|
25
|
+
onClose?: (item: TabsItem) => void;
|
|
20
26
|
}
|
|
21
|
-
declare function TabsFacade({ value, defaultValue, items, variant, orientation, size, className, onValueChange }: TabsFacadeProps): import("react").JSX.Element;
|
|
27
|
+
declare function TabsFacade({ value, defaultValue, items, variant, orientation, size, className, scrollable, contentless, closable, onValueChange, onClose }: TabsFacadeProps): import("react").JSX.Element;
|
|
22
28
|
declare namespace TabsFacade {
|
|
23
29
|
var displayName: string;
|
|
24
30
|
}
|
|
@@ -39,4 +45,4 @@ type TabsParts = Omit<typeof Tabs$1, "Root"> & {
|
|
|
39
45
|
Root: typeof TabsRoot;
|
|
40
46
|
};
|
|
41
47
|
export declare const Tabs: typeof TabsFacade & TabsParts;
|
|
42
|
-
|
|
48
|
+
export {};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { t as useElementId } from "../../id-
|
|
1
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
2
|
+
import { n as useComponentMessages, t as formatMessage } from "../../messages-B6n0lVyt.mjs";
|
|
3
|
+
import { Icon } from "../icon/index.mjs";
|
|
2
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
6
|
import { Tabs as Tabs$1 } from "@ark-ui/react/tabs";
|
|
5
|
-
|
|
6
|
-
function TabsFacade({ value, defaultValue, items, variant = "line", orientation = "horizontal", size = "md", className, onValueChange }) {
|
|
7
|
+
// src/components/tabs/index.tsx
|
|
8
|
+
function TabsFacade({ value, defaultValue, items, variant = "line", orientation = "horizontal", size = "md", className, scrollable = false, contentless = false, closable = false, onValueChange, onClose }) {
|
|
9
|
+
const messages = useComponentMessages();
|
|
7
10
|
return /* @__PURE__ */ jsxs(TabsRoot, {
|
|
8
11
|
className,
|
|
9
12
|
size,
|
|
@@ -12,10 +15,36 @@ function TabsFacade({ value, defaultValue, items, variant = "line", orientation
|
|
|
12
15
|
defaultValue,
|
|
13
16
|
...value === void 0 ? {} : { value },
|
|
14
17
|
onValueChange: (details) => onValueChange?.(details.value),
|
|
15
|
-
children: [/* @__PURE__ */ jsxs(Tabs$1.List, {
|
|
16
|
-
|
|
17
|
-
children: item
|
|
18
|
-
|
|
18
|
+
children: [/* @__PURE__ */ jsxs(Tabs$1.List, {
|
|
19
|
+
"data-scrollable": scrollable ? "" : void 0,
|
|
20
|
+
children: [items.map((item) => {
|
|
21
|
+
const itemClosable = item.closable ?? closable;
|
|
22
|
+
const trigger = /* @__PURE__ */ jsxs(Tabs$1.Trigger, {
|
|
23
|
+
value: item.value,
|
|
24
|
+
disabled: item.disabled,
|
|
25
|
+
"data-closable": itemClosable ? "" : void 0,
|
|
26
|
+
children: [item.icon ? /* @__PURE__ */ jsx(Icon, { name: item.icon }) : null, /* @__PURE__ */ jsx("span", { children: item.label })]
|
|
27
|
+
}, item.value);
|
|
28
|
+
if (!itemClosable) return trigger;
|
|
29
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
30
|
+
"data-scope": "tabs",
|
|
31
|
+
"data-part": "item",
|
|
32
|
+
children: [trigger, /* @__PURE__ */ jsx("button", {
|
|
33
|
+
type: "button",
|
|
34
|
+
"data-scope": "tabs",
|
|
35
|
+
"data-part": "close",
|
|
36
|
+
"aria-label": formatMessage(messages.tabs.closeTab, { name: item.label }),
|
|
37
|
+
disabled: item.disabled,
|
|
38
|
+
onClick: (event) => {
|
|
39
|
+
event.preventDefault();
|
|
40
|
+
event.stopPropagation();
|
|
41
|
+
onClose?.(item);
|
|
42
|
+
},
|
|
43
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "x" })
|
|
44
|
+
})]
|
|
45
|
+
}, item.value);
|
|
46
|
+
}), /* @__PURE__ */ jsx(Tabs$1.Indicator, {})]
|
|
47
|
+
}), !contentless && items.map((item) => /* @__PURE__ */ jsx(Tabs$1.Content, {
|
|
19
48
|
value: item.value,
|
|
20
49
|
children: item.content
|
|
21
50
|
}, item.value))]
|
|
@@ -36,5 +65,4 @@ const Tabs = Object.assign(TabsFacade, {
|
|
|
36
65
|
Root: TabsRoot
|
|
37
66
|
});
|
|
38
67
|
injectComponentStyle("tabs");
|
|
39
|
-
//#endregion
|
|
40
68
|
export { Tabs };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/tag/index.d.ts
|
|
3
2
|
export interface TagProps extends Omit<HTMLAttributes<HTMLElement>, "defaultValue"> {
|
|
4
3
|
/** The pigment the tag is inked with; ink is the solemn default,
|
|
5
4
|
* and the fixed pigments speak for their meaning. */
|
|
@@ -30,4 +29,4 @@ declare namespace TagImpl {
|
|
|
30
29
|
export declare const Tag: typeof TagImpl & {
|
|
31
30
|
Root: typeof TagImpl;
|
|
32
31
|
};
|
|
33
|
-
|
|
32
|
+
export {};
|