@umituz/web-design-system 2.6.0 → 2.6.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/web-design-system",
3
- "version": "2.6.0",
3
+ "version": "2.6.2",
4
4
  "private": false,
5
5
  "description": "Web Design System - Atomic Design components (Atoms, Molecules, Organisms, Templates) for React applications",
6
6
  "main": "./src/index.ts",
@@ -5,7 +5,7 @@
5
5
 
6
6
  import { forwardRef, type HTMLAttributes, type ReactNode, useState, useRef, useEffect } from 'react';
7
7
  import { cn } from '../../infrastructure/utils';
8
- import type { BaseProps, ChildrenProps } from '../../domain/types';
8
+ import type { BaseProps } from '../../domain/types';
9
9
 
10
10
  export interface TooltipProps extends Omit<HTMLAttributes<HTMLDivElement>, 'content'>, BaseProps {
11
11
  content: ReactNode;
@@ -3,7 +3,7 @@
3
3
  * @description User avatar with image and fallback (shadcn/ui compatible)
4
4
  */
5
5
 
6
- import { forwardRef, type HTMLAttributes, type ElementType, type ComponentPropsWithoutRef } from 'react';
6
+ import { forwardRef, type HTMLAttributes, type ComponentPropsWithoutRef } from 'react';
7
7
  import { cn } from '../../infrastructure/utils';
8
8
  import type { BaseProps, SizeVariant } from '../../domain/types';
9
9
 
@@ -3,7 +3,7 @@
3
3
  * @description Navigation breadcrumb with home icon
4
4
  */
5
5
 
6
- // @ts-expect-error - react-router-dom is a peer dependency
6
+ // @ts-ignore - react-router-dom is a peer dependency, may not be available during package build
7
7
  import { Link } from 'react-router-dom';
8
8
  import type { BaseProps } from '../../domain/types';
9
9
 
@@ -3,7 +3,7 @@
3
3
  * @description Selectable/removable tag
4
4
  */
5
5
 
6
- import { forwardRef, type ReactNode } from 'react';
6
+ import { forwardRef } from 'react';
7
7
  import { cn } from '../../infrastructure/utils';
8
8
  import type { BaseProps, ColorVariant } from '../../domain/types';
9
9
  import { Badge } from '../atoms/Badge';
@@ -3,7 +3,7 @@
3
3
  * @description Label + Input combination
4
4
  */
5
5
 
6
- import { forwardRef, type ReactNode } from 'react';
6
+ import { forwardRef } from 'react';
7
7
  import { cn } from '../../infrastructure/utils';
8
8
  import type { BaseProps } from '../../domain/types';
9
9
  import { Input } from '../atoms/Input';
@@ -5,7 +5,7 @@
5
5
 
6
6
  import { forwardRef, type ReactNode, type HTMLAttributes } from 'react';
7
7
  import { cn } from '../../infrastructure/utils';
8
- import type { BaseProps, ChildrenProps } from '../../domain/types';
8
+ import type { BaseProps } from '../../domain/types';
9
9
  import { Input } from '../atoms/Input';
10
10
 
11
11
  export interface InputGroupProps extends HTMLAttributes<HTMLDivElement>, BaseProps {
@@ -4,9 +4,8 @@
4
4
  * Reduces boilerplate in list components throughout the app
5
5
  */
6
6
 
7
- import { forwardRef, type ReactNode, type HTMLAttributes, type AnchorHTMLAttributes } from 'react';
7
+ import { forwardRef, type ReactNode } from 'react';
8
8
  import { cn } from '../../infrastructure/utils';
9
- import { Button } from '../atoms';
10
9
  import type { BaseProps } from '../../domain/types';
11
10
 
12
11
  export interface ListItemProps extends BaseProps {
@@ -5,7 +5,7 @@
5
5
 
6
6
  import { forwardRef, type HTMLAttributes } from 'react';
7
7
  import { cn } from '../../infrastructure/utils';
8
- import type { BaseProps, ChildrenProps } from '../../domain/types';
8
+ import type { BaseProps } from '../../domain/types';
9
9
 
10
10
  export interface CardProps extends HTMLAttributes<HTMLDivElement>, BaseProps {
11
11
  variant?: 'default' | 'outlined' | 'elevated';
@@ -5,7 +5,7 @@
5
5
 
6
6
  import { forwardRef, type HTMLAttributes, type ReactNode } from 'react';
7
7
  import { cn } from '../../infrastructure/utils';
8
- import type { BaseProps, ChildrenProps } from '../../domain/types';
8
+ import type { BaseProps } from '../../domain/types';
9
9
 
10
10
  export interface FooterProps extends HTMLAttributes<HTMLElement>, BaseProps {
11
11
  brand?: {
@@ -4,7 +4,7 @@
4
4
  * Reduces boilerplate in modal components like CampaignModal, ProjectListModal
5
5
  */
6
6
 
7
- import { forwardRef, type ComponentType, type ReactNode } from 'react';
7
+ import { forwardRef, type ReactNode } from 'react';
8
8
  import { cn } from '../../infrastructure/utils';
9
9
  import {
10
10
  Dialog,
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  import { useState, useEffect, useRef, useMemo } from 'react';
7
- // @ts-expect-error - react-router-dom is a peer dependency
7
+ // @ts-ignore - react-router-dom is a peer dependency, may not be available during package build
8
8
  import { Link, useLocation } from 'react-router-dom';
9
9
  import React from 'react';
10
10
  import type { BaseProps } from '../../domain/types';
@@ -3,7 +3,7 @@
3
3
  * @description Card component for displaying metrics and statistics with trend indicators
4
4
  */
5
5
 
6
- import { forwardRef, type ComponentProps } from 'react';
6
+ import { forwardRef } from 'react';
7
7
  import { cn } from '../../infrastructure/utils';
8
8
  import { Card, CardContent } from './Card';
9
9
  import type { BaseProps, ColorVariant, SizeVariant } from '../../domain/types';
@@ -3,9 +3,9 @@
3
3
  * @description Dialog/overlay container
4
4
  */
5
5
 
6
- import { forwardRef, type HTMLAttributes, type ReactNode } from 'react';
6
+ import { forwardRef, type HTMLAttributes } from 'react';
7
7
  import { cn } from '../../infrastructure/utils';
8
- import type { BaseProps, ChildrenProps } from '../../domain/types';
8
+ import type { BaseProps } from '../../domain/types';
9
9
 
10
10
  export interface ModalProps extends HTMLAttributes<HTMLDivElement>, BaseProps {
11
11
  open?: boolean;
@@ -5,7 +5,7 @@
5
5
 
6
6
  import { forwardRef, type HTMLAttributes } from 'react';
7
7
  import { cn } from '../../infrastructure/utils';
8
- import type { BaseProps, ChildrenProps } from '../../domain/types';
8
+ import type { BaseProps } from '../../domain/types';
9
9
 
10
10
  export interface NavbarProps extends HTMLAttributes<HTMLElement>, BaseProps {
11
11
  variant?: 'default' | 'sticky' | 'fixed';
@@ -9,7 +9,7 @@ import { cn } from '../../infrastructure/utils';
9
9
  import { Card, CardContent } from './Card';
10
10
  import { Progress } from '../atoms';
11
11
  import { ArrowUpRight, ArrowDownRight } from 'lucide-react';
12
- import type { BaseProps, ColorVariant, SizeVariant } from '../../domain/types';
12
+ import type { BaseProps, SizeVariant } from '../../domain/types';
13
13
 
14
14
  export interface StatCardProps extends BaseProps {
15
15
  title: string;
@@ -5,7 +5,7 @@
5
5
 
6
6
  import { forwardRef, type HTMLAttributes } from 'react';
7
7
  import { cn } from '../../infrastructure/utils';
8
- import type { BaseProps, ChildrenProps } from '../../domain/types';
8
+ import type { BaseProps } from '../../domain/types';
9
9
 
10
10
  export interface TableProps extends HTMLAttributes<HTMLTableElement>, BaseProps {}
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  import { useState, useCallback, type ReactNode, type HTMLAttributes } from 'react';
7
7
  import { cn } from '../../infrastructure/utils';
8
- import type { BaseProps, ChildrenProps } from '../../domain/types';
8
+ import type { BaseProps } from '../../domain/types';
9
9
 
10
10
  export interface Tab {
11
11
  value: string;
@@ -5,10 +5,10 @@
5
5
 
6
6
  import * as React from 'react';
7
7
  import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
8
- import { cva, type VariantProps } from 'class-variance-authority';
8
+ import { type VariantProps } from 'class-variance-authority';
9
9
 
10
10
  import { cn } from '../../infrastructure/utils';
11
- import { Toggle, toggleVariants } from '../atoms/Toggle';
11
+ import { toggleVariants } from '../atoms/Toggle';
12
12
 
13
13
  const ToggleGroupContext = React.createContext<VariantProps<typeof toggleVariants>>({
14
14
  size: 'default',