@tamagui/remove-scroll 1.61.2 → 1.62.0

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,36 +1,25 @@
1
- "use strict";
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
5
  var __export = (target, all) => {
7
6
  for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
12
10
  for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
12
  return to;
17
13
  };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
19
15
  var RemoveScroll_exports = {};
20
16
  __export(RemoveScroll_exports, {
21
17
  RemoveScroll: () => RemoveScroll,
22
18
  classNames: () => classNames
23
19
  });
24
20
  module.exports = __toCommonJS(RemoveScroll_exports);
25
- var import_jsx_runtime = require("react/jsx-runtime");
26
- var import_react = require("react");
27
- var import_react_remove_scroll = require("react-remove-scroll");
28
- const RemoveScroll = (0, import_react.memo)((props) => {
29
- if (!props.children)
30
- return null;
31
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_remove_scroll.RemoveScroll, { ...props });
32
- });
33
- const classNames = import_react_remove_scroll.RemoveScroll.classNames;
21
+ var import_react = require("react"), import_react_remove_scroll = require("react-remove-scroll"), import_jsx_runtime = require("react/jsx-runtime");
22
+ const RemoveScroll = (0, import_react.memo)((props) => props.children ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_remove_scroll.RemoveScroll, { ...props }) : null), classNames = import_react_remove_scroll.RemoveScroll.classNames;
34
23
  // Annotate the CommonJS export names for ESM import in node:
35
24
  0 && (module.exports = {
36
25
  RemoveScroll,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/RemoveScroll.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOS;AAPT,mBAA4B;AAC5B,iCAAmC;AAI5B,MAAM,mBAAe,mBAAK,CAAC,UAA6B;AAC7D,MAAI,CAAC,MAAM;AAAU,WAAO;AAC5B,SAAO,4CAAC,2BAAAA,cAAA,EAAI,GAAG,OAAO;AACxB,CAAC;AAEM,MAAM,aAAa,2BAAAA,aAAG;",
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA4B,kBAC5B,6BAAmC,gCAM1B;AAFF,MAAM,mBAAe,mBAAK,CAAC,UAC3B,MAAM,WACJ,4CAAC,2BAAAA,cAAA,EAAI,GAAG,OAAO,IADM,IAE7B,GAEY,aAAa,2BAAAA,aAAG;",
5
5
  "names": ["RS"]
6
6
  }
@@ -5,17 +5,14 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
6
  var __export = (target, all) => {
7
7
  for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
12
11
  for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
13
  return to;
17
14
  };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
19
16
  var RemoveScroll_native_exports = {};
20
17
  __export(RemoveScroll_native_exports, {
21
18
  RemoveScroll: () => RemoveScroll
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/RemoveScroll.native.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,eAAe,CAAC,UAAU,MAAM;",
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,eAAe,CAAC,UAAU,MAAM;",
5
5
  "names": []
6
6
  }
package/dist/cjs/index.js CHANGED
@@ -1,18 +1,14 @@
1
- "use strict";
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
5
  var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
6
+ if (from && typeof from == "object" || typeof from == "function")
8
7
  for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
8
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
9
  return to;
13
- };
14
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
10
+ }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
11
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
12
  var src_exports = {};
17
13
  module.exports = __toCommonJS(src_exports);
18
14
  __reExport(src_exports, require("./RemoveScroll"), module.exports);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,2BAAd;",
4
+ "mappings": ";;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,2BAAd;",
5
5
  "names": []
6
6
  }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from == "object" || typeof from == "function")
8
+ for (let key of __getOwnPropNames(from))
9
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ return to;
11
+ }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
12
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
13
+ var src_exports = {};
14
+ module.exports = __toCommonJS(src_exports);
15
+ __reExport(src_exports, require("./RemoveScroll"), module.exports);
16
+ // Annotate the CommonJS export names for ESM import in node:
17
+ 0 && (module.exports = {
18
+ ...require("./RemoveScroll")
19
+ });
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts"],
4
+ "mappings": ";;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,2BAAd;",
5
+ "names": []
6
+ }
@@ -1,12 +1,7 @@
1
- import { jsx } from "react/jsx-runtime";
2
1
  import { memo } from "react";
3
2
  import { RemoveScroll as RS } from "react-remove-scroll";
4
- const RemoveScroll = memo((props) => {
5
- if (!props.children)
6
- return null;
7
- return /* @__PURE__ */ jsx(RS, { ...props });
8
- });
9
- const classNames = RS.classNames;
3
+ import { jsx } from "react/jsx-runtime";
4
+ const RemoveScroll = memo((props) => props.children ? /* @__PURE__ */ jsx(RS, { ...props }) : null), classNames = RS.classNames;
10
5
  export {
11
6
  RemoveScroll,
12
7
  classNames
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/RemoveScroll.tsx"],
4
- "mappings": "AAOS;AAPT,SAAgB,YAAY;AAC5B,SAAS,gBAAgB,UAAU;AAI5B,MAAM,eAAe,KAAK,CAAC,UAA6B;AAC7D,MAAI,CAAC,MAAM;AAAU,WAAO;AAC5B,SAAO,oBAAC,MAAI,GAAG,OAAO;AACxB,CAAC;AAEM,MAAM,aAAa,GAAG;",
4
+ "mappings": "AAAA,SAAgB,YAAY;AAC5B,SAAS,gBAAgB,UAAU;AAM1B;AAFF,MAAM,eAAe,KAAK,CAAC,UAC3B,MAAM,WACJ,oBAAC,MAAI,GAAG,OAAO,IADM,IAE7B,GAEY,aAAa,GAAG;",
5
5
  "names": []
6
6
  }
@@ -1,11 +1,6 @@
1
1
  import { memo } from "react";
2
2
  import { RemoveScroll as RS } from "react-remove-scroll";
3
- const RemoveScroll = memo((props) => {
4
- if (!props.children)
5
- return null;
6
- return <RS {...props} />;
7
- });
8
- const classNames = RS.classNames;
3
+ const RemoveScroll = memo((props) => props.children ? <RS {...props} /> : null), classNames = RS.classNames;
9
4
  export {
10
5
  RemoveScroll,
11
6
  classNames
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/RemoveScroll.tsx"],
4
- "mappings": "AAAA,SAAgB,YAAY;AAC5B,SAAS,gBAAgB,UAAU;AAI5B,MAAM,eAAe,KAAK,CAAC,UAA6B;AAC7D,MAAI,CAAC,MAAM;AAAU,WAAO;AAC5B,SAAO,CAAC,OAAO,OAAO;AACxB,CAAC;AAEM,MAAM,aAAa,GAAG;",
4
+ "mappings": "AAAA,SAAgB,YAAY;AAC5B,SAAS,gBAAgB,UAAU;AAI5B,MAAM,eAAe,KAAK,CAAC,UAC3B,MAAM,WACJ,CAAC,OAAO,OAAO,KADM,IAE7B,GAEY,aAAa,GAAG;",
5
5
  "names": []
6
6
  }
@@ -0,0 +1,2 @@
1
+ export * from "./RemoveScroll";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts"],
4
+ "mappings": "AAAA,cAAc;",
5
+ "names": []
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/remove-scroll",
3
- "version": "1.61.2",
3
+ "version": "1.62.0",
4
4
  "types": "./types/index.d.ts",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -30,7 +30,7 @@
30
30
  "react-remove-scroll": "^2.5.5"
31
31
  },
32
32
  "devDependencies": {
33
- "@tamagui/build": "1.61.2",
33
+ "@tamagui/build": "1.62.0",
34
34
  "react": "^18.2.0"
35
35
  },
36
36
  "peerDependencies": {
@@ -1,5 +0,0 @@
1
- const RemoveScroll = (props) => props.children;
2
- export {
3
- RemoveScroll
4
- };
5
- //# sourceMappingURL=RemoveScroll.native.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/RemoveScroll.native.tsx"],
4
- "mappings": "AAAO,MAAM,eAAe,CAAC,UAAU,MAAM;",
5
- "names": []
6
- }