react-responsive-tools 2.3.11 → 2.3.12
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/dist/components/horizontal.d.ts +1 -1
- package/dist/functions/getBreakpoint.d.ts +1 -1
- package/dist/functions/getBreakpoint.js +1 -1
- package/dist/hooks/useBreakpoint.d.ts +2 -2
- package/dist/hooks/useVBreakpoint.d.ts +2 -2
- package/dist/hooks/useVBreakpoint.js +1 -1
- package/dist/hooks/useVariant.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
@@ -1,3 +1,3 @@
|
|
1
|
-
import { TBreakpoint, TVerticalBreakpoint } from 'interfaces/TBreakpoint.js';
|
1
|
+
import { TBreakpoint, TVerticalBreakpoint } from '../interfaces/TBreakpoint.js';
|
2
2
|
export default function getBreakpoint(b: TBreakpoint): string;
|
3
3
|
export declare function getVBreakpoint(b: TVerticalBreakpoint): string;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { TBreakpoint } from 'interfaces/TBreakpoint.js';
|
2
|
-
import { TAdaptiveVariant } from 'interfaces/TAdaptiveVariant.js';
|
1
|
+
import { TBreakpoint } from '../interfaces/TBreakpoint.js';
|
2
|
+
import { TAdaptiveVariant } from '../interfaces/TAdaptiveVariant.js';
|
3
3
|
export default function useBreakpoint(b: TBreakpoint | number, variant?: TAdaptiveVariant): boolean;
|
4
4
|
export declare function useBreakpointMF(b: TBreakpoint | number): boolean;
|
5
5
|
export declare function useBreakpointDF(b: TBreakpoint | number): boolean;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { TVerticalBreakpoint } from 'interfaces/TBreakpoint';
|
2
|
-
import { TAdaptiveVariant } from 'interfaces/TAdaptiveVariant';
|
1
|
+
import { TVerticalBreakpoint } from '../interfaces/TBreakpoint';
|
2
|
+
import { TAdaptiveVariant } from '../interfaces/TAdaptiveVariant';
|
3
3
|
export default function useVBreakpoint(b: TVerticalBreakpoint | number, variant?: TAdaptiveVariant): boolean;
|
4
4
|
export declare function useVBreakpointMF(b: TVerticalBreakpoint | number): boolean;
|
5
5
|
export declare function useVBreakpointDF(b: TVerticalBreakpoint | number): boolean;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { useMediaQuery } from 'react-responsive';
|
2
2
|
import useVariant from './useVariant.js';
|
3
|
-
import { getVBreakpoint } from "functions/getBreakpoint.js";
|
3
|
+
import { getVBreakpoint } from "../functions/getBreakpoint.js";
|
4
4
|
export default function useVBreakpoint(b, variant = 'MtF') {
|
5
5
|
const _bp = typeof b === 'number' ? b + 'px' : getVBreakpoint(b);
|
6
6
|
const v = useVariant(variant);
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { TAdaptiveVariant } from "interfaces/TAdaptiveVariant";
|
1
|
+
import { TAdaptiveVariant } from "../interfaces/TAdaptiveVariant";
|
2
2
|
export default function useVariant(variant: TAdaptiveVariant): "min" | "max";
|
package/dist/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { TBreakpoint, TVerticalBreakpoint } from 'interfaces/TBreakpoint';
|
2
|
-
import { TBreakpoints, TVerticalBreakpoints } from 'interfaces/TBreakpoints';
|
1
|
+
import { TBreakpoint, TVerticalBreakpoint } from './interfaces/TBreakpoint';
|
2
|
+
import { TBreakpoints, TVerticalBreakpoints } from './interfaces/TBreakpoints';
|
3
3
|
export * from './hooks/useBreakpoint.js';
|
4
4
|
export * from './hooks/useVBreakpoint.js';
|
5
5
|
export type { TBreakpoints, TBreakpoint, TVerticalBreakpoint, TVerticalBreakpoints, };
|