{"version":3,"sources":["webpack:///./src/components/banner/index.js","webpack:///./content/components/column.mdx","webpack:///./src/@nib/gatsby-theme-mesh-docs/templates/Content.js"],"names":["Banner","React","createElement","Inline","space","Link","component","GatsbyLink","to","_frontmatter","Alert","name","props","console","warn","mdx","layoutProps","MDXLayout","DefaultLayout","MDXContent","_ref","components","_objectWithoutProperties","_excluded","Object","assign","mdxType","parentName","type","title","isMDXComponent","GridLayout","styled","div","withConfig","displayName","componentId","breakpoint","BREAKPOINTS","DRAWER","Content","Theme","theme","nib","Layout","bannerContent","SkipLink","link","text","Header","Sidebar","location","Target","id","Main","pageContext","children","Footer","propTypes","PropTypes","node","object"],"mappings":"8FAAA,6DAceA,IATAA,IACbC,IAAAC,cAACC,SAAM,CAACC,MAAO,GACbH,IAAAC,cAAA,YAAM,mDAAuD,IAC7DD,IAAAC,cAACG,IAAI,CAACC,UAAWC,OAAYC,GAAG,4BAA2B,qC,wOCAlDC,EAAe,GAKtBC,GAJgBC,EAIM,QAJE,SAA6BC,GAEzD,OADAC,QAAQC,KAAK,aAAeH,EAAO,2EAC5BI,YAAA,MAASH,KAFID,MAKtB,MAAMK,EAAc,CAClBP,gBAEIQ,EAAYC,IACH,SAASC,EAAUC,GAG/B,IAHgC,WACjCC,GAEDD,EADIR,EAAKU,IAAAF,EAAAG,GAER,OAAOR,YAACE,EAASO,OAAAC,OAAA,GAAKT,EAAiBJ,EAAK,CAAES,WAAYA,EAAYK,QAAQ,cAI5EX,YAAA,MACE,GAAM,eACN,MAAS,CACP,SAAY,aAEbA,YAAA,KAAGY,WAAW,KACb,KAAQ,gBACR,aAAc,yBACd,UAAa,iBACZZ,YAAA,OAAKY,WAAW,IACf,MAAS,OACT,OAAU,OACV,QAAW,YACX,QAAW,MACX,MAAS,6BACT,WAAc,gCACZ,qBACMZ,YAAA,KAAGY,WAAW,MACpB,GAAM,wBACN,OAAU,OACV,YAAe,IACf,KAAQ,OACR,SAAY,WACV,yBACQZ,YAAA,KAAGY,WAAW,IAC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AW,IACzB,EAAK,4xDACL,GAAM,iBACN,KAAQ,UACR,SAAY,YACH,sBACA,qBACI,sBACvBZ,YAAA,UACEA,YAAA,MAAIY,WAAW,MAAKZ,YAAA,KAAGY,WAAW,KAC9B,KAAQ,wBACN,cAMZR,EAAWW,gBAAiB,G,kCC7b5B,0JAYA,MAAMC,EAAaC,UAAOC,IAAGC,WAAA,CAAAC,YAAA,sBAAAC,YAAA,eAAVJ,CAAU,iJAUzBK,qBAAWC,IAAYC,OAAO;;;;;;KAS5BC,EAAU5B,GAEZX,IAAAC,cAACuC,IAAK,CAACC,MAAOC,KACZ1C,IAAAC,cAAC0C,IAAM,CAACC,cAAe5C,IAAAC,cAACF,IAAM,OAC5BC,IAAAC,cAAC4C,IAAQ,CAACC,KAAK,WAAWC,KAAK,oBAC/B/C,IAAAC,cAAC6B,EAAU,KACT9B,IAAAC,cAAC+C,IAAM,MACPhD,IAAAC,cAACgD,IAAO,CAACC,SAAUvC,EAAMuC,WACzBlD,IAAAC,cAACkD,IAAM,CAACC,GAAG,UAAU/C,UAAWgD,IAAMC,YAAa3C,EAAM2C,YAAaJ,SAAUvC,EAAMuC,UACnFvC,EAAM4C,UAETvD,IAAAC,cAACuD,IAAM,SAOjBjB,EAAQL,YAAc,UACtBK,EAAQkB,UAAY,CAClBF,SAAUG,IAAUC,KACpBT,SAAUQ,IAAUE,OACpBN,YAAaI,IAAUE,QAGVrB","file":"component---content-components-column-mdx-4f2c4b751f9a49aa6cf0.js","sourcesContent":["import React from 'react';\nimport {Inline} from '@nib/layout';\nimport Link from '@nib-components/link';\nimport {Link as GatsbyLink} from 'gatsby';\n\nconst Banner = () => (\n \n Design Tokens for Mesh have just been released!{' '}\n \n Check out the design tokens now\n \n \n);\n\nexport default Banner;\n","import * as React from 'react'\n /* @jsx mdx */\nimport { mdx } from '@mdx-js/react';\n/* @jsxRuntime classic */\n/* @jsx mdx */\nimport DefaultLayout from \"/tmp/node_modules/@nib/gatsby-theme-mesh-docs/src/templates/Content.js\";\nimport { Columns, Column } from '@nib/layout';\nimport { SmallPlaceholder, LargePlaceholder } from '../../src/components/examples/Placeholder.js';\nexport const _frontmatter = {};\nconst makeShortcode = name => function MDXDefaultShortcode(props) {\n console.warn(\"Component \" + name + \" was not imported, exported, or provided by MDXProvider as global scope\");\n return
;\n};\nconst Alert = makeShortcode(\"Alert\");\nconst layoutProps = {\n _frontmatter\n};\nconst MDXLayout = DefaultLayout;\nexport default function MDXContent({\n components,\n ...props\n}) {\n return \n\n\n\n

{`\n `}{`\n `}{`\n `}{`\n `}{`\n `}{`\n `}{`\n `}{`Installation`}

\n
{`npm install @nib/layout\n`}
\n

{`\n `}{`\n `}{`\n `}{`\n `}{`\n `}{`\n `}{`\n `}{`Usage`}

\n
{`import {Column} from '@nib/layout';\n`}
\n \n You must not apply styled-components to this component as it will interfere with the structure required for the current styling. This is true for all layout components.\n \n

{`\n `}{`\n `}{`\n `}{`\n `}{`\n `}{`\n `}{`\n `}{`Interactive demo`}

\n
{`\n  \n    First column\n  \n  \n    Second column\n  \n\n`}
\n

{`\n `}{`\n `}{`\n `}{`\n `}{`\n `}{`\n `}{`\n `}{`Props`}

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
{`Prop`}{`Type`}{`Default`}{`Description`}
{`children`}{` `}{`(required)`}{`node`}{`The contents of the Column.`}
{`width`}{`string or object`}{`The width of the column within the `}{`Columns`}{` container. Can be made responsive by passing in an object of breakpoints. Value(s) must be one of `}{`content`}{`, `}{`1/2`}{`, `}{`1/3`}{`, `}{`2/3`}{`, `}{`1/4`}{`, `}{`3/4`}{`, `}{`1/5`}{`, `}{`2/5`}{`, `}{`3/5`}{`, `}{`4/5`}{`, `}{`1`}{`.`}
{`hiddenAbove`}{`string`}{`A `}{`breakpoint`}{` value which defines the maximum screen width the Column will be visible. The value will be passed down to the underlying `}{` component.`}
{`hiddenBelow`}{`string`}{`A `}{`breakpoint`}{` value which defines the minimum screen width the Column will be visible. The value will be passed down to the underlying `}{` component.`}
{`flex`}{`boolean`}{`false`}{`Apply `}{`display: flex`}{` to the Column. This will help align the direct children of the column allowing the content to grow to fit the largest column height.`}
\n

{`\n `}{`\n `}{`\n `}{`\n `}{`\n `}{`\n `}{`\n `}{`Column widths`}

\n

{`By default, an empty `}{`width`}{` value will cause the column to grow to fit the space available within the Columns container.`}

\n

{`The `}{`content`}{` value on the `}{`width`}{` prop ensures that the width of the column grows to fit the maximum size of the inner content and no further.`}

\n

{`The sum of widths of the columns must not exceed `}{`1`}{` in order to keep the children from overflowing the `}{`Columns`}{` container. For example, if one column has a width of `}{`1/3`}{`, the remaining column(s) must not sum to a width greater than `}{`2/3`}{`. This is especially important to keep in mind when using responsive column widths.`}

\n

{`\n `}{`\n `}{`\n `}{`\n `}{`\n `}{`\n `}{`\n `}{`Column visibility`}

\n

{`When modifying the visibility of columns using the `}{`hiddenAbove`}{` and `}{`hiddenBelow`}{` props, you must ensure that the remaining columns maintain valid widths. If you are using two columns and one is hidden at a certain breakpoint, the remaining column must have a width of `}{`1`}{` at the same breakpoint.`}

\n

{`\n `}{`\n `}{`\n `}{`\n `}{`\n `}{`\n `}{`\n `}{`Related components`}

\n \n\n
;\n}\n;\nMDXContent.isMDXComponent = true;\n ","import React from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\nimport {breakpoint} from '@nib/layout';\nimport {SkipLink, Target} from '@nib-components/skip-link';\nimport {Footer, Layout, Main, Sidebar} from '@nib/gatsby-theme-mesh-docs';\nimport Theme, {nib} from '@nib-components/theme';\n\nimport Header from '../../../components/header/Header';\nimport {BREAKPOINTS} from '../../../constants';\nimport Banner from '../../../components/banner';\n\nconst GridLayout = styled.div`\n min-height: 100vh;\n display: grid;\n grid-template-areas:\n 'header'\n 'main'\n 'footer';\n grid-template-rows: 3.5rem 1fr auto;\n grid-template-columns: 1fr;\n\n ${breakpoint(BREAKPOINTS.DRAWER)`\n grid-template-areas:\n \"header header\"\n \"sidebar main\"\n \"sidebar footer\";\n grid-template-columns: 15rem 1fr;\n `};\n`;\n\nconst Content = props => {\n return (\n \n }>\n \n \n
\n \n \n {props.children}\n \n