@tamagui/dismissable 1.0.1-beta.56 → 1.0.1-beta.57

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.
@@ -2,7 +2,6 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
5
  var __export = (target, all) => {
7
6
  for (var name in all)
8
7
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -22,12 +21,13 @@ __export(Dismissable_native_exports, {
22
21
  DismissableBranch: () => DismissableBranch
23
22
  });
24
23
  module.exports = __toCommonJS(Dismissable_native_exports);
25
- const Dismissable = /* @__PURE__ */ __name((props) => {
24
+ var import_react = require("react");
25
+ const Dismissable = (0, import_react.forwardRef)((props, _ref) => {
26
26
  return props.children;
27
- }, "Dismissable");
28
- const DismissableBranch = /* @__PURE__ */ __name((props) => {
27
+ });
28
+ const DismissableBranch = (0, import_react.forwardRef)((props, _ref) => {
29
29
  return props.children;
30
- }, "DismissableBranch");
30
+ });
31
31
  // Annotate the CommonJS export names for ESM import in node:
32
32
  0 && (module.exports = {
33
33
  Dismissable,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Dismissable.native.tsx"],
4
- "sourcesContent": ["import { DismissableBranchProps, DismissableProps } from './DismissableProps'\n\nexport const Dismissable = (props: DismissableProps) => {\n return props.children\n}\n\nexport const DismissableBranch = (props: DismissableBranchProps) => {\n return props.children\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,MAAM,cAAc,wBAAC,UAA4B;AACtD,SAAO,MAAM;AACf,GAF2B;AAIpB,MAAM,oBAAoB,wBAAC,UAAkC;AAClE,SAAO,MAAM;AACf,GAFiC;",
4
+ "sourcesContent": ["import { forwardRef } from 'react'\n\nimport { DismissableBranchProps, DismissableProps } from './DismissableProps'\n\nexport const Dismissable = forwardRef((props: DismissableProps, _ref) => {\n return props.children as any\n})\n\nexport const DismissableBranch = forwardRef((props: DismissableBranchProps, _ref) => {\n return props.children as any\n})\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA2B;AAIpB,MAAM,cAAc,6BAAW,CAAC,OAAyB,SAAS;AACvE,SAAO,MAAM;AACf,CAAC;AAEM,MAAM,oBAAoB,6BAAW,CAAC,OAA+B,SAAS;AACnF,SAAO,MAAM;AACf,CAAC;",
6
6
  "names": []
7
7
  }
@@ -1,11 +1,10 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- const Dismissable = /* @__PURE__ */ __name((props) => {
1
+ import { forwardRef } from "react";
2
+ const Dismissable = forwardRef((props, _ref) => {
4
3
  return props.children;
5
- }, "Dismissable");
6
- const DismissableBranch = /* @__PURE__ */ __name((props) => {
4
+ });
5
+ const DismissableBranch = forwardRef((props, _ref) => {
7
6
  return props.children;
8
- }, "DismissableBranch");
7
+ });
9
8
  export {
10
9
  Dismissable,
11
10
  DismissableBranch
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Dismissable.native.tsx"],
4
- "sourcesContent": ["import { DismissableBranchProps, DismissableProps } from './DismissableProps'\n\nexport const Dismissable = (props: DismissableProps) => {\n return props.children\n}\n\nexport const DismissableBranch = (props: DismissableBranchProps) => {\n return props.children\n}\n"],
5
- "mappings": ";;AAEO,MAAM,cAAc,wBAAC,UAA4B;AACtD,SAAO,MAAM;AACf,GAF2B;AAIpB,MAAM,oBAAoB,wBAAC,UAAkC;AAClE,SAAO,MAAM;AACf,GAFiC;",
4
+ "sourcesContent": ["import { forwardRef } from 'react'\n\nimport { DismissableBranchProps, DismissableProps } from './DismissableProps'\n\nexport const Dismissable = forwardRef((props: DismissableProps, _ref) => {\n return props.children as any\n})\n\nexport const DismissableBranch = forwardRef((props: DismissableBranchProps, _ref) => {\n return props.children as any\n})\n"],
5
+ "mappings": "AAAA;AAIO,MAAM,cAAc,WAAW,CAAC,OAAyB,SAAS;AACvE,SAAO,MAAM;AACf,CAAC;AAEM,MAAM,oBAAoB,WAAW,CAAC,OAA+B,SAAS;AACnF,SAAO,MAAM;AACf,CAAC;",
6
6
  "names": []
7
7
  }
@@ -1,11 +1,10 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- const Dismissable = /* @__PURE__ */ __name((props) => {
1
+ import { forwardRef } from "react";
2
+ const Dismissable = forwardRef((props, _ref) => {
4
3
  return props.children;
5
- }, "Dismissable");
6
- const DismissableBranch = /* @__PURE__ */ __name((props) => {
4
+ });
5
+ const DismissableBranch = forwardRef((props, _ref) => {
7
6
  return props.children;
8
- }, "DismissableBranch");
7
+ });
9
8
  export {
10
9
  Dismissable,
11
10
  DismissableBranch
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/dismissable",
3
- "version": "1.0.1-beta.56",
3
+ "version": "1.0.1-beta.57",
4
4
  "sideEffects": true,
5
5
  "source": "src/index.ts",
6
6
  "types": "./types/index.d.ts",
@@ -20,15 +20,15 @@
20
20
  "dependencies": {
21
21
  "@radix-ui/react-use-callback-ref": "^0.1.0",
22
22
  "@radix-ui/react-use-escape-keydown": "^0.1.0",
23
- "@tamagui/compose-refs": "^1.0.1-beta.56",
24
- "@tamagui/core": "^1.0.1-beta.56"
23
+ "@tamagui/compose-refs": "^1.0.1-beta.57",
24
+ "@tamagui/core": "^1.0.1-beta.57"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": "*",
28
28
  "react-dom": "*"
29
29
  },
30
30
  "devDependencies": {
31
- "@tamagui/build": "^1.0.1-beta.56",
31
+ "@tamagui/build": "^1.0.1-beta.57",
32
32
  "react": "*",
33
33
  "react-dom": "*"
34
34
  },
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { DismissableBranchProps, DismissableProps } from './DismissableProps';
3
- export declare const Dismissable: (props: DismissableProps) => import("react").ReactNode;
4
- export declare const DismissableBranch: (props: DismissableBranchProps) => import("react").ReactNode;
2
+ import { DismissableProps } from './DismissableProps';
3
+ export declare const Dismissable: import("react").ForwardRefExoticComponent<DismissableProps & import("react").RefAttributes<unknown>>;
4
+ export declare const DismissableBranch: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
5
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":";AAAA,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAE7E,eAAO,MAAM,WAAW,UAAW,gBAAgB,8BAElD,CAAA;AAED,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,8BAE9D,CAAA"}
1
+ {"version":3,"file":"Dismissable.native.d.ts","sourceRoot":"","sources":["../src/Dismissable.native.tsx"],"names":[],"mappings":";AAEA,OAAO,EAA0B,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAE7E,eAAO,MAAM,WAAW,sGAEtB,CAAA;AAEF,eAAO,MAAM,iBAAiB,mFAE5B,CAAA"}