@umituz/web-design-system 1.9.2 → 1.9.3

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": "1.9.2",
3
+ "version": "1.9.3",
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",
@@ -3,7 +3,7 @@
3
3
  * @description LocalStorage state management
4
4
  */
5
5
 
6
- import { useCallback, useEffect, useState } from 'react';
6
+ import { useCallback, useState } from 'react';
7
7
 
8
8
  export function useLocalStorage<T>(
9
9
  key: string,
@@ -5,7 +5,7 @@
5
5
 
6
6
  import { forwardRef, type FormHTMLAttributes, 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 FormProps extends FormHTMLAttributes<HTMLFormElement>, BaseProps {
11
11
  onSubmit?: (e: React.FormEvent<HTMLFormElement>) => void;
@@ -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 ListProps extends HTMLAttributes<HTMLUListElement>, BaseProps {
11
11
  variant?: 'default' | 'bordered' | 'spaced';
@@ -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 type MaxWidth = '4xl' | '7xl' | 'full';
11
11
 
@@ -3,17 +3,17 @@
3
3
  * @description Responsive wrapper with mobile/desktop optimizations
4
4
  */
5
5
 
6
- import { forwardRef, type HTMLAttributes } from 'react';
6
+ import { forwardRef, type HTMLAttributes, type ReactNode } from 'react';
7
7
  import { cn } from '../../infrastructure/utils';
8
8
  import { useBreakpoint } from '../hooks/useMediaQuery';
9
- import type { BaseProps, ChildrenProps } from '../../domain/types';
9
+ import type { BaseProps } from '../../domain/types';
10
10
 
11
11
  export type ResponsiveSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
12
12
 
13
13
  export interface ResponsiveContainerProps
14
- extends HTMLAttributes<HTMLDivElement>,
15
- BaseProps,
16
- ChildrenProps {
14
+ extends Omit<HTMLAttributes<HTMLDivElement>, 'children'>,
15
+ BaseProps {
16
+ children?: ReactNode;
17
17
  /**
18
18
  * Maximum width on mobile devices
19
19
  * @default 'full'
@@ -77,12 +77,6 @@ const maxWidthClasses: Record<ResponsiveSize, string> = {
77
77
  full: 'max-w-full',
78
78
  };
79
79
 
80
- const sizeBreakpointMap: Record<string, ResponsiveSize> = {
81
- sm: 'mobileMaxWidth',
82
- md: 'tabletMaxWidth',
83
- lg: 'desktopMaxWidth',
84
- };
85
-
86
80
  export const ResponsiveContainer = forwardRef<
87
81
  HTMLDivElement,
88
82
  ResponsiveContainerProps
@@ -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 SectionProps extends HTMLAttributes<HTMLElement>, BaseProps {
11
11
  title?: string;