@tamagui/remove-scroll 1.30.3 → 1.30.4

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,22 +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");
25
26
  var import_react = require("react");
26
27
  var import_react_remove_scroll = require("react-remove-scroll");
27
- const RSInner = (props) => {
28
+ const RemoveScroll = (0, import_react.memo)((props) => {
28
29
  if (!props.children)
29
30
  return null;
30
31
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_remove_scroll.RemoveScroll, { ...props });
31
- };
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
+ });
33
+ const classNames = import_react_remove_scroll.RemoveScroll.classNames;
35
34
  // Annotate the CommonJS export names for ESM import in node:
36
35
  0 && (module.exports = {
37
- RemoveScroll
36
+ RemoveScroll,
37
+ classNames
38
38
  });
39
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;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;",
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,15 +1,14 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { memo } from "react";
3
3
  import { RemoveScroll as RS } from "react-remove-scroll";
4
- const RSInner = (props) => {
4
+ const RemoveScroll = memo((props) => {
5
5
  if (!props.children)
6
6
  return null;
7
7
  return /* @__PURE__ */ jsx(RS, { ...props });
8
- };
9
- const RemoveScroll = memo(RSInner);
10
- RSInner["classNames"] = RS.classNames;
11
- RemoveScroll["classNames"] = RS.classNames;
8
+ });
9
+ const classNames = RS.classNames;
12
10
  export {
13
- RemoveScroll
11
+ RemoveScroll,
12
+ classNames
14
13
  };
15
14
  //# sourceMappingURL=RemoveScroll.js.map
@@ -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;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;",
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,14 +1,13 @@
1
1
  import { memo } from "react";
2
2
  import { RemoveScroll as RS } from "react-remove-scroll";
3
- const RSInner = (props) => {
3
+ const RemoveScroll = memo((props) => {
4
4
  if (!props.children)
5
5
  return null;
6
6
  return <RS {...props} />;
7
- };
8
- const RemoveScroll = memo(RSInner);
9
- RSInner["classNames"] = RS.classNames;
10
- RemoveScroll["classNames"] = RS.classNames;
7
+ });
8
+ const classNames = RS.classNames;
11
9
  export {
12
- RemoveScroll
10
+ RemoveScroll,
11
+ classNames
13
12
  };
14
13
  //# sourceMappingURL=RemoveScroll.js.map
@@ -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;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;",
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,14 +1,13 @@
1
1
  import { memo } from "react";
2
2
  import { RemoveScroll as RS } from "react-remove-scroll";
3
- const RSInner = (props) => {
3
+ const RemoveScroll = memo((props) => {
4
4
  if (!props.children)
5
5
  return null;
6
6
  return <RS {...props} />;
7
- };
8
- const RemoveScroll = memo(RSInner);
9
- RSInner["classNames"] = RS.classNames;
10
- RemoveScroll["classNames"] = RS.classNames;
7
+ });
8
+ const classNames = RS.classNames;
11
9
  export {
12
- RemoveScroll
10
+ RemoveScroll,
11
+ classNames
13
12
  };
14
13
  //# sourceMappingURL=RemoveScroll.mjs.map
@@ -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;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;",
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.30.3",
3
+ "version": "1.30.4",
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.3",
33
+ "@tamagui/build": "1.30.4",
34
34
  "react": "^18.2.0"
35
35
  },
36
36
  "peerDependencies": {
@@ -3,12 +3,9 @@ import { RemoveScroll as RS } from 'react-remove-scroll'
3
3
 
4
4
  export type RemoveScrollProps = React.ComponentProps<typeof RS>
5
5
 
6
- const RSInner = (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
- export const RemoveScroll = memo(RSInner)
12
-
13
- RSInner['classNames'] = RS.classNames
14
- 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: React.MemoExoticComponent<{
5
- (props: RemoveScrollProps): JSX.Element | null;
6
- classNames: {
7
- fullWidth: string;
8
- zeroRight: string;
9
- };
10
- }>;
4
+ export declare const RemoveScroll: React.MemoExoticComponent<(props: RemoveScrollProps) => JSX.Element | null>;
5
+ export declare const classNames: {
6
+ fullWidth: string;
7
+ zeroRight: string;
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,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"}
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"}