@homebound/beam 3.106.0 → 3.107.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/index.cjs +16 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +16 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -11883,7 +11883,7 @@ function MenuItemImpl(props) {
|
|
|
11883
11883
|
}
|
|
11884
11884
|
function renderMenuItem(menuItem, isSelected, isDisabled) {
|
|
11885
11885
|
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "df w100 aic jcsb gap2", children: [
|
|
11886
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "df aic", children: maybeWrapInLink(menuItem.onClick, isIconMenuItem(menuItem) ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(IconMenuItem, { ...menuItem }) : isImageMenuItem(menuItem) ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ImageMenuItem, { ...menuItem }) : menuItem.label, isDisabled) }),
|
|
11886
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "df aic", children: maybeWrapInLink(menuItem.onClick, menuItem.ai ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AiMenuItem, { label: menuItem.label, isDisabled }) : isIconMenuItem(menuItem) ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(IconMenuItem, { ...menuItem }) : isImageMenuItem(menuItem) ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ImageMenuItem, { ...menuItem }) : menuItem.label, isDisabled) }),
|
|
11887
11887
|
isSelected && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icon, { icon: "check", color: isDisabled ? "--b-text-disabled" /* TextDisabled */ : "--b-selection-indicator" /* SelectionIndicator */ })
|
|
11888
11888
|
] });
|
|
11889
11889
|
}
|
|
@@ -11899,6 +11899,21 @@ function ImageMenuItem(item) {
|
|
|
11899
11899
|
label
|
|
11900
11900
|
] });
|
|
11901
11901
|
}
|
|
11902
|
+
function AiMenuItem({
|
|
11903
|
+
label,
|
|
11904
|
+
isDisabled
|
|
11905
|
+
}) {
|
|
11906
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
|
|
11907
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "df aic jcc fs0 h_24px w_24px mr2", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icon, { icon: "aiStar", inc: 2.125 }) }),
|
|
11908
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { ...(0, import_runtime35.trussProps)({
|
|
11909
|
+
...!isDisabled ? {
|
|
11910
|
+
color: ["color_var", {
|
|
11911
|
+
"--color": (0, import_runtime35.maybeCssVar)("rgba(124, 58, 237, 1)" /* Purple600 */)
|
|
11912
|
+
}]
|
|
11913
|
+
} : {}
|
|
11914
|
+
}), children: label })
|
|
11915
|
+
] });
|
|
11916
|
+
}
|
|
11902
11917
|
function IconMenuItem(item) {
|
|
11903
11918
|
const {
|
|
11904
11919
|
icon,
|