{"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;AAiCM,MAAM,0DAAU,CAAA,GAAA,iBAAS,EAAE,SAAS,QACzC,KAAmB,EACnB,GAA+B;IAE/B,IAAI,SAAS,CAAA,GAAA,yCAAQ,EAAE;IACvB,QAAQ,CAAA,GAAA,yCAAW,EAAE,OAAO;IAC5B,CAAC,OAAO,OAAO,GAAG,CAAA,GAAA,sBAAc,EAAE,OAAO,QAAQ,CAAA,GAAA,qBAAa;IAE9D,IAAI,YAAC,QAAQ,SAAE,QAAQ,GAAG,GAAG,YAAW,GAAG;IAC3C,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,yCAAY,EAAE;IACjC,IAAI,aAAa,CAAC,CAAC,EAAE,OAAO;IAE5B,qBACE,gCAAC;QAAY,GAAG,CAAA,GAAA,qBAAa,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   *\n   * @default 'heading'\n   */\n  slot?: string;\n  /**\n   * Sets heading level, h1 through h6.\n   *\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(\n  props: HeadingProps,\n  ref: DOMRef<HTMLHeadingElement>\n) {\n  let domRef = useDOMRef(ref);\n  props = useSlotProps(props, 'heading');\n  [props, domRef] = useContextProps(props, domRef, HeadingContext);\n\n  let {children, level = 3, ...otherProps} = 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.mjs.map"}