@arkyn/types 1.3.68 → 1.3.70
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,10 +2,10 @@ import type { ButtonHTMLAttributes, HTMLAttributes, ReactNode } from "react";
|
|
2
2
|
type TabButtonProps = {
|
3
3
|
children: ReactNode;
|
4
4
|
value: string;
|
5
|
-
defaultActive?: boolean;
|
6
5
|
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "value">;
|
7
6
|
type TabContainerProps = {
|
8
7
|
children: ReactNode;
|
8
|
+
defaultActive?: string;
|
9
9
|
onClick?: (index: string) => void;
|
10
10
|
} & Omit<HTMLAttributes<HTMLElement>, "onClick" | "children" | "ref">;
|
11
11
|
export type { TabButtonProps, TabContainerProps };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TabProps.d.ts","sourceRoot":"","sources":["../../src/components/TabProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7E,KAAK,cAAc,GAAG;IACpB,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"TabProps.d.ts","sourceRoot":"","sources":["../../src/components/TabProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7E,KAAK,cAAc,GAAG;IACpB,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,CAAC;AAExE,KAAK,iBAAiB,GAAG;IACvB,QAAQ,EAAE,SAAS,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,GAAG,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,KAAK,CAAC,CAAC;AAEtE,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,CAAC"}
|
package/package.json
CHANGED
@@ -3,11 +3,11 @@ import type { ButtonHTMLAttributes, HTMLAttributes, ReactNode } from "react";
|
|
3
3
|
type TabButtonProps = {
|
4
4
|
children: ReactNode;
|
5
5
|
value: string;
|
6
|
-
defaultActive?: boolean;
|
7
6
|
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "value">;
|
8
7
|
|
9
8
|
type TabContainerProps = {
|
10
9
|
children: ReactNode;
|
10
|
+
defaultActive?: string;
|
11
11
|
onClick?: (index: string) => void;
|
12
12
|
} & Omit<HTMLAttributes<HTMLElement>, "onClick" | "children" | "ref">;
|
13
13
|
|