@digital-ai/dot-components 4.17.4 → 4.18.1
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/index.esm.js
CHANGED
|
@@ -15696,7 +15696,10 @@ const DotStepper = ({
|
|
|
15696
15696
|
finalContent,
|
|
15697
15697
|
initialContent,
|
|
15698
15698
|
nextButtonText = 'Next',
|
|
15699
|
+
submitButtonLoading = false,
|
|
15699
15700
|
nextStepDisabled = false,
|
|
15701
|
+
prevStepDisabled = false,
|
|
15702
|
+
cancelButtonDisabled = false,
|
|
15700
15703
|
offset = 0,
|
|
15701
15704
|
onBack,
|
|
15702
15705
|
onCancel,
|
|
@@ -15845,20 +15848,23 @@ const DotStepper = ({
|
|
|
15845
15848
|
children: [displayCancelButton && jsx(DotButton, {
|
|
15846
15849
|
className: "cancel-stepper",
|
|
15847
15850
|
onClick: onCancel,
|
|
15851
|
+
disabled: cancelButtonDisabled,
|
|
15848
15852
|
type: "text",
|
|
15849
15853
|
"data-testid": "stepper-cancel-button",
|
|
15850
15854
|
children: "Cancel"
|
|
15851
15855
|
}), jsxs("div", {
|
|
15852
15856
|
className: "navigation-buttons",
|
|
15853
15857
|
children: [!displayInitialContent && currentStep !== 1 && jsx(DotButton, {
|
|
15858
|
+
disabled: prevStepDisabled,
|
|
15854
15859
|
onClick: handleBack,
|
|
15855
15860
|
type: "outlined",
|
|
15856
15861
|
"data-testid": "stepper-previous-button",
|
|
15857
15862
|
children: "Previous"
|
|
15858
|
-
}), jsx(
|
|
15863
|
+
}), jsx(DotProgressButton, {
|
|
15859
15864
|
onClick: handleNext,
|
|
15860
15865
|
disabled: nextStepDisabled,
|
|
15861
15866
|
"data-testid": "stepper-next-button",
|
|
15867
|
+
isLoading: submitButtonLoading,
|
|
15862
15868
|
children: isLastStep ? submitButtonText : nextButtonText
|
|
15863
15869
|
})]
|
|
15864
15870
|
})]
|
|
@@ -17465,7 +17471,9 @@ const DotTable = ({
|
|
|
17465
17471
|
});
|
|
17466
17472
|
});
|
|
17467
17473
|
for (let i = 0; i < (rowsPerPage ? rowsPerPage : TABLE_DEFAULT_SKELETON_ROWS); i++) {
|
|
17468
|
-
skeletonData.push(
|
|
17474
|
+
skeletonData.push(Object.assign({
|
|
17475
|
+
id: `skeleton-row-${i}`
|
|
17476
|
+
}, skeletonRow));
|
|
17469
17477
|
}
|
|
17470
17478
|
return skeletonData;
|
|
17471
17479
|
};
|
package/package.json
CHANGED
|
@@ -34,6 +34,8 @@ export interface StepProps extends CommonProps {
|
|
|
34
34
|
export interface StepperProps extends CommonProps {
|
|
35
35
|
/** determines the `id` of the step which is active */
|
|
36
36
|
activeStep?: number;
|
|
37
|
+
/** if set to `true`, the "cancel" button will be disabled */
|
|
38
|
+
cancelButtonDisabled?: boolean;
|
|
37
39
|
/** if set to `true`, clicking on a step is only allowed if the previous step is completed **/
|
|
38
40
|
disableUncompletedStepNav: boolean;
|
|
39
41
|
/** final content displayed after the last step is completed */
|
|
@@ -54,12 +56,16 @@ export interface StepperProps extends CommonProps {
|
|
|
54
56
|
onSubmit?: () => void;
|
|
55
57
|
/** orientation of the stepper */
|
|
56
58
|
orientation?: StepperOrientation;
|
|
59
|
+
/** if set to `true`, the "previous" button will be disabled */
|
|
60
|
+
prevStepDisabled?: boolean;
|
|
57
61
|
/** array of steps to be displayed */
|
|
58
62
|
steps: StepProps[];
|
|
59
63
|
/** determines where to display the array of steps */
|
|
60
64
|
/** top/bottom are for horizontal orientation (bottom by default) & left/right for vertical orientation (left by default) */
|
|
61
65
|
stepsPosition?: StepsPosition;
|
|
66
|
+
/** if set to 'true , the 'submit' button will have a loading spinner*/
|
|
67
|
+
submitButtonLoading?: boolean;
|
|
62
68
|
/** if passed, will overwrite the default "submit" button text */
|
|
63
69
|
submitButtonText?: string;
|
|
64
70
|
}
|
|
65
|
-
export declare const DotStepper: ({ activeStep, ariaLabel, className, "data-testid": dataTestId, finalContent, initialContent, nextButtonText, nextStepDisabled, offset, onBack, onCancel, onSubmit, orientation, disableUncompletedStepNav, steps, stepsPosition, submitButtonText, }: StepperProps) => import("react/jsx-runtime").JSX.Element;
|
|
71
|
+
export declare const DotStepper: ({ activeStep, ariaLabel, className, "data-testid": dataTestId, finalContent, initialContent, nextButtonText, submitButtonLoading, nextStepDisabled, prevStepDisabled, cancelButtonDisabled, offset, onBack, onCancel, onSubmit, orientation, disableUncompletedStepNav, steps, stepsPosition, submitButtonText, }: StepperProps) => import("react/jsx-runtime").JSX.Element;
|