Socket
Socket
Sign inDemoInstall

@radix-ui/react-separator

Package Overview
Dependencies
Maintainers
5
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@radix-ui/react-separator - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

2

dist/index.js

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

var e,r,t,o=require("@radix-ui/react-primitive").Primitive,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),i=(t=require("@babel/runtime/helpers/extends"))&&t.__esModule?t.default:t;const a="horizontal",l=["horizontal","vertical"],u=n.forwardRef(((e,r)=>{const{decorative:t,orientation:l=a,...u}=e,p=c(l)?l:a,d=t?{role:"none"}:{"aria-orientation":"vertical"===p?p:void 0,role:"separator"};return n.createElement(o,i({},d,{"data-orientation":p},u,{ref:r}))}));function c(e){return l.includes(e)}exports.Separator=u,u.displayName="Separator",u.propTypes={orientation(e,r,t){const o=e[r],n=String(o);return o&&!c(o)?new Error(function(e,r){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${r}\`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to \`${a}\`.`}(n,t)):null}};const p=u;exports.Root=p;
var e,r,t,n=require("@radix-ui/react-primitive").Primitive,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),i=(t=require("@babel/runtime/helpers/extends"))&&t.__esModule?t.default:t;const a="horizontal",u=["horizontal","vertical"],l=/*#__PURE__*/o.forwardRef(((e,r)=>{const{decorative:t,orientation:u=a,...l}=e,d=c(u)?u:a,p=t?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"};/*#__PURE__*/return o.createElement(n,i({},p,{"data-orientation":d},l,{ref:r}))}));function c(e){return u.includes(e)}exports.Separator=l,l.propTypes={orientation(e,r,t){const n=e[r],o=String(n);return n&&!c(n)?new Error(function(e,r){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${r}\`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to \`${a}\`.`}(o,t)):null}};const d=l;exports.Root=d;
//# sourceMappingURL=index.js.map

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

import{Primitive as r}from"@radix-ui/react-primitive";import*as o from"react";import t from"@babel/runtime/helpers/esm/extends";const e="horizontal",n=["horizontal","vertical"];export const Separator=o.forwardRef(((n,i)=>{const{decorative:p,orientation:l=e,...c}=n,s=a(l)?l:e,u=p?{role:"none"}:{"aria-orientation":"vertical"===s?s:void 0,role:"separator"};return o.createElement(r,t({},u,{"data-orientation":s},c,{ref:i}))}));function a(r){return n.includes(r)}Separator.displayName="Separator",Separator.propTypes={orientation(r,o,t){const n=r[o],i=String(n);return n&&!a(n)?new Error(function(r,o){return`Invalid prop \`orientation\` of value \`${r}\` supplied to \`${o}\`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to \`${e}\`.`}(i,t)):null}};export const Root=Separator;
import{Primitive as r}from"@radix-ui/react-primitive";import*as o from"react";import t from"@babel/runtime/helpers/esm/extends";const e="horizontal",n=["horizontal","vertical"];export const Separator=/*#__PURE__*/o.forwardRef(((n,a)=>{const{decorative:p,orientation:l=e,...c}=n,s=i(l)?l:e,u=p?{role:"none"}:{"aria-orientation":"vertical"===s?s:void 0,role:"separator"};/*#__PURE__*/return o.createElement(r,t({},u,{"data-orientation":s},c,{ref:a}))}));/*#__PURE__*/function i(r){return n.includes(r)}Separator.propTypes={orientation(r,o,t){const n=r[o],a=String(n);return n&&!i(n)?new Error(function(r,o){return`Invalid prop \`orientation\` of value \`${r}\` supplied to \`${o}\`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to \`${e}\`.`}(a,t)):null}};export const Root=Separator;
//# sourceMappingURL=index.module.js.map
{
"name": "@radix-ui/react-separator",
"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