{"version":3,"file":"chunk-Block.mjs","names":[],"sources":["../../src/components/Block/Block.tsx"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\nimport React from 'react';\n\nimport { recipes } from '../../recipes.ts';\nimport { composable, composableProps } from '../../util/slots.ts';\n\nexport type BlockProps = {\n  /** Places the block in a parent Container's start or end gutter. */\n  rail?: 'start' | 'end';\n  /** Keeps the block's width but takes its content's height, for a slot in a row shorter than a block. */\n  compact?: boolean;\n};\n\n/** A block-sized square that centres its content (typically an Icon); `compact` drops the fixed height. */\nexport const Block = composable<HTMLDivElement, BlockProps>(({ children, rail, compact, ...props }, forwardedRef) => {\n  const { className, ...rest } = composableProps(props, { classNames: recipes.block() });\n  return (\n    <div\n      {...rest}\n      data-scope='block'\n      data-part='root'\n      data-rail={rail}\n      data-compact={compact ? '' : undefined}\n      className={className}\n      ref={forwardedRef}\n    >\n      {children}\n    </div>\n  );\n});\n\nBlock.displayName = 'Block';\n"],"mappings":";;;;;;AAiBA,IAAa,QAAQ,YAAwC,EAAE,UAAU,MAAM,SAAS,GAAG,SAAS,iBAAiB;CACnH,MAAM,EAAE,WAAW,GAAG,SAAS,gBAAgB,OAAO,EAAE,YAAY,QAAQ,MAAM,EAAE,CAAC;CACrF,OACE,oBAAC,OAAD;EACE,GAAI;EACJ,cAAW;EACX,aAAU;EACV,aAAW;EACX,gBAAc,UAAU,KAAK,KAAA;EAClB;EACX,KAAK;EAEJ;CACE,CAAA;AAET,CAAC;AAED,MAAM,cAAc"}