Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@radix-ui/react-aspect-ratio

Package Overview
Dependencies
Maintainers
5
Versions
165
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@radix-ui/react-aspect-ratio - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

2

dist/index.js

@@ -1,2 +0,2 @@

var e,t,r,i=require("@radix-ui/react-primitive").Primitive,o=(e={},t=require("react"),Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}})})),e),a=(r=require("@babel/runtime/helpers/extends"))&&r.__esModule?r.default:r;const s=o.forwardRef(((e,t)=>{const{ratio:r=1,style:s,...n}=e;return o.createElement("div",{style:{position:"relative",width:"100%",paddingBottom:100/r+"%"},"data-radix-aspect-ratio-wrapper":""},o.createElement(i,a({},n,{ref:t,style:{...s,position:"absolute",top:0,right:0,bottom:0,left:0}})))}));exports.AspectRatio=s,s.displayName="AspectRatio";const n=s;exports.Root=n;
var e,t,r,i=require("@radix-ui/react-primitive").Primitive,o=(e={},t=require("react"),Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}})})),e),a=(r=require("@babel/runtime/helpers/extends"))&&r.__esModule?r.default:r;const n=/*#__PURE__*/o.forwardRef(((e,t)=>{const{ratio:r=1,style:n,...s}=e;/*#__PURE__*/return o.createElement("div",{style:{position:"relative",width:"100%",paddingBottom:100/r+"%"},"data-radix-aspect-ratio-wrapper":""},/*#__PURE__*/o.createElement(i,a({},s,{ref:t,style:{...n,position:"absolute",top:0,right:0,bottom:0,left:0}})))}));exports.AspectRatio=n;const s=n;exports.Root=s;
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import{Primitive as t}from"@radix-ui/react-primitive";import*as e from"react";import o from"@babel/runtime/helpers/esm/extends";export const AspectRatio=e.forwardRef(((r,i)=>{const{ratio:a=1,style:p,...s}=r;return e.createElement("div",{style:{position:"relative",width:"100%",paddingBottom:100/a+"%"},"data-radix-aspect-ratio-wrapper":""},e.createElement(t,o({},s,{ref:i,style:{...p,position:"absolute",top:0,right:0,bottom:0,left:0}})))}));AspectRatio.displayName="AspectRatio";export const Root=AspectRatio;
import{Primitive as t}from"@radix-ui/react-primitive";import*as e from"react";import o from"@babel/runtime/helpers/esm/extends";export const AspectRatio=/*#__PURE__*/e.forwardRef(((r,i)=>{const{ratio:a=1,style:p,...s}=r;/*#__PURE__*/return e.createElement("div",{style:{position:"relative",width:"100%",paddingBottom:100/a+"%"},"data-radix-aspect-ratio-wrapper":""},/*#__PURE__*/e.createElement(t,o({},s,{ref:i,style:{...p,position:"absolute",top:0,right:0,bottom:0,left:0}})))}));/*#__PURE__*/export const Root=AspectRatio;
//# sourceMappingURL=index.module.js.map
{
"name": "@radix-ui/react-aspect-ratio",
"version": "0.0.10",
"version": "0.0.11",
"license": "MIT",

@@ -21,4 +21,4 @@ "source": "src/index.ts",

"@babel/runtime": "^7.13.10",
"@radix-ui/react-polymorphic": "0.0.9",
"@radix-ui/react-primitive": "0.0.10"
"@radix-ui/react-polymorphic": "0.0.10",
"@radix-ui/react-primitive": "0.0.11"
},

@@ -25,0 +25,0 @@ "peerDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc