{"version":3,"file":"group.cjs","names":["forwardRef","useCompositeContext","Ariakit","CompositeGroupContext"],"sources":["../../src/composite/group.tsx"],"sourcesContent":["import * as Ariakit from '@ariakit/react';\nimport { forwardRef } from '@wordpress/element';\nimport type { WordPressComponentProps } from '../context';\nimport { CompositeGroupContext, useCompositeContext } from './context';\nimport type { CompositeGroupProps } from './types';\n\nexport const CompositeGroup = forwardRef<\n\tHTMLDivElement,\n\tWordPressComponentProps< CompositeGroupProps, 'div', false >\n>( function UnforwardedCompositeGroup( props, ref ) {\n\tconst context = useCompositeContext();\n\tconst { children, ...restProps } = props;\n\n\t// @ts-expect-error The store prop is undocumented and only used by the\n\t// legacy compat layer. The `store` prop is documented, but its type is\n\t// obfuscated to discourage its use outside of the component's internals.\n\tconst store = ( props.store ?? context.store ) as Ariakit.CompositeStore;\n\n\treturn (\n\t\t<Ariakit.CompositeGroup store={ store } { ...restProps } ref={ ref }>\n\t\t\t<CompositeGroupContext.Provider value>\n\t\t\t\t{ children }\n\t\t\t</CompositeGroupContext.Provider>\n\t\t</Ariakit.CompositeGroup>\n\t);\n} );\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,MAAa,kBAAA,GAAiBA,mBAAAA,WAAAA,CAG3B,SAAS,0BAA2B,OAAO,KAAM;CACnD,MAAM,WAAA,GAAUC,cAAAA,oBAAAA,CAAoB;CACpC,MAAM,EAAE,UAAU,GAAG,cAAc;CAKnC,MAAM,QAAU,MAAM,SAAS,QAAQ;CAEvC,OACC,iBAAA,GAAA,kBAAA,IAAA,CAACC,eAAQ,gBAAT;EAAgC;EAAQ,GAAK;EAAkB;EAC9D,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAACC,cAAAA,sBAAsB,UAAvB;GAAgC,OAAA;GAC7B;EAC6B,CAAA;CACT,CAAA;AAE1B,CAAE"}