@bonprix-ds/react-step-navi 1.0.1 → 1.0.3

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 CHANGED
@@ -1,5 +1,5 @@
1
- import { default as default_2 } from 'react';
2
1
  import { FC } from 'react';
2
+ import { ReactElement } from 'react';
3
3
 
4
4
  declare interface Props {
5
5
  /** The name of the step. */
@@ -8,12 +8,20 @@ declare interface Props {
8
8
  href?: string;
9
9
  }
10
10
 
11
+ declare interface PropsInternal extends Props {
12
+ active?: boolean;
13
+ completed?: boolean;
14
+ disabled?: boolean;
15
+ }
16
+
17
+ declare type StepElement = ReactElement<PropsInternal, typeof StepNaviStep>;
18
+
11
19
  declare const StepNavi: FC<StepNaviProps> & Subcomponents;
12
20
  export default StepNavi;
13
21
 
14
22
  export declare interface StepNaviProps {
15
23
  /** StepNavi.Step subcomponents should be placed here. */
16
- children: default_2.ReactNode;
24
+ children: StepElement | StepElement[];
17
25
  /** Amount of completed steps. */
18
26
  completedSteps?: number;
19
27
  /** Currently active step. Not index based, so starts with 1. */