@wordpress/components
Version:
UI components for WordPress.
8 lines (7 loc) • 833 B
Source Map (JSON)
{
"version": 3,
"sources": ["../../src/v-stack/hook.ts"],
"sourcesContent": ["/**\n * Internal dependencies\n */\n\nimport { useContextSystem } from '../context';\nimport { useHStack } from '../h-stack';\nexport function useVStack(props) {\n const {\n expanded = false,\n alignment = 'stretch',\n ...otherProps\n } = useContextSystem(props, 'VStack');\n const hStackProps = useHStack({\n direction: 'column',\n expanded,\n alignment,\n ...otherProps\n });\n return hStackProps;\n}"],
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,qBAAiC;AACjC,qBAA0B;AACnB,SAAS,UAAU,OAAO;AAC/B,QAAM;AAAA,IACJ,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,GAAG;AAAA,EACL,QAAI,iCAAiB,OAAO,QAAQ;AACpC,QAAM,kBAAc,0BAAU;AAAA,IAC5B,WAAW;AAAA,IACX;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,CAAC;AACD,SAAO;AACT;",
"names": []
}