@radix-ui/react-primitive
Advanced tools
Comparing version 0.1.1-rc.7 to 0.1.1-rc.8
import * as React from "react"; | ||
declare const NODES: readonly ["a", "button", "div", "h2", "h3", "p", "img", "span", "svg"]; | ||
declare const NODES: readonly ["a", "button", "div", "h2", "h3", "img", "li", "nav", "p", "span", "svg", "ul"]; | ||
type PropsWithoutRef<P> = P extends any ? ('ref' extends keyof P ? Pick<P, Exclude<keyof P, 'ref'>> : P) : P; | ||
@@ -4,0 +4,0 @@ export type ComponentPropsWithoutRef<T extends React.ElementType> = PropsWithoutRef<React.ComponentProps<T>>; |
@@ -1,2 +0,2 @@ | ||
var e,r,t,o=require("@radix-ui/react-slot").Slot,i=(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),n=(t=require("@babel/runtime/helpers/extends"))&&t.__esModule?t.default:t;const s=["a","button","div","h2","h3","p","img","span","svg"].reduce(((e,r)=>({...e,[r]:/*#__PURE__*/i.forwardRef(((e,t)=>{const{asChild:s,...d}=e,u=s?o:r;return i.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),e.as&&console.error(a),/*#__PURE__*/i.createElement(u,n({},d,{ref:t}))}))})),{});exports.Primitive=s;const a="Warning: The `as` prop has been removed in favour of `asChild`. For details, see https://radix-ui.com/docs/primitives/overview/styling#changing-the-rendered-element",d=s;exports.Root=d; | ||
var e,r,t,i=require("@radix-ui/react-slot").Slot,o=(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),n=(t=require("@babel/runtime/helpers/extends"))&&t.__esModule?t.default:t;const s=["a","button","div","h2","h3","img","li","nav","p","span","svg","ul"].reduce(((e,r)=>({...e,[r]:/*#__PURE__*/o.forwardRef(((e,t)=>{const{asChild:s,...u}=e,d=s?i:r;return o.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),e.as&&console.error(a),/*#__PURE__*/o.createElement(d,n({},u,{ref:t}))}))})),{});exports.Primitive=s;const a="Warning: The `as` prop has been removed in favour of `asChild`. For details, see https://radix-ui.com/docs/primitives/overview/styling#changing-the-rendered-element",u=s;exports.Root=u; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import{Slot as e}from"@radix-ui/react-slot";import*as r from"react";import o from"@babel/runtime/helpers/esm/extends";export const Primitive=["a","button","div","h2","h3","p","img","span","svg"].reduce(((t,s)=>({...t,[s]:/*#__PURE__*/r.forwardRef(((t,n)=>{const{asChild:a,...m}=t,d=a?e:s;return r.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),t.as&&console.error(i),/*#__PURE__*/r.createElement(d,o({},m,{ref:n}))}))})),{});const i="Warning: The `as` prop has been removed in favour of `asChild`. For details, see https://radix-ui.com/docs/primitives/overview/styling#changing-the-rendered-element";export const Root=Primitive; | ||
import{Slot as e}from"@radix-ui/react-slot";import*as r from"react";import i from"@babel/runtime/helpers/esm/extends";export const Primitive=["a","button","div","h2","h3","img","li","nav","p","span","svg","ul"].reduce(((t,s)=>({...t,[s]:/*#__PURE__*/r.forwardRef(((t,n)=>{const{asChild:a,...m}=t,d=a?e:s;return r.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),t.as&&console.error(o),/*#__PURE__*/r.createElement(d,i({},m,{ref:n}))}))})),{});const o="Warning: The `as` prop has been removed in favour of `asChild`. For details, see https://radix-ui.com/docs/primitives/overview/styling#changing-the-rendered-element";export const Root=Primitive; | ||
//# sourceMappingURL=index.module.js.map |
{ | ||
"name": "@radix-ui/react-primitive", | ||
"version": "0.1.1-rc.7", | ||
"version": "0.1.1-rc.8", | ||
"license": "MIT", | ||
@@ -20,3 +20,3 @@ "source": "src/index.ts", | ||
"@babel/runtime": "^7.13.10", | ||
"@radix-ui/react-slot": "0.1.1-rc.3" | ||
"@radix-ui/react-slot": "0.1.1-rc.4" | ||
}, | ||
@@ -23,0 +23,0 @@ "devDependencies": { |
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
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
11573
+ Added@radix-ui/react-slot@0.1.1-rc.4(transitive)
- Removed@radix-ui/react-slot@0.1.1-rc.3(transitive)