@tamagui/remove-scroll 1.0.1-beta.150 → 1.0.1-beta.153
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/cjs/RemoveScroll.js +4 -5
- package/dist/cjs/RemoveScroll.js.map +3 -3
- package/dist/esm/RemoveScroll.js +4 -2
- package/dist/esm/RemoveScroll.js.map +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/jsx/RemoveScroll.js +2 -0
- package/dist/jsx/RemoveScroll.js.map +2 -2
- package/dist/jsx/index.js.map +1 -1
- package/package.json +2 -2
- package/src/RemoveScroll.tsx +1 -0
- package/types/RemoveScroll.d.ts +1 -1
package/dist/cjs/RemoveScroll.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
6
|
var __export = (target, all) => {
|
|
9
7
|
for (var name in all)
|
|
@@ -17,17 +15,18 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
15
|
}
|
|
18
16
|
return to;
|
|
19
17
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
21
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
22
19
|
var RemoveScroll_exports = {};
|
|
23
20
|
__export(RemoveScroll_exports, {
|
|
24
21
|
RemoveScroll: () => RemoveScroll
|
|
25
22
|
});
|
|
26
23
|
module.exports = __toCommonJS(RemoveScroll_exports);
|
|
27
|
-
var
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
28
25
|
var import_react_remove_scroll = require("react-remove-scroll");
|
|
29
26
|
const RemoveScroll = (props) => {
|
|
30
|
-
|
|
27
|
+
if (!props.children)
|
|
28
|
+
return null;
|
|
29
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_remove_scroll.RemoveScroll, {
|
|
31
30
|
...props
|
|
32
31
|
});
|
|
33
32
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/RemoveScroll.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react'\nimport { RemoveScroll as RS } from 'react-remove-scroll'\n\nexport type RemoveScrollProps = React.ComponentProps<typeof RS>\n\nexport const RemoveScroll = (props: RemoveScrollProps) => {\n return <RS {...props} />\n}\n\nRemoveScroll.classNames = RS.classNames\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
4
|
+
"sourcesContent": ["import React from 'react'\nimport { RemoveScroll as RS } from 'react-remove-scroll'\n\nexport type RemoveScrollProps = React.ComponentProps<typeof RS>\n\nexport const RemoveScroll = (props: RemoveScrollProps) => {\n if (!props.children) return null\n return <RS {...props} />\n}\n\nRemoveScroll.classNames = RS.classNames\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOS;AANT,iCAAmC;AAI5B,MAAM,eAAe,CAAC,UAA6B;AACxD,MAAI,CAAC,MAAM;AAAU,WAAO;AAC5B,SAAO,4CAAC,2BAAAA,cAAA;AAAA,IAAI,GAAG;AAAA,GAAO;AACxB;AAEA,aAAa,aAAa,2BAAAA,aAAG;",
|
|
6
|
+
"names": ["RS"]
|
|
7
7
|
}
|
package/dist/esm/RemoveScroll.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { RemoveScroll as RS } from "react-remove-scroll";
|
|
3
3
|
const RemoveScroll = (props) => {
|
|
4
|
-
|
|
4
|
+
if (!props.children)
|
|
5
|
+
return null;
|
|
6
|
+
return /* @__PURE__ */ jsx(RS, {
|
|
5
7
|
...props
|
|
6
8
|
});
|
|
7
9
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/RemoveScroll.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react'\nimport { RemoveScroll as RS } from 'react-remove-scroll'\n\nexport type RemoveScrollProps = React.ComponentProps<typeof RS>\n\nexport const RemoveScroll = (props: RemoveScrollProps) => {\n return <RS {...props} />\n}\n\nRemoveScroll.classNames = RS.classNames\n"],
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import React from 'react'\nimport { RemoveScroll as RS } from 'react-remove-scroll'\n\nexport type RemoveScrollProps = React.ComponentProps<typeof RS>\n\nexport const RemoveScroll = (props: RemoveScrollProps) => {\n if (!props.children) return null\n return <RS {...props} />\n}\n\nRemoveScroll.classNames = RS.classNames\n"],
|
|
5
|
+
"mappings": "AAOS;AANT,SAAS,gBAAgB,UAAU;AAI5B,MAAM,eAAe,CAAC,UAA6B;AACxD,MAAI,CAAC,MAAM;AAAU,WAAO;AAC5B,SAAO,oBAAC;AAAA,IAAI,GAAG;AAAA,GAAO;AACxB;AAEA,aAAa,aAAa,GAAG;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/index.js.map
CHANGED
package/dist/jsx/RemoveScroll.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/RemoveScroll.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react'\nimport { RemoveScroll as RS } from 'react-remove-scroll'\n\nexport type RemoveScrollProps = React.ComponentProps<typeof RS>\n\nexport const RemoveScroll = (props: RemoveScrollProps) => {\n return <RS {...props} />\n}\n\nRemoveScroll.classNames = RS.classNames\n"],
|
|
5
|
-
"mappings": "AACA;
|
|
4
|
+
"sourcesContent": ["import React from 'react'\nimport { RemoveScroll as RS } from 'react-remove-scroll'\n\nexport type RemoveScrollProps = React.ComponentProps<typeof RS>\n\nexport const RemoveScroll = (props: RemoveScrollProps) => {\n if (!props.children) return null\n return <RS {...props} />\n}\n\nRemoveScroll.classNames = RS.classNames\n"],
|
|
5
|
+
"mappings": "AACA,SAAS,gBAAgB,UAAU;AAI5B,MAAM,eAAe,CAAC,UAA6B;AACxD,MAAI,CAAC,MAAM;AAAU,WAAO;AAC5B,SAAO,CAAC,OAAO,OAAO;AACxB;AAEA,aAAa,aAAa,GAAG;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/jsx/index.js.map
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/remove-scroll",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.153",
|
|
4
4
|
"types": "./types/index.d.ts",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"react-remove-scroll": "^2.5.5"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@tamagui/build": "^1.0.1-beta.
|
|
25
|
+
"@tamagui/build": "^1.0.1-beta.153",
|
|
26
26
|
"react": "*"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
package/src/RemoveScroll.tsx
CHANGED
package/types/RemoveScroll.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { RemoveScroll as RS } from 'react-remove-scroll';
|
|
3
3
|
export declare type RemoveScrollProps = React.ComponentProps<typeof RS>;
|
|
4
4
|
export declare const RemoveScroll: {
|
|
5
|
-
(props: RemoveScrollProps): JSX.Element;
|
|
5
|
+
(props: RemoveScrollProps): JSX.Element | null;
|
|
6
6
|
classNames: {
|
|
7
7
|
fullWidth: string;
|
|
8
8
|
zeroRight: string;
|