{"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;AA4BM,MAAM,0DAAO,CAAA,GAAA,uBAAS,EAAE,SAAS,KACtC,KAAwB,EACxB,GAA2B;IAE3B,IAAI,YAAC,QAAQ,QAAE,IAAI,EAAE,GAAG,YAAW,GAAG;IACtC,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IACvB,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IAEjC,IACE,CAAC,QACA,CAAA,KAAK,CAAC,aAAa,IAAI,KAAK,CAAC,kBAAkB,AAAD,KAC/C,QAAQ,GAAG,CAAC,QAAQ,KAAK,cAEzB,QAAQ,IAAI,CAAC;IAGf,qBACE,0DAAC;QACE,GAAG,CAAA,GAAA,6CAAa,EAAE,YAAY;YAAC,WAAW,CAAC,CAAC;QAAI,EAAE;QAClD,GAAG,UAAU;QACd,MAAM;QACN,KAAK;QACL,WAAW,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG,iBAAiB,WAAW,SAAS;OAClE;AAGP","sources":["packages/@adobe/react-spectrum/src/well/Well.tsx"],"sourcesContent":["/*\n * Copyright 2020 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 {AriaLabelingProps, DOMProps, DOMRef, StyleProps} from '@react-types/shared';\nimport {classNames} from '../utils/classNames';\nimport {filterDOMProps} from 'react-aria/filterDOMProps';\nimport React, {forwardRef, ReactNode} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/well/vars.css';\nimport {useDOMRef} from '../utils/useDOMRef';\nimport {useStyleProps} from '../utils/styleProps';\n\nexport interface SpectrumWellProps extends DOMProps, AriaLabelingProps, StyleProps {\n  /**\n   * The contents of the Well.\n   */\n  children: ReactNode;\n  /**\n   * An accessibility role for the well. Use `'region'` when the contents of the well\n   * is important enough to be included in the page table of contents, and `'group'` otherwise.\n   * If a role is provided, then an aria-label or aria-labelledby must also be provided.\n   */\n  role?: 'region' | 'group';\n}\n\n/**\n * A Well is a content container that displays non-editable content separate from other content on\n * the screen. Often this is used to display preformatted text, such as code/markup examples on a\n * documentation page.\n */\nexport const Well = forwardRef(function Well(\n  props: SpectrumWellProps,\n  ref: DOMRef<HTMLDivElement>\n) {\n  let {children, role, ...otherProps} = props;\n  let domRef = useDOMRef(ref);\n  let {styleProps} = useStyleProps(otherProps);\n\n  if (\n    !role &&\n    (props['aria-label'] || props['aria-labelledby']) &&\n    process.env.NODE_ENV !== 'production'\n  ) {\n    console.warn('A labelled Well must have a role.');\n  }\n\n  return (\n    <div\n      {...filterDOMProps(otherProps, {labelable: !!role})}\n      {...styleProps}\n      role={role}\n      ref={domRef}\n      className={classNames(styles, 'spectrum-Well', styleProps.className)}>\n      {children}\n    </div>\n  );\n});\n"],"names":[],"version":3,"file":"Well.cjs.map"}