ui-beyable 1.1.0-beta.1 → 1.1.0-beta.2

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.
@@ -1,13 +1,14 @@
1
1
  /// <reference types="react" />
2
+ type stepType = number | string;
2
3
  interface BreadcrumbType {
3
4
  items: {
4
5
  index: number;
5
- step: number;
6
+ step: stepType;
6
7
  title: string;
7
8
  className?: string;
8
9
  }[];
9
- onClick?: (step: number) => void;
10
- activeStep?: number;
10
+ onClick?: (step: stepType) => void;
11
+ activeStep?: stepType;
11
12
  direction?: 'horizontal' | 'vertical';
12
13
  }
13
14
  declare function Breadcrumb({ items, onClick, activeStep, direction }: BreadcrumbType): JSX.Element;
@@ -1,13 +1,14 @@
1
1
  /// <reference types="react" />
2
+ type stepType = number | string;
2
3
  interface BreadcrumbType {
3
4
  items: {
4
5
  index: number;
5
- step: number;
6
+ step: stepType;
6
7
  title: string;
7
8
  className?: string;
8
9
  }[];
9
- onClick?: (step: number) => void;
10
- activeStep?: number;
10
+ onClick?: (step: stepType) => void;
11
+ activeStep?: stepType;
11
12
  direction?: 'horizontal' | 'vertical';
12
13
  }
13
14
  declare function Breadcrumb({ items, onClick, activeStep, direction }: BreadcrumbType): JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-beyable",
3
- "version": "1.1.0-beta.1",
3
+ "version": "1.1.0-beta.2",
4
4
  "description": "Ui library of Beyable projets",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",