aravint-ui-navigation 1.0.18 → 1.0.21

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,4 +1,4 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
  export interface TabItem {
3
3
  id: string;
4
4
  label: string;
@@ -12,8 +12,12 @@ export interface CustomTabsProps {
12
12
  value?: string;
13
13
  onValueChange?: (value: string) => void;
14
14
  className?: string;
15
+ tabListClassName?: string;
16
+ tabButtonClassName?: string;
17
+ contentClassName?: string;
15
18
  showTabNumbers?: boolean;
16
- variant?: 'default' | 'gradient' | 'minimal' | 'outline';
19
+ showContent?: boolean;
20
+ animated?: boolean;
17
21
  }
18
- export declare const CustomTabs: React.FC<CustomTabsProps>;
22
+ declare const CustomTabs: React.FC<CustomTabsProps>;
19
23
  export default CustomTabs;
@@ -1,10 +1,3 @@
1
1
  import "./index.css";
2
- export { Button, buttonVariants } from "./components/Button/Button";
3
- export type { ButtonProps } from "./components/Button/Button";
4
- export { cn } from "./lib/utils";
5
- export { default as ExportButton } from "./components/Button/ExportButton";
6
- export type { ExportButtonProps, ExportDropdownProps, ExportItemConfig, } from "./components/types/export.types";
7
- export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from "./components/ToolTip/Tooltip";
8
- export { default as TruncatedText } from "./components/TruncatedText/TruncatedText";
9
- export { default as CustomTabs } from "./components/Tabs/custom-tabs";
10
- export type { TabItem, CustomTabsProps, } from "./components/Tabs/custom-tabs";
2
+ export { default as CustomTabs } from "./components/CustomTabs";
3
+ export type { TabItem, CustomTabsProps, } from "./components/CustomTabs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aravint-ui-navigation",
3
- "version": "1.0.18",
3
+ "version": "1.0.21",
4
4
  "main": "dist/navigation.cjs.js",
5
5
  "module": "dist/navigation.es.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -40,8 +40,6 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@base-ui/react": "^1.6.0",
43
- "@radix-ui/react-select": "^2.2.6",
44
- "@radix-ui/react-tooltip": "^1.2.8",
45
43
  "class-variance-authority": "^0.7.0",
46
44
  "clsx": "2.1.1",
47
45
  "lucide-react": "^1.16.0",
@@ -1,22 +0,0 @@
1
- import { type ButtonHTMLAttributes, type ReactElement, type ReactFragment, type ReactPortal } from "react";
2
- import { type VariantProps } from "class-variance-authority";
3
- export type ButtonIcon = ReactElement | ReactFragment | ReactPortal | string | number | bigint | boolean | null | undefined;
4
- export declare const buttonVariants: (props?: ({
5
- variant?: "default" | "save" | "delete" | "update" | "cancel" | "outline" | null | undefined;
6
- size?: "default" | "icon" | "sm" | "lg" | "xs" | null | undefined;
7
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
8
- export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
9
- loading?: boolean;
10
- leftIcon?: ButtonIcon;
11
- rightIcon?: ButtonIcon;
12
- iconButton?: boolean;
13
- tooltipLabel?: string;
14
- datatestid?: string;
15
- saveColor?: string;
16
- deleteColor?: string;
17
- updateColor?: string;
18
- cancelColor?: string;
19
- outlineColor?: string;
20
- }
21
- declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
22
- export { Button };
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { type VariantProps } from 'class-variance-authority';
3
- import { buttonVariants } from './Button';
4
- export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
5
- loading?: boolean;
6
- asChild?: boolean;
7
- }
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { ExportButtonProps } from "../../components/types/export.types";
3
- declare const ExportButton: React.FC<ExportButtonProps>;
4
- export default ExportButton;
@@ -1,3 +0,0 @@
1
- import { ExportDropdownProps } from "../../components/types/export.types";
2
- declare const ExportDropdown: ({ items, onExport, onClose, style, }: ExportDropdownProps) => import("react/jsx-runtime").JSX.Element;
3
- export default ExportDropdown;
@@ -1,10 +0,0 @@
1
- import * as React from "react";
2
- import * as TooltipPrimitive from "@radix-ui/react-tooltip";
3
- export declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
4
- export declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
5
- export declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
- export interface TooltipContentProps extends React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content> {
7
- className?: string;
8
- sideOffset?: number;
9
- }
10
- export declare const TooltipContent: React.ForwardRefExoticComponent<TooltipContentProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- interface TruncatedTextProps {
3
- text?: string | null;
4
- maxLength?: number;
5
- className?: string;
6
- }
7
- declare const TruncatedText: React.FC<TruncatedTextProps>;
8
- export default TruncatedText;
@@ -1,25 +0,0 @@
1
- import React from "react";
2
- export interface ExportItemConfig {
3
- type: string;
4
- label: string;
5
- icon: React.ReactNode;
6
- iconClassName?: string;
7
- textClassName?: string;
8
- iconWidth?: string;
9
- iconHeight?: string;
10
- }
11
- export interface ExportDropdownProps {
12
- items: ExportItemConfig[];
13
- onExport: (type: string) => void;
14
- onClose: () => void;
15
- style?: React.CSSProperties;
16
- }
17
- export interface ExportButtonProps {
18
- items: ExportItemConfig[];
19
- onExport: (type: string) => void;
20
- buttonIcon?: React.ReactNode;
21
- className?: string;
22
- buttonClassName?: string;
23
- open: boolean;
24
- setOpen: React.Dispatch<React.SetStateAction<boolean>>;
25
- }
@@ -1,14 +0,0 @@
1
- import type { CSSProperties } from "react";
2
- import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
3
- import { type VariantProps } from "class-variance-authority";
4
- declare function Tabs({ className, orientation, ...props }: TabsPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
5
- declare const tabsListVariants: (props?: ({
6
- variant?: "line" | "default" | null | undefined;
7
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
8
- declare function TabsList({ className, variant, ...props }: TabsPrimitive.List.Props & VariantProps<typeof tabsListVariants>): import("react/jsx-runtime").JSX.Element;
9
- type TabsTriggerProps = TabsPrimitive.Tab.Props & {
10
- activeStyle?: CSSProperties;
11
- };
12
- declare function TabsTrigger({ className, style, activeStyle, ...props }: TabsTriggerProps): import("react/jsx-runtime").JSX.Element;
13
- declare function TabsContent({ className, ...props }: TabsPrimitive.Panel.Props): import("react/jsx-runtime").JSX.Element;
14
- export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants };