react-responsive-tools 2.3.20 → 2.3.22

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.
@@ -9,6 +9,6 @@ interface Props {
9
9
  interface ForComponentProps extends Props {
10
10
  p: TBreakpoint | number;
11
11
  }
12
- export declare function For({ children, p }: ForComponentProps): React.ReactNode;
13
- export declare function Before({ children, p }: ForComponentProps): React.ReactNode;
12
+ export declare function For({ children, p }: ForComponentProps): import("react/jsx-runtime").JSX.Element | null;
13
+ export declare function Before({ children, p }: ForComponentProps): import("react/jsx-runtime").JSX.Element | null;
14
14
  export {};
@@ -1,16 +1,18 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
1
2
  /**
2
3
  * Created by westp on 15.05.2023
3
4
  */
5
+ import { Fragment } from "react";
4
6
  import { useBreakpointDF, useBreakpointMF } from '../hooks/useBreakpoint.js';
5
7
  export function For({ children, p }) {
6
8
  const is = useBreakpointMF(p);
7
9
  if (is)
8
- return children;
10
+ return _jsx(Fragment, { children: children });
9
11
  return null;
10
12
  }
11
13
  export function Before({ children, p }) {
12
14
  const is = useBreakpointDF(p);
13
15
  if (is)
14
- return children;
16
+ return _jsx(Fragment, { children: children });
15
17
  return null;
16
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-responsive-tools",
3
- "version": "2.3.20",
3
+ "version": "2.3.22",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",