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.
@@ -2,7 +2,7 @@
2
2
  * Created by westp on 15.05.2023
3
3
  */
4
4
  import React from "react";
5
- import { TBreakpoint } from 'interfaces/TBreakpoint';
5
+ import { TBreakpoint } from '../interfaces/TBreakpoint';
6
6
  interface Props {
7
7
  children: React.ReactNode;
8
8
  }
@@ -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,4 +1,4 @@
1
- import { HORIZONTAL_BREAKPOINTS, VERTICAL_BREAKPOINTS } from 'breakpoints.config.js';
1
+ import { HORIZONTAL_BREAKPOINTS, VERTICAL_BREAKPOINTS } from '../breakpoints.config.js';
2
2
  export default function getBreakpoint(b) {
3
3
  return HORIZONTAL_BREAKPOINTS[b];
4
4
  }
@@ -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, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-responsive-tools",
3
- "version": "2.3.11",
3
+ "version": "2.3.12",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",