{"version":3,"file":"component.cjs","names":["useGrid","View","contextConnect"],"sources":["../../src/grid/component.tsx"],"sourcesContent":["import type { ForwardedRef } from 'react';\nimport type { WordPressComponentProps } from '../context';\nimport { contextConnect } from '../context';\nimport { View } from '../view';\nimport useGrid from './hook';\nimport type { GridProps } from './types';\n\nfunction UnconnectedGrid(\n\tprops: WordPressComponentProps< GridProps, 'div' >,\n\tforwardedRef: ForwardedRef< any >\n) {\n\tconst gridProps = useGrid( props );\n\n\treturn <View { ...gridProps } ref={ forwardedRef } />;\n}\n\n/**\n * `Grid` is a primitive layout component that can arrange content in a grid configuration.\n *\n * ```jsx\n * import {\n * \t__experimentalGrid as Grid,\n * \t__experimentalText as Text\n * } from `@wordpress/components`;\n *\n * function Example() {\n * \treturn (\n * \t\t<Grid columns={ 3 }>\n * \t\t\t<Text>Code</Text>\n * \t\t\t<Text>is</Text>\n * \t\t\t<Text>Poetry</Text>\n * \t\t</Grid>\n * \t);\n * }\n * ```\n */\nexport const Grid = contextConnect( UnconnectedGrid, 'Grid' );\n\nexport default Grid;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,SAAS,gBACR,OACA,cACC;CACD,MAAM,aAAA,GAAYA,UAAAA,QAAAA,CAAS,KAAM;CAEjC,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAACC,iBAAAA,MAAD;EAAM,GAAK;EAAY,KAAM;CAAgB,CAAA;AACrD;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAa,QAAA,GAAOC,oBAAAA,eAAAA,CAAgB,iBAAiB,MAAO"}