@homebound/beam 4.55.1 → 4.56.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 +33 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -6
- package/dist/index.d.ts +9 -6
- package/dist/index.js +33 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -34446,26 +34446,28 @@ function WorkflowActions(props) {
|
|
|
34446
34446
|
onCancel,
|
|
34447
34447
|
onSaveAndExit,
|
|
34448
34448
|
destructiveAction,
|
|
34449
|
-
completeLabel,
|
|
34450
34449
|
onComplete,
|
|
34451
34450
|
primaryDisabled,
|
|
34452
34451
|
aiMode = false,
|
|
34453
34452
|
isFirstStep = true,
|
|
34454
34453
|
isLastStep = true,
|
|
34455
34454
|
onBack,
|
|
34456
|
-
onContinue
|
|
34455
|
+
onContinue,
|
|
34456
|
+
completeLabel,
|
|
34457
|
+
nonStandardCompleteLabel
|
|
34457
34458
|
} = props;
|
|
34458
34459
|
const {
|
|
34459
34460
|
sm: isMobile
|
|
34460
34461
|
} = useBreakpoint();
|
|
34461
34462
|
const primaryVariant = aiMode ? "ai" : "primary";
|
|
34463
|
+
const completeButtonLabel = nonStandardCompleteLabel ?? completeLabel ?? "Save";
|
|
34462
34464
|
return /* @__PURE__ */ (0, import_jsx_runtime273.jsxs)("div", { className: "df aic jcsb sm_w100", children: [
|
|
34463
34465
|
/* @__PURE__ */ (0, import_jsx_runtime273.jsx)("div", { className: "df aic", children: !isFirstStep && isMobile && onBack && /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(IconButton, { icon: "arrowBack", label: "Back", onClick: onBack }) }),
|
|
34464
34466
|
/* @__PURE__ */ (0, import_jsx_runtime273.jsxs)("div", { className: "df aic g_1", children: [
|
|
34465
34467
|
/* @__PURE__ */ (0, import_jsx_runtime273.jsx)(Button, { label: "Cancel", variant: "quaternary", onClick: onCancel }),
|
|
34466
34468
|
onSaveAndExit && /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(Button, { label: "Save & Exit", variant: "secondary", onClick: onSaveAndExit }),
|
|
34467
34469
|
destructiveAction && /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(Button, { label: destructiveAction.label ?? "Remove", variant: "danger", onClick: destructiveAction.onConfirm }),
|
|
34468
|
-
isLastStep ? /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(Button, { label:
|
|
34470
|
+
isLastStep ? /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(Button, { label: completeButtonLabel, variant: primaryVariant, onClick: onComplete, disabled: primaryDisabled }) : /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(Button, { label: "Continue", variant: primaryVariant, onClick: async () => {
|
|
34469
34471
|
await onContinue?.();
|
|
34470
34472
|
}, disabled: primaryDisabled })
|
|
34471
34473
|
] })
|
|
@@ -34493,7 +34495,15 @@ function WorkflowPageLayout(props) {
|
|
|
34493
34495
|
destructiveAction,
|
|
34494
34496
|
rightPaneTriggers,
|
|
34495
34497
|
banner: bannerProp,
|
|
34496
|
-
|
|
34498
|
+
onSaveAndExit,
|
|
34499
|
+
onComplete,
|
|
34500
|
+
primaryDisabled,
|
|
34501
|
+
isFirstStep,
|
|
34502
|
+
isLastStep,
|
|
34503
|
+
onBack,
|
|
34504
|
+
onContinue,
|
|
34505
|
+
completeLabel,
|
|
34506
|
+
nonStandardCompleteLabel
|
|
34497
34507
|
} = props;
|
|
34498
34508
|
const tid = useTestIds(props, "workflowPageLayout");
|
|
34499
34509
|
const {
|
|
@@ -34513,7 +34523,7 @@ function WorkflowPageLayout(props) {
|
|
|
34513
34523
|
onCancel,
|
|
34514
34524
|
destructiveAction
|
|
34515
34525
|
});
|
|
34516
|
-
const actions = /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(WorkflowActions, {
|
|
34526
|
+
const actions = /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(WorkflowActions, { completeLabel, nonStandardCompleteLabel, onSaveAndExit, onComplete, primaryDisabled, isFirstStep, isLastStep, onBack, onContinue, aiMode, onCancel: onCancelClick, destructiveAction: destructiveAction && {
|
|
34517
34527
|
...destructiveAction,
|
|
34518
34528
|
onConfirm: onDestructiveActionClick
|
|
34519
34529
|
} });
|
|
@@ -34641,7 +34651,6 @@ var import_jsx_runtime275 = require("react/jsx-runtime");
|
|
|
34641
34651
|
function FocusedFormLayout(props) {
|
|
34642
34652
|
const {
|
|
34643
34653
|
onCancel,
|
|
34644
|
-
completeLabel,
|
|
34645
34654
|
onComplete,
|
|
34646
34655
|
onSaveAndExit,
|
|
34647
34656
|
destructiveAction,
|
|
@@ -34652,14 +34661,20 @@ function FocusedFormLayout(props) {
|
|
|
34652
34661
|
rightPaneTriggers,
|
|
34653
34662
|
banner,
|
|
34654
34663
|
children,
|
|
34655
|
-
|
|
34664
|
+
title,
|
|
34665
|
+
documentTitleSuffix,
|
|
34666
|
+
breadcrumbs,
|
|
34667
|
+
completeLabel,
|
|
34668
|
+
nonStandardCompleteLabel
|
|
34656
34669
|
} = props;
|
|
34657
34670
|
const tid = useTestIds(props, "focusedFormLayout");
|
|
34658
34671
|
return /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
|
|
34659
34672
|
WorkflowPageLayout,
|
|
34660
34673
|
{
|
|
34661
34674
|
...tid,
|
|
34662
|
-
|
|
34675
|
+
title,
|
|
34676
|
+
documentTitleSuffix,
|
|
34677
|
+
breadcrumbs,
|
|
34663
34678
|
banner,
|
|
34664
34679
|
aiMode,
|
|
34665
34680
|
isDirty,
|
|
@@ -34668,6 +34683,7 @@ function FocusedFormLayout(props) {
|
|
|
34668
34683
|
onSaveAndExit,
|
|
34669
34684
|
destructiveAction,
|
|
34670
34685
|
completeLabel,
|
|
34686
|
+
nonStandardCompleteLabel,
|
|
34671
34687
|
onComplete,
|
|
34672
34688
|
primaryDisabled,
|
|
34673
34689
|
rightPaneTriggers,
|
|
@@ -34684,7 +34700,6 @@ function StepperLayout(props) {
|
|
|
34684
34700
|
steps,
|
|
34685
34701
|
defaultStep,
|
|
34686
34702
|
onCancel,
|
|
34687
|
-
completeLabel,
|
|
34688
34703
|
onComplete,
|
|
34689
34704
|
onSaveAndExit,
|
|
34690
34705
|
destructiveAction,
|
|
@@ -34692,7 +34707,11 @@ function StepperLayout(props) {
|
|
|
34692
34707
|
allowNavigation,
|
|
34693
34708
|
aiMode,
|
|
34694
34709
|
banner,
|
|
34695
|
-
|
|
34710
|
+
title,
|
|
34711
|
+
documentTitleSuffix,
|
|
34712
|
+
breadcrumbs,
|
|
34713
|
+
completeLabel,
|
|
34714
|
+
nonStandardCompleteLabel
|
|
34696
34715
|
} = props;
|
|
34697
34716
|
const stepTabs = steps.map((step) => ({ ...step, value: defaultTestId(step.label) }));
|
|
34698
34717
|
const [currentStep, setCurrentStep] = (0, import_react189.useState)(() => getInitialStep(stepTabs, defaultStep));
|
|
@@ -34709,7 +34728,9 @@ function StepperLayout(props) {
|
|
|
34709
34728
|
WorkflowPageLayout,
|
|
34710
34729
|
{
|
|
34711
34730
|
...tid,
|
|
34712
|
-
|
|
34731
|
+
title,
|
|
34732
|
+
documentTitleSuffix,
|
|
34733
|
+
breadcrumbs,
|
|
34713
34734
|
banner,
|
|
34714
34735
|
aiMode,
|
|
34715
34736
|
stepperTabs: { steps: stepTabs, currentStep, onChange: goToStep },
|
|
@@ -34725,6 +34746,7 @@ function StepperLayout(props) {
|
|
|
34725
34746
|
onSaveAndExit,
|
|
34726
34747
|
destructiveAction,
|
|
34727
34748
|
completeLabel,
|
|
34749
|
+
nonStandardCompleteLabel,
|
|
34728
34750
|
onComplete,
|
|
34729
34751
|
primaryDisabled: activeStep?.primaryDisabled,
|
|
34730
34752
|
rightPaneTriggers: activeStep?.rightPaneTriggers,
|