@umituz/web-design-system 2.5.0 → 2.6.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.
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.0",
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"
@@ -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
 
@@ -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
 
@@ -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';
@@ -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';