{"version":3,"sources":["webpack:///./src/pages/api/icon.mdx"],"names":["_frontmatter","makeShortcode","name","props","console","warn","DocsHeading","Alert","SimplePropsTable","layoutProps","MDXContent","components","mdxType","to","type","variant","parentName","propertyValues","color","required","description","defaultValue","size","title","isMDXComponent"],"mappings":"iPAOaA,EAAe,CAC1B,UAAa,WACb,MAAS,QAGLC,EAAgB,SAAAC,GAAI,OAAI,SAA6BC,GAEzD,OADAC,QAAQC,KAAK,aAAeH,EAAO,2EAC5B,kBAASC,KAGZG,EAAcL,EAAc,eAC5BM,EAAQN,EAAc,SACtBO,EAAmBP,EAAc,oBACjCQ,EAAc,CAClBT,gBAGa,SAASU,EAAT,GAGZ,IAFDC,EAEC,EAFDA,WACGR,EACF,iBACD,OAAO,YALS,UAKT,iBAAeM,EAAiBN,EAAhC,CAAuCQ,WAAYA,EAAYC,QAAQ,cAC5E,YAACN,EAAD,CAAaO,GAAG,uBAAuBC,KAAK,MAAMF,QAAQ,eAAc,QAGxE,YAACL,EAAD,CAAOQ,QAAQ,UAAUH,QAAQ,SACnC,0BAAQ,cAAmB,+BAA6B,IACxD,8BAAY,qBAA8B,iDAGxC,qCACA,2DAA0C,0BAAYI,WAAW,KAAvB,qBAA1C,aACA,uBAAK,oBAAMA,WAAW,MAClB,UAAa,gBADZ,0IAQL,+BACA,4BAAW,0BAAYA,WAAW,KAAvB,SAAX,gCAA6F,0BAAYA,WAAW,KAAvB,WAA7F,4BACA,oFAAmE,0BAAYA,WAAW,KAAvB,MAAnE,gDAAkK,0BAAYA,WAAW,KAAvB,MAAlK,yBAA0O,0BAAYA,WAAW,KAAvB,MAA1O,2CAAoU,0BAAYA,WAAW,KAAvB,mBAApU,yCAEA,uBAAK,oBAAMA,WAAW,MAClB,UAAa,gBADZ,uSAeL,+BACA,uBAAK,oBAAMA,WAAW,MAClB,UAAa,gBADZ,wRAeL,+BACA,uBAAK,oBAAMA,WAAW,MAClB,UAAa,gBADZ,4RAeL,uCACA,gKAA+I,0BAAYA,WAAW,KAAvB,sBAA/I,kBACA,uBAAK,oBAAMA,WAAW,MAClB,UAAa,gBADZ,6JAQL,uBACA,yCACA,uBAAK,oBAAMA,WAAW,MAClB,UAAa,sBACb,WAAc,uCACd,QAAU,EACV,eAAiB,EACjB,QAAU,EACV,UAAY,GANX,wlCA6CL,uBACA,iCACA,uCAAsB,0BAAYA,WAAW,KAAvB,UAAtB,sBAA+F,0BAAYA,WAAW,KAAvB,eAA/F,+DACA,uBAAK,oBAAMA,WAAW,MAClB,UAAa,gBACb,WAAc,gBACd,eAAiB,GAHhB,8DAML,oCACA,qBAAG,sBAAQA,WAAW,KAAnB,oDAA4E,0BAAYA,WAAW,UAAvB,OAA5E,cACH,YAACR,EAAD,CAAkBS,eAAgB,CAChCC,MAAO,CACLJ,KAAM,CACJZ,KAAM,UAERiB,UAAU,EACVC,YAAa,yBACbC,aAAc,WAEhBC,KAAM,CACJR,KAAM,CACJZ,KAAM,UAERiB,UAAU,EACVC,YAAa,iDACbC,aAAc,MAEhBE,MAAO,CACLT,KAAM,CACJZ,KAAM,UAERiB,UAAU,EACVC,YAAa,6DACbC,aAAc,KAEfT,QAAQ,sBAKfF,EAAWc,gBAAiB","file":"component---src-pages-api-icon-mdx-5ba629c6c810a7dc7d82.js","sourcesContent":["import * as React from 'react'\n /* @jsx mdx */\nimport { mdx } from '@mdx-js/react';\n/* @jsxRuntime classic */\n\n/* @jsx mdx */\n\nexport const _frontmatter = {\n \"pageTitle\": \"Icon API\",\n \"title\": \"Icon\"\n};\n\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};\n\nconst DocsHeading = makeShortcode(\"DocsHeading\");\nconst Alert = makeShortcode(\"Alert\");\nconst SimplePropsTable = makeShortcode(\"SimplePropsTable\");\nconst layoutProps = {\n _frontmatter\n};\nconst MDXLayout = \"wrapper\";\nexport default function MDXContent({\n components,\n ...props\n}) {\n return{`Icons are imported from a separate `}
{`import React from 'react';\nimport { GroupIcon } from 'react-magma-icons';\nexport function Example() {\n return ;\n}\n`}
\n {`The `}
{`The title/svg association will be handled via the passed in `}
{`import React from 'react';\nimport { CrossIcon, InfoIcon } from 'react-magma-icons';\nexport function Example() {\n return (\n <>\n \n
\n
\n \n >\n );\n}\n`}
\n {`import React from 'react';\nimport { CheckIcon } from 'react-magma-icons';\nexport function Example() {\n return (\n <>\n \n
\n
\n \n >\n );\n}\n`}
\n {`import React from 'react';\nimport { AngleDownIcon } from 'react-magma-icons';\nexport function Example() {\n return (\n <>\n \n
\n
\n \n >\n );\n}\n`}
\n {`To improve the experience for assistive technology users and remove the icon and its children from the accessibility tree, add the prop `}
{`import React from 'react';\nimport { HomeIcon } from 'react-magma-icons';\nexport function Example() {\n return ;\n}\n`}
\n {`import React from 'react';\nimport ICONS from 'react-magma-icons';\n\nexport function Example() {\n return (\n \n {Object.keys(ICONS.categories)\n .sort((a, b) => {\n a = a.toLowerCase();\n b = b.toLowerCase();\n return a > b ? 1 : a < b ? -1 : 0;\n })\n .map(category => {\n return (\n \n {category} \n \n {ICONS.categories[category].map(icon => {\n const id = icon + 'Available';\n const title = icon + ' Title';\n const Icon = ICONS[icon];\n\n return (\n \n \n
\n {icon}\n \n );\n })}\n \n \n );\n })}\n \n );\n}\n`}
\n {`Passing in the `}
{` \n`}
\n {`Any other props supplied will be provided to the `}