@tamagui/floating 1.135.4 → 1.135.5

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,18 +1,26 @@
1
1
  "use strict";
2
+
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ },
20
+ __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
21
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
22
+ value: !0
23
+ }), mod);
16
24
  var Floating_native_exports = {};
17
25
  __export(Floating_native_exports, {
18
26
  autoUpdate: () => autoUpdate,
@@ -20,12 +28,6 @@ __export(Floating_native_exports, {
20
28
  });
21
29
  module.exports = __toCommonJS(Floating_native_exports);
22
30
  __reExport(Floating_native_exports, require("@floating-ui/react-native"), module.exports);
23
- var autoUpdate = function() {
24
- }, platform = null;
25
- // Annotate the CommonJS export names for ESM import in node:
26
- 0 && (module.exports = {
27
- autoUpdate,
28
- platform,
29
- ...require("@floating-ui/react-native")
30
- });
31
+ var autoUpdate = function () {},
32
+ platform = null;
31
33
  //# sourceMappingURL=Floating.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Floating.native.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oCAAc,sCADd;AAAO,IAAI,aAAa,WAAW;AAAC,GAEzB,WAAW;",
5
- "names": []
6
- }
1
+ {"version":3,"names":["Floating_native_exports","__export","autoUpdate","platform","module","exports","__toCommonJS","__reExport","require"],"sources":["../../src/Floating.native.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,uBAAA;AAAAC,QAAA,CAAAD,uBAAA;EAAAE,UAAA,EAAAA,CAAA,KAAAA,UAAA;EAAAC,QAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAN,uBAAA;AACAO,UAAA,CAAAP,uBAAA,EAAcQ,OAAA,+BADdJ,MAAA,CAAAC,OAAA;AAAO,IAAIH,UAAA,GAAa,SAAAA,CAAA,EAAW,CAAC;EAEzBC,QAAA,GAAW","ignoreList":[]}
@@ -1,18 +1,25 @@
1
1
  "use strict";
2
+
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: !0
22
+ }), mod);
16
23
  var index_exports = {};
17
24
  __export(index_exports, {
18
25
  FloatingOverrideContext: () => import_useFloating.FloatingOverrideContext,
@@ -31,22 +38,6 @@ __export(index_exports, {
31
38
  useFloating: () => import_useFloating.useFloating
32
39
  });
33
40
  module.exports = __toCommonJS(index_exports);
34
- var import_Floating = require("./Floating"), import_useFloating = require("./useFloating");
35
- // Annotate the CommonJS export names for ESM import in node:
36
- 0 && (module.exports = {
37
- FloatingOverrideContext,
38
- arrow,
39
- autoPlacement,
40
- autoUpdate,
41
- detectOverflow,
42
- flip,
43
- hide,
44
- inline,
45
- limitShift,
46
- offset,
47
- platform,
48
- shift,
49
- size,
50
- useFloating
51
- });
52
- //# sourceMappingURL=index.js.map
41
+ var import_Floating = require("./Floating.native.js"),
42
+ import_useFloating = require("./useFloating.native.js");
43
+ //# sourceMappingURL=index.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAgI,uBAChI,qBAAqD;",
5
- "names": []
6
- }
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","FloatingOverrideContext","import_useFloating","arrow","import_Floating","autoPlacement","autoUpdate","detectOverflow","flip","hide","inline","limitShift","offset","platform","shift","size","useFloating","module","exports"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,uBAAA,EAAAA,CAAA,KAAAC,kBAAA,CAAAD,uBAAA;EAAAE,KAAA,EAAAA,CAAA,KAAAC,eAAA,CAAAD,KAAA;EAAAE,aAAA,EAAAA,CAAA,KAAAD,eAAA,CAAAC,aAAA;EAAAC,UAAA,EAAAA,CAAA,KAAAF,eAAA,CAAAE,UAAA;EAAAC,cAAA,EAAAA,CAAA,KAAAH,eAAA,CAAAG,cAAA;EAAAC,IAAA,EAAAA,CAAA,KAAAJ,eAAA,CAAAI,IAAA;EAAAC,IAAA,EAAAA,CAAA,KAAAL,eAAA,CAAAK,IAAA;EAAAC,MAAA,EAAAA,CAAA,KAAAN,eAAA,CAAAM,MAAA;EAAAC,UAAA,EAAAA,CAAA,KAAAP,eAAA,CAAAO,UAAA;EAAAC,MAAA,EAAAA,CAAA,KAAAR,eAAA,CAAAQ,MAAA;EAAAC,QAAA,EAAAA,CAAA,KAAAT,eAAA,CAAAS,QAAA;EAAAC,KAAA,EAAAA,CAAA,KAAAV,eAAA,CAAAU,KAAA;EAAAC,IAAA,EAAAA,CAAA,KAAAX,eAAA,CAAAW,IAAA;EAAAC,WAAA,EAAAA,CAAA,KAAAd,kBAAA,CAAAc;AAAA;AA6CAC,MAAA,CAAAC,OAAA,GAAAxB,YAaO,CAAAK,aAAA","ignoreList":[]}
@@ -35,8 +35,8 @@ __export(useFloating_exports, {
35
35
  useFloating: () => useFloating
36
36
  });
37
37
  module.exports = __toCommonJS(useFloating_exports);
38
- var import_react = __toESM(require("react")),
39
- Floating = __toESM(require("./Floating.cjs"));
38
+ var import_react = __toESM(require("react"), 1),
39
+ Floating = __toESM(require("./Floating.cjs"), 1);
40
40
  const FloatingOverrideContext = import_react.default.createContext(null),
41
41
  useFloating = props => (import_react.default.useContext(FloatingOverrideContext) || Floating.useFloating)?.({
42
42
  ...props,
@@ -26,7 +26,7 @@ __export(useFloating_exports, {
26
26
  useFloating: () => useFloating
27
27
  });
28
28
  module.exports = __toCommonJS(useFloating_exports);
29
- var import_react = __toESM(require("react")), Floating = __toESM(require("./Floating"));
29
+ var import_react = __toESM(require("react"), 1), Floating = __toESM(require("./Floating"), 1);
30
30
  const FloatingOverrideContext = import_react.default.createContext(null), useFloating = (props) => (import_react.default.useContext(FloatingOverrideContext) || Floating.useFloating)?.({
31
31
  ...props,
32
32
  middleware: [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/useFloating.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB,2BAElB,WAA0B;AAkBnB,MAAM,0BAA0B,aAAAA,QAAM,cAAoC,IAAI,GAExE,cAAc,CAAC,WACV,aAAAA,QAAM,WAAW,uBAAuB,KACrC,SAAS,eAAe;AAAA,EACzC,GAAG;AAAA,EACH,YAAY;AAAA;AAAA,IAEV,GAAG,MAAM;AAAA,IACT;AAAA,MACE,MAAM;AAAA,MACN,GAAG,EAAE,GAAG,EAAE,GAAG;AACX,eAAO;AAAA,UACL,GAAG,KAAK,MAAM,CAAC;AAAA,UACf,GAAG,KAAK,MAAM,CAAC;AAAA,QACjB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF,CAAC;",
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB,8BAElB,WAA0B;AAkBnB,MAAM,0BAA0B,aAAAA,QAAM,cAAoC,IAAI,GAExE,cAAc,CAAC,WACV,aAAAA,QAAM,WAAW,uBAAuB,KACrC,SAAS,eAAe;AAAA,EACzC,GAAG;AAAA,EACH,YAAY;AAAA;AAAA,IAEV,GAAG,MAAM;AAAA,IACT;AAAA,MACE,MAAM;AAAA,MACN,GAAG,EAAE,GAAG,EAAE,GAAG;AACX,eAAO;AAAA,UACL,GAAG,KAAK,MAAM,CAAC;AAAA,UACf,GAAG,KAAK,MAAM,CAAC;AAAA,QACjB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF,CAAC;",
5
5
  "names": ["React"]
6
6
  }
@@ -1,55 +1,65 @@
1
1
  "use strict";
2
+
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf,
8
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
9
  var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: !0 });
10
- }, __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from == "object" || typeof from == "function")
12
- for (let key of __getOwnPropNames(from))
13
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- return to;
15
- };
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: !0
13
+ });
14
+ },
15
+ __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ return to;
21
+ };
16
22
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
23
  // If the importer is in node compatibility mode or this is not an ESM
18
24
  // file that has been converted to a CommonJS file using a Babel-
19
25
  // compatible transform (i.e. "__esModule" has not been set), then set
20
26
  // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
- mod
23
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ value: mod,
29
+ enumerable: !0
30
+ }) : target, mod)),
31
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
+ value: !0
33
+ }), mod);
24
34
  var useFloating_exports = {};
25
35
  __export(useFloating_exports, {
26
36
  FloatingOverrideContext: () => FloatingOverrideContext,
27
37
  useFloating: () => useFloating
28
38
  });
29
39
  module.exports = __toCommonJS(useFloating_exports);
30
- var import_react = __toESM(require("react")), Floating = __toESM(require("./Floating")), FloatingOverrideContext = /* @__PURE__ */ import_react.default.createContext(null), useFloating = function(props) {
31
- var _this, context = import_react.default.useContext(FloatingOverrideContext);
32
- return (_this = context || Floating.useFloating) === null || _this === void 0 ? void 0 : _this({
33
- ...props,
34
- middleware: [
40
+ var import_react = __toESM(require("react"), 1),
41
+ Floating = __toESM(require("./Floating.native.js"), 1),
42
+ FloatingOverrideContext = /* @__PURE__ */import_react.default.createContext(null),
43
+ useFloating = function (props) {
44
+ var _this,
45
+ context = import_react.default.useContext(FloatingOverrideContext);
46
+ return (_this = context || Floating.useFloating) === null || _this === void 0 ? void 0 : _this({
47
+ ...props,
48
+ middleware: [
35
49
  // @ts-ignore
36
- ...props.middleware,
37
- {
50
+ ...props.middleware, {
38
51
  name: "rounded",
39
52
  fn(param) {
40
- var { x, y } = param;
53
+ var {
54
+ x,
55
+ y
56
+ } = param;
41
57
  return {
42
58
  x: Math.round(x),
43
59
  y: Math.round(y)
44
60
  };
45
61
  }
46
- }
47
- ]
48
- });
49
- };
50
- // Annotate the CommonJS export names for ESM import in node:
51
- 0 && (module.exports = {
52
- FloatingOverrideContext,
53
- useFloating
54
- });
55
- //# sourceMappingURL=useFloating.js.map
62
+ }]
63
+ });
64
+ };
65
+ //# sourceMappingURL=useFloating.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/useFloating.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB,2BAClB,WAA0B,gCACf,0BAAwC,6BAAAA,QAAM,cAAc,IAAI,GAChE,cAAc,SAAS,OAAO;AACrC,MAAI,OACA,UAAU,aAAAA,QAAM,WAAW,uBAAuB;AACtD,UAAQ,QAAQ,WAAW,SAAS,iBAAiB,QAAQ,UAAU,SAAS,SAAS,MAAM;AAAA,IAC3F,GAAG;AAAA,IACH,YAAY;AAAA;AAAA,MAER,GAAG,MAAM;AAAA,MACT;AAAA,QACI,MAAM;AAAA,QACN,GAAI,OAAO;AACP,cAAI,EAAE,GAAG,EAAE,IAAI;AACf,iBAAO;AAAA,YACH,GAAG,KAAK,MAAM,CAAC;AAAA,YACf,GAAG,KAAK,MAAM,CAAC;AAAA,UACnB;AAAA,QACJ;AAAA,MACJ;AAAA,IACJ;AAAA,EACJ,CAAC;AACL;",
5
- "names": ["React"]
6
- }
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","useFloating_exports","__export","FloatingOverrideContext","useFloating","module","exports","import_react","__toESM","require","Floating","default","createContext","props","_this","context","useContext","middleware","name","fn","param","x","y","Math","round"],"sources":["../../src/useFloating.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,mBAAA;AAAAC,QAAA,CAAAD,mBAAA;EAAAE,uBAAA,EAAAA,CAAA,KAAAA,uBAAA;EAAAC,WAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAV,YAAkB,CAAAK,mBAElB;AAkBO,IAAAM,YAAM,GAAAC,OAAA,CAAAC,OAA0B;EAAAC,QAAM,GAAAF,OAAoC,CAAAC,OAEpE,uBAAc,CAAC;EAAAN,uBACV,GAAM,eAAWI,YAAA,CAAAI,OAAuB,CAAAC,aAC5B;EAAAR,WAAe,YAAAA,CAAAS,KAAA;IACzC,IAAGC,KAAA;MAAAC,OAAA,GAAAR,YAAA,CAAAI,OAAA,CAAAK,UAAA,CAAAb,uBAAA;IACH,QAAAW,KAAY,GAAAC,OAAA,IAAAL,QAAA,CAAAN,WAAA,cAAAU,KAAA,uBAAAA,KAAA;MAAA,GAAAD,KAAA;MAEVI,UAAS;MACT;MACE,GAAAJ,KAAM,CAAAI,UAAA,EACN;QACEC,IAAA,WAAO;QAAAC,EACLA,CAAAC,KAAG,EAAK;UACR,IAAG;YAAAC,CAAA;YAAKC;UAAA,IAAOF,KAAA;UACjB;YACFC,CAAA,EAAAE,IAAA,CAAAC,KAAA,CAAAH,CAAA;YACFC,CAAA,EAAAC,IAAA,CAAAC,KAAA,CAAAF,CAAA;UACF;QACD","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@tamagui/floating",
3
- "version": "1.135.4",
3
+ "version": "1.135.5",
4
+ "type": "module",
4
5
  "sideEffects": true,
5
6
  "source": "src/index.ts",
6
7
  "types": "./types/index.d.ts",
@@ -44,7 +45,7 @@
44
45
  "@floating-ui/react-native": "^0.10.7"
45
46
  },
46
47
  "devDependencies": {
47
- "@tamagui/build": "1.135.4",
48
+ "@tamagui/build": "1.135.5",
48
49
  "react": "*",
49
50
  "react-native": "^0.79.2"
50
51
  }