react-responsive-tools 2.3.7 → 2.3.8

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.
@@ -1,25 +1,23 @@
1
-
2
- // breakpoints.config.mjs
1
+ // src/breakpoints.config.ts
3
2
  const HORIZONTAL_BREAKPOINTS = {
4
- "xs": "320px",
5
- "sm": "576px",
6
- "md": "768px",
7
- "lg": "992px",
8
- "lt": "1024px",
9
- "ltm": "1200px",
10
- "ltl": "1440px",
11
- "xl": "1920px",
12
- "xxl": "2560px",
13
- "qxl": "3840px"
3
+ "xs": "320px",
4
+ "sm": "576px",
5
+ "md": "768px",
6
+ "lg": "992px",
7
+ "lt": "1024px",
8
+ "ltm": "1200px",
9
+ "ltl": "1440px",
10
+ "xl": "1920px",
11
+ "xxl": "2560px",
12
+ "qxl": "3840px"
14
13
  };
15
-
16
14
  const VERTICAL_BREAKPOINTS = {
17
- "xs": "600px",
18
- "sm": "800px",
19
- "md": "1000px",
20
- "lg": "1200px",
21
- "xl": "1600px",
22
- "xxl": "1601px"
15
+ "xs": "600px",
16
+ "sm": "800px",
17
+ "md": "1000px",
18
+ "lg": "1200px",
19
+ "xl": "1600px",
20
+ "xxl": "1601px"
23
21
  };
24
-
25
22
  export { HORIZONTAL_BREAKPOINTS, VERTICAL_BREAKPOINTS };
23
+ //# sourceMappingURL=breakpoints.config.js.map
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { TBreakpoints, TVerticalBreakpoints } from './interfaces/TBreakpoints';
2
- import { TBreakpoint, TVerticalBreakpoint } from './interfaces/TBreakpoint';
1
+ import { TBreakpoint, TVerticalBreakpoint } from 'interfaces/TBreakpoint';
2
+ import { TBreakpoints, TVerticalBreakpoints } from 'interfaces/TBreakpoints';
3
3
  export * from './hooks/useBreakpoint';
4
4
  export * from './hooks/useVBreakpoint';
5
5
  export type { TBreakpoints, TBreakpoint, TVerticalBreakpoint, TVerticalBreakpoints, };
@@ -1,20 +1,2 @@
1
- export type TBreakpoint =
2
- | 'xs'
3
- | 'sm'
4
- | 'md'
5
- | 'lg'
6
- | 'lt'
7
- | 'ltm'
8
- | 'ltl'
9
- | 'xl'
10
- | 'xxl'
11
- | 'qxl'
12
-
13
-
14
- export type TVerticalBreakpoint =
15
- | 'xs'
16
- | 'sm'
17
- | 'md'
18
- | 'lg'
19
- | 'xl'
20
- | 'xxl'
1
+ export type TBreakpoint = 'xs' | 'sm' | 'md' | 'lg' | 'lt' | 'ltm' | 'ltl' | 'xl' | 'xxl' | 'qxl';
2
+ export type TVerticalBreakpoint = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
@@ -16,6 +16,7 @@
16
16
  }
17
17
  }
18
18
 
19
+
19
20
  /**
20
21
  * @mixin for-sm
21
22
  * @description Mixin for applying styles for screens greater than or equal to 576pxpx.
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "react-responsive-tools",
3
- "version": "2.3.7",
3
+ "version": "2.3.8",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "type": "module",
9
-
10
9
  "scripts": {
11
10
  "dev": "webpack --mode development --watch",
12
11
  "start": "webpack serve --config webpack.config.js --env development=true",
@@ -39,6 +38,7 @@
39
38
  "devDependencies": {
40
39
  "@babel/core": "^7.25.2",
41
40
  "@babel/preset-env": "^7.25.4",
41
+ "@babel/preset-react": "^7.24.7",
42
42
  "@babel/preset-typescript": "^7.24.7",
43
43
  "@testing-library/jest-dom": "^6.5.0",
44
44
  "@testing-library/react": "^16.0.1",