@bonprix-ds/react-step-navi 1.0.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.d.ts +31 -0
- package/dist/index.js +2955 -0
- package/dist/index.js.map +1 -0
- package/package.json +50 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
|
|
4
|
+
declare interface Props {
|
|
5
|
+
/** The name of the step. */
|
|
6
|
+
children: string;
|
|
7
|
+
/** The href attribute for the step link. */
|
|
8
|
+
href?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare const StepNavi: FC<StepNaviProps> & Subcomponents;
|
|
12
|
+
export default StepNavi;
|
|
13
|
+
|
|
14
|
+
export declare interface StepNaviProps {
|
|
15
|
+
/** StepNavi.Step subcomponents should be placed here. */
|
|
16
|
+
children: default_2.ReactNode;
|
|
17
|
+
/** Amount of completed steps. */
|
|
18
|
+
completedSteps?: number;
|
|
19
|
+
/** Currently active step. Not index based, so starts with 1. */
|
|
20
|
+
activeStep?: number;
|
|
21
|
+
/** Accessible label for the navigation. */
|
|
22
|
+
ariaLabel?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare const StepNaviStep: FC<Props>;
|
|
26
|
+
|
|
27
|
+
declare interface Subcomponents {
|
|
28
|
+
Step: typeof StepNaviStep;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { }
|