@tamagui/menu 1.88.0 → 1.88.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.
package/dist/cjs/Menu.js CHANGED
@@ -24,7 +24,7 @@ const MenuItem = (props) => props.children, Menu = (0, import_helpers.withStatic
24
24
  prop: openProp,
25
25
  defaultProp: defaultOpen,
26
26
  onChange(next) {
27
- onOpenChange == null || onOpenChange(next);
27
+ onOpenChange?.(next);
28
28
  }
29
29
  }), triggerProps = (0, import_react.useMemo)(() => ({
30
30
  onPress: () => {
@@ -38,8 +38,4 @@ const MenuItem = (props) => props.children, Menu = (0, import_helpers.withStatic
38
38
  // Provider: DrawerProvider,
39
39
  }
40
40
  );
41
- // Annotate the CommonJS export names for ESM import in node:
42
- 0 && (module.exports = {
43
- Menu
44
- });
45
41
  //# sourceMappingURL=Menu.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Menu.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAyB,0BACzB,iBAAqC,6BAErC,gCAAqC,4CACrC,eAA+B;AAE/B,MAAM,WAAW,CAAC,UACT,MAAM,UAWF,WAAO;AAAA,EAClB,CAAC,EAAE,UAAU,MAAM,UAAU,aAAa,SAAS,aAAa,MAAiB;AAC/E,UAAM,YAAQ,sBAAS,GACjB,CAAC,MAAM,OAAO,QAAI,oDAAqB;AAAA,MAC3C,MAAM;AAAA,MACN,aAAa;AAAA,MACb,SAAS,MAAM;AACb,6CAAe;AAAA,MACjB;AAAA,IACF,CAAC,GAEK,mBAAe,sBAAQ,OACpB;AAAA,MACL,SAAS,MAAM;AACb,gBAAQ,CAAC,MAAM,CAAC,CAAC;AAAA,MACnB;AAAA,IACF,IACC,CAAC,CAAC;AAaL,WAAO;AAAA,EAeT;AAAA,EACA;AAAA,IACE,MAAM;AAAA;AAAA,EAER;AACF;",
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAyB,0BACzB,iBAAqC,6BAErC,gCAAqC,4CACrC,eAA+B;AAE/B,MAAM,WAAW,CAAC,UACT,MAAM,UAWF,WAAO;AAAA,EAClB,CAAC,EAAE,UAAU,MAAM,UAAU,aAAa,SAAS,aAAa,MAAiB;AAC/E,UAAM,YAAQ,sBAAS,GACjB,CAAC,MAAM,OAAO,QAAI,oDAAqB;AAAA,MAC3C,MAAM;AAAA,MACN,aAAa;AAAA,MACb,SAAS,MAAM;AACb,uBAAe,IAAI;AAAA,MACrB;AAAA,IACF,CAAC,GAEK,mBAAe,sBAAQ,OACpB;AAAA,MACL,SAAS,MAAM;AACb,gBAAQ,CAAC,MAAM,CAAC,CAAC;AAAA,MACnB;AAAA,IACF,IACC,CAAC,CAAC;AAaL,WAAO;AAAA,EAeT;AAAA,EACA;AAAA,IACE,MAAM;AAAA;AAAA,EAER;AACF;",
5
5
  "names": []
6
6
  }
package/dist/cjs/index.js CHANGED
@@ -13,8 +13,4 @@ var src_exports = {};
13
13
  module.exports = __toCommonJS(src_exports);
14
14
  var import_polyfill_dev = require("@tamagui/polyfill-dev");
15
15
  __reExport(src_exports, require("./Menu"), module.exports);
16
- // Annotate the CommonJS export names for ESM import in node:
17
- 0 && (module.exports = {
18
- ...require("./Menu")
19
- });
20
16
  //# sourceMappingURL=index.js.map
@@ -1,16 +1,33 @@
1
- import { useMedia } from "@tamagui/core";
2
- import { withStaticProperties } from "@tamagui/helpers";
3
- import { useControllableState } from "@tamagui/use-controllable-state";
4
- import { useMemo } from "react";
5
- const MenuItem = (props) => props.children, Menu = withStaticProperties(
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ 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);
16
+ var Menu_exports = {};
17
+ __export(Menu_exports, {
18
+ Menu: () => Menu
19
+ });
20
+ module.exports = __toCommonJS(Menu_exports);
21
+ var import_core = require("@tamagui/core"), import_helpers = require("@tamagui/helpers"), import_use_controllable_state = require("@tamagui/use-controllable-state"), import_react = require("react");
22
+ const MenuItem = (props) => props.children, Menu = (0, import_helpers.withStaticProperties)(
6
23
  ({ children, open: openProp, defaultOpen, trigger, onOpenChange }) => {
7
- const media = useMedia(), [open, setOpen] = useControllableState({
24
+ const media = (0, import_core.useMedia)(), [open, setOpen] = (0, import_use_controllable_state.useControllableState)({
8
25
  prop: openProp,
9
26
  defaultProp: defaultOpen,
10
27
  onChange(next) {
11
- onOpenChange?.(next);
28
+ onOpenChange == null || onOpenChange(next);
12
29
  }
13
- }), triggerProps = useMemo(() => ({
30
+ }), triggerProps = (0, import_react.useMemo)(() => ({
14
31
  onPress: () => {
15
32
  setOpen((x) => !x);
16
33
  }
@@ -22,7 +39,8 @@ const MenuItem = (props) => props.children, Menu = withStaticProperties(
22
39
  // Provider: DrawerProvider,
23
40
  }
24
41
  );
25
- export {
42
+ // Annotate the CommonJS export names for ESM import in node:
43
+ 0 && (module.exports = {
26
44
  Menu
27
- };
45
+ });
28
46
  //# sourceMappingURL=Menu.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Menu.tsx"],
4
- "mappings": "AAAA,SAAS,gBAAgB;AACzB,SAAS,4BAA4B;AAErC,SAAS,4BAA4B;AACrC,SAAgB,eAAe;AAE/B,MAAM,WAAW,CAAC,UACT,MAAM,UAWF,OAAO;AAAA,EAClB,CAAC,EAAE,UAAU,MAAM,UAAU,aAAa,SAAS,aAAa,MAAiB;AAC/E,UAAM,QAAQ,SAAS,GACjB,CAAC,MAAM,OAAO,IAAI,qBAAqB;AAAA,MAC3C,MAAM;AAAA,MACN,aAAa;AAAA,MACb,SAAS,MAAM;AACb,uBAAe,IAAI;AAAA,MACrB;AAAA,IACF,CAAC,GAEK,eAAe,QAAQ,OACpB;AAAA,MACL,SAAS,MAAM;AACb,gBAAQ,CAAC,MAAM,CAAC,CAAC;AAAA,MACnB;AAAA,IACF,IACC,CAAC,CAAC;AAaL,WAAO;AAAA,EAeT;AAAA,EACA;AAAA,IACE,MAAM;AAAA;AAAA,EAER;AACF;",
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAyB,0BACzB,iBAAqC,6BAErC,gCAAqC,4CACrC,eAA+B;AAE/B,MAAM,WAAW,CAAC,UACT,MAAM,UAWF,WAAO;AAAA,EAClB,CAAC,EAAE,UAAU,MAAM,UAAU,aAAa,SAAS,aAAa,MAAiB;AAC/E,UAAM,YAAQ,sBAAS,GACjB,CAAC,MAAM,OAAO,QAAI,oDAAqB;AAAA,MAC3C,MAAM;AAAA,MACN,aAAa;AAAA,MACb,SAAS,MAAM;AACb,6CAAe;AAAA,MACjB;AAAA,IACF,CAAC,GAEK,mBAAe,sBAAQ,OACpB;AAAA,MACL,SAAS,MAAM;AACb,gBAAQ,CAAC,MAAM,CAAC,CAAC;AAAA,MACnB;AAAA,IACF,IACC,CAAC,CAAC;AAaL,WAAO;AAAA,EAeT;AAAA,EACA;AAAA,IACE,MAAM;AAAA;AAAA,EAER;AACF;",
5
5
  "names": []
6
6
  }
@@ -1,3 +1,21 @@
1
- import "@tamagui/polyfill-dev";
2
- export * from "./Menu";
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from == "object" || typeof from == "function")
8
+ for (let key of __getOwnPropNames(from))
9
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ return to;
11
+ }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
12
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
13
+ var src_exports = {};
14
+ module.exports = __toCommonJS(src_exports);
15
+ var import_polyfill_dev = require("@tamagui/polyfill-dev");
16
+ __reExport(src_exports, require("./Menu"), module.exports);
17
+ // Annotate the CommonJS export names for ESM import in node:
18
+ 0 && (module.exports = {
19
+ ...require("./Menu")
20
+ });
3
21
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx"],
4
- "mappings": "AAAA,OAAO;AACP,cAAc;",
4
+ "mappings": ";;;;;;;;;;;;AAAA;AAAA;AAAA,0BAAO;AACP,wBAAc,mBADd;",
5
5
  "names": []
6
6
  }
@@ -1,16 +1,33 @@
1
- import { useMedia } from "@tamagui/core";
2
- import { withStaticProperties } from "@tamagui/helpers";
3
- import { useControllableState } from "@tamagui/use-controllable-state";
4
- import { useMemo } from "react";
5
- const MenuItem = (props) => props.children, Menu = withStaticProperties(
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ 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);
16
+ var Menu_exports = {};
17
+ __export(Menu_exports, {
18
+ Menu: () => Menu
19
+ });
20
+ module.exports = __toCommonJS(Menu_exports);
21
+ var import_core = require("@tamagui/core"), import_helpers = require("@tamagui/helpers"), import_use_controllable_state = require("@tamagui/use-controllable-state"), import_react = require("react");
22
+ const MenuItem = (props) => props.children, Menu = (0, import_helpers.withStaticProperties)(
6
23
  ({ children, open: openProp, defaultOpen, trigger, onOpenChange }) => {
7
- const media = useMedia(), [open, setOpen] = useControllableState({
24
+ const media = (0, import_core.useMedia)(), [open, setOpen] = (0, import_use_controllable_state.useControllableState)({
8
25
  prop: openProp,
9
26
  defaultProp: defaultOpen,
10
27
  onChange(next) {
11
28
  onOpenChange == null || onOpenChange(next);
12
29
  }
13
- }), triggerProps = useMemo(() => ({
30
+ }), triggerProps = (0, import_react.useMemo)(() => ({
14
31
  onPress: () => {
15
32
  setOpen((x) => !x);
16
33
  }
@@ -22,7 +39,8 @@ const MenuItem = (props) => props.children, Menu = withStaticProperties(
22
39
  // Provider: DrawerProvider,
23
40
  }
24
41
  );
25
- export {
42
+ // Annotate the CommonJS export names for ESM import in node:
43
+ 0 && (module.exports = {
26
44
  Menu
27
- };
45
+ });
28
46
  //# sourceMappingURL=Menu.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Menu.tsx"],
4
- "mappings": "AAAA,SAAS,gBAAgB;AACzB,SAAS,4BAA4B;AAErC,SAAS,4BAA4B;AACrC,SAAgB,eAAe;AAE/B,MAAM,WAAW,CAAC,UACT,MAAM,UAWF,OAAO;AAAA,EAClB,CAAC,EAAE,UAAU,MAAM,UAAU,aAAa,SAAS,aAAa,MAAiB;AAC/E,UAAM,QAAQ,SAAS,GACjB,CAAC,MAAM,OAAO,IAAI,qBAAqB;AAAA,MAC3C,MAAM;AAAA,MACN,aAAa;AAAA,MACb,SAAS,MAAM;AACb,6CAAe;AAAA,MACjB;AAAA,IACF,CAAC,GAEK,eAAe,QAAQ,OACpB;AAAA,MACL,SAAS,MAAM;AACb,gBAAQ,CAAC,MAAM,CAAC,CAAC;AAAA,MACnB;AAAA,IACF,IACC,CAAC,CAAC;AAaL,WAAO;AAAA,EAeT;AAAA,EACA;AAAA,IACE,MAAM;AAAA;AAAA,EAER;AACF;",
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAyB,0BACzB,iBAAqC,6BAErC,gCAAqC,4CACrC,eAA+B;AAE/B,MAAM,WAAW,CAAC,UACT,MAAM,UAWF,WAAO;AAAA,EAClB,CAAC,EAAE,UAAU,MAAM,UAAU,aAAa,SAAS,aAAa,MAAiB;AAC/E,UAAM,YAAQ,sBAAS,GACjB,CAAC,MAAM,OAAO,QAAI,oDAAqB;AAAA,MAC3C,MAAM;AAAA,MACN,aAAa;AAAA,MACb,SAAS,MAAM;AACb,6CAAe;AAAA,MACjB;AAAA,IACF,CAAC,GAEK,mBAAe,sBAAQ,OACpB;AAAA,MACL,SAAS,MAAM;AACb,gBAAQ,CAAC,MAAM,CAAC,CAAC;AAAA,MACnB;AAAA,IACF,IACC,CAAC,CAAC;AAaL,WAAO;AAAA,EAeT;AAAA,EACA;AAAA,IACE,MAAM;AAAA;AAAA,EAER;AACF;",
5
5
  "names": []
6
6
  }
@@ -1,3 +1,21 @@
1
- import "@tamagui/polyfill-dev";
2
- export * from "./Menu";
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from == "object" || typeof from == "function")
8
+ for (let key of __getOwnPropNames(from))
9
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ return to;
11
+ }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
12
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
13
+ var src_exports = {};
14
+ module.exports = __toCommonJS(src_exports);
15
+ var import_polyfill_dev = require("@tamagui/polyfill-dev");
16
+ __reExport(src_exports, require("./Menu"), module.exports);
17
+ // Annotate the CommonJS export names for ESM import in node:
18
+ 0 && (module.exports = {
19
+ ...require("./Menu")
20
+ });
3
21
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx"],
4
- "mappings": "AAAA,OAAO;AACP,cAAc;",
4
+ "mappings": ";;;;;;;;;;;;AAAA;AAAA;AAAA,0BAAO;AACP,wBAAc,mBADd;",
5
5
  "names": []
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/menu",
3
- "version": "1.88.0",
3
+ "version": "1.88.2",
4
4
  "sideEffects": [
5
5
  "*.css"
6
6
  ],
@@ -23,15 +23,15 @@
23
23
  "clean:build": "tamagui-build clean:build"
24
24
  },
25
25
  "dependencies": {
26
- "@tamagui/core": "1.88.0",
27
- "@tamagui/helpers": "1.88.0",
28
- "@tamagui/popover": "1.88.0"
26
+ "@tamagui/core": "1.88.2",
27
+ "@tamagui/helpers": "1.88.2",
28
+ "@tamagui/popover": "1.88.2"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "react": "*"
32
32
  },
33
33
  "devDependencies": {
34
- "@tamagui/build": "1.88.0",
34
+ "@tamagui/build": "1.88.2",
35
35
  "react": "^18.2.0"
36
36
  },
37
37
  "publishConfig": {