@homebound/beam 3.105.2 → 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 +29 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -10
- package/dist/index.d.ts +13 -10
- package/dist/index.js +29 -4
- 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,
|
|
@@ -29147,7 +29162,17 @@ function WorkflowPageLayout(props) {
|
|
|
29147
29162
|
// src/layouts/Workflow/FocusedFormLayout.tsx
|
|
29148
29163
|
var import_jsx_runtime240 = require("react/jsx-runtime");
|
|
29149
29164
|
function FocusedFormLayout(props) {
|
|
29150
|
-
const {
|
|
29165
|
+
const {
|
|
29166
|
+
onCancel,
|
|
29167
|
+
completeLabel,
|
|
29168
|
+
onComplete,
|
|
29169
|
+
onSaveAndExit,
|
|
29170
|
+
primaryDisabled,
|
|
29171
|
+
isDirty,
|
|
29172
|
+
aiMode,
|
|
29173
|
+
children,
|
|
29174
|
+
...headerProps
|
|
29175
|
+
} = props;
|
|
29151
29176
|
const tid = useTestIds(props, "focusedFormLayout");
|
|
29152
29177
|
return /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
|
|
29153
29178
|
WorkflowPageLayout,
|
|
@@ -29160,7 +29185,7 @@ function FocusedFormLayout(props) {
|
|
|
29160
29185
|
onSaveAndExit,
|
|
29161
29186
|
completeLabel,
|
|
29162
29187
|
onComplete,
|
|
29163
|
-
primaryDisabled
|
|
29188
|
+
primaryDisabled,
|
|
29164
29189
|
children
|
|
29165
29190
|
}
|
|
29166
29191
|
);
|
|
@@ -29196,7 +29221,7 @@ function StepperLayout(props) {
|
|
|
29196
29221
|
onSaveAndExit,
|
|
29197
29222
|
completeLabel,
|
|
29198
29223
|
onComplete,
|
|
29199
|
-
primaryDisabled:
|
|
29224
|
+
primaryDisabled: activeStep?.primaryDisabled,
|
|
29200
29225
|
onContinue: async () => {
|
|
29201
29226
|
const onContinue = activeStep?.onContinue;
|
|
29202
29227
|
if (onContinue) {
|