aravint-ui-navigation 1.0.0 → 1.0.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.
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface TabItem {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
content?: React.ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
icon?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export interface CustomTabsProps {
|
|
10
|
+
tabs: TabItem[];
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
value?: string;
|
|
13
|
+
onValueChange?: (value: string) => void;
|
|
14
|
+
className?: string;
|
|
15
|
+
showTabNumbers?: boolean;
|
|
16
|
+
variant?: 'default' | 'gradient' | 'minimal';
|
|
17
|
+
}
|
|
18
|
+
export declare const CustomTabs: React.FC<CustomTabsProps>;
|
|
19
|
+
export default CustomTabs;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare function Tabs({ className, orientation, ...props }: TabsPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const tabsListVariants: (props?: ({
|
|
5
|
+
variant?: "line" | "default" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
+
declare function TabsList({ className, variant, ...props }: TabsPrimitive.List.Props & VariantProps<typeof tabsListVariants>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function TabsTrigger({ className, ...props }: TabsPrimitive.Tab.Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function TabsContent({ className, ...props }: TabsPrimitive.Panel.Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6,3 +6,4 @@ export { default as ExportButton } from "./components/Button/ExportButton";
|
|
|
6
6
|
export type { ExportButtonProps, ExportDropdownProps, ExportItemConfig, } from "./components/types/export.types";
|
|
7
7
|
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from "./components/ToolTip/Tooltip";
|
|
8
8
|
export { default as TruncatedText } from "./components/TruncatedText/TruncatedText";
|
|
9
|
+
export { default as CustomTabs } from "./components/Tabs/custom-tabs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aravint-ui-navigation",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"main": "dist/navigation.cjs.js",
|
|
5
5
|
"module": "dist/navigation.es.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"vite": "^6.0.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
+
"@base-ui/react": "^1.6.0",
|
|
42
43
|
"@radix-ui/react-select": "^2.2.6",
|
|
43
44
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
44
45
|
"class-variance-authority": "^0.7.0",
|