@danxbot/ui 20.18.2 → 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.
@@ -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;
@@ -1313,6 +1313,15 @@ export declare const coreIcons: {
1313
1313
  }], readonly ["path", {
1314
1314
  readonly d: "m9 12 2 2 4-4";
1315
1315
  }]];
1316
+ readonly "circle-dollar-sign": readonly [readonly ["circle", {
1317
+ readonly cx: "12";
1318
+ readonly cy: "12";
1319
+ readonly r: "10";
1320
+ }], readonly ["path", {
1321
+ readonly d: "M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8";
1322
+ }], readonly ["path", {
1323
+ readonly d: "M12 18V6";
1324
+ }]];
1316
1325
  readonly "circle-minus": readonly [readonly ["circle", {
1317
1326
  readonly cx: "12";
1318
1327
  readonly cy: "12";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danxbot/ui",
3
- "version": "20.18.2",
3
+ "version": "20.19.0",
4
4
  "type": "module",
5
5
  "description": "Danxbot — a domain-agnostic React design system with motion as a first-class primitive.",
6
6
  "license": "MIT",