digital-rabbit-cl 3.3.10-rcc.0 → 3.3.10
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.
|
@@ -4,14 +4,20 @@ export interface StepperProps extends Pick<BaseComponentProps, 'className' | 'st
|
|
|
4
4
|
steps: string[];
|
|
5
5
|
/** 1-indexed current step number */
|
|
6
6
|
currentStep: number;
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
/**
|
|
7
|
+
/** Active and done step indicator color. Defaults to theme.colors.primary */
|
|
8
|
+
color?: string;
|
|
9
|
+
/** Text color inside filled step circles. Defaults to theme.buttons.primary?.textColor ?? theme.buttons.textColor */
|
|
10
|
+
textColor?: string;
|
|
11
|
+
/**
|
|
12
|
+
* 1-indexed step numbers that failed validation. Pass the step numbers that should show a `!`
|
|
13
|
+
* indicator and error color. The consumer owns validation and is responsible for updating this
|
|
14
|
+
* array — for example on a failed advance attempt or a server error response.
|
|
15
|
+
*/
|
|
10
16
|
errors?: number[];
|
|
11
17
|
/** Called with the 1-indexed step number when a step is clicked */
|
|
12
18
|
onStepClick?: (step: number) => void;
|
|
13
19
|
/** Furthest step reached — only steps ≤ maxStep show cursor: pointer. When omitted, all steps show pointer if onStepClick is provided */
|
|
14
20
|
maxStep?: number;
|
|
15
21
|
}
|
|
16
|
-
export default function Stepper({ steps, currentStep,
|
|
22
|
+
export default function Stepper({ steps, currentStep, color, textColor, errors, onStepClick, maxStep, style, className, }: StepperProps): import("react/jsx-runtime").JSX.Element;
|
|
17
23
|
//# sourceMappingURL=Stepper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,kBAAkB,EAAE,WAAW,GAAG,OAAO,CAAC;IACnF,qCAAqC;IACrC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,oCAAoC;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,
|
|
1
|
+
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,kBAAkB,EAAE,WAAW,GAAG,OAAO,CAAC;IACnF,qCAAqC;IACrC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,oCAAoC;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qHAAqH;IACrH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,mEAAmE;IACnE,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,yIAAyI;IACzI,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,KAAK,EACL,WAAW,EACX,KAAK,EACL,SAAS,EACT,MAAW,EACX,WAAW,EACX,OAAO,EACP,KAAK,EACL,SAAS,GACV,EAAE,YAAY,2CA4Id"}
|