@tamagui/remove-scroll 1.108.0 → 1.108.2

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,7 +1,8 @@
1
+ var __create = Object.create;
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
5
6
  var __export = (target, all) => {
6
7
  for (var name in all)
7
8
  __defProp(target, name, { get: all[name], enumerable: !0 });
@@ -11,13 +12,20 @@ var __export = (target, all) => {
11
12
  !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
13
  return to;
13
14
  };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
+ // If the importer is in node compatibility mode or this is not an ESM
17
+ // file that has been converted to a CommonJS file using a Babel-
18
+ // compatible transform (i.e. "__esModule" has not been set), then set
19
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
21
+ mod
22
+ )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
23
  var RemoveScroll_exports = {};
16
24
  __export(RemoveScroll_exports, {
17
25
  RemoveScroll: () => RemoveScroll,
18
26
  classNames: () => classNames
19
27
  });
20
28
  module.exports = __toCommonJS(RemoveScroll_exports);
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;
29
+ var import_react = __toESM(require("react")), import_react_remove_scroll = require("react-remove-scroll"), import_jsx_runtime = require("react/jsx-runtime");
30
+ const RemoveScroll = import_react.default.memo((props) => props.children ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_remove_scroll.RemoveScroll, { ...props }) : null), classNames = import_react_remove_scroll.RemoveScroll.classNames;
23
31
  //# 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;AAAA;AAAA,mBAA0C,kBAC1C,6BAAmC,gCAM1B;AAFF,MAAM,mBAAe,mBAAK,CAAC,UAC3B,MAAM,WACJ,4CAAC,2BAAAA,cAAA,EAAI,GAAG,OAAO,IADM,IAE7B,GAEY,aAAa,2BAAAA,aAAG;",
5
- "names": ["RS"]
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB,2BAElB,6BAAmC,gCAM1B;AAFF,MAAM,eAAe,aAAAA,QAAM,KAAK,CAAC,UACjC,MAAM,WACJ,4CAAC,2BAAAC,cAAA,EAAI,GAAG,OAAO,IADM,IAE7B,GAEY,aAAa,2BAAAA,aAAG;",
5
+ "names": ["React", "RS"]
6
6
  }
@@ -1,7 +1,7 @@
1
- import { memo } from "react";
1
+ import React from "react";
2
2
  import { RemoveScroll as RS } from "react-remove-scroll";
3
3
  import { jsx } from "react/jsx-runtime";
4
- const RemoveScroll = memo((props) => props.children ? /* @__PURE__ */ jsx(RS, { ...props }) : null), classNames = RS.classNames;
4
+ const RemoveScroll = React.memo((props) => props.children ? /* @__PURE__ */ jsx(RS, { ...props }) : null), classNames = RS.classNames;
5
5
  export {
6
6
  RemoveScroll,
7
7
  classNames
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/RemoveScroll.tsx"],
4
- "mappings": "AAAA,SAAS,YAAiC;AAC1C,SAAS,gBAAgB,UAAU;AAM1B;AAFF,MAAM,eAAe,KAAK,CAAC,UAC3B,MAAM,WACJ,oBAAC,MAAI,GAAG,OAAO,IADM,IAE7B,GAEY,aAAa,GAAG;",
4
+ "mappings": "AAAA,OAAO,WAAW;AAElB,SAAS,gBAAgB,UAAU;AAM1B;AAFF,MAAM,eAAe,MAAM,KAAK,CAAC,UACjC,MAAM,WACJ,oBAAC,MAAI,GAAG,OAAO,IADM,IAE7B,GAEY,aAAa,GAAG;",
5
5
  "names": []
6
6
  }
@@ -1,7 +1,7 @@
1
- import { memo } from "react";
1
+ import React from "react";
2
2
  import { RemoveScroll as RS } from "react-remove-scroll";
3
3
  import { jsx } from "react/jsx-runtime";
4
- const RemoveScroll = memo(props => props.children ? /* @__PURE__ */jsx(RS, {
4
+ const RemoveScroll = React.memo(props => props.children ? /* @__PURE__ */jsx(RS, {
5
5
  ...props
6
6
  }) : null),
7
7
  classNames = RS.classNames;
@@ -1 +1 @@
1
- {"version":3,"names":["memo","RemoveScroll","RS","jsx","props","children","classNames"],"sources":["../../src/RemoveScroll.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,QAAiC;AAC1C,SAASC,YAAA,IAAgBC,EAAA,QAAU;AAM1B,SAAAC,GAAA;AAFF,MAAMF,YAAA,GAAeD,IAAA,CAAMI,KAAA,IAC3BA,KAAA,CAAMC,QAAA,GACJ,eAAAF,GAAA,CAACD,EAAA;IAAI,GAAGE;EAAA,CAAO,IADM,IAE7B;EAEYE,UAAA,GAAaJ,EAAA,CAAGI,UAAA","ignoreList":[]}
1
+ {"version":3,"names":["React","RemoveScroll","RS","jsx","memo","props","children","classNames"],"sources":["../../src/RemoveScroll.tsx"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,KAAA,MAAW;AAElB,SAASC,YAAA,IAAgBC,EAAA,QAAU;AAM1B,SAAAC,GAAA;AAFF,MAAMF,YAAA,GAAeD,KAAA,CAAMI,IAAA,CAAMC,KAAA,IACjCA,KAAA,CAAMC,QAAA,GACJ,eAAAH,GAAA,CAACD,EAAA;IAAI,GAAGG;EAAA,CAAO,IADM,IAE7B;EAEYE,UAAA,GAAaL,EAAA,CAAGK,UAAA","ignoreList":[]}
@@ -1,7 +1,7 @@
1
- import { memo } from "react";
1
+ import React from "react";
2
2
  import { RemoveScroll as RS } from "react-remove-scroll";
3
3
  import { jsx } from "react/jsx-runtime";
4
- const RemoveScroll = memo((props) => props.children ? /* @__PURE__ */ jsx(RS, { ...props }) : null), classNames = RS.classNames;
4
+ const RemoveScroll = React.memo((props) => props.children ? /* @__PURE__ */ jsx(RS, { ...props }) : null), classNames = RS.classNames;
5
5
  export {
6
6
  RemoveScroll,
7
7
  classNames
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/RemoveScroll.tsx"],
4
- "mappings": "AAAA,SAAS,YAAiC;AAC1C,SAAS,gBAAgB,UAAU;AAM1B;AAFF,MAAM,eAAe,KAAK,CAAC,UAC3B,MAAM,WACJ,oBAAC,MAAI,GAAG,OAAO,IADM,IAE7B,GAEY,aAAa,GAAG;",
4
+ "mappings": "AAAA,OAAO,WAAW;AAElB,SAAS,gBAAgB,UAAU;AAM1B;AAFF,MAAM,eAAe,MAAM,KAAK,CAAC,UACjC,MAAM,WACJ,oBAAC,MAAI,GAAG,OAAO,IADM,IAE7B,GAEY,aAAa,GAAG;",
5
5
  "names": []
6
6
  }
@@ -1,7 +1,7 @@
1
- import { memo } from "react";
1
+ import React from "react";
2
2
  import { RemoveScroll as RS } from "react-remove-scroll";
3
3
  import { jsx } from "react/jsx-runtime";
4
- const RemoveScroll = memo(props => props.children ? /* @__PURE__ */jsx(RS, {
4
+ const RemoveScroll = React.memo(props => props.children ? /* @__PURE__ */jsx(RS, {
5
5
  ...props
6
6
  }) : null),
7
7
  classNames = RS.classNames;
@@ -1 +1 @@
1
- {"version":3,"names":["memo","RemoveScroll","RS","jsx","props","children","classNames"],"sources":["../../src/RemoveScroll.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,QAAiC;AAC1C,SAASC,YAAA,IAAgBC,EAAA,QAAU;AAM1B,SAAAC,GAAA;AAFF,MAAMF,YAAA,GAAeD,IAAA,CAAMI,KAAA,IAC3BA,KAAA,CAAMC,QAAA,GACJ,eAAAF,GAAA,CAACD,EAAA;IAAI,GAAGE;EAAA,CAAO,IADM,IAE7B;EAEYE,UAAA,GAAaJ,EAAA,CAAGI,UAAA","ignoreList":[]}
1
+ {"version":3,"names":["React","RemoveScroll","RS","jsx","memo","props","children","classNames"],"sources":["../../src/RemoveScroll.tsx"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,KAAA,MAAW;AAElB,SAASC,YAAA,IAAgBC,EAAA,QAAU;AAM1B,SAAAC,GAAA;AAFF,MAAMF,YAAA,GAAeD,KAAA,CAAMI,IAAA,CAAMC,KAAA,IACjCA,KAAA,CAAMC,QAAA,GACJ,eAAAH,GAAA,CAACD,EAAA;IAAI,GAAGG;EAAA,CAAO,IADM,IAE7B;EAEYE,UAAA,GAAaL,EAAA,CAAGK,UAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/remove-scroll",
3
- "version": "1.108.0",
3
+ "version": "1.108.2",
4
4
  "types": "./types/index.d.ts",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -31,7 +31,7 @@
31
31
  "react-remove-scroll": "2.5.5"
32
32
  },
33
33
  "devDependencies": {
34
- "@tamagui/build": "1.108.0",
34
+ "@tamagui/build": "1.108.2",
35
35
  "react": "^18.2.0 || ^19.0.0"
36
36
  },
37
37
  "publishConfig": {
@@ -1,9 +1,10 @@
1
- import { memo, type ComponentProps } from 'react'
1
+ import React from 'react'
2
+ import type { ComponentProps } from 'react'
2
3
  import { RemoveScroll as RS } from 'react-remove-scroll'
3
4
 
4
5
  export type RemoveScrollProps = ComponentProps<typeof RS>
5
6
 
6
- export const RemoveScroll = memo((props: RemoveScrollProps) => {
7
+ export const RemoveScroll = React.memo((props: RemoveScrollProps) => {
7
8
  if (!props.children) return null
8
9
  return <RS {...props} />
9
10
  })
@@ -1,7 +1,8 @@
1
- import { type ComponentProps } from 'react';
1
+ import React from 'react';
2
+ import type { ComponentProps } from 'react';
2
3
  import { RemoveScroll as RS } from 'react-remove-scroll';
3
4
  export type RemoveScrollProps = ComponentProps<typeof RS>;
4
- export declare const RemoveScroll: import("react").MemoExoticComponent<(props: RemoveScrollProps) => import("react/jsx-runtime").JSX.Element | null>;
5
+ export declare const RemoveScroll: React.MemoExoticComponent<(props: RemoveScrollProps) => import("react/jsx-runtime").JSX.Element | null>;
5
6
  export declare const classNames: {
6
7
  fullWidth: string;
7
8
  zeroRight: string;
@@ -1 +1 @@
1
- {"version":3,"file":"RemoveScroll.d.ts","sourceRoot":"","sources":["../src/RemoveScroll.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,cAAc,EAAE,MAAM,OAAO,CAAA;AACjD,OAAO,EAAE,YAAY,IAAI,EAAE,EAAE,MAAM,qBAAqB,CAAA;AAExD,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,OAAO,EAAE,CAAC,CAAA;AAEzD,eAAO,MAAM,YAAY,8CAAgB,iBAAiB,oDAGxD,CAAA;AAEF,eAAO,MAAM,UAAU;;;CAAgB,CAAA"}
1
+ {"version":3,"file":"RemoveScroll.d.ts","sourceRoot":"","sources":["../src/RemoveScroll.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,YAAY,IAAI,EAAE,EAAE,MAAM,qBAAqB,CAAA;AAExD,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,OAAO,EAAE,CAAC,CAAA;AAEzD,eAAO,MAAM,YAAY,oCAAsB,iBAAiB,oDAG9D,CAAA;AAEF,eAAO,MAAM,UAAU;;;CAAgB,CAAA"}