@tamagui/remove-scroll 1.30.1 → 1.30.3

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.
@@ -22,13 +22,16 @@ __export(RemoveScroll_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(RemoveScroll_exports);
24
24
  var import_jsx_runtime = require("react/jsx-runtime");
25
+ var import_react = require("react");
25
26
  var import_react_remove_scroll = require("react-remove-scroll");
26
- const RemoveScroll = (props) => {
27
+ const RSInner = (props) => {
27
28
  if (!props.children)
28
29
  return null;
29
30
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_remove_scroll.RemoveScroll, { ...props });
30
31
  };
31
- RemoveScroll.classNames = import_react_remove_scroll.RemoveScroll.classNames;
32
+ const RemoveScroll = (0, import_react.memo)(RSInner);
33
+ RSInner["classNames"] = import_react_remove_scroll.RemoveScroll.classNames;
34
+ RemoveScroll["classNames"] = import_react_remove_scroll.RemoveScroll.classNames;
32
35
  // Annotate the CommonJS export names for ESM import in node:
33
36
  0 && (module.exports = {
34
37
  RemoveScroll
@@ -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;AAOS;AAPT,mBAA4B;AAC5B,iCAAmC;AAInC,MAAM,UAAU,CAAC,UAA6B;AAC5C,MAAI,CAAC,MAAM;AAAU,WAAO;AAC5B,SAAO,4CAAC,2BAAAA,cAAA,EAAI,GAAG,OAAO;AACxB;AAEO,MAAM,mBAAe,mBAAK,OAAO;AAExC,QAAQ,YAAY,IAAI,2BAAAA,aAAG;AAC3B,aAAa,YAAY,IAAI,2BAAAA,aAAG;",
5
5
  "names": ["RS"]
6
6
  }
@@ -1,11 +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 RSInner = (props) => {
4
5
  if (!props.children)
5
6
  return null;
6
7
  return /* @__PURE__ */ jsx(RS, { ...props });
7
8
  };
8
- RemoveScroll.classNames = RS.classNames;
9
+ const RemoveScroll = memo(RSInner);
10
+ RSInner["classNames"] = RS.classNames;
11
+ RemoveScroll["classNames"] = RS.classNames;
9
12
  export {
10
13
  RemoveScroll
11
14
  };
@@ -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;AAInC,MAAM,UAAU,CAAC,UAA6B;AAC5C,MAAI,CAAC,MAAM;AAAU,WAAO;AAC5B,SAAO,oBAAC,MAAI,GAAG,OAAO;AACxB;AAEO,MAAM,eAAe,KAAK,OAAO;AAExC,QAAQ,YAAY,IAAI,GAAG;AAC3B,aAAa,YAAY,IAAI,GAAG;",
5
5
  "names": []
6
6
  }
@@ -1,10 +1,13 @@
1
+ import { memo } from "react";
1
2
  import { RemoveScroll as RS } from "react-remove-scroll";
2
- const RemoveScroll = (props) => {
3
+ const RSInner = (props) => {
3
4
  if (!props.children)
4
5
  return null;
5
6
  return <RS {...props} />;
6
7
  };
7
- RemoveScroll.classNames = RS.classNames;
8
+ const RemoveScroll = memo(RSInner);
9
+ RSInner["classNames"] = RS.classNames;
10
+ RemoveScroll["classNames"] = RS.classNames;
8
11
  export {
9
12
  RemoveScroll
10
13
  };
@@ -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;AAInC,MAAM,UAAU,CAAC,UAA6B;AAC5C,MAAI,CAAC,MAAM;AAAU,WAAO;AAC5B,SAAO,CAAC,OAAO,OAAO;AACxB;AAEO,MAAM,eAAe,KAAK,OAAO;AAExC,QAAQ,YAAY,IAAI,GAAG;AAC3B,aAAa,YAAY,IAAI,GAAG;",
5
5
  "names": []
6
6
  }
@@ -1,10 +1,13 @@
1
+ import { memo } from "react";
1
2
  import { RemoveScroll as RS } from "react-remove-scroll";
2
- const RemoveScroll = (props) => {
3
+ const RSInner = (props) => {
3
4
  if (!props.children)
4
5
  return null;
5
6
  return <RS {...props} />;
6
7
  };
7
- RemoveScroll.classNames = RS.classNames;
8
+ const RemoveScroll = memo(RSInner);
9
+ RSInner["classNames"] = RS.classNames;
10
+ RemoveScroll["classNames"] = RS.classNames;
8
11
  export {
9
12
  RemoveScroll
10
13
  };
@@ -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;AAInC,MAAM,UAAU,CAAC,UAA6B;AAC5C,MAAI,CAAC,MAAM;AAAU,WAAO;AAC5B,SAAO,CAAC,OAAO,OAAO;AACxB;AAEO,MAAM,eAAe,KAAK,OAAO;AAExC,QAAQ,YAAY,IAAI,GAAG;AAC3B,aAAa,YAAY,IAAI,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.30.1",
3
+ "version": "1.30.3",
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.30.1",
33
+ "@tamagui/build": "1.30.3",
34
34
  "react": "^18.2.0"
35
35
  },
36
36
  "peerDependencies": {
@@ -1,11 +1,14 @@
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
+ const RSInner = (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 RemoveScroll = memo(RSInner)
12
+
13
+ RSInner['classNames'] = RS.classNames
14
+ RemoveScroll['classNames'] = RS.classNames
@@ -1,11 +1,11 @@
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: {
4
+ export declare const RemoveScroll: React.MemoExoticComponent<{
5
5
  (props: RemoveScrollProps): JSX.Element | null;
6
6
  classNames: {
7
7
  fullWidth: string;
8
8
  zeroRight: string;
9
9
  };
10
- };
10
+ }>;
11
11
  //# 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;AAO/D,eAAO,MAAM,YAAY;YALD,iBAAiB;;;;;EAKA,CAAA"}