@tamagui/remove-scroll 1.30.2 → 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.
- package/dist/cjs/RemoveScroll.js +7 -7
- package/dist/cjs/RemoveScroll.js.map +1 -1
- package/dist/esm/RemoveScroll.js +5 -6
- package/dist/esm/RemoveScroll.js.map +1 -1
- package/dist/jsx/RemoveScroll.js +5 -6
- package/dist/jsx/RemoveScroll.js.map +1 -1
- package/dist/jsx/RemoveScroll.mjs +5 -6
- package/dist/jsx/RemoveScroll.mjs.map +1 -1
- package/package.json +2 -2
- package/src/RemoveScroll.tsx +3 -6
- package/types/RemoveScroll.d.ts +5 -7
- package/types/RemoveScroll.d.ts.map +1 -1
package/dist/cjs/RemoveScroll.js
CHANGED
|
@@ -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
|
|
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
|
|
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;
|
|
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
|
}
|
package/dist/esm/RemoveScroll.js
CHANGED
|
@@ -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
|
|
4
|
+
const RemoveScroll = memo((props) => {
|
|
5
5
|
if (!props.children)
|
|
6
6
|
return null;
|
|
7
7
|
return /* @__PURE__ */ jsx(RS, { ...props });
|
|
8
|
-
};
|
|
9
|
-
const
|
|
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;
|
|
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
|
}
|
package/dist/jsx/RemoveScroll.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { memo } from "react";
|
|
2
2
|
import { RemoveScroll as RS } from "react-remove-scroll";
|
|
3
|
-
const
|
|
3
|
+
const RemoveScroll = memo((props) => {
|
|
4
4
|
if (!props.children)
|
|
5
5
|
return null;
|
|
6
6
|
return <RS {...props} />;
|
|
7
|
-
};
|
|
8
|
-
const
|
|
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;
|
|
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
|
|
3
|
+
const RemoveScroll = memo((props) => {
|
|
4
4
|
if (!props.children)
|
|
5
5
|
return null;
|
|
6
6
|
return <RS {...props} />;
|
|
7
|
-
};
|
|
8
|
-
const
|
|
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;
|
|
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
|
+
"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.
|
|
33
|
+
"@tamagui/build": "1.30.4",
|
|
34
34
|
"react": "^18.2.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
package/src/RemoveScroll.tsx
CHANGED
|
@@ -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
|
|
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
|
|
12
|
-
|
|
13
|
-
RSInner['classNames'] = RS.classNames
|
|
14
|
-
RemoveScroll['classNames'] = RS.classNames
|
|
11
|
+
export const classNames = RS.classNames
|
package/types/RemoveScroll.d.ts
CHANGED
|
@@ -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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
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"}
|