@tamagui/remove-scroll 1.29.5 → 1.30.0-1685833167060

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.
@@ -18,19 +18,22 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var RemoveScroll_exports = {};
20
20
  __export(RemoveScroll_exports, {
21
- RemoveScroll: () => RemoveScroll
21
+ RemoveScroll: () => RemoveScroll,
22
+ classNames: () => classNames
22
23
  });
23
24
  module.exports = __toCommonJS(RemoveScroll_exports);
24
25
  var import_jsx_runtime = require("react/jsx-runtime");
26
+ var import_react = require("react");
25
27
  var import_react_remove_scroll = require("react-remove-scroll");
26
- const RemoveScroll = (props) => {
28
+ const RemoveScroll = (0, import_react.memo)((props) => {
27
29
  if (!props.children)
28
30
  return null;
29
31
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_remove_scroll.RemoveScroll, { ...props });
30
- };
31
- RemoveScroll.classNames = import_react_remove_scroll.RemoveScroll.classNames;
32
+ });
33
+ const classNames = import_react_remove_scroll.RemoveScroll.classNames;
32
34
  // Annotate the CommonJS export names for ESM import in node:
33
35
  0 && (module.exports = {
34
- RemoveScroll
36
+ RemoveScroll,
37
+ classNames
35
38
  });
36
39
  //# sourceMappingURL=RemoveScroll.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/RemoveScroll.tsx"],
4
- "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,EAAI,GAAG,OAAO;AACxB;AAEA,aAAa,aAAa,2BAAAA,aAAG;",
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;",
5
5
  "names": ["RS"]
6
6
  }
@@ -1,12 +1,14 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
+ import { memo } from "react";
2
3
  import { RemoveScroll as RS } from "react-remove-scroll";
3
- const RemoveScroll = (props) => {
4
+ const RemoveScroll = memo((props) => {
4
5
  if (!props.children)
5
6
  return null;
6
7
  return /* @__PURE__ */ jsx(RS, { ...props });
7
- };
8
- RemoveScroll.classNames = RS.classNames;
8
+ });
9
+ const classNames = RS.classNames;
9
10
  export {
10
- RemoveScroll
11
+ RemoveScroll,
12
+ classNames
11
13
  };
12
14
  //# sourceMappingURL=RemoveScroll.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/RemoveScroll.tsx"],
4
- "mappings": "AAOS;AANT,SAAS,gBAAgB,UAAU;AAI5B,MAAM,eAAe,CAAC,UAA6B;AACxD,MAAI,CAAC,MAAM;AAAU,WAAO;AAC5B,SAAO,oBAAC,MAAI,GAAG,OAAO;AACxB;AAEA,aAAa,aAAa,GAAG;",
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;",
5
5
  "names": []
6
6
  }
@@ -1,11 +1,13 @@
1
+ import { memo } from "react";
1
2
  import { RemoveScroll as RS } from "react-remove-scroll";
2
- const RemoveScroll = (props) => {
3
+ const RemoveScroll = memo((props) => {
3
4
  if (!props.children)
4
5
  return null;
5
6
  return <RS {...props} />;
6
- };
7
- RemoveScroll.classNames = RS.classNames;
7
+ });
8
+ const classNames = RS.classNames;
8
9
  export {
9
- RemoveScroll
10
+ RemoveScroll,
11
+ classNames
10
12
  };
11
13
  //# sourceMappingURL=RemoveScroll.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/RemoveScroll.tsx"],
4
- "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;",
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;",
5
5
  "names": []
6
6
  }
@@ -1,11 +1,13 @@
1
+ import { memo } from "react";
1
2
  import { RemoveScroll as RS } from "react-remove-scroll";
2
- const RemoveScroll = (props) => {
3
+ const RemoveScroll = memo((props) => {
3
4
  if (!props.children)
4
5
  return null;
5
6
  return <RS {...props} />;
6
- };
7
- RemoveScroll.classNames = RS.classNames;
7
+ });
8
+ const classNames = RS.classNames;
8
9
  export {
9
- RemoveScroll
10
+ RemoveScroll,
11
+ classNames
10
12
  };
11
13
  //# sourceMappingURL=RemoveScroll.mjs.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/RemoveScroll.tsx"],
4
- "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;",
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;",
5
5
  "names": []
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/remove-scroll",
3
- "version": "1.29.5",
3
+ "version": "1.30.0-1685833167060",
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.29.5",
33
+ "@tamagui/build": "1.30.0-1685833167060",
34
34
  "react": "^18.2.0"
35
35
  },
36
36
  "peerDependencies": {
@@ -1,11 +1,11 @@
1
- import React from 'react'
1
+ import React, { memo } from 'react'
2
2
  import { RemoveScroll as RS } from 'react-remove-scroll'
3
3
 
4
4
  export type RemoveScrollProps = React.ComponentProps<typeof RS>
5
5
 
6
- export const RemoveScroll = (props: RemoveScrollProps) => {
6
+ export const RemoveScroll = memo((props: RemoveScrollProps) => {
7
7
  if (!props.children) return null
8
8
  return <RS {...props} />
9
- }
9
+ })
10
10
 
11
- RemoveScroll.classNames = RS.classNames
11
+ export const classNames = RS.classNames
@@ -1,11 +1,9 @@
1
1
  import React from 'react';
2
2
  import { RemoveScroll as RS } from 'react-remove-scroll';
3
3
  export type RemoveScrollProps = React.ComponentProps<typeof RS>;
4
- export declare const RemoveScroll: {
5
- (props: RemoveScrollProps): JSX.Element | null;
6
- classNames: {
7
- fullWidth: string;
8
- zeroRight: string;
9
- };
4
+ export declare const RemoveScroll: React.MemoExoticComponent<(props: RemoveScrollProps) => JSX.Element | null>;
5
+ export declare const classNames: {
6
+ fullWidth: string;
7
+ zeroRight: string;
10
8
  };
11
9
  //# sourceMappingURL=RemoveScroll.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RemoveScroll.d.ts","sourceRoot":"","sources":["../src/RemoveScroll.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,YAAY,IAAI,EAAE,EAAE,MAAM,qBAAqB,CAAA;AAExD,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,EAAE,CAAC,CAAA;AAE/D,eAAO,MAAM,YAAY;YAAW,iBAAiB;;;;;CAGpD,CAAA"}
1
+ {"version":3,"file":"RemoveScroll.d.ts","sourceRoot":"","sources":["../src/RemoveScroll.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAA;AACnC,OAAO,EAAE,YAAY,IAAI,EAAE,EAAE,MAAM,qBAAqB,CAAA;AAExD,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,EAAE,CAAC,CAAA;AAE/D,eAAO,MAAM,YAAY,oCAAgB,iBAAiB,wBAGxD,CAAA;AAEF,eAAO,MAAM,UAAU;;;CAAgB,CAAA"}