@umituz/web-design-system 2.5.0 → 2.6.1

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.5.0",
3
+ "version": "2.6.1",
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",
@@ -77,6 +77,7 @@
77
77
  "react-day-picker": ">=9.0.0",
78
78
  "react-dom": ">=19.0.0",
79
79
  "react-i18next": ">=13.0.0",
80
+ "react-router-dom": ">=6.22.0",
80
81
  "react-syntax-highlighter": ">=15.0.0",
81
82
  "tailwind-merge": ">=2.0.0"
82
83
  },
@@ -100,6 +101,7 @@
100
101
  "@radix-ui/react-tooltip": "^1.2.7",
101
102
  "@types/react": "^19.0.0",
102
103
  "@types/react-dom": "^19.0.0",
104
+ "@types/react-router-dom": "^6.22.0",
103
105
  "@types/react-syntax-highlighter": "^15.5.13",
104
106
  "class-variance-authority": "^0.7.1",
105
107
  "clsx": "^2.1.1",
@@ -108,6 +110,7 @@
108
110
  "react-day-picker": "^9.14.0",
109
111
  "react-dom": "^19.0.0",
110
112
  "react-i18next": "^13.0.0",
113
+ "react-router-dom": "^6.22.0",
111
114
  "react-syntax-highlighter": "^16.1.1",
112
115
  "tailwind-merge": "^3.5.0",
113
116
  "typescript": "~5.9.2"
@@ -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,6 +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
7
  import { Link } from 'react-router-dom';
7
8
  import type { BaseProps } from '../../domain/types';
8
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';
@@ -69,7 +69,7 @@ export const Comments = ({
69
69
  ...config,
70
70
  };
71
71
 
72
- window.giscus.render(rootRef.current, defaultConfig);
72
+ window.giscus.render(rootRef.current, defaultConfig as unknown as Record<string, unknown>);
73
73
  }
74
74
  });
75
75
 
@@ -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,6 +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
8
  import { Link, useLocation } from 'react-router-dom';
8
9
  import React from 'react';
9
10
  import type { BaseProps } from '../../domain/types';
@@ -13,7 +14,7 @@ export interface NavItem {
13
14
  path: string;
14
15
  }
15
16
 
16
- export interface Language {
17
+ export interface MainNavbarLanguage {
17
18
  code: string;
18
19
  name: string;
19
20
  flag: string;
@@ -23,7 +24,7 @@ export interface MainNavbarProps extends BaseProps {
23
24
  logo?: React.ReactNode;
24
25
  appName: string;
25
26
  navItems: NavItem[];
26
- supportedLanguages: Record<string, Language>;
27
+ supportedLanguages: Record<string, MainNavbarLanguage>;
27
28
  currentLanguage: string;
28
29
  onLanguageChange: (code: string) => void;
29
30
  theme: 'light' | 'dark';
@@ -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';
@@ -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',
@@ -152,4 +152,4 @@ export type { FilterSidebarProps } from './FilterSidebar';
152
152
 
153
153
  // NEW: Navigation Components
154
154
  export { MainNavbar } from './MainNavbar';
155
- export type { MainNavbarProps, NavItem, Language } from './MainNavbar';
155
+ export type { MainNavbarProps, NavItem, MainNavbarLanguage } from './MainNavbar';