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.6 to 0.0.7

2

dist/index.js

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

var r,e,t=require("@radix-ui/react-primitive").Primitive,n=(r={},e=require("react"),Object.keys(e).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})})),r);function o(){return(o=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}function i(r,e){if(null==r)return{};var t,n,o=function(r,e){if(null==r)return{};var t,n,o={},i=Object.keys(r);for(n=0;n<i.length;n++)t=i[n],e.indexOf(t)>=0||(o[t]=r[t]);return o}(r,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(n=0;n<i.length;n++)t=i[n],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(r,t)&&(o[t]=r[t])}return o}var a=["horizontal","vertical"],c=n.forwardRef((function(r,e){var a=r.decorative,c=r.orientation,u=void 0===c?"horizontal":c,f=i(r,["decorative","orientation"]),p=l(u)?u:"horizontal",v=a?{role:"none"}:{"aria-orientation":"vertical"===p?p:void 0,role:"separator"};return n.createElement(t,o({},v,{"data-orientation":p},f,{ref:e}))}));function l(r){return a.includes(r)}exports.Separator=c,c.displayName="Separator",c.propTypes={orientation:function(r,e,t){var n=r[e],o=String(n);return n&&!l(n)?new Error(function(r,e){return"Invalid prop `orientation` of value `".concat(r,"` supplied to `").concat(e,"`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to `").concat("horizontal","`.")}(o,t)):null}};var u=c;exports.Root=u;
function e(e){return e&&e.__esModule?e.default:e}function r(e,r,t){Object.defineProperty(e,r,{get:t,enumerable:!0})}var t=require("@radix-ui/react-primitive").Primitive,o=require("react"),n=o.forwardRef,i=o.createElement,a=e(require("@babel/runtime-corejs3/core-js-stable/instance/includes")),l=e(require("@babel/runtime-corejs3/core-js-stable/instance/concat")),c=e(require("@babel/runtime-corejs3/helpers/objectWithoutProperties")),u=e(require("@babel/runtime-corejs3/helpers/extends")),s={},p=["horizontal","vertical"],d=n((function(e,r){var o=e.decorative,n=e.orientation,a=void 0===n?"horizontal":n,l=c(e,["decorative","orientation"]),s=f(a)?a:"horizontal";return i(t,u({},o?{role:"none"}:{"aria-orientation":"vertical"===s?s:void 0,role:"separator"},{"data-orientation":s},l,{ref:r}))}));function f(e){return a(p).call(p,e)}exports.Separator=d,d.displayName="Separator",d.propTypes={orientation:function(e,r,t){var o=e[r],n=String(o);return o&&!f(o)?new Error(function(e,r){var t,o;return l(t=l(o="Invalid prop `orientation` of value `".concat(e,"` supplied to `")).call(o,r,"`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to `")).call(t,"horizontal","`.")}(n,t)):null}};var v=d;exports.Root=v,r(s,"Root",(function(){return v})),r(s,"Separator",(function(){return d}));
//# sourceMappingURL=index.js.map

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

import{Primitive as r}from"@radix-ui/react-primitive";import*as t from"react";function o(){return(o=Object.assign||function(r){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r[n]=o[n])}return r}).apply(this,arguments)}const n="horizontal",e=["horizontal","vertical"];export const Separator=t.forwardRef(((e,i)=>{const{decorative:c,orientation:p=n,...l}=e,u=a(p)?p:n,s=c?{role:"none"}:{"aria-orientation":"vertical"===u?u:void 0,role:"separator"};return t.createElement(r,o({},s,{"data-orientation":u},l,{ref:i}))}));function a(r){return e.includes(r)}Separator.displayName="Separator",Separator.propTypes={orientation(r,t,o){const e=r[t],i=String(e);return e&&!a(e)?new Error(function(r,t){return"Invalid prop `orientation` of value `".concat(r,"` supplied to `").concat(t,"`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to `").concat(n,"`.")}(i,o)):null}};export const Root=Separator;
function r(r,e,o){Object.defineProperty(r,e,{get:o,enumerable:!0})}import{Primitive as e}from"@radix-ui/react-primitive";import{forwardRef as o,createElement as t}from"react";import a from"@babel/runtime-corejs3/core-js-stable/instance/includes";import n from"@babel/runtime-corejs3/core-js-stable/instance/concat";import i from"@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";import c from"@babel/runtime-corejs3/helpers/esm/extends";var l={},p=["horizontal","vertical"];export var Separator=o((function(r,o){var a=r.decorative,n=r.orientation,l=void 0===n?"horizontal":n,p=i(r,["decorative","orientation"]),m=u(l)?l:"horizontal";return t(e,c({},a?{role:"none"}:{"aria-orientation":"vertical"===m?m:void 0,role:"separator"},{"data-orientation":m},p,{ref:o}))}));function u(r){return a(p).call(p,r)}Separator.displayName="Separator",Separator.propTypes={orientation:function(r,e,o){var t=r[e],a=String(t);return t&&!u(t)?new Error(function(r,e){var o,t;return n(o=n(t="Invalid prop `orientation` of value `".concat(r,"` supplied to `")).call(t,e,"`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to `")).call(o,"horizontal","`.")}(a,o)):null}};export var Root=Separator;r(l,"Root",(function(){return Root})),r(l,"Separator",(function(){return Separator}));
//# sourceMappingURL=index.module.js.map
{
"name": "@radix-ui/react-separator",
"version": "0.0.6",
"version": "0.0.7",
"license": "MIT",

@@ -16,7 +16,9 @@ "source": "src/index.ts",

"clean": "rm -rf dist",
"prepublish": "yarn clean"
"prepublish": "yarn clean",
"version": "yarn version"
},
"dependencies": {
"@radix-ui/react-polymorphic": "0.0.6",
"@radix-ui/react-primitive": "0.0.5"
"@babel/runtime-corejs3": "^7.13.10",
"@radix-ui/react-polymorphic": "0.0.7",
"@radix-ui/react-primitive": "0.0.7"
},

@@ -23,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