@radix-ui/react-separator
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -1,2 +0,2 @@ | ||
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})); | ||
function e(e,r,t){Object.defineProperty(e,r,{get:t,enumerable:!0})}var r,t=require("@radix-ui/react-primitive").Primitive,n=require("react"),o=n.forwardRef,i=n.createElement,a=(r=require("@babel/runtime/helpers/extends"))&&r.__esModule?r.default:r,u={};const l="horizontal",c=["horizontal","vertical"],p=o(((e,r)=>{const{decorative:n,orientation:o=l,...u}=e,c=d(o)?o:l;return i(t,a({},n?{role:"none"}:{"aria-orientation":"vertical"===c?c:void 0,role:"separator"},{"data-orientation":c},u,{ref:r}))}));function d(e){return c.includes(e)}exports.Separator=p,p.displayName="Separator",p.propTypes={orientation:function(e,r,t){const n=e[r],o=String(n);return n&&!d(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 \`${l}\`.`}(o,t)):null}};const f=p;exports.Root=f,e(u,"Root",(function(){return f})),e(u,"Separator",(function(){return p})); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
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})); | ||
function r(r,t,o){Object.defineProperty(r,t,{get:o,enumerable:!0})}import{Primitive as t}from"@radix-ui/react-primitive";import{forwardRef as o,createElement as e}from"react";import n from"@babel/runtime/helpers/esm/extends";var a={};const i="horizontal",p=["horizontal","vertical"];export const Separator=o(((r,o)=>{const{decorative:a,orientation:p=i,...u}=r,l=c(p)?p:i;return e(t,n({},a?{role:"none"}:{"aria-orientation":"vertical"===l?l:void 0,role:"separator"},{"data-orientation":l},u,{ref:o}))}));function c(r){return p.includes(r)}Separator.displayName="Separator",Separator.propTypes={orientation:function(r,t,o){const e=r[t],n=String(e);return e&&!c(e)?new Error(function(r,t){return`Invalid prop \`orientation\` of value \`${r}\` supplied to \`${t}\`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to \`${i}\`.`}(n,o)):null}};export const Root=Separator;r(a,"Root",(function(){return Root})),r(a,"Separator",(function(){return Separator})); | ||
//# sourceMappingURL=index.module.js.map |
{ | ||
"name": "@radix-ui/react-separator", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"license": "MIT", | ||
@@ -20,5 +20,5 @@ "source": "src/index.ts", | ||
"dependencies": { | ||
"@babel/runtime-corejs3": "^7.13.10", | ||
"@babel/runtime": "^7.13.10", | ||
"@radix-ui/react-polymorphic": "0.0.7", | ||
"@radix-ui/react-primitive": "0.0.7" | ||
"@radix-ui/react-primitive": "0.0.8" | ||
}, | ||
@@ -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
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
0
14856
29
+ Added@babel/runtime@^7.13.10
+ Added@babel/runtime@7.25.6(transitive)
+ Added@radix-ui/react-primitive@0.0.8(transitive)
- Removed@babel/runtime-corejs3@^7.13.10
- Removed@radix-ui/react-primitive@0.0.7(transitive)