@umituz/web-design-system 3.1.15 → 3.1.17
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": "3.1.
|
|
3
|
+
"version": "3.1.17",
|
|
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",
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
"class-variance-authority": ">=0.7.0",
|
|
74
74
|
"clsx": ">=2.0.0",
|
|
75
75
|
"lucide-react": ">=0.400.0",
|
|
76
|
-
"react": ">=
|
|
77
|
-
"react-day-picker": ">=
|
|
78
|
-
"react-dom": ">=
|
|
76
|
+
"react": ">=18.0.0",
|
|
77
|
+
"react-day-picker": ">=8.0.0",
|
|
78
|
+
"react-dom": ">=18.0.0",
|
|
79
79
|
"react-i18next": ">=13.0.0",
|
|
80
80
|
"react-router-dom": ">=6.22.0",
|
|
81
81
|
"react-syntax-highlighter": ">=15.0.0",
|
|
@@ -49,15 +49,17 @@ export const performanceUtils = {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
// performance.memory is not in standard TypeScript lib but available in Chrome-based browsers
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
interface PerformanceMemory {
|
|
53
|
+
usedJSHeapSize: number;
|
|
54
|
+
totalJSHeapSize: number;
|
|
55
|
+
jsHeapSizeLimit: number;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
interface PerformanceWithMemory extends Performance {
|
|
59
|
+
memory?: PerformanceMemory;
|
|
60
|
+
}
|
|
59
61
|
|
|
60
|
-
const mem = (performance as PerformanceWithMemory).memory;
|
|
62
|
+
const mem = (performance as unknown as PerformanceWithMemory).memory;
|
|
61
63
|
if (!mem) {
|
|
62
64
|
return null;
|
|
63
65
|
}
|
|
@@ -20,9 +20,15 @@ export interface FooterProps extends HTMLAttributes<HTMLElement>, BaseProps {
|
|
|
20
20
|
copyright?: string;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
type SocialItem = {
|
|
24
|
+
name: string;
|
|
25
|
+
href: string;
|
|
26
|
+
icon: ReactNode;
|
|
27
|
+
};
|
|
28
|
+
|
|
23
29
|
// Memoize social icon component to prevent unnecessary re-renders
|
|
24
30
|
const SocialIcon = memo<{
|
|
25
|
-
item:
|
|
31
|
+
item: SocialItem;
|
|
26
32
|
}>(({ item }) => (
|
|
27
33
|
<a
|
|
28
34
|
href={item.href}
|