@radix-ui/react-primitive
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -1,2 +0,2 @@ | ||
function e(e,t,r){Object.defineProperty(e,t,{get:r,enumerable:!0})}var t,r=require("react"),i=r.forwardRef,n=r.createElement,o=(t=require("@babel/runtime/helpers/extends"))&&t.__esModule?t.default:t,u={};const a="div",s=i(((e,t)=>{const{as:r=a,...i}=e;return n(r,o({},i,{ref:t}))}));exports.Primitive=s,s.displayName="Primitive";const d=s;exports.Root=d,e(u,"Root",(function(){return d})),e(u,"Primitive",(function(){return s}));function c(e,t){const r=i(((r,i)=>{const u=e,a={...t.defaultProps,...r};return n(u,o({},a,{ref:i}))}));return r.displayName=t.displayName||"Extended"+e.displayName,r}exports.extendPrimitive=c,e({},"extendPrimitive",(function(){return c})); | ||
var e,r,t,n=(e={},r=require("react"),Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})})),e),a=(t=require("@babel/runtime/helpers/extends"))&&t.__esModule?t.default:t;const i="div",o=n.forwardRef(((e,r)=>{const{as:t=i,...o}=e;return n.createElement(t,a({},o,{ref:r}))}));exports.Primitive=o,o.displayName="Primitive";const s=o;exports.Root=s,exports.extendPrimitive=function(e,r){const t=n.forwardRef(((t,i)=>{const o=e,s={...r.defaultProps,...t};return n.createElement(o,a({},s,{ref:i}))}));return t.displayName=r.displayName||"Extended"+e.displayName,t}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
function e(e,t,r){Object.defineProperty(e,t,{get:r,enumerable:!0})}import{forwardRef as t,createElement as r}from"react";import i from"@babel/runtime/helpers/esm/extends";var n={};const o="div";export const Primitive=t(((e,t)=>{const{as:n=o,...m}=e;return r(n,i({},m,{ref:t}))}));Primitive.displayName="Primitive";export const Root=Primitive;e(n,"Root",(function(){return Root})),e(n,"Primitive",(function(){return Primitive}));function m(e,n){const o=t(((t,o)=>{const m=e,s={...n.defaultProps,...t};return r(m,i({},s,{ref:o}))}));return o.displayName=n.displayName||"Extended"+e.displayName,o}export{m as extendPrimitive};e({},"extendPrimitive",(function(){return m})); | ||
import*as e from"react";import t from"@babel/runtime/helpers/esm/extends";const r="div";export const Primitive=e.forwardRef(((i,o)=>{const{as:a=r,...m}=i;return e.createElement(a,t({},m,{ref:o}))}));Primitive.displayName="Primitive";export const Root=Primitive;export function extendPrimitive(r,i){const o=e.forwardRef(((o,a)=>{const m=r,n={...i.defaultProps,...o};return e.createElement(m,t({},n,{ref:a}))}));return o.displayName=i.displayName||"Extended"+r.displayName,o} | ||
//# sourceMappingURL=index.module.js.map |
{ | ||
"name": "@radix-ui/react-primitive", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"license": "MIT", | ||
@@ -21,3 +21,3 @@ "source": "src/index.ts", | ||
"@babel/runtime": "^7.13.10", | ||
"@radix-ui/react-polymorphic": "0.0.8" | ||
"@radix-ui/react-polymorphic": "0.0.9" | ||
}, | ||
@@ -24,0 +24,0 @@ "devDependencies": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
10823
21
1
+ Added@radix-ui/react-polymorphic@0.0.9(transitive)
- Removed@radix-ui/react-polymorphic@0.0.8(transitive)