@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 { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { Pagination as Pagination$1 } from "@ark-ui/react/pagination";
|
|
6
|
-
|
|
6
|
+
// src/components/pagination/index.tsx
|
|
7
7
|
function PaginationRoot(props) {
|
|
8
8
|
injectComponentStyle("pagination");
|
|
9
9
|
const id = useElementId("pagination", props);
|
|
@@ -89,5 +89,4 @@ const Pagination = Object.assign(PaginationFacade, {
|
|
|
89
89
|
PrevTrigger: PaginationPrevTrigger,
|
|
90
90
|
NextTrigger: PaginationNextTrigger
|
|
91
91
|
});
|
|
92
|
-
//#endregion
|
|
93
92
|
export { Pagination };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
import { PasswordInput as PasswordInput$1 } from "@ark-ui/react/password-input";
|
|
3
|
-
//#region src/components/password-input/index.d.ts
|
|
4
3
|
type PasswordInputRootProps = ComponentProps<typeof PasswordInput$1.Root> & {
|
|
5
4
|
/** One rung of the control-height ladder for the field and its eye. */
|
|
6
5
|
size?: "sm" | "md" | "lg";
|
|
@@ -31,4 +30,4 @@ export declare const PasswordInput: typeof PasswordInputFacade & {
|
|
|
31
30
|
RootProvider: import("react").ForwardRefExoticComponent<PasswordInput$1.RootProviderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
32
31
|
VisibilityTrigger: import("react").ForwardRefExoticComponent<PasswordInput$1.VisibilityTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
33
32
|
};
|
|
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 { PasswordInput as PasswordInput$1 } from "@ark-ui/react/password-input";
|
|
6
|
-
|
|
6
|
+
// src/components/password-input/index.tsx
|
|
7
7
|
function PasswordInputRoot(props) {
|
|
8
8
|
const id = useElementId("password-input", props);
|
|
9
9
|
const { size = "md", ...rest } = props;
|
|
@@ -40,5 +40,4 @@ const PasswordInput = Object.assign(PasswordInputFacade, {
|
|
|
40
40
|
Root: PasswordInputRoot
|
|
41
41
|
});
|
|
42
42
|
injectComponentStyle("password-input");
|
|
43
|
-
//#endregion
|
|
44
43
|
export { PasswordInput };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
import { PinInput as PinInput$1 } from "@ark-ui/react/pin-input";
|
|
3
|
-
//#region src/components/pin-input/index.d.ts
|
|
4
3
|
type PinInputRootProps = ComponentProps<typeof PinInput$1.Root> & {
|
|
5
4
|
/** One rung of the control-height ladder each seal stands on. */
|
|
6
5
|
size?: "sm" | "md" | "lg";
|
|
@@ -30,4 +29,4 @@ export declare const PinInput: typeof PinInputFacade & {
|
|
|
30
29
|
Label: import("react").ForwardRefExoticComponent<PinInput$1.LabelProps & import("react").RefAttributes<HTMLLabelElement>>;
|
|
31
30
|
RootProvider: import("react").ForwardRefExoticComponent<PinInput$1.RootProviderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
32
31
|
};
|
|
33
|
-
|
|
32
|
+
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 { PinInput as PinInput$1 } from "@ark-ui/react/pin-input";
|
|
5
|
-
|
|
5
|
+
// src/components/pin-input/index.tsx
|
|
6
6
|
function PinInputRoot(props) {
|
|
7
7
|
const id = useElementId("pin-input", props);
|
|
8
8
|
const { size = "md", ...rest } = props;
|
|
@@ -38,5 +38,4 @@ const PinInput = Object.assign(PinInputFacade, {
|
|
|
38
38
|
Root: PinInputRoot
|
|
39
39
|
});
|
|
40
40
|
injectComponentStyle("pin-input");
|
|
41
|
-
//#endregion
|
|
42
41
|
export { PinInput };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as FloatingPortalTarget } from "../../floating-BhcDRgnx.mjs";
|
|
2
|
+
import { t as Popover } from "../../index-j02dTkfc.mjs";
|
|
2
3
|
import { ReactNode } from "react";
|
|
3
|
-
//#region src/components/popconfirm/index.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* A question at the point of no return: the trigger opens a small
|
|
6
6
|
* anchored vessel carrying the message and two answers. Each answer is
|
|
@@ -10,6 +10,8 @@ import { ReactNode } from "react";
|
|
|
10
10
|
* otherwise).
|
|
11
11
|
*/
|
|
12
12
|
export interface PopconfirmProps {
|
|
13
|
+
/** Portal after hydration; `false` keeps the vessel inline. */
|
|
14
|
+
portal?: FloatingPortalTarget;
|
|
13
15
|
id?: string;
|
|
14
16
|
/** The question the reader is answering. */
|
|
15
17
|
message: string;
|
|
@@ -19,6 +21,6 @@ export interface PopconfirmProps {
|
|
|
19
21
|
onConfirm?: () => void;
|
|
20
22
|
onCancel?: () => void;
|
|
21
23
|
}
|
|
22
|
-
declare function PopconfirmImpl({ message, confirmText, cancelText, children, onConfirm, onCancel, id }: PopconfirmProps): import("react").JSX.Element;
|
|
24
|
+
declare function PopconfirmImpl({ portal, message, confirmText, cancelText, children, onConfirm, onCancel, id }: PopconfirmProps): import("react").JSX.Element;
|
|
23
25
|
export declare const Popconfirm: typeof PopconfirmImpl & typeof Popover;
|
|
24
|
-
|
|
26
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as useElementId } from "../../id-
|
|
1
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
2
2
|
import { Button } from "../button/index.mjs";
|
|
3
|
+
import { t as FloatingPortal } from "../../floating-CMR7cvmA.mjs";
|
|
3
4
|
import { Popover as Popover$1 } from "../popover/index.mjs";
|
|
4
5
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
7
|
import { Popover } from "@ark-ui/react/popover";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
function PopconfirmImpl({ message, confirmText = "Confirm", cancelText = "Cancel", children, onConfirm, onCancel, id }) {
|
|
8
|
+
// src/components/popconfirm/index.tsx
|
|
9
|
+
function PopconfirmImpl({ portal = false, message, confirmText = "Confirm", cancelText = "Cancel", children, onConfirm, onCancel, id }) {
|
|
10
10
|
injectComponentStyle("popconfirm");
|
|
11
11
|
const hostId = useElementId("popconfirm", { id });
|
|
12
12
|
return /* @__PURE__ */ jsxs(Popover.Root, {
|
|
@@ -15,35 +15,37 @@ function PopconfirmImpl({ message, confirmText = "Confirm", cancelText = "Cancel
|
|
|
15
15
|
children: [/* @__PURE__ */ jsx(Popover.Trigger, {
|
|
16
16
|
asChild: true,
|
|
17
17
|
children
|
|
18
|
-
}), /* @__PURE__ */ jsx(
|
|
19
|
-
|
|
20
|
-
children:
|
|
21
|
-
|
|
22
|
-
children:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
children: /* @__PURE__ */ jsx(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
18
|
+
}), /* @__PURE__ */ jsx(FloatingPortal, {
|
|
19
|
+
portal,
|
|
20
|
+
children: /* @__PURE__ */ jsx(Popover.Positioner, { children: /* @__PURE__ */ jsxs(Popover.Content, {
|
|
21
|
+
className: "bs-popconfirm",
|
|
22
|
+
children: [/* @__PURE__ */ jsx("p", {
|
|
23
|
+
"data-part": "message",
|
|
24
|
+
children: message
|
|
25
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
26
|
+
"data-part": "actions",
|
|
27
|
+
children: [/* @__PURE__ */ jsx(Popover.CloseTrigger, {
|
|
28
|
+
asChild: true,
|
|
29
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
30
|
+
variant: "ghost",
|
|
31
|
+
size: "sm",
|
|
32
|
+
"aria-label": cancelText,
|
|
33
|
+
onClick: () => onCancel?.(),
|
|
34
|
+
children: cancelText
|
|
35
|
+
})
|
|
36
|
+
}), /* @__PURE__ */ jsx(Popover.CloseTrigger, {
|
|
37
|
+
asChild: true,
|
|
38
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
39
|
+
size: "sm",
|
|
40
|
+
"aria-label": confirmText,
|
|
41
|
+
onClick: () => onConfirm?.(),
|
|
42
|
+
children: confirmText
|
|
43
|
+
})
|
|
44
|
+
})]
|
|
42
45
|
})]
|
|
43
|
-
})
|
|
44
|
-
})
|
|
46
|
+
}) })
|
|
47
|
+
})]
|
|
45
48
|
});
|
|
46
49
|
}
|
|
47
50
|
const Popconfirm = Object.assign(PopconfirmImpl, Popover$1);
|
|
48
|
-
//#endregion
|
|
49
51
|
export { Popconfirm };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as PopoverFacadeProps, t as Popover } from "../../index-
|
|
1
|
+
import { n as PopoverFacadeProps, t as Popover } from "../../index-j02dTkfc.mjs";
|
|
2
2
|
export { Popover, PopoverFacadeProps };
|
|
@@ -1,10 +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
|
+
import { n as definePositioner, t as FloatingPortal } from "../../floating-CMR7cvmA.mjs";
|
|
3
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
6
|
import { isValidElement } from "react";
|
|
6
7
|
import { Popover as Popover$1 } from "@ark-ui/react/popover";
|
|
7
|
-
|
|
8
|
+
// src/components/popover/index.tsx
|
|
8
9
|
/** Ark's Popover, dressed in the paper-and-ink system: a paper vessel that
|
|
9
10
|
* dissolves in on elevation, anchored to its trigger by a whisker arrow.
|
|
10
11
|
* The API is Ark's own — Root, Trigger, Anchor, Indicator, Positioner,
|
|
@@ -16,7 +17,8 @@ function PopoverRoot(props) {
|
|
|
16
17
|
id
|
|
17
18
|
});
|
|
18
19
|
}
|
|
19
|
-
|
|
20
|
+
const PopoverPositioner = definePositioner(Popover$1.Positioner);
|
|
21
|
+
function PopoverFacade({ portal = false, open, defaultOpen, trigger, content, label, description, disabled = false, placement, children, onOpenChange }) {
|
|
20
22
|
return /* @__PURE__ */ jsxs(PopoverRoot, {
|
|
21
23
|
...placement === void 0 ? {} : { positioning: { placement } },
|
|
22
24
|
...open === void 0 ? {} : { open },
|
|
@@ -26,26 +28,29 @@ function PopoverFacade({ open, defaultOpen, trigger, content, label, description
|
|
|
26
28
|
asChild: isValidElement(trigger),
|
|
27
29
|
disabled,
|
|
28
30
|
children: trigger ?? label
|
|
29
|
-
}), /* @__PURE__ */ jsx(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
31
|
+
}), /* @__PURE__ */ jsx(FloatingPortal, {
|
|
32
|
+
portal,
|
|
33
|
+
children: /* @__PURE__ */ jsx(Popover$1.Positioner, { children: /* @__PURE__ */ jsxs(Popover$1.Content, { children: [
|
|
34
|
+
/* @__PURE__ */ jsx(Popover$1.CloseTrigger, {
|
|
35
|
+
"aria-label": "Close",
|
|
36
|
+
children: iconNode("x", {
|
|
37
|
+
width: 14,
|
|
38
|
+
height: 14
|
|
39
|
+
})
|
|
40
|
+
}),
|
|
41
|
+
/* @__PURE__ */ jsx(Popover$1.Title, { children: label }),
|
|
42
|
+
description ? /* @__PURE__ */ jsx(Popover$1.Description, { children: description }) : null,
|
|
43
|
+
content ? /* @__PURE__ */ jsx("p", { children: content }) : null,
|
|
44
|
+
children
|
|
45
|
+
] }) })
|
|
46
|
+
})]
|
|
42
47
|
});
|
|
43
48
|
}
|
|
44
49
|
PopoverFacade.displayName = "SPopover";
|
|
45
50
|
const Popover = Object.assign(PopoverFacade, {
|
|
46
51
|
...Popover$1,
|
|
52
|
+
Positioner: PopoverPositioner,
|
|
47
53
|
Root: PopoverRoot
|
|
48
54
|
});
|
|
49
55
|
injectComponentStyle("popover");
|
|
50
|
-
//#endregion
|
|
51
56
|
export { Popover };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { PresenceBaseProps, PresenceProps, UsePresenceContext, UsePresenceProps, UsePresenceReturn, usePresence, usePresenceContext } from "@ark-ui/react/presence";
|
|
2
|
-
//#region src/components/presence/index.d.ts
|
|
3
2
|
export declare const Presence: import("react").ForwardRefExoticComponent<import("@ark-ui/react/presence").PresenceProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
4
3
|
Root: import("react").ForwardRefExoticComponent<import("@ark-ui/react/presence").PresenceProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
4
|
};
|
|
6
5
|
export declare const PresenceProvider: import("react").Provider<import("@ark-ui/react/presence").UsePresenceContext> & {
|
|
7
6
|
Root: import("react").Provider<import("@ark-ui/react/presence").UsePresenceContext>;
|
|
8
7
|
};
|
|
9
|
-
//#endregion
|
|
10
8
|
export { type PresenceBaseProps, type PresenceProps, type UsePresenceContext, type UsePresenceProps, type UsePresenceReturn, usePresence, usePresenceContext };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { t as withSelfRoot } from "../../family-
|
|
1
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
2
2
|
import { Presence as Presence$1, PresenceProvider as PresenceProvider$1, usePresence, usePresenceContext } from "@ark-ui/react/presence";
|
|
3
|
-
|
|
3
|
+
// src/components/presence/index.tsx
|
|
4
4
|
const Presence = withSelfRoot(Presence$1);
|
|
5
5
|
const PresenceProvider = withSelfRoot(PresenceProvider$1);
|
|
6
|
-
//#endregion
|
|
7
6
|
export { Presence, PresenceProvider, usePresence, usePresenceContext };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ComponentProps } from "react";
|
|
2
2
|
import { Progress as Progress$1 } from "@ark-ui/react/progress";
|
|
3
|
-
//#region src/components/progress/index.d.ts
|
|
4
3
|
type ProgressRootProps = ComponentProps<typeof Progress$1.Root> & {
|
|
5
4
|
/** One rung of the groove ladder — the track's thickness. */
|
|
6
5
|
size?: "sm" | "md" | "lg";
|
|
@@ -28,4 +27,4 @@ declare function ProgressFacade(props: ProgressFacadeProps): import("react").JSX
|
|
|
28
27
|
export declare const Progress: typeof ProgressFacade & Omit<typeof Progress$1, "Root"> & {
|
|
29
28
|
Root: typeof ProgressRoot;
|
|
30
29
|
};
|
|
31
|
-
|
|
30
|
+
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 { Progress as Progress$1 } from "@ark-ui/react/progress";
|
|
5
|
-
|
|
5
|
+
// src/components/progress/index.tsx
|
|
6
6
|
const ProgressView = Progress$1.View;
|
|
7
7
|
function ProgressRoot(props) {
|
|
8
8
|
injectComponentStyle("progress");
|
|
@@ -58,5 +58,4 @@ const Progress = Object.assign(ProgressFacade, {
|
|
|
58
58
|
...Progress$1,
|
|
59
59
|
Root: ProgressRoot
|
|
60
60
|
});
|
|
61
|
-
//#endregion
|
|
62
61
|
export { Progress };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/progress-group/index.d.ts
|
|
3
2
|
/** One verdict on the bar. */
|
|
4
3
|
export interface ProgressSegment {
|
|
5
4
|
value: number;
|
|
@@ -22,4 +21,4 @@ declare function ProgressGroupImpl({ segments, max, showLegend, ...rest }: Progr
|
|
|
22
21
|
export declare const ProgressGroup: typeof ProgressGroupImpl & {
|
|
23
22
|
Root: typeof ProgressGroupImpl;
|
|
24
23
|
};
|
|
25
|
-
|
|
24
|
+
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/progress-group/index.tsx
|
|
5
5
|
function ProgressGroupImpl({ segments, max, showLegend = true, ...rest }) {
|
|
6
6
|
injectComponentStyle("progress-group");
|
|
7
7
|
const total = max ?? segments.reduce((sum, segment) => sum + segment.value, 0);
|
|
@@ -54,5 +54,4 @@ function ProgressGroupImpl({ segments, max, showLegend = true, ...rest }) {
|
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
const ProgressGroup = withSelfRoot(ProgressGroupImpl);
|
|
57
|
-
//#endregion
|
|
58
57
|
export { ProgressGroup };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ComponentProps } from "react";
|
|
2
2
|
import { QrCode as QrCode$1 } from "@ark-ui/react/qr-code";
|
|
3
|
-
//#region src/components/qr-code/index.d.ts
|
|
4
3
|
/** Ark's QrCode, dressed in the paper-and-ink system: the pattern prints in
|
|
5
4
|
* ink on the page, with an optional paper badge and a seal-cut download
|
|
6
5
|
* control. The API is Ark's own — Root, Frame, Pattern, Overlay,
|
|
@@ -18,4 +17,4 @@ declare function QrCodeFacade(props: QrCodeFacadeProps): import("react").JSX.Ele
|
|
|
18
17
|
export declare const QrCode: typeof QrCodeFacade & Omit<typeof QrCode$1, "Root"> & {
|
|
19
18
|
Root: typeof QrCodeRoot;
|
|
20
19
|
};
|
|
21
|
-
|
|
20
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as useElementId } from "../../id-
|
|
1
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
2
2
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { QrCode as QrCode$1 } from "@ark-ui/react/qr-code";
|
|
5
|
-
|
|
5
|
+
// src/components/qr-code/index.tsx
|
|
6
6
|
/** Ark's QrCode, dressed in the paper-and-ink system: the pattern prints in
|
|
7
7
|
* ink on the page, with an optional paper badge and a seal-cut download
|
|
8
8
|
* control. The API is Ark's own — Root, Frame, Pattern, Overlay,
|
|
@@ -31,5 +31,4 @@ const QrCode = Object.assign(QrCodeFacade, {
|
|
|
31
31
|
...QrCode$1,
|
|
32
32
|
Root: QrCodeRoot
|
|
33
33
|
});
|
|
34
|
-
//#endregion
|
|
35
34
|
export { QrCode };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
import { RadioGroup as RadioGroup$1 } from "@ark-ui/react/radio-group";
|
|
3
|
-
//#region src/components/radio-group/index.d.ts
|
|
4
3
|
type RadioGroupRootProps = ComponentProps<typeof RadioGroup$1.Root> & {
|
|
5
4
|
/** One rung for the dial; the chosen dot rides it. */
|
|
6
5
|
size?: "sm" | "md" | "lg";
|
|
@@ -38,4 +37,4 @@ type RadioGroupParts = Omit<typeof RadioGroup$1, "Root"> & {
|
|
|
38
37
|
Root: typeof RadioGroupRoot;
|
|
39
38
|
};
|
|
40
39
|
export declare const RadioGroup: typeof RadioGroupFacade & RadioGroupParts;
|
|
41
|
-
|
|
40
|
+
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 { RadioGroup as RadioGroup$1 } from "@ark-ui/react/radio-group";
|
|
5
|
-
|
|
5
|
+
// src/components/radio-group/index.tsx
|
|
6
6
|
function RadioGroupRoot(props) {
|
|
7
7
|
const id = useElementId("radio-group", props);
|
|
8
8
|
const { size = "md", ...rest } = props;
|
|
@@ -41,5 +41,4 @@ const RadioGroup = Object.assign(RadioGroupFacade, {
|
|
|
41
41
|
Root: RadioGroupRoot
|
|
42
42
|
});
|
|
43
43
|
injectComponentStyle("radio-group");
|
|
44
|
-
//#endregion
|
|
45
44
|
export { RadioGroup };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
import { RatingGroup as RatingGroup$1 } from "@ark-ui/react/rating-group";
|
|
3
|
-
//#region src/components/rating-group/index.d.ts
|
|
4
3
|
type RatingGroupRootProps = ComponentProps<typeof RatingGroup$1.Root> & {
|
|
5
4
|
/** One rung of the control-height ladder every seal stands on. */
|
|
6
5
|
size?: "sm" | "md" | "lg";
|
|
@@ -30,4 +29,4 @@ type RatingGroupParts = Omit<typeof RatingGroup$1, "Root"> & {
|
|
|
30
29
|
Root: typeof RatingGroupRoot;
|
|
31
30
|
};
|
|
32
31
|
export declare const RatingGroup: typeof RatingGroupFacade & RatingGroupParts;
|
|
33
|
-
|
|
32
|
+
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 { RatingGroup as RatingGroup$1 } from "@ark-ui/react/rating-group";
|
|
6
|
-
|
|
6
|
+
// src/components/rating-group/index.tsx
|
|
7
7
|
function RatingGroupRoot(props) {
|
|
8
8
|
const id = useElementId("rating-group", props);
|
|
9
9
|
const { size = "md", ...rest } = props;
|
|
@@ -35,5 +35,4 @@ const RatingGroup = Object.assign(RatingGroupFacade, {
|
|
|
35
35
|
Root: RatingGroupRoot
|
|
36
36
|
});
|
|
37
37
|
injectComponentStyle("rating-group");
|
|
38
|
-
//#endregion
|
|
39
38
|
export { RatingGroup };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
//#region src/components/result/index.d.ts
|
|
3
2
|
type Status = "success" | "warning" | "danger" | "info";
|
|
4
3
|
export interface ResultRootProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
4
|
/** The verdict the operation returned; the fixed pigments speak it. */
|
|
@@ -28,4 +27,4 @@ export declare const Result: typeof ResultRoot & {
|
|
|
28
27
|
children?: ReactNode;
|
|
29
28
|
}) => import("react").JSX.Element;
|
|
30
29
|
};
|
|
31
|
-
|
|
30
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as iconBody } from "../../icon-
|
|
1
|
+
import { t as iconBody } from "../../icon-C9udWCyz.mjs";
|
|
2
2
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/result/index.tsx
|
|
5
5
|
const MARK = `<g data-for="success">${iconBody("check")}</g><g data-for="warning">${iconBody("triangle-alert")}</g><g data-for="danger">${iconBody("circle-x")}</g><g data-for="info">${iconBody("info")}</g>`;
|
|
6
6
|
function ResultRoot({ status = "info", children, ...rest }) {
|
|
7
7
|
injectComponentStyle("result");
|
|
@@ -56,5 +56,4 @@ const Result = Object.assign(ResultRoot, {
|
|
|
56
56
|
Description: part("description", "p"),
|
|
57
57
|
Extra: part("extra", "div")
|
|
58
58
|
});
|
|
59
|
-
//#endregion
|
|
60
59
|
export { Result, ResultIcon, ResultRoot };
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { CSSProperties, ComponentProps, ReactNode } from "react";
|
|
2
2
|
import { ScrollArea as ScrollArea$1 } from "@ark-ui/react/scroll-area";
|
|
3
|
-
|
|
3
|
+
type ScrollAreaFade = "vertical" | "horizontal" | "both";
|
|
4
|
+
type ScrollAreaRootProps = ComponentProps<typeof ScrollArea$1.Root> & {
|
|
5
|
+
fade?: ScrollAreaFade;
|
|
6
|
+
};
|
|
4
7
|
/** Ark's ScrollArea, dressed in the paper-and-ink system: native bars
|
|
5
8
|
* give way to quiet ink lanes that surface on hover and scroll. The API
|
|
6
9
|
* is Ark's own — Root, Viewport, Content, Scrollbar, Thumb, Corner. */
|
|
7
|
-
declare function ScrollAreaRoot(props:
|
|
10
|
+
declare function ScrollAreaRoot({ fade, ...props }: ScrollAreaRootProps): import("react").JSX.Element;
|
|
8
11
|
type ScrollAreaFacadeProps = {
|
|
9
12
|
orientation?: "vertical" | "horizontal" | "both";
|
|
13
|
+
/** Dissolve the viewport's edges — see Root's `fade`. */
|
|
14
|
+
fade?: ScrollAreaFade;
|
|
10
15
|
className?: string;
|
|
11
16
|
style?: CSSProperties;
|
|
12
17
|
children?: ReactNode;
|
|
@@ -17,4 +22,4 @@ declare function ScrollAreaFacade(props: ScrollAreaFacadeProps): import("react")
|
|
|
17
22
|
export declare const ScrollArea: typeof ScrollAreaFacade & Omit<typeof ScrollArea$1, "Root"> & {
|
|
18
23
|
Root: typeof ScrollAreaRoot;
|
|
19
24
|
};
|
|
20
|
-
|
|
25
|
+
export {};
|
|
@@ -1,25 +1,27 @@
|
|
|
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 { ScrollArea as ScrollArea$1 } from "@ark-ui/react/scroll-area";
|
|
5
|
-
|
|
5
|
+
// src/components/scroll-area/index.tsx
|
|
6
6
|
/** Ark's ScrollArea, dressed in the paper-and-ink system: native bars
|
|
7
7
|
* give way to quiet ink lanes that surface on hover and scroll. The API
|
|
8
8
|
* is Ark's own — Root, Viewport, Content, Scrollbar, Thumb, Corner. */
|
|
9
|
-
function ScrollAreaRoot(props) {
|
|
9
|
+
function ScrollAreaRoot({ fade, ...props }) {
|
|
10
10
|
injectComponentStyle("scroll-area");
|
|
11
11
|
const id = useElementId("scroll-area", props);
|
|
12
12
|
return /* @__PURE__ */ jsx(ScrollArea$1.Root, {
|
|
13
13
|
...props,
|
|
14
|
-
id
|
|
14
|
+
id,
|
|
15
|
+
"data-fade": fade
|
|
15
16
|
});
|
|
16
17
|
}
|
|
17
18
|
/** The complete scroll vessel around caller content, with one or both quiet
|
|
18
19
|
* lanes depending on orientation. */
|
|
19
20
|
function ScrollAreaFacade(props) {
|
|
20
|
-
const { orientation = "vertical", className, style, children } = props;
|
|
21
|
+
const { orientation = "vertical", fade, className, style, children } = props;
|
|
21
22
|
const orientations = orientation === "both" ? ["vertical", "horizontal"] : [orientation];
|
|
22
23
|
return /* @__PURE__ */ jsxs(ScrollAreaRoot, {
|
|
24
|
+
fade,
|
|
23
25
|
className,
|
|
24
26
|
style,
|
|
25
27
|
children: [
|
|
@@ -36,5 +38,4 @@ const ScrollArea = Object.assign(ScrollAreaFacade, {
|
|
|
36
38
|
...ScrollArea$1,
|
|
37
39
|
Root: ScrollAreaRoot
|
|
38
40
|
});
|
|
39
|
-
//#endregion
|
|
40
41
|
export { ScrollArea };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
import { SegmentGroup as SegmentGroup$1 } from "@ark-ui/react/segment-group";
|
|
3
|
-
//#region src/components/segment-group/index.d.ts
|
|
4
3
|
type SegmentGroupRootProps = ComponentProps<typeof SegmentGroup$1.Root> & {
|
|
5
4
|
/** One rung of the control-height ladder for the segments. The
|
|
6
5
|
* family keeps its compact register, so the rungs sit one notch
|
|
@@ -41,4 +40,4 @@ type SegmentGroupParts = Omit<typeof SegmentGroup$1, "Root"> & {
|
|
|
41
40
|
Root: typeof SegmentGroupRoot;
|
|
42
41
|
};
|
|
43
42
|
export declare const SegmentGroup: typeof SegmentGroupFacade & SegmentGroupParts;
|
|
44
|
-
|
|
43
|
+
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 { SegmentGroup as SegmentGroup$1 } from "@ark-ui/react/segment-group";
|
|
5
|
-
|
|
5
|
+
// src/components/segment-group/index.tsx
|
|
6
6
|
function SegmentGroupRoot(props) {
|
|
7
7
|
const id = useElementId("segment-group", props);
|
|
8
8
|
const { size = "md", ...rest } = props;
|
|
@@ -43,5 +43,4 @@ const SegmentGroup = Object.assign(SegmentGroupFacade, {
|
|
|
43
43
|
Root: SegmentGroupRoot
|
|
44
44
|
});
|
|
45
45
|
injectComponentStyle("segment-group");
|
|
46
|
-
//#endregion
|
|
47
46
|
export { SegmentGroup };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as NativeSelectProps, i as NativeSelectOption, n as SelectFacadeProps, r as NativeSelect, t as Select } from "../../index-
|
|
1
|
+
import { a as NativeSelectProps, i as NativeSelectOption, n as SelectFacadeProps, r as NativeSelect, t as Select } from "../../index-DZ2S5rMj.mjs";
|
|
2
2
|
export { NativeSelect, type NativeSelectOption, type NativeSelectProps, Select, SelectFacadeProps };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { NativeSelect, Select };
|
|
1
|
+
export { n as NativeSelect, t as Select } from "../../select-BLFqfeVw.mjs";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/separator/index.d.ts
|
|
3
2
|
/** The paper-ink hairline as a component: a named rule between sections.
|
|
4
3
|
* Decorative separators drop the separator role, since the page reads
|
|
5
4
|
* fine without them. */
|
|
@@ -11,4 +10,4 @@ declare function SeparatorImpl({ orientation, decorative, ...rest }: SeparatorPr
|
|
|
11
10
|
export declare const Separator: typeof SeparatorImpl & {
|
|
12
11
|
Root: typeof SeparatorImpl;
|
|
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/separator/index.tsx
|
|
5
5
|
function SeparatorImpl({ orientation = "horizontal", decorative = false, ...rest }) {
|
|
6
6
|
injectComponentStyle("separator");
|
|
7
7
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -14,5 +14,4 @@ function SeparatorImpl({ orientation = "horizontal", decorative = false, ...rest
|
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
16
|
const Separator = withSelfRoot(SeparatorImpl);
|
|
17
|
-
//#endregion
|
|
18
17
|
export { Separator };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { SignaturePad as SignaturePad$1 } from "@ark-ui/react/signature-pad";
|
|
3
|
-
//#region src/components/signature-pad/index.d.ts
|
|
4
3
|
interface SignaturePadFacadeProps {
|
|
5
4
|
value?: string[];
|
|
6
5
|
defaultValue?: string[];
|
|
@@ -25,4 +24,4 @@ export declare const SignaturePad: typeof SignaturePadFacade & {
|
|
|
25
24
|
RootProvider: import("react").ForwardRefExoticComponent<SignaturePad$1.RootProviderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
26
25
|
Segment: import("react").ForwardRefExoticComponent<SignaturePad$1.SegmentProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
27
26
|
};
|
|
28
|
-
|
|
27
|
+
export {};
|