@danxbot/ui 20.18.3 → 20.19.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.js +46 -45
- package/dist/index.js.map +1 -1
- package/dist/types/components/stepper/Stepper.d.ts +18 -1
- package/package.json +1 -1
|
@@ -23,6 +23,23 @@ export interface StepperProps {
|
|
|
23
23
|
* consumer driving its own buttons omits this and keeps the rail.
|
|
24
24
|
*/
|
|
25
25
|
onCurrentChange?: (index: number) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Draw the built-in Back / Next / Finish row. Default `true`.
|
|
28
|
+
*
|
|
29
|
+
* `false` keeps the rail clickable (`onCurrentChange` still fires for a click
|
|
30
|
+
* on an earlier step, and only for that) and draws no row, so a consumer
|
|
31
|
+
* whose content owns its own forward / back movement, such as a step that
|
|
32
|
+
* pages through several screens, renders its own buttons without a second
|
|
33
|
+
* row of them. Without it the only way to drop the row was to drop
|
|
34
|
+
* `onCurrentChange`, which also made the rail a read-out, and a rail click on
|
|
35
|
+
* the adjacent earlier step is indistinguishable from the built-in Back
|
|
36
|
+
* button (both call `onCurrentChange(current - 1)`).
|
|
37
|
+
*
|
|
38
|
+
* Nothing prints a step's `blocked` reason when the row is hidden: it is
|
|
39
|
+
* rendered beside the forward control. The consumer's own forward control
|
|
40
|
+
* reads it from `advanceBlockReason` and shows it.
|
|
41
|
+
*/
|
|
42
|
+
showControls?: boolean;
|
|
26
43
|
/**
|
|
27
44
|
* What the last step's forward control does. Absent means no control is drawn
|
|
28
45
|
* on the last step — a wizard whose final action lives in its own form.
|
|
@@ -41,4 +58,4 @@ export interface StepperProps {
|
|
|
41
58
|
children?: ReactNode;
|
|
42
59
|
className?: string;
|
|
43
60
|
}
|
|
44
|
-
export declare function Stepper({ label, steps, current, onCurrentChange, onFinish, backLabel, nextLabel, finishLabel, orientation, children, className, }: StepperProps): import("react").JSX.Element;
|
|
61
|
+
export declare function Stepper({ label, steps, current, onCurrentChange, showControls, onFinish, backLabel, nextLabel, finishLabel, orientation, children, className, }: StepperProps): import("react").JSX.Element;
|