{"version":3,"sources":["webpack:///./src/pages/mt/patterns/object-card/design.js"],"names":["props","site","data","slug","state","title","className","to"],"mappings":"mUAAA,gFAae,mBAAAA,GAIb,OACE,oCACE,kBAAC,IAAD,CACEC,KAAMC,EAAKD,KACXE,KAAMD,EAAKC,KAAO,WAClBC,MAAM,SACNC,MAAOH,EAAKG,QAEd,kBAAC,IAAD,CACEF,KAAMD,EAAKC,KAAO,WAClBF,KAAMC,EAAKD,KACXG,MAAM,SACNC,MAAOH,EAAKG,OAEZ,kBAAC,IAAD,KACE,wIAEyC,IACvC,kBAAC,OAAD,CACEC,UAAU,OACVC,GAAI,IAAML,EAAKD,KAAO,wCAFxB,0BAKQ,IARV,0CAS0C,IACxC,kBAAC,OAAD,CACEK,UAAU,OACVC,GAAI,IAAML,EAAKD,KAAO,0CAErB,IAJH,2BAVF,IAiBI,IACF,kBAAC,OAAD,CACEK,UAAU,OACVC,GAAI,IAAML,EAAKD,KAAO,uCAFxB,wBAKQ,IAvBV,SAwBS,IACP,kBAAC,OAAD,CACEK,UAAU,OACVC,GAAI,IAAML,EAAKD,KAAO,wCAFxB,yBAKQ,IA9BV","file":"component---src-pages-mt-patterns-object-card-design-js-15defcf7ea2e9042edc2.js","sourcesContent":["import React from 'react'\nimport { Link } from 'gatsby'\nimport {\n Layout,\n Showcase,\n Header,\n SectionTitle,\n Intro,\n} from '../../../../components'\n\nimport './style.scss'\nimport data from './data.json'\n\nexport default props => {\n const showMenu = () =>\n document.getElementById('dropDownMenu').classList.toggle('u-display--block')\n\n return (\n <>\n \n \n \n

\n The object card is now the account card patterns. To use an actions\n variant of the account card, visit the{' '}\n \n Account Card - Actions\n {' '}\n page . To use an input variant, see the{' '}\n \n {' '}\n Account Card - Checkbox\n \n ,{' '}\n \n Account Card - Radio\n {' '}\n or the{' '}\n \n Account Card - Select\n {' '}\n pages.\n

\n
\n {/* \n

\n Object cards are used to list repeatable, related content, such as\n user accounts or addresses, where each card represents a discrete\n object. They are intended to create discernable visual patterns that\n are quickly recognized, so they should only represent one type of\n information within an experience. Object cards often appear in\n collections and should follow the same internal structure so they\n are easily scanned.\n

\n
\n\n Variants\n \n
\n
\n
\n \n
\n
Content Area
\n
\n Contextual Information\n
\n \n \n What's this?\n \n
\n
\n \n
\n
\n
\n
\n
\n \n
\n
Content Area
\n
\n Contextual Information\n
\n \n \n What's this?\n \n
\n
\n \n\n
\n
\n \n
\n
\n Something went wrong with this object. Please fix it.\n
\n
\n
\n
\n \n\n \n
\n
\n
\n
\n
\n
\n
\n Select an object\n
\n
\n Expand to see a list of available objects\n
\n
\n
\n showMenu()}\n >\n \n \n
\n
\n \n \n \n
\n
\n
\n
\n \n
\n States\n

The select variant has both an empty state and an active state.

\n \n
\n
\n
\n
\n
\n
\n Select an object\n
\n
\n Expand to see a list of available objects\n
\n
\n
\n \n
\n
\n
\n \n \n
\n
\n
\n
\n
\n
\n Select an object\n
\n
\n Expand to see a list of available objects\n
\n
\n
\n \n
\n
\n \n \n \n
\n
\n
\n \n\n Design Environment\n

\n Object cards are designed to stack vertically. To reflect their visual\n pattern and enhance scannability, always place them on a fixed grid.\n

\n

\n At smaller breakpoints, the action variant will responsively list the\n available actions at the bottom of the card. To optimize touch\n interactions likely at these breakpoints, the select variant will\n trigger a full-screen modal that lists each available option as a\n populated object card instead of triggering a dropdown. Selecting an\n object within the list will exit the modal and bring the user back to\n the initial screen.\n

\n Microcopy\n

\n Action labels should use strong verbs and specific language, similar\n to{' '}\n \n buttons\n {' '}\n . The empty state title and subtitle for the select variation should\n be simple CTAs, such as \"Select a(n) [object]\" and \"Expand to see a\n list of available [objects]\". Otherwise, follow the microcopy\n guidelines for the{' '}\n \n icon links\n {' '}\n and{' '}\n \n label\n {' '}\n components.\n

*/}\n \n \n )\n}\n"],"sourceRoot":""}