@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,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 { Carousel as Carousel$1 } from "@ark-ui/react/carousel";
|
|
6
|
-
|
|
6
|
+
// src/components/carousel/index.tsx
|
|
7
7
|
/** Ark's Carousel, dressed in the paper-and-ink system: slides ride in one
|
|
8
8
|
* hairline-clipped lane, the triggers are quiet outline controls, and the
|
|
9
9
|
* current indicator alone carries the ink. The API is Ark's own — Root,
|
|
@@ -49,5 +49,4 @@ const Carousel = Object.assign(CarouselFacade, {
|
|
|
49
49
|
...Carousel$1,
|
|
50
50
|
Root: CarouselRoot
|
|
51
51
|
});
|
|
52
|
-
//#endregion
|
|
53
52
|
export { Carousel };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/cascade-select/index.d.ts
|
|
3
2
|
export interface CascadeSelectNode {
|
|
4
3
|
label: string;
|
|
5
4
|
value: string;
|
|
@@ -33,4 +32,4 @@ declare function CascadeSelectImpl({ value, data, placeholder, highlightTrigger,
|
|
|
33
32
|
export declare const CascadeSelect: typeof CascadeSelectImpl & {
|
|
34
33
|
Root: typeof CascadeSelectImpl;
|
|
35
34
|
};
|
|
36
|
-
|
|
35
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as iconNode } from "../../icon-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
3
|
-
import { t as withSelfRoot } from "../../family-
|
|
4
|
-
import { n as useComponentMessages } from "../../messages-
|
|
5
|
-
import { t as Input } from "../../input-
|
|
1
|
+
import { r as iconNode } from "../../icon-C9udWCyz.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
3
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
4
|
+
import { n as useComponentMessages } from "../../messages-B6n0lVyt.mjs";
|
|
5
|
+
import { t as Input } from "../../input-YRjehBhU.mjs";
|
|
6
6
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { useMemo, useState } from "react";
|
|
@@ -11,7 +11,7 @@ import { useEnvironmentContext } from "@ark-ui/react/environment";
|
|
|
11
11
|
import { useFilter, useLocaleContext } from "@ark-ui/react/locale";
|
|
12
12
|
import * as cascade from "@zag-js/cascade-select";
|
|
13
13
|
import { normalizeProps, useMachine } from "@zag-js/react";
|
|
14
|
-
|
|
14
|
+
// src/components/cascade-select/index.tsx
|
|
15
15
|
const chevronDown = iconNode("chevron-down");
|
|
16
16
|
const chevronRight = iconNode("chevron-right");
|
|
17
17
|
const checkIcon = iconNode("check");
|
|
@@ -206,5 +206,4 @@ function CascadeSelectImpl({ value, data, placeholder = "Select…", highlightTr
|
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
const CascadeSelect = withSelfRoot(CascadeSelectImpl);
|
|
209
|
-
//#endregion
|
|
210
209
|
export { CascadeSelect };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
import { Checkbox as Checkbox$1 } from "@ark-ui/react/checkbox";
|
|
3
|
-
//#region src/components/checkbox/index.d.ts
|
|
4
3
|
type CheckboxRootProps = ComponentProps<typeof Checkbox$1.Root> & {
|
|
5
4
|
/** One rung for the control's box: the tick scales with it. */
|
|
6
5
|
size?: "sm" | "md" | "lg";
|
|
@@ -31,4 +30,4 @@ type CheckboxParts = Omit<typeof Checkbox$1, "Root"> & {
|
|
|
31
30
|
Root: typeof CheckboxRoot;
|
|
32
31
|
};
|
|
33
32
|
export declare const Checkbox: typeof CheckboxFacade & CheckboxParts;
|
|
34
|
-
|
|
33
|
+
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 { Checkbox as Checkbox$1 } from "@ark-ui/react/checkbox";
|
|
6
|
-
|
|
6
|
+
// src/components/checkbox/index.tsx
|
|
7
7
|
function CheckboxRoot(props) {
|
|
8
8
|
const id = useElementId("checkbox", props);
|
|
9
9
|
const { size = "md", ...rest } = props;
|
|
@@ -37,5 +37,4 @@ const Checkbox = Object.assign(CheckboxFacade, {
|
|
|
37
37
|
Root: CheckboxRoot
|
|
38
38
|
});
|
|
39
39
|
injectComponentStyle("checkbox");
|
|
40
|
-
//#endregion
|
|
41
40
|
export { Checkbox };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Checkbox } from "../checkbox/index.mjs";
|
|
2
2
|
import { HTMLAttributes } from "react";
|
|
3
|
-
//#region src/components/checkbox-group/index.d.ts
|
|
4
3
|
export interface CheckboxOption {
|
|
5
4
|
label: string;
|
|
6
5
|
value: string;
|
|
@@ -27,4 +26,4 @@ export interface CheckboxGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
27
26
|
*/
|
|
28
27
|
declare function CheckboxGroupImpl({ value, defaultValue, options, layout, size, invalid, disabled, onValueChange, ...rest }: CheckboxGroupProps): import("react").JSX.Element;
|
|
29
28
|
export declare const CheckboxGroup: typeof CheckboxGroupImpl & typeof Checkbox;
|
|
30
|
-
|
|
29
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
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 { Checkbox as Checkbox$1 } from "../checkbox/index.mjs";
|
|
4
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { useFieldContext } from "@ark-ui/react/field";
|
|
7
7
|
import { Checkbox } from "@ark-ui/react/checkbox";
|
|
8
|
-
|
|
8
|
+
// src/components/checkbox-group/index.tsx
|
|
9
9
|
const checkIcon = iconNode("check");
|
|
10
10
|
/**
|
|
11
11
|
* One question, many answers: a labelled stack (or row) of the seal-cut
|
|
@@ -57,5 +57,4 @@ function CheckboxGroupImpl({ value, defaultValue, options, layout = "vertical",
|
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
const CheckboxGroup = Object.assign(CheckboxGroupImpl, Checkbox$1);
|
|
60
|
-
//#endregion
|
|
61
60
|
export { CheckboxGroup };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/chip/index.d.ts
|
|
3
2
|
/** A counting coin: the numeric value, capped at `max` with an ellipsis
|
|
4
3
|
* of the remainder ("99+"). */
|
|
5
4
|
export interface ChipProps extends HTMLAttributes<HTMLSpanElement> {
|
|
@@ -12,4 +11,4 @@ declare function ChipImpl({ value, max, tone, variant, ...rest }: ChipProps): im
|
|
|
12
11
|
export declare const Chip: typeof ChipImpl & {
|
|
13
12
|
Root: typeof ChipImpl;
|
|
14
13
|
};
|
|
15
|
-
|
|
14
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as withSelfRoot } from "../../family-
|
|
1
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
2
2
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/chip/index.tsx
|
|
5
5
|
function ChipImpl({ value, max, tone = "ink", variant = "solid", ...rest }) {
|
|
6
6
|
injectComponentStyle("chip");
|
|
7
7
|
const text = max != null && value > max ? `${max}+` : String(value);
|
|
@@ -15,5 +15,4 @@ function ChipImpl({ value, max, tone = "ink", variant = "solid", ...rest }) {
|
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
const Chip = withSelfRoot(ChipImpl);
|
|
18
|
-
//#endregion
|
|
19
18
|
export { Chip };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { ClientOnlyProps } from "@ark-ui/react/client-only";
|
|
2
|
-
//#region src/components/client-only/index.d.ts
|
|
3
2
|
export declare const ClientOnly: ((props: import("@ark-ui/react/client-only").ClientOnlyProps) => React.ReactNode) & {
|
|
4
3
|
Root: (props: import("@ark-ui/react/client-only").ClientOnlyProps) => React.ReactNode;
|
|
5
4
|
};
|
|
6
|
-
//#endregion
|
|
7
5
|
export type { ClientOnlyProps };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { t as withSelfRoot } from "../../family-
|
|
1
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
2
2
|
import { ClientOnly as ClientOnly$1 } from "@ark-ui/react/client-only";
|
|
3
|
-
|
|
3
|
+
// src/components/client-only/index.tsx
|
|
4
4
|
const ClientOnly = withSelfRoot(ClientOnly$1);
|
|
5
|
-
//#endregion
|
|
6
5
|
export { ClientOnly };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ComponentProps, HTMLAttributes } from "react";
|
|
2
2
|
import { Clipboard as Clipboard$1 } from "@ark-ui/react/clipboard";
|
|
3
|
-
//#region src/components/clipboard/index.d.ts
|
|
4
3
|
/** Ark's Clipboard, dressed in the paper-and-ink system: a hairline value
|
|
5
4
|
* field beside an icon-sized copy trigger whose ink turns bamboo while the
|
|
6
5
|
* copy is confirmed. The API is Ark's own — Root, Label, Control, Input,
|
|
@@ -27,4 +26,4 @@ declare function ClipboardFacade(props: ClipboardFacadeProps): import("react").J
|
|
|
27
26
|
export declare const Clipboard: typeof ClipboardFacade & Omit<typeof Clipboard$1, "Root"> & {
|
|
28
27
|
Root: typeof ClipboardRoot;
|
|
29
28
|
};
|
|
30
|
-
|
|
29
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as iconNode } from "../../icon-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
1
|
+
import { r as iconNode } from "../../icon-C9udWCyz.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { Clipboard as Clipboard$1 } from "@ark-ui/react/clipboard";
|
|
6
|
-
|
|
6
|
+
// src/components/clipboard/index.tsx
|
|
7
7
|
function ClipboardRoot(props) {
|
|
8
8
|
injectComponentStyle("clipboard");
|
|
9
9
|
const id = useElementId("clipboard", props);
|
|
@@ -41,5 +41,4 @@ const Clipboard = Object.assign(ClipboardFacade, {
|
|
|
41
41
|
...Clipboard$1,
|
|
42
42
|
Root: ClipboardRoot
|
|
43
43
|
});
|
|
44
|
-
//#endregion
|
|
45
44
|
export { Clipboard };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { Collapsible as Collapsible$1 } from "@ark-ui/react/collapsible";
|
|
3
|
-
//#region src/components/collapsible/index.d.ts
|
|
4
3
|
export interface CollapsibleFacadeProps {
|
|
5
4
|
open?: boolean;
|
|
6
5
|
defaultOpen?: boolean;
|
|
@@ -16,4 +15,4 @@ declare namespace CollapsibleFacade {
|
|
|
16
15
|
}
|
|
17
16
|
type CollapsibleParts = typeof Collapsible$1;
|
|
18
17
|
export declare const Collapsible: typeof CollapsibleFacade & CollapsibleParts;
|
|
19
|
-
|
|
18
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as iconNode } from "../../icon-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
1
|
+
import { r as iconNode } from "../../icon-C9udWCyz.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { Collapsible as Collapsible$1 } from "@ark-ui/react/collapsible";
|
|
6
|
-
|
|
6
|
+
// src/components/collapsible/index.tsx
|
|
7
7
|
/** Ark's Collapsible, dressed in the paper-and-ink system: one control on
|
|
8
8
|
* the paper, its panel dissolving open to the machine's measured height.
|
|
9
9
|
* The API is Ark's own — Root, Trigger, Content, Indicator. */
|
|
@@ -30,5 +30,4 @@ const Collapsible = Object.assign(CollapsibleFacade, {
|
|
|
30
30
|
Root: CollapsibleRoot
|
|
31
31
|
});
|
|
32
32
|
injectComponentStyle("collapsible");
|
|
33
|
-
//#endregion
|
|
34
33
|
export { Collapsible };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { createFileTreeCollection, createGridCollection, createListCollection, createTreeCollection, useAsyncList, useListCollection, useListSelection };
|
|
1
|
+
export { createFileTreeCollection, createGridCollection, createListCollection, createTreeCollection, useAsyncList, useListCollection, useListSelection } from "@ark-ui/react/collection";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ComponentProps } from "react";
|
|
2
2
|
import { Color, ColorPicker as ColorPicker$1 } from "@ark-ui/react/color-picker";
|
|
3
|
-
//#region src/components/color-picker/index.d.ts
|
|
4
3
|
type ColorPickerRootProps = ComponentProps<typeof ColorPicker$1.Root> & {
|
|
5
4
|
/** One rung of the control-height ladder for the swatch seal. */
|
|
6
5
|
size?: "sm" | "md" | "lg";
|
|
@@ -21,6 +20,8 @@ type ColorPickerFacadeProps = {
|
|
|
21
20
|
invalid?: boolean;
|
|
22
21
|
required?: boolean;
|
|
23
22
|
label?: string;
|
|
23
|
+
/** Saved colors rendered as a flat swatch row. */
|
|
24
|
+
swatches?: string[];
|
|
24
25
|
size?: "sm" | "md" | "lg";
|
|
25
26
|
className?: string;
|
|
26
27
|
style?: CSSProperties;
|
|
@@ -33,4 +34,4 @@ declare function ColorPickerFacade(props: ColorPickerFacadeProps): import("react
|
|
|
33
34
|
export declare const ColorPicker: typeof ColorPickerFacade & Omit<typeof ColorPicker$1, "Root"> & {
|
|
34
35
|
Root: typeof ColorPickerRoot;
|
|
35
36
|
};
|
|
36
|
-
|
|
37
|
+
export {};
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { r as iconNode } from "../../icon-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
1
|
+
import { r as iconNode } from "../../icon-C9udWCyz.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { ColorPicker as ColorPicker$1, parseColor } from "@ark-ui/react/color-picker";
|
|
6
|
-
|
|
6
|
+
// src/components/color-picker/index.tsx
|
|
7
|
+
const checkIcon = iconNode("check", {
|
|
8
|
+
width: 12,
|
|
9
|
+
height: 12
|
|
10
|
+
});
|
|
7
11
|
function ColorPickerRoot(props) {
|
|
8
12
|
injectComponentStyle("color-picker");
|
|
9
13
|
const id = useElementId("color-picker", props);
|
|
@@ -18,7 +22,7 @@ function ColorPickerRoot(props) {
|
|
|
18
22
|
* swatch trigger, while the popup carries the area and hue/alpha tracks.
|
|
19
23
|
* Saved swatches and format switches remain anatomy work. */
|
|
20
24
|
function ColorPickerFacade(props) {
|
|
21
|
-
const { value, defaultValue, disabled, invalid, required, label, size = "md", className, style, onValueChange } = props;
|
|
25
|
+
const { value, defaultValue, disabled, invalid, required, label, swatches = [], size = "md", className, style, onValueChange } = props;
|
|
22
26
|
const toColor = (color) => typeof color === "string" ? parseColor(color) : color;
|
|
23
27
|
return /* @__PURE__ */ jsxs(ColorPickerRoot, {
|
|
24
28
|
size,
|
|
@@ -33,28 +37,38 @@ function ColorPickerFacade(props) {
|
|
|
33
37
|
children: [
|
|
34
38
|
label ? /* @__PURE__ */ jsx(ColorPicker$1.Label, { children: label }) : null,
|
|
35
39
|
/* @__PURE__ */ jsxs(ColorPicker$1.Control, { children: [/* @__PURE__ */ jsx(ColorPicker$1.ChannelInput, { channel: "hex" }), /* @__PURE__ */ jsxs(ColorPicker$1.Trigger, { children: [/* @__PURE__ */ jsx(ColorPicker$1.TransparencyGrid, {}), /* @__PURE__ */ jsx(ColorPicker$1.ValueSwatch, {})] })] }),
|
|
36
|
-
/* @__PURE__ */ jsx(ColorPicker$1.Positioner, { children: /* @__PURE__ */ jsxs(ColorPicker$1.Content, { children: [
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
children: [/* @__PURE__ */ jsx(ColorPicker$1.EyeDropperTrigger, { children: iconNode("pipette", {
|
|
40
|
-
width: 14,
|
|
41
|
-
height: 14
|
|
42
|
-
}) }), /* @__PURE__ */ jsxs("div", {
|
|
40
|
+
/* @__PURE__ */ jsx(ColorPicker$1.Positioner, { children: /* @__PURE__ */ jsxs(ColorPicker$1.Content, { children: [
|
|
41
|
+
/* @__PURE__ */ jsxs(ColorPicker$1.Area, { children: [/* @__PURE__ */ jsx(ColorPicker$1.AreaBackground, {}), /* @__PURE__ */ jsx(ColorPicker$1.AreaThumb, {})] }),
|
|
42
|
+
/* @__PURE__ */ jsxs("div", {
|
|
43
43
|
"data-scope": "color-picker",
|
|
44
|
-
"data-part": "channel-
|
|
45
|
-
children: [/* @__PURE__ */
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}), /* @__PURE__ */ jsxs(
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
/* @__PURE__ */ jsx(ColorPicker$1.ChannelSliderThumb, {})
|
|
54
|
-
|
|
44
|
+
"data-part": "channel-controls",
|
|
45
|
+
children: [/* @__PURE__ */ jsx(ColorPicker$1.EyeDropperTrigger, { children: iconNode("pipette", {
|
|
46
|
+
width: 14,
|
|
47
|
+
height: 14
|
|
48
|
+
}) }), /* @__PURE__ */ jsxs("div", {
|
|
49
|
+
"data-scope": "color-picker",
|
|
50
|
+
"data-part": "channel-sliders",
|
|
51
|
+
children: [/* @__PURE__ */ jsxs(ColorPicker$1.ChannelSlider, {
|
|
52
|
+
channel: "hue",
|
|
53
|
+
children: [/* @__PURE__ */ jsx(ColorPicker$1.ChannelSliderTrack, {}), /* @__PURE__ */ jsx(ColorPicker$1.ChannelSliderThumb, {})]
|
|
54
|
+
}), /* @__PURE__ */ jsxs(ColorPicker$1.ChannelSlider, {
|
|
55
|
+
channel: "alpha",
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ jsx(ColorPicker$1.TransparencyGrid, {}),
|
|
58
|
+
/* @__PURE__ */ jsx(ColorPicker$1.ChannelSliderTrack, {}),
|
|
59
|
+
/* @__PURE__ */ jsx(ColorPicker$1.ChannelSliderThumb, {})
|
|
60
|
+
]
|
|
61
|
+
})]
|
|
55
62
|
})]
|
|
56
|
-
})
|
|
57
|
-
|
|
63
|
+
}),
|
|
64
|
+
swatches.length > 0 ? /* @__PURE__ */ jsx(ColorPicker$1.SwatchGroup, { children: swatches.map((color) => /* @__PURE__ */ jsx(ColorPicker$1.SwatchTrigger, {
|
|
65
|
+
value: color,
|
|
66
|
+
children: /* @__PURE__ */ jsx(ColorPicker$1.Swatch, {
|
|
67
|
+
value: color,
|
|
68
|
+
children: /* @__PURE__ */ jsx(ColorPicker$1.SwatchIndicator, { children: checkIcon })
|
|
69
|
+
})
|
|
70
|
+
}, color)) }) : null
|
|
71
|
+
] }) }),
|
|
58
72
|
/* @__PURE__ */ jsx(ColorPicker$1.HiddenInput, {})
|
|
59
73
|
]
|
|
60
74
|
});
|
|
@@ -63,5 +77,4 @@ const ColorPicker = Object.assign(ColorPickerFacade, {
|
|
|
63
77
|
...ColorPicker$1,
|
|
64
78
|
Root: ColorPickerRoot
|
|
65
79
|
});
|
|
66
|
-
//#endregion
|
|
67
80
|
export { ColorPicker };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from "react";
|
|
2
2
|
import { CollectionItem } from "@ark-ui/react/collection";
|
|
3
3
|
import { Combobox as Combobox$1, ComboboxRootComponentProps } from "@ark-ui/react/combobox";
|
|
4
|
-
//#region src/components/combobox/index.d.ts
|
|
5
4
|
/** Ark's Combobox, dressed in the paper-and-ink system: the field carries
|
|
6
5
|
* the control recipe and its matches dissolve open as a paper vessel, the
|
|
7
6
|
* checked row taking the flat ink fill. The API is Ark's own — Root, Label,
|
|
@@ -40,4 +39,4 @@ declare function ComboboxFacade(props: ComboboxFacadeProps): import("react").JSX
|
|
|
40
39
|
export declare const Combobox: typeof ComboboxFacade & Omit<typeof Combobox$1, "Root"> & {
|
|
41
40
|
Root: typeof ComboboxRoot;
|
|
42
41
|
};
|
|
43
|
-
|
|
42
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as iconNode } from "../../icon-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
1
|
+
import { r as iconNode } from "../../icon-C9udWCyz.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { Combobox as Combobox$1, createListCollection } from "@ark-ui/react/combobox";
|
|
6
|
-
|
|
6
|
+
// src/components/combobox/index.tsx
|
|
7
7
|
function ComboboxRoot(props) {
|
|
8
8
|
injectComponentStyle("combobox");
|
|
9
9
|
const id = useElementId("combobox", props);
|
|
@@ -71,5 +71,4 @@ const Combobox = Object.assign(ComboboxFacade, {
|
|
|
71
71
|
...Combobox$1,
|
|
72
72
|
Root: ComboboxRoot
|
|
73
73
|
});
|
|
74
|
-
//#endregion
|
|
75
74
|
export { Combobox };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Dialog } from "../dialog/index.mjs";
|
|
2
|
-
//#region src/components/command/index.d.ts
|
|
3
2
|
export interface CommandEntry {
|
|
4
3
|
label: string;
|
|
5
4
|
value: string;
|
|
@@ -43,4 +42,4 @@ export interface CommandProps {
|
|
|
43
42
|
}
|
|
44
43
|
declare function CommandImpl({ items, placeholder, open, autoFilter, inputValue, emptyText, onSelect, onOpenChange, onInputValueChange, id }: CommandProps): import("react").JSX.Element;
|
|
45
44
|
export declare const Command: typeof CommandImpl & typeof Dialog;
|
|
46
|
-
|
|
45
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as useElementId } from "../../id-
|
|
2
|
-
import { n as useComponentMessages } from "../../messages-
|
|
1
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
2
|
+
import { n as useComponentMessages } from "../../messages-B6n0lVyt.mjs";
|
|
3
3
|
import { Dialog as Dialog$1 } from "../dialog/index.mjs";
|
|
4
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -8,7 +8,7 @@ import { Portal } from "@ark-ui/react/portal";
|
|
|
8
8
|
import { useListCollection } from "@ark-ui/react/collection";
|
|
9
9
|
import { Combobox } from "@ark-ui/react/combobox";
|
|
10
10
|
import { Dialog } from "@ark-ui/react/dialog";
|
|
11
|
-
|
|
11
|
+
// src/components/command/index.tsx
|
|
12
12
|
function CommandImpl({ items = [], placeholder, open, autoFilter = true, inputValue, emptyText, onSelect, onOpenChange, onInputValueChange, id }) {
|
|
13
13
|
injectComponentStyle("command");
|
|
14
14
|
injectComponentStyle("dialog");
|
|
@@ -145,5 +145,4 @@ function CommandImpl({ items = [], placeholder, open, autoFilter = true, inputVa
|
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
const Command = Object.assign(CommandImpl, Dialog$1);
|
|
148
|
-
//#endregion
|
|
149
148
|
export { Command };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
//#region src/components/comment/index.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* A voice on the record: the portrait hangs left (the `avatar` prop),
|
|
5
4
|
* the body carries the byline from `author` and `datetime`, the ink is
|
|
@@ -17,4 +16,4 @@ declare function CommentImpl({ author, datetime, avatar, actions, children, ...r
|
|
|
17
16
|
export declare const Comment: typeof CommentImpl & {
|
|
18
17
|
Root: typeof CommentImpl;
|
|
19
18
|
};
|
|
20
|
-
|
|
19
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as withSelfRoot } from "../../family-
|
|
1
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
2
2
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/comment/index.tsx
|
|
5
5
|
function CommentImpl({ author, datetime, avatar, actions, children, ...rest }) {
|
|
6
6
|
injectComponentStyle("comment");
|
|
7
7
|
return /* @__PURE__ */ jsxs("article", {
|
|
@@ -45,5 +45,4 @@ function CommentImpl({ author, datetime, avatar, actions, children, ...rest }) {
|
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
const Comment = withSelfRoot(CommentImpl);
|
|
48
|
-
//#endregion
|
|
49
48
|
export { Comment };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentMessagesOverride, ThemeScene } from "@bysages/core";
|
|
2
2
|
import { HTMLAttributes, ReactNode } from "react";
|
|
3
|
-
//#region src/components/config-provider/index.d.ts
|
|
4
3
|
/** The four density tiers the token layer's `[data-density]` selectors
|
|
5
4
|
* name — whitespace and control heights compress, readability never
|
|
6
5
|
* does. */
|
|
@@ -49,4 +48,4 @@ declare function ConfigProviderImpl({ density, scene, accent, dir, locale, messa
|
|
|
49
48
|
export declare const ConfigProvider: typeof ConfigProviderImpl & {
|
|
50
49
|
Root: typeof ConfigProviderImpl;
|
|
51
50
|
};
|
|
52
|
-
|
|
51
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as withSelfRoot } from "../../family-
|
|
1
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { createContext, useContext } from "react";
|
|
4
|
-
|
|
4
|
+
// src/components/config-provider/index.tsx
|
|
5
5
|
const ConfigContextImpl = createContext({});
|
|
6
6
|
/** The nearest provider's snapshot, or an empty one when no provider
|
|
7
7
|
* wraps the caller — the hook the date and format families will consume
|
|
@@ -40,5 +40,4 @@ function ConfigProviderImpl({ density, scene, accent, dir, locale, messages, chi
|
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
const ConfigProvider = withSelfRoot(ConfigProviderImpl);
|
|
43
|
-
//#endregion
|
|
44
43
|
export { ConfigProvider, useConfig };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/container/index.d.ts
|
|
3
2
|
/** The reading frame: content held to a measure and centered on the
|
|
4
3
|
* page. The sizes name typographic measures, not breakpoints — the page
|
|
5
4
|
* owns its edges, the container only owns how long a line of ink runs. */
|
|
@@ -13,4 +12,4 @@ declare function ContainerImpl({ size, padding, ...rest }: ContainerProps): impo
|
|
|
13
12
|
export declare const Container: typeof ContainerImpl & {
|
|
14
13
|
Root: typeof ContainerImpl;
|
|
15
14
|
};
|
|
16
|
-
|
|
15
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as withSelfRoot } from "../../family-
|
|
1
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
2
2
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/container/index.tsx
|
|
5
5
|
function ContainerImpl({ size = "readable", padding = true, ...rest }) {
|
|
6
6
|
injectComponentStyle("container");
|
|
7
7
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -13,5 +13,4 @@ function ContainerImpl({ size = "readable", padding = true, ...rest }) {
|
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
15
|
const Container = withSelfRoot(ContainerImpl);
|
|
16
|
-
//#endregion
|
|
17
16
|
export { Container };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
//#region src/components/data-view/index.d.ts
|
|
3
2
|
export interface DataViewProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
3
|
items: unknown[];
|
|
5
4
|
/** Ledger rows or a lattice of cards. */
|
|
@@ -18,4 +17,4 @@ declare function DataViewImpl({ items, layout, pageSize, renderItem, header, ...
|
|
|
18
17
|
export declare const DataView: typeof DataViewImpl & {
|
|
19
18
|
Root: typeof DataViewImpl;
|
|
20
19
|
};
|
|
21
|
-
|
|
20
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as withSelfRoot } from "../../family-
|
|
2
|
-
import { n as useComponentMessages } from "../../messages-
|
|
1
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
2
|
+
import { n as useComponentMessages } from "../../messages-B6n0lVyt.mjs";
|
|
3
3
|
import { Pagination } from "../pagination/index.mjs";
|
|
4
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { useState } from "react";
|
|
7
|
-
|
|
7
|
+
// src/components/data-view/index.tsx
|
|
8
8
|
/** One vessel, two layouts: the caller renders each record through
|
|
9
9
|
* renderItem, the view lays the records out as a ledger or a lattice
|
|
10
10
|
* and — when a page size is given — pages them with the pagination
|
|
@@ -64,5 +64,4 @@ function DataViewImpl({ items, layout = "list", pageSize, renderItem, header, ..
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
const DataView = withSelfRoot(DataViewImpl);
|
|
67
|
-
//#endregion
|
|
68
67
|
export { DataView };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ComponentProps } from "react";
|
|
2
2
|
import { DateInput as DateInput$1, DateInputDateValue, DateInputFocusChangeDetails, DateInputValueChangeDetails } from "@ark-ui/react/date-input";
|
|
3
|
-
//#region src/components/date-input/index.d.ts
|
|
4
3
|
type DateInputRootProps = ComponentProps<typeof DateInput$1.Root> & {
|
|
5
4
|
/** One rung of the control-height ladder for the segmented field. */
|
|
6
5
|
size?: "sm" | "md" | "lg";
|
|
@@ -28,5 +27,4 @@ declare function DateInputFacade(props: DateInputFacadeProps): import("react").J
|
|
|
28
27
|
export declare const DateInput: typeof DateInputFacade & Omit<typeof DateInput$1, "Root"> & {
|
|
29
28
|
Root: typeof DateInputRoot;
|
|
30
29
|
};
|
|
31
|
-
//#endregion
|
|
32
30
|
export type { DateInputFocusChangeDetails, DateInputValueChangeDetails };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as useElementId } from "../../id-
|
|
1
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
2
2
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { DateInput as DateInput$1 } from "@ark-ui/react/date-input";
|
|
5
|
-
|
|
5
|
+
// src/components/date-input/index.tsx
|
|
6
6
|
function DateInputRoot(props) {
|
|
7
7
|
injectComponentStyle("date-input");
|
|
8
8
|
const id = useElementId("date-input", props);
|
|
@@ -41,5 +41,4 @@ const DateInput = Object.assign(DateInputFacade, {
|
|
|
41
41
|
...DateInput$1,
|
|
42
42
|
Root: DateInputRoot
|
|
43
43
|
});
|
|
44
|
-
//#endregion
|
|
45
44
|
export { DateInput };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ComponentProps } from "react";
|
|
2
2
|
import { DatePicker as DatePicker$1, DatePickerFocusChangeDetails, DatePickerOpenChangeDetails, DatePickerValueChangeDetails, DatePickerViewChangeDetails, DatePickerVisibleRangeChangeDetails, DateValue } from "@ark-ui/react/date-picker";
|
|
3
|
-
//#region src/components/date-picker/index.d.ts
|
|
4
3
|
type DatePickerRootProps$1 = ComponentProps<typeof DatePicker$1.Root> & {
|
|
5
4
|
/** One rung of the control-height ladder for the field row. */
|
|
6
5
|
size?: "sm" | "md" | "lg";
|
|
@@ -32,5 +31,4 @@ declare function DatePickerFacade(props: DatePickerFacadeProps): import("react")
|
|
|
32
31
|
export declare const DatePicker: typeof DatePickerFacade & Omit<typeof DatePicker$1, "Root"> & {
|
|
33
32
|
Root: typeof DatePickerRoot;
|
|
34
33
|
};
|
|
35
|
-
//#endregion
|
|
36
34
|
export type { DatePickerFocusChangeDetails, DatePickerOpenChangeDetails, DatePickerValueChangeDetails, DatePickerViewChangeDetails, DatePickerVisibleRangeChangeDetails };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as iconNode } from "../../icon-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
1
|
+
import { r as iconNode } from "../../icon-C9udWCyz.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { DatePicker as DatePicker$1 } from "@ark-ui/react/date-picker";
|
|
6
|
-
|
|
6
|
+
// src/components/date-picker/index.tsx
|
|
7
7
|
function DatePickerRoot(props) {
|
|
8
8
|
injectComponentStyle("date-picker");
|
|
9
9
|
const id = useElementId("date-picker", props);
|
|
@@ -66,5 +66,4 @@ const DatePicker = Object.assign(DatePickerFacade, {
|
|
|
66
66
|
...DatePicker$1,
|
|
67
67
|
Root: DatePickerRoot
|
|
68
68
|
});
|
|
69
|
-
//#endregion
|
|
70
69
|
export { DatePicker };
|