@tamagui/helpers
Advanced tools
Comparing version 1.107.0 to 1.108.0-1722728147390
@@ -0,5 +1,6 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
@@ -14,3 +15,10 @@ for (var name in all) | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod); | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target, | ||
mod | ||
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod); | ||
var withStaticProperties_exports = {}; | ||
@@ -21,8 +29,8 @@ __export(withStaticProperties_exports, { | ||
module.exports = __toCommonJS(withStaticProperties_exports); | ||
var import_react = require("react"); | ||
var import_react = __toESM(require("react")); | ||
const Decorated = Symbol(), withStaticProperties = (component, staticProps) => { | ||
const next = (() => { | ||
if (component[Decorated]) { | ||
const _ = (0, import_react.forwardRef)( | ||
(props, ref) => (0, import_react.createElement)(component, { ...props, ref }) | ||
const _ = import_react.default.forwardRef( | ||
(props, ref) => import_react.default.createElement(component, { ...props, ref }) | ||
); | ||
@@ -29,0 +37,0 @@ for (const key in component) { |
"use strict"; | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
@@ -15,3 +16,10 @@ for (var name in all) | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod); | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target, | ||
mod | ||
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod); | ||
var withStaticProperties_exports = {}; | ||
@@ -22,3 +30,3 @@ __export(withStaticProperties_exports, { | ||
module.exports = __toCommonJS(withStaticProperties_exports); | ||
var import_react = require("react"); | ||
var import_react = __toESM(require("react")); | ||
function _define_property(obj, key, value) { | ||
@@ -65,4 +73,4 @@ return key in obj ? Object.defineProperty(obj, key, { | ||
if (component[Decorated]) { | ||
var _ = /* @__PURE__ */ (0, import_react.forwardRef)(function(props, ref) { | ||
return /* @__PURE__ */ (0, import_react.createElement)(component, _object_spread_props(_object_spread({}, props), { | ||
var _ = /* @__PURE__ */ import_react.default.forwardRef(function(props, ref) { | ||
return /* @__PURE__ */ import_react.default.createElement(component, _object_spread_props(_object_spread({}, props), { | ||
ref | ||
@@ -69,0 +77,0 @@ })); |
@@ -1,7 +0,7 @@ | ||
import { createElement, forwardRef } from "react"; | ||
import React from "react"; | ||
const Decorated = Symbol(), withStaticProperties = (component, staticProps) => { | ||
const next = (() => { | ||
if (component[Decorated]) { | ||
const _ = forwardRef( | ||
(props, ref) => createElement(component, { ...props, ref }) | ||
const _ = React.forwardRef( | ||
(props, ref) => React.createElement(component, { ...props, ref }) | ||
); | ||
@@ -8,0 +8,0 @@ for (const key in component) { |
@@ -1,2 +0,2 @@ | ||
import { createElement, forwardRef } from "react"; | ||
import React from "react"; | ||
function _define_property(obj, key, value) { | ||
@@ -43,4 +43,4 @@ return key in obj ? Object.defineProperty(obj, key, { | ||
if (component[Decorated]) { | ||
var _ = /* @__PURE__ */ forwardRef(function(props, ref) { | ||
return /* @__PURE__ */ createElement(component, _object_spread_props(_object_spread({}, props), { | ||
var _ = /* @__PURE__ */ React.forwardRef(function(props, ref) { | ||
return /* @__PURE__ */ React.createElement(component, _object_spread_props(_object_spread({}, props), { | ||
ref | ||
@@ -47,0 +47,0 @@ })); |
{ | ||
"name": "@tamagui/helpers", | ||
"version": "1.107.0", | ||
"version": "1.108.0-1722728147390", | ||
"source": "src/index.ts", | ||
@@ -22,7 +22,7 @@ "types": "./types/index.d.ts", | ||
"dependencies": { | ||
"@tamagui/constants": "1.107.0", | ||
"@tamagui/simple-hash": "1.107.0" | ||
"@tamagui/constants": "1.108.0-1722728147390", | ||
"@tamagui/simple-hash": "1.108.0-1722728147390" | ||
}, | ||
"devDependencies": { | ||
"@tamagui/build": "1.107.0" | ||
"@tamagui/build": "1.108.0-1722728147390" | ||
}, | ||
@@ -29,0 +29,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
196539
4408
2
+ Added@tamagui/constants@1.108.0-1722728147390(transitive)
+ Added@tamagui/simple-hash@1.108.0-1722728147390(transitive)
- Removed@tamagui/constants@1.107.0(transitive)
- Removed@tamagui/simple-hash@1.107.0(transitive)