{"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;AASM,MAAM,0DAAgB,CAAA,GAAA,0BAAY,EAA0C,CAAC;AAE7E,MAAM,4CAAS,WAAW,GAAG,CAAA,GAAA,qDAAkB,EAAE,CAAA,GAAA,2DAAS,GAAG,SAAS,OAAO,KAAkB,EAAE,GAA8B;IACpI,CAAC,OAAO,IAAI,GAAG,CAAA,GAAA,yCAAc,EAAE,OAAO,KAAK;IAC3C,qBACE,0DAAC,CAAA,GAAA,6BAAE,EAAE,MAAM;QAAC,WAAU;QAAqB,GAAG,KAAK;QAAE,KAAK;OACvD,MAAM,QAAQ;AAGrB","sources":["packages/react-aria-components/src/Header.tsx"],"sourcesContent":["/*\n * Copyright 2022 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 {ContextValue, dom, DOMRenderProps, useContextProps} from './utils';\nimport {createLeafComponent} from 'react-aria/CollectionBuilder';\nimport {HeaderNode} from 'react-aria/private/collections/BaseCollection';\nimport React, {createContext, ForwardedRef, HTMLAttributes} from 'react';\n\nexport interface HeaderProps extends HTMLAttributes<HTMLElement>, DOMRenderProps<'header', undefined> {}\n\nexport const HeaderContext = createContext<ContextValue<HeaderProps, HTMLElement>>({});\n\nexport const Header = /*#__PURE__*/ createLeafComponent(HeaderNode, function Header(props: HeaderProps, ref: ForwardedRef<HTMLElement>) {\n  [props, ref] = useContextProps(props, ref, HeaderContext);\n  return (\n    <dom.header className=\"react-aria-Header\" {...props} ref={ref}>\n      {props.children}\n    </dom.header>\n  );\n});\n"],"names":[],"version":3,"file":"Header.cjs.map"}