@tamagui/dismissable 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,8 +1,9 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  var __export = (target, all) => {
7
8
  for (var name in all)
8
9
  __defProp(target, name, { get: all[name], enumerable: !0 });
@@ -12,16 +13,23 @@ var __export = (target, all) => {
12
13
  !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
14
  return to;
14
15
  };
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
+ // If the importer is in node compatibility mode or this is not an ESM
18
+ // file that has been converted to a CommonJS file using a Babel-
19
+ // compatible transform (i.e. "__esModule" has not been set), then set
20
+ // "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);
16
24
  var Dismissable_native_exports = {};
17
25
  __export(Dismissable_native_exports, {
18
26
  Dismissable: () => Dismissable,
19
27
  DismissableBranch: () => DismissableBranch
20
28
  });
21
29
  module.exports = __toCommonJS(Dismissable_native_exports);
22
- var import_react = require("react"), Dismissable = /* @__PURE__ */ (0, import_react.forwardRef)(function(props, _ref) {
30
+ var import_react = __toESM(require("react")), Dismissable = /* @__PURE__ */ import_react.default.forwardRef(function(props, _ref) {
23
31
  return props.children;
24
- }), DismissableBranch = /* @__PURE__ */ (0, import_react.forwardRef)(function(props, _ref) {
32
+ }), DismissableBranch = /* @__PURE__ */ import_react.default.forwardRef(function(props, _ref) {
25
33
  return props.children;
26
34
  });
27
35
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/tamagui/code/ui/dismissable/src/Dismissable.native.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;;;;;;mBAA2B,kBAIdA,cAAcC,6CAAW,SAACC,OAAyBC,MAAAA;AAC9D,SAAOD,MAAME;AACf,CAAA,GAEaC,oBAAoBJ,6CAAW,SAACC,OAA+BC,MAAAA;AAC1E,SAAOD,MAAME;AACf,CAAA;",
5
- "names": ["Dismissable", "forwardRef", "props", "_ref", "children", "DismissableBranch"]
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;mBAAkB,2BAILA,cAAcC,6BAAAA,QAAMC,WAAW,SAACC,OAAyBC,MAAAA;AACpE,SAAOD,MAAME;AACf,CAAA,GAEaC,oBAAoBL,6BAAAA,QAAMC,WACrC,SAACC,OAA+BC,MAAAA;AAC9B,SAAOD,MAAME;AACf,CAAA;",
5
+ "names": ["Dismissable", "React", "forwardRef", "props", "_ref", "children", "DismissableBranch"]
6
6
  }
@@ -1,7 +1,7 @@
1
- import { forwardRef } from "react";
2
- var Dismissable = /* @__PURE__ */ forwardRef(function(props, _ref) {
1
+ import React from "react";
2
+ var Dismissable = /* @__PURE__ */ React.forwardRef(function(props, _ref) {
3
3
  return props.children;
4
- }), DismissableBranch = /* @__PURE__ */ forwardRef(function(props, _ref) {
4
+ }), DismissableBranch = /* @__PURE__ */ React.forwardRef(function(props, _ref) {
5
5
  return props.children;
6
6
  });
7
7
  export {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/tamagui/code/ui/dismissable/src/Dismissable.native.tsx"],
4
- "mappings": "AAAA,SAASA,kBAAkB;AAIpB,IAAMC,cAAcD,2BAAW,SAACE,OAAyBC,MAAAA;AAC9D,SAAOD,MAAME;AACf,CAAA,GAEaC,oBAAoBL,2BAAW,SAACE,OAA+BC,MAAAA;AAC1E,SAAOD,MAAME;AACf,CAAA;",
5
- "names": ["forwardRef", "Dismissable", "props", "_ref", "children", "DismissableBranch"]
4
+ "mappings": "AAAA,OAAOA,WAAW;AAIX,IAAMC,cAAcD,sBAAME,WAAW,SAACC,OAAyBC,MAAAA;AACpE,SAAOD,MAAME;AACf,CAAA,GAEaC,oBAAoBN,sBAAME,WACrC,SAACC,OAA+BC,MAAAA;AAC9B,SAAOD,MAAME;AACf,CAAA;",
5
+ "names": ["React", "Dismissable", "forwardRef", "props", "_ref", "children", "DismissableBranch"]
6
6
  }
@@ -1,7 +1,7 @@
1
- import { forwardRef } from "react";
2
- var Dismissable = /* @__PURE__ */ forwardRef(function(props, _ref) {
1
+ import React from "react";
2
+ var Dismissable = /* @__PURE__ */ React.forwardRef(function(props, _ref) {
3
3
  return props.children;
4
- }), DismissableBranch = /* @__PURE__ */ forwardRef(function(props, _ref) {
4
+ }), DismissableBranch = /* @__PURE__ */ React.forwardRef(function(props, _ref) {
5
5
  return props.children;
6
6
  });
7
7
  export {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/tamagui/code/ui/dismissable/src/Dismissable.native.tsx"],
4
- "mappings": "AAAA,SAASA,kBAAkB;AAIpB,IAAMC,cAAcD,2BAAW,SAACE,OAAyBC,MAAAA;AAC9D,SAAOD,MAAME;AACf,CAAA,GAEaC,oBAAoBL,2BAAW,SAACE,OAA+BC,MAAAA;AAC1E,SAAOD,MAAME;AACf,CAAA;",
5
- "names": ["forwardRef", "Dismissable", "props", "_ref", "children", "DismissableBranch"]
4
+ "mappings": "AAAA,OAAOA,WAAW;AAIX,IAAMC,cAAcD,sBAAME,WAAW,SAACC,OAAyBC,MAAAA;AACpE,SAAOD,MAAME;AACf,CAAA,GAEaC,oBAAoBN,sBAAME,WACrC,SAACC,OAA+BC,MAAAA;AAC9B,SAAOD,MAAME;AACf,CAAA;",
5
+ "names": ["React", "Dismissable", "forwardRef", "props", "_ref", "children", "DismissableBranch"]
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/dismissable",
3
- "version": "1.108.0",
3
+ "version": "1.108.2",
4
4
  "sideEffects": true,
5
5
  "source": "src/index.ts",
6
6
  "types": "./types/index.d.ts",
@@ -30,14 +30,14 @@
30
30
  }
31
31
  },
32
32
  "dependencies": {
33
- "@tamagui/compose-refs": "1.108.0",
34
- "@tamagui/core": "1.108.0",
35
- "@tamagui/helpers": "1.108.0",
36
- "@tamagui/use-escape-keydown": "1.108.0",
37
- "@tamagui/use-event": "1.108.0"
33
+ "@tamagui/compose-refs": "1.108.2",
34
+ "@tamagui/core": "1.108.2",
35
+ "@tamagui/helpers": "1.108.2",
36
+ "@tamagui/use-escape-keydown": "1.108.2",
37
+ "@tamagui/use-event": "1.108.2"
38
38
  },
39
39
  "devDependencies": {
40
- "@tamagui/build": "1.108.0",
40
+ "@tamagui/build": "1.108.2",
41
41
  "react": "^18.2.0 || ^19.0.0"
42
42
  },
43
43
  "publishConfig": {
@@ -1,11 +1,13 @@
1
- import { forwardRef } from 'react'
1
+ import React from 'react'
2
2
 
3
3
  import type { DismissableBranchProps, DismissableProps } from './DismissableProps'
4
4
 
5
- export const Dismissable = forwardRef((props: DismissableProps, _ref) => {
5
+ export const Dismissable = React.forwardRef((props: DismissableProps, _ref) => {
6
6
  return props.children as any
7
7
  })
8
8
 
9
- export const DismissableBranch = forwardRef((props: DismissableBranchProps, _ref) => {
10
- return props.children as any
11
- })
9
+ export const DismissableBranch = React.forwardRef(
10
+ (props: DismissableBranchProps, _ref) => {
11
+ return props.children as any
12
+ }
13
+ )
@@ -1,4 +1,5 @@
1
+ import React from 'react';
1
2
  import type { DismissableBranchProps, DismissableProps } from './DismissableProps';
2
- export declare const Dismissable: import("react").ForwardRefExoticComponent<DismissableProps & import("react").RefAttributes<unknown>>;
3
- export declare const DismissableBranch: import("react").ForwardRefExoticComponent<DismissableBranchProps & import("react").RefAttributes<unknown>>;
3
+ export declare const Dismissable: React.ForwardRefExoticComponent<DismissableProps & React.RefAttributes<unknown>>;
4
+ export declare const DismissableBranch: React.ForwardRefExoticComponent<DismissableBranchProps & React.RefAttributes<unknown>>;
4
5
  //# sourceMappingURL=Dismissable.native.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dismissable.native.d.ts","sourceRoot":"","sources":["../src/Dismissable.native.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAElF,eAAO,MAAM,WAAW,sGAEtB,CAAA;AAEF,eAAO,MAAM,iBAAiB,4GAE5B,CAAA"}
1
+ {"version":3,"file":"Dismissable.native.d.ts","sourceRoot":"","sources":["../src/Dismissable.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAElF,eAAO,MAAM,WAAW,kFAEtB,CAAA;AAEF,eAAO,MAAM,iBAAiB,wFAI7B,CAAA"}