@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 +1 -1
- package/src/presentation/hooks/useLocalStorage.ts +1 -1
- package/src/presentation/templates/Form.tsx +1 -1
- package/src/presentation/templates/List.tsx +1 -1
- package/src/presentation/templates/PageLayout.tsx +1 -1
- package/src/presentation/templates/ResponsiveContainer.tsx +5 -11
- package/src/presentation/templates/Section.tsx +1 -1
package/package.json
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
8
|
+
import type { BaseProps } from '../../domain/types';
|
|
9
9
|
|
|
10
10
|
export interface SectionProps extends HTMLAttributes<HTMLElement>, BaseProps {
|
|
11
11
|
title?: string;
|