{"mappings":";;;;AAAA,cAAc;AACd;;;;;;;;;;CAUC;;;AASD,IAAI,2CAAO,CAAA,GAAA,iBAAS,EAAE,CAAC,OAA0B;IAC/C,IAAI,UAAU,CAAA,GAAA,yCAAiB;IAC/B,IAAI,YAAY,MACd,OAAO;SAEP,qBAAO,gCAAC,CAAA,GAAA,yCAAO;QAAG,GAAG,KAAK;QAAE,KAAK;;AAErC;AAEA,aAAa;AACb,2BAAK,iBAAiB,GAAG,UAAU,kBAAqB,KAAU;IAChE,IAAI,YAAC,QAAQ,aAAE,SAAS,EAAC,GAAG;IAE5B,MAAM;QACJ,MAAM;QACN,OAAO;QACP,UAAU;QACV,cAAc,KAAK,CAAC,aAAa;QACjC,eAAe;mBACf;IACF;AACF;AAEA,IAAI,4CAAQ","sources":["packages/@adobe/react-spectrum/src/card/Card.tsx"],"sourcesContent":["// @ts-nocheck\n/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {CardBase} from './CardBase';\nimport {DOMRef, DOMRefValue, ItemProps} from '@react-types/shared';\nimport {PartialNode} from 'react-stately/private/collections/types';\nimport React, {forwardRef, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes} from 'react';\nimport {SpectrumCardProps} from './types';\nimport {useCardViewContext} from './CardViewContext';\n\nlet Card = forwardRef((props: SpectrumCardProps, ref: DOMRef<HTMLDivElement>) => {\n  let context = useCardViewContext();\n  if (context !== null) {\n    return null;\n  } else {\n    return <CardBase {...props} ref={ref} />;\n  }\n});\n\n// @ts-ignore\nCard.getCollectionNode = function* getCollectionNode<T>(props: any): Generator<PartialNode<T>> {\n  let {children, textValue} = props;\n\n  yield {\n    type: 'item',\n    props: props,\n    rendered: children,\n    'aria-label': props['aria-label'],\n    hasChildNodes: false,\n    textValue\n  };\n};\n\nlet _Card = Card as ForwardRefExoticComponent<\n  ItemProps<SpectrumCardProps> &\n    PropsWithoutRef<SpectrumCardProps> &\n    RefAttributes<DOMRefValue<HTMLDivElement>>\n>;\nexport {_Card as Card};\n"],"names":[],"version":3,"file":"Card.mjs.map"}