carbon-react
Version:
A library of reusable React components for easily building user interfaces.
2 lines (1 loc) • 1.95 kB
JavaScript
import{jsx as e}from"react/jsx-runtime";import"react";import r from"../../__internal__/utils/helpers/tags/tags.js";import{StyledVerticalMenu as t,StyledList as n}from"./vertical-menu.style.js";import{VerticalMenuProvider as o}from"./__internal__/vertical-menu.context.js";function l(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const a=a=>{var i,c,{"aria-label":b,"aria-labelledby":u,width:p="322px",children:s,height:f="100%"}=a,y=function(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)t=l[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)t=l[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(a,["aria-label","aria-labelledby","width","children","height"]);return e(t,(i=function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),n.forEach((function(r){l(e,r,t[r])}))}return e}({boxSizing:"border-box",scrollVariant:"dark",backgroundColor:"var(--colorsComponentsLeftnavWinterStandardBackground)",width:p,height:f,py:1,as:"nav",overflow:"auto","aria-label":b,"aria-labelledby":u},r("vertical-menu",y)),c=null!=(c={children:e(n,{children:e(o,{value:{isFullScreen:!1},children:s})})})?c:{},Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(c)):function(e){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r.push.apply(r,t)}return r}(Object(c)).forEach((function(e){Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(c,e))})),i))};export{a as VerticalMenu,a as default};