aravint-ui-navigation 1.0.0

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,22 @@
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 };
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { ExportButtonProps } from "../../components/types/export.types";
3
+ declare const ExportButton: React.FC<ExportButtonProps>;
4
+ export default ExportButton;
@@ -0,0 +1,3 @@
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;
@@ -0,0 +1,10 @@
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>>;
@@ -0,0 +1,8 @@
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;
@@ -0,0 +1,25 @@
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
+ }
@@ -0,0 +1,8 @@
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";
@@ -0,0 +1,2 @@
1
+ import { type ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "aravint-ui-navigation",
3
+ "version": "1.0.0",
4
+ "main": "dist/navigation.cjs.js",
5
+ "module": "dist/navigation.es.js",
6
+ "types": "dist/types/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/types/index.d.ts",
10
+ "import": "./dist/navigation.es.js",
11
+ "require": "./dist/navigation.cjs.js"
12
+ },
13
+ "./style.css": "./dist/navigation.css"
14
+ },
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "scripts": {
19
+ "build": "vite build && npx tsc --emitDeclarationOnly",
20
+ "dev": "vite build --watch"
21
+ },
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "https://github.com/digitus-git/AFCI_OffAuto/tree/develop_rel_phase1/packages"
25
+ },
26
+ "peerDependencies": {
27
+ "react": "^18.3.1",
28
+ "react-dom": "^18.3.1"
29
+ },
30
+ "devDependencies": {
31
+ "@tailwindcss/postcss": "^4.0.15",
32
+ "@types/react": "18.3.1",
33
+ "@types/react-dom": "18.3.1",
34
+ "@vitejs/plugin-react": "^4.0.0",
35
+ "autoprefixer": "^10.5.0",
36
+ "postcss": "^8.5.15",
37
+ "tailwindcss": "^4.0.15",
38
+ "typescript": "^4.9.5",
39
+ "vite": "^6.0.0"
40
+ },
41
+ "dependencies": {
42
+ "@radix-ui/react-select": "^2.2.6",
43
+ "@radix-ui/react-tooltip": "^1.2.8",
44
+ "class-variance-authority": "^0.7.0",
45
+ "clsx": "2.1.1",
46
+ "lucide-react": "^1.16.0",
47
+ "tailwind-merge": "3.2.0"
48
+ }
49
+ }