{"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;AA+BM,MAAM,0DAAU,CAAA,GAAA,uBAAS,EAAE,SAAS,QAAQ,KAAmB,EAAE,GAA+B;IACrG,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IACvB,QAAQ,CAAA,GAAA,sCAAW,EAAE,OAAO;IAC5B,CAAC,OAAO,OAAO,GAAG,CAAA,GAAA,+CAAc,EAAE,OAAO,QAAQ,CAAA,GAAA,gDAAa;IAE9D,IAAI,YACF,QAAQ,SACR,QAAQ,GACR,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,aAAa,CAAC,CAAC,EAAE,OAAO;IAE5B,qBACE,0DAAC;QAAY,GAAG,CAAA,GAAA,6CAAa,EAAE,WAAW;QAAG,GAAG,UAAU;QAAE,KAAK;OAC9D;AAGP","sources":["packages/@adobe/react-spectrum/src/text/Heading.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 {DOMProps, DOMRef, StyleProps} from '@react-types/shared';\nimport {filterDOMProps} from 'react-aria/filterDOMProps';\nimport {HeadingContext} from 'react-aria-components/Heading';\nimport React, {ElementType, forwardRef, ReactNode} from 'react';\nimport {useContextProps} from 'react-aria-components/slots';\nimport {useDOMRef} from '../utils/useDOMRef';\nimport {useSlotProps} from '../utils/Slots';\nimport {useStyleProps} from '../utils/styleProps';\n\nexport interface HeadingProps extends DOMProps, StyleProps {\n  /**\n   * Heading content.\n   */\n  children: ReactNode,\n  /**\n   * A slot to place the heading in.\n   * @default 'heading'\n   */\n  slot?: string,\n  /**\n   * Sets heading level, h1 through h6.\n   * @default 3\n   */\n  level?: 1 | 2 | 3 | 4 | 5 | 6\n}\n\n/**\n * Heading is used to create various levels of typographic hierarchies.\n */\nexport const Heading = forwardRef(function Heading(props: HeadingProps, ref: DOMRef<HTMLHeadingElement>) {\n  let domRef = useDOMRef(ref);\n  props = useSlotProps(props, 'heading');\n  [props, domRef] = useContextProps(props, domRef, HeadingContext);\n\n  let {\n    children,\n    level = 3,\n    ...otherProps\n  } = props;\n  let {styleProps} = useStyleProps(otherProps);\n  let HeadingTag = `h${level}` as ElementType;\n\n  return (\n    <HeadingTag {...filterDOMProps(otherProps)} {...styleProps} ref={domRef}>\n      {children}\n    </HeadingTag>\n  );\n});\n"],"names":[],"version":3,"file":"Heading.cjs.map"}