@heroui/agent 0.2.0-beta.7 → 0.2.0-beta.9
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/CHANGELOG.md +20 -2
- package/README.md +15 -10
- package/dist/chart-content-BBHQVMP4.js +1 -0
- package/dist/chunk-2XBFFSW2.js +1 -0
- package/dist/chunk-64RI74L5.js +1 -0
- package/dist/chunk-6ZJJN322.js +1 -0
- package/dist/chunk-7KCGPNEN.js +1 -0
- package/dist/chunk-BBB5EHDN.js +5 -0
- package/dist/chunk-CR3H7AVI.js +1 -0
- package/dist/chunk-HCLXS4HQ.js +1 -0
- package/dist/chunk-MXLGM4WV.js +1 -0
- package/dist/chunk-OA3TG5CS.js +1 -0
- package/dist/chunk-PZJ4NC3J.js +1 -0
- package/dist/chunk-RNNGE7KM.js +1 -0
- package/dist/chunk-S6OIAJSC.js +1 -0
- package/dist/chunk-SUDHJNTJ.js +2 -0
- package/dist/chunk-WUAFMD7Z.js +2 -0
- package/dist/component-renderer-GG6JVRUG.js +1 -0
- package/dist/composer-draft-NSKK65F3.js +1 -0
- package/dist/composer-image-draft-KAGTNQR7.js +1 -0
- package/dist/contracts.d.ts +50 -19
- package/dist/contracts.js +2 -2545
- package/dist/css/index.css +1 -1
- package/dist/embed-runtime-GYXK7V6N.js +5 -0
- package/dist/identity-3P8-17km.d.ts +95 -0
- package/dist/index.d.ts +46 -10
- package/dist/index.js +1 -28
- package/dist/interactive-map-surface-WC2LPCR7.js +1 -0
- package/dist/internal/client-tools.js +1 -0
- package/dist/internal/models.js +1 -0
- package/dist/internal/runtime.js +1 -0
- package/dist/internal/theme.js +1 -0
- package/dist/next.d.ts +2 -1
- package/dist/next.js +1 -22
- package/dist/server.d.ts +1 -1
- package/dist/server.js +1 -260
- package/package.json +6 -6
- package/dist/chart-content-E4NPTUPR.js +0 -2696
- package/dist/chunk-3FG5NRTX.js +0 -9
- package/dist/chunk-6O3SFXJK.js +0 -325
- package/dist/chunk-FNGGMHVR.js +0 -625
- package/dist/chunk-OQGXZY5L.js +0 -1091
- package/dist/chunk-TOOT6SZ2.js +0 -74
- package/dist/chunk-V5S5FRGV.js +0 -984
- package/dist/chunk-VJA52U5P.js +0 -137
- package/dist/component-renderer-46EJDPTB.js +0 -10627
- package/dist/embed-runtime-UF7XJIFA.js +0 -7650
- package/dist/identity-Z6i6pL0F.d.ts +0 -166
- package/dist/interactive-map-surface-67KHT3VB.js +0 -362
package/dist/chunk-TOOT6SZ2.js
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
mergeClassNames
|
|
3
|
-
} from "./chunk-3FG5NRTX.js";
|
|
4
|
-
|
|
5
|
-
// ../agent-ui/src/components/display-information/card/card.tsx
|
|
6
|
-
import { createContext, useContext } from "react";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
var CardVariantContext = createContext(void 0);
|
|
9
|
-
function CardVariantProvider({ children, variant }) {
|
|
10
|
-
return /* @__PURE__ */ jsx(CardVariantContext, { value: variant, children });
|
|
11
|
-
}
|
|
12
|
-
function Card({
|
|
13
|
-
actions,
|
|
14
|
-
children,
|
|
15
|
-
className,
|
|
16
|
-
"data-component-kind": componentKind,
|
|
17
|
-
description,
|
|
18
|
-
footer,
|
|
19
|
-
legend,
|
|
20
|
-
title,
|
|
21
|
-
variant
|
|
22
|
-
}) {
|
|
23
|
-
const inheritedVariant = useContext(CardVariantContext);
|
|
24
|
-
const hasHeader = title != null || description != null || legend != null || actions != null;
|
|
25
|
-
const resolvedVariant = inheritedVariant ?? variant ?? "surface";
|
|
26
|
-
return /* @__PURE__ */ jsxs(
|
|
27
|
-
"section",
|
|
28
|
-
{
|
|
29
|
-
className: mergeClassNames("aui-card", className),
|
|
30
|
-
"data-component-kind": componentKind,
|
|
31
|
-
"data-has-footer": footer != null,
|
|
32
|
-
"data-has-header": hasHeader,
|
|
33
|
-
"data-slot": "agent-ui-card",
|
|
34
|
-
"data-variant": resolvedVariant,
|
|
35
|
-
children: [
|
|
36
|
-
hasHeader ? /* @__PURE__ */ jsxs(
|
|
37
|
-
"header",
|
|
38
|
-
{
|
|
39
|
-
className: "aui-card__header",
|
|
40
|
-
"data-has-actions": actions != null,
|
|
41
|
-
"data-slot": "agent-ui-card-header",
|
|
42
|
-
children: [
|
|
43
|
-
/* @__PURE__ */ jsxs("span", { className: "aui-card__heading", "data-slot": "agent-ui-card-heading", children: [
|
|
44
|
-
title != null ? /* @__PURE__ */ jsx("span", { className: "aui-card__title", "data-slot": "agent-ui-card-title", children: title }) : null,
|
|
45
|
-
description != null ? /* @__PURE__ */ jsx("span", { className: "aui-card__description", "data-slot": "agent-ui-card-description", children: description }) : null
|
|
46
|
-
] }),
|
|
47
|
-
actions != null ? /* @__PURE__ */ jsx("span", { className: "aui-card__actions", "data-slot": "agent-ui-card-actions", children: actions }) : null,
|
|
48
|
-
legend
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
) : null,
|
|
52
|
-
/* @__PURE__ */ jsx("div", { className: "aui-card__content", "data-slot": "agent-ui-card-content", children }),
|
|
53
|
-
footer != null ? /* @__PURE__ */ jsx("footer", { className: "aui-card__footer", "data-slot": "agent-ui-card-footer", children: footer }) : null
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// ../agent-ui/src/utils/overlay-portal.ts
|
|
60
|
-
function resolveOverlayPortalContainer(node) {
|
|
61
|
-
if (!node) return void 0;
|
|
62
|
-
const overlayRoot = node.closest("[data-agent-overlay-root], dialog");
|
|
63
|
-
if (overlayRoot) {
|
|
64
|
-
return overlayRoot.querySelector("[data-agent-overlay-portal]") ?? overlayRoot;
|
|
65
|
-
}
|
|
66
|
-
const root = node.getRootNode();
|
|
67
|
-
return typeof ShadowRoot !== "undefined" && root instanceof ShadowRoot ? root : void 0;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export {
|
|
71
|
-
CardVariantProvider,
|
|
72
|
-
Card,
|
|
73
|
-
resolveOverlayPortalContainer
|
|
74
|
-
};
|