aha-components 1.4.1 → 1.4.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.
@@ -11,12 +11,12 @@ export interface TabItem {
11
11
  children?: React.ReactNode;
12
12
  }
13
13
  export interface TabProps {
14
- items: TabItem[];
14
+ items: TabItem[] | string[] | number[];
15
15
  variant?: TabVariant;
16
16
  layout?: TabLayout;
17
- defaultValue?: string;
18
- value?: string;
19
- onChange?: (value: string) => void;
17
+ defaultValue?: string | number;
18
+ value?: string | number;
19
+ onChange?: (value: string | number) => void;
20
20
  className?: string;
21
21
  mode?: 'children' | 'value';
22
22
  [key: string]: any;
package/dist/index.d.ts CHANGED
@@ -321,12 +321,12 @@ interface TabItem {
321
321
  children?: React.ReactNode;
322
322
  }
323
323
  interface TabProps {
324
- items: TabItem[];
324
+ items: TabItem[] | string[] | number[];
325
325
  variant?: TabVariant;
326
326
  layout?: TabLayout;
327
- defaultValue?: string;
328
- value?: string;
329
- onChange?: (value: string) => void;
327
+ defaultValue?: string | number;
328
+ value?: string | number;
329
+ onChange?: (value: string | number) => void;
330
330
  className?: string;
331
331
  mode?: 'children' | 'value';
332
332
  [key: string]: any;