@bysages/react 0.4.2 → 0.4.4
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-response-nhDOlELQ.mjs → ai-response-CjjjprMY.mjs} +10 -3
- package/dist/{chevron-a2nIZKN4.mjs → chevron-BA7kV9m7.mjs} +1 -1
- package/dist/components/accordion/index.mjs +1 -1
- package/dist/components/ai/index.mjs +1 -1
- package/dist/components/ai-attachments/index.mjs +1 -1
- package/dist/components/ai-prompt-input/index.mjs +1 -1
- package/dist/components/ai-reasoning/index.mjs +1 -1
- package/dist/components/ai-response/index.mjs +1 -1
- package/dist/components/ai-tool/index.mjs +1 -1
- package/dist/components/alert/index.mjs +1 -1
- package/dist/components/avatar/index.d.mts +12 -2
- package/dist/components/avatar/index.mjs +18 -3
- package/dist/components/back-top/index.mjs +1 -1
- package/dist/components/banner/index.d.mts +16 -2
- package/dist/components/banner/index.mjs +19 -3
- package/dist/components/breadcrumb/index.d.mts +15 -1
- package/dist/components/breadcrumb/index.mjs +20 -2
- package/dist/components/calendar/index.mjs +1 -1
- package/dist/components/carousel/index.mjs +1 -1
- package/dist/components/cascade-select/index.mjs +1 -1
- package/dist/components/checkbox/index.mjs +1 -1
- package/dist/components/checkbox-group/index.mjs +1 -1
- package/dist/components/clipboard/index.mjs +1 -1
- package/dist/components/collapsible/index.mjs +1 -1
- package/dist/components/color-picker/index.d.mts +2 -0
- package/dist/components/color-picker/index.mjs +36 -22
- package/dist/components/combobox/index.mjs +1 -1
- package/dist/components/date-picker/index.mjs +1 -1
- package/dist/components/dialog/index.mjs +1 -1
- package/dist/components/drawer/index.mjs +1 -1
- package/dist/components/dynamic-input/index.mjs +1 -1
- package/dist/components/editable/index.mjs +1 -1
- package/dist/components/file-upload/index.mjs +2 -6
- package/dist/components/float-button/index.d.mts +22 -1
- package/dist/components/float-button/index.mjs +28 -2
- package/dist/components/floating-panel/index.mjs +6 -1
- package/dist/components/image/index.mjs +1 -1
- package/dist/components/image-viewer/index.mjs +1 -1
- package/dist/components/json-tree-view/index.mjs +1 -1
- package/dist/components/listbox/index.mjs +1 -1
- package/dist/components/media-player/index.mjs +1 -1
- package/dist/components/menu/index.mjs +1 -1
- package/dist/components/number-input/index.mjs +1 -1
- package/dist/components/order-list/index.mjs +1 -1
- package/dist/components/pagination/index.mjs +1 -1
- package/dist/components/password-input/index.mjs +1 -1
- package/dist/components/popover/index.mjs +1 -1
- package/dist/components/rating-group/index.mjs +1 -1
- package/dist/components/result/index.mjs +2 -1
- package/dist/components/select/index.mjs +1 -1
- package/dist/components/signature-pad/index.mjs +1 -1
- package/dist/components/split-button/index.mjs +1 -1
- package/dist/components/swap/index.mjs +1 -1
- package/dist/components/table/index.mjs +2 -2
- package/dist/components/tag/index.mjs +14 -8
- package/dist/components/tags-input/index.mjs +1 -1
- package/dist/components/toast/index.mjs +15 -2
- package/dist/components/toggle-group/index.mjs +1 -1
- package/dist/components/transfer/index.mjs +1 -1
- package/dist/components/tree-select/index.mjs +1 -1
- package/dist/components/tree-view/index.mjs +1 -1
- package/dist/generative/index.d.mts +53 -0
- package/dist/generative/index.mjs +735 -0
- package/dist/icon-Cri0-7-x.mjs +38 -0
- package/dist/{image-viewer-B-hKFkEw.mjs → image-viewer-D4FuYrk6.mjs} +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +4 -4
- package/dist/{media-player-DjVvo1_7.mjs → media-player-C0WcjVI-.mjs} +2 -2
- package/dist/{select-i9UZsQCU.mjs → select-D_soVdWK.mjs} +1 -1
- package/package.json +2 -2
- package/dist/icon-BALgGtNK.mjs +0 -18
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
|
|
2
2
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as Video, r as formatMediaTime, t as Audio } from "../../media-player-
|
|
1
|
+
import { n as Video, r as formatMediaTime, t as Audio } from "../../media-player-C0WcjVI-.mjs";
|
|
2
2
|
export { Audio, Video, formatMediaTime };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
|
|
2
2
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
|
|
2
2
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
|
|
2
2
|
import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
|
|
3
3
|
import { n as useComponentMessages } from "../../messages-1jJWtaYU.mjs";
|
|
4
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
|
|
2
2
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
|
|
2
2
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
|
|
2
2
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
|
|
2
2
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { t as iconBody } from "../../icon-Cri0-7-x.mjs";
|
|
1
2
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
//#region src/components/result/index.tsx
|
|
4
|
-
const MARK =
|
|
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>`;
|
|
5
6
|
function ResultRoot({ status = "info", children, ...rest }) {
|
|
6
7
|
injectComponentStyle("result");
|
|
7
8
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as NativeSelect, t as Select } from "../../select-
|
|
1
|
+
import { n as NativeSelect, t as Select } from "../../select-D_soVdWK.mjs";
|
|
2
2
|
export { NativeSelect, Select };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
|
|
2
2
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
|
|
2
2
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
3
3
|
import { n as useComponentMessages } from "../../messages-1jJWtaYU.mjs";
|
|
4
4
|
import { Button } from "../button/index.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
|
|
2
2
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
|
|
2
2
|
import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
|
|
3
3
|
import { n as useComponentMessages, t as formatMessage } from "../../messages-1jJWtaYU.mjs";
|
|
4
4
|
import { Pagination } from "../pagination/index.mjs";
|
|
5
|
-
import { t as Select$1 } from "../../select-
|
|
5
|
+
import { t as Select$1 } from "../../select-D_soVdWK.mjs";
|
|
6
6
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
|
|
2
2
|
import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -24,13 +24,7 @@ function TagImpl({ tone = "ink", variant = "solid", checkable = false, value, de
|
|
|
24
24
|
onClose?.();
|
|
25
25
|
};
|
|
26
26
|
const pressed = checkable && checked;
|
|
27
|
-
const closeControl = closable ?
|
|
28
|
-
"data-scope": "tag",
|
|
29
|
-
"data-part": "close",
|
|
30
|
-
"aria-hidden": "true",
|
|
31
|
-
onClick: dismiss,
|
|
32
|
-
children: iconNode("x")
|
|
33
|
-
}) : /* @__PURE__ */ jsx("button", {
|
|
27
|
+
const closeControl = closable ? /* @__PURE__ */ jsx("button", {
|
|
34
28
|
"data-scope": "tag",
|
|
35
29
|
"data-part": "close",
|
|
36
30
|
type: "button",
|
|
@@ -49,6 +43,18 @@ function TagImpl({ tone = "ink", variant = "solid", checkable = false, value, de
|
|
|
49
43
|
...pressed ? { "data-checked": "true" } : {},
|
|
50
44
|
...disabled ? { "data-disabled": "true" } : {}
|
|
51
45
|
};
|
|
46
|
+
if (checkable && closable) return /* @__PURE__ */ jsxs("span", {
|
|
47
|
+
...partProps,
|
|
48
|
+
children: [/* @__PURE__ */ jsx("button", {
|
|
49
|
+
"data-scope": "tag",
|
|
50
|
+
"data-part": "check",
|
|
51
|
+
type: "button",
|
|
52
|
+
"aria-pressed": checked,
|
|
53
|
+
disabled,
|
|
54
|
+
onClick: toggle,
|
|
55
|
+
children
|
|
56
|
+
}), closeControl]
|
|
57
|
+
});
|
|
52
58
|
if (checkable) return /* @__PURE__ */ jsxs("button", {
|
|
53
59
|
...partProps,
|
|
54
60
|
type: "button",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
|
|
2
2
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
|
|
1
2
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
2
3
|
import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
|
|
3
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
6
|
import { forwardRef } from "react";
|
|
6
7
|
import { Toast as Toast$1, Toaster as Toaster$1, createToaster } from "@ark-ui/react/toast";
|
|
7
8
|
//#region src/components/toast/index.tsx
|
|
@@ -22,9 +23,21 @@ const Toast = {
|
|
|
22
23
|
Root: ToastRoot
|
|
23
24
|
};
|
|
24
25
|
const ToasterRoot = forwardRef(function ToasterRoot(props, ref) {
|
|
26
|
+
const { children, ...rest } = props;
|
|
25
27
|
return /* @__PURE__ */ jsx(Toaster$1, {
|
|
26
28
|
ref,
|
|
27
|
-
...
|
|
29
|
+
...rest,
|
|
30
|
+
children: children ?? ((toast) => /* @__PURE__ */ jsxs(Toast$1.Root, { children: [
|
|
31
|
+
/* @__PURE__ */ jsx(Toast$1.Title, { children: toast.title }),
|
|
32
|
+
toast.description ? /* @__PURE__ */ jsx(Toast$1.Description, { children: toast.description }) : null,
|
|
33
|
+
/* @__PURE__ */ jsx(Toast$1.CloseTrigger, {
|
|
34
|
+
"aria-label": "Close",
|
|
35
|
+
children: iconNode("x", {
|
|
36
|
+
width: 14,
|
|
37
|
+
height: 14
|
|
38
|
+
})
|
|
39
|
+
})
|
|
40
|
+
] }, toast.id))
|
|
28
41
|
});
|
|
29
42
|
});
|
|
30
43
|
const Toaster = withSelfRoot(ToasterRoot);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
|
|
2
2
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
|
|
2
2
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
3
3
|
import { n as useComponentMessages, t as formatMessage } from "../../messages-1jJWtaYU.mjs";
|
|
4
4
|
import { Button } from "../button/index.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
|
|
2
2
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
3
3
|
import { n as useComponentMessages } from "../../messages-1jJWtaYU.mjs";
|
|
4
4
|
import { Popover as Popover$1 } from "../popover/index.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
|
|
2
2
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/generative/index.d.ts
|
|
3
|
+
export declare const catalog: import("@json-render/core").Catalog<{
|
|
4
|
+
spec: import("@json-render/core").SchemaType<"object", {
|
|
5
|
+
root: import("@json-render/core").SchemaType<"string", unknown>;
|
|
6
|
+
elements: import("@json-render/core").SchemaType<"record", import("@json-render/core").SchemaType<"object", {
|
|
7
|
+
type: import("@json-render/core").SchemaType<"ref", string>;
|
|
8
|
+
props: import("@json-render/core").SchemaType<"propsOf", string>;
|
|
9
|
+
children: import("@json-render/core").SchemaType<"array", import("@json-render/core").SchemaType<"string", unknown>>;
|
|
10
|
+
slots: {
|
|
11
|
+
optional: true;
|
|
12
|
+
kind: "record";
|
|
13
|
+
inner?: import("@json-render/core").SchemaType<"array", import("@json-render/core").SchemaType<"string", unknown>> | undefined;
|
|
14
|
+
};
|
|
15
|
+
visible: {
|
|
16
|
+
optional: true;
|
|
17
|
+
kind: "any";
|
|
18
|
+
inner?: unknown;
|
|
19
|
+
};
|
|
20
|
+
repeat: {
|
|
21
|
+
optional: true;
|
|
22
|
+
kind: "any";
|
|
23
|
+
inner?: unknown;
|
|
24
|
+
};
|
|
25
|
+
}>>;
|
|
26
|
+
}>;
|
|
27
|
+
catalog: import("@json-render/core").SchemaType<"object", {
|
|
28
|
+
components: import("@json-render/core").SchemaType<"map", {
|
|
29
|
+
props: import("@json-render/core").SchemaType<"zod", unknown>;
|
|
30
|
+
slots: import("@json-render/core").SchemaType<"array", import("@json-render/core").SchemaType<"string", unknown>>;
|
|
31
|
+
description: import("@json-render/core").SchemaType<"string", unknown>;
|
|
32
|
+
example: import("@json-render/core").SchemaType<"any", unknown>;
|
|
33
|
+
}>;
|
|
34
|
+
actions: import("@json-render/core").SchemaType<"map", {
|
|
35
|
+
params: import("@json-render/core").SchemaType<"zod", unknown>;
|
|
36
|
+
description: import("@json-render/core").SchemaType<"string", unknown>;
|
|
37
|
+
}>;
|
|
38
|
+
}>;
|
|
39
|
+
}, {
|
|
40
|
+
components: Record<string, {
|
|
41
|
+
props: z.ZodObject;
|
|
42
|
+
slots?: string[];
|
|
43
|
+
description: string;
|
|
44
|
+
}>;
|
|
45
|
+
actions: {};
|
|
46
|
+
}>;
|
|
47
|
+
declare const registry: import("@json-render/react").ComponentRegistry;
|
|
48
|
+
/** Which family each face came home from. A family may speak under
|
|
49
|
+
* several names - Layout plus its parts, Bento plus its cell - and the
|
|
50
|
+
* palette groups by provenance, never by guessing from the name. */
|
|
51
|
+
export declare const faceFamilies: Record<string, string>;
|
|
52
|
+
//#endregion
|
|
53
|
+
export { registry };
|