{"version":3,"file":"chunk-Group.mjs","names":[],"sources":["../../src/components/Group/Group.tsx"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\nimport { ark } from '@ark-ui/react/factory';\nimport React from 'react';\n\nimport { recipes } from '../../recipes.ts';\nimport { composableProps, slottable } from '../../util/slots.ts';\n\nexport type GroupProps = {\n  justify?: 'start' | 'end' | 'between';\n  /** Children share the width equally, so a lone child (e.g. a form's Submit) stretches across the group. */\n  fill?: boolean;\n  /** No gap between children: a run of icon-only buttons whose own insets already space them (e.g. plank controls). */\n  compact?: boolean;\n};\n\n/**\n * A plain flex run of controls (e.g. a form's action buttons) with no role: unlike Toolbar it claims no keyboard\n * contract, and unlike a row Container it needs no track per child.\n */\nexport const Group = slottable<HTMLDivElement, GroupProps>(\n  ({ children, asChild, justify = 'start', fill, compact, ...props }, forwardedRef) => {\n    const { className, ...rest } = composableProps(props, { classNames: recipes.group() });\n    return (\n      <ark.div\n        asChild={asChild}\n        {...rest}\n        data-scope='group'\n        data-part='root'\n        data-justify={justify}\n        data-fill={fill ? '' : undefined}\n        data-compact={compact ? '' : undefined}\n        className={className}\n        ref={forwardedRef}\n      >\n        {children}\n      </ark.div>\n    );\n  },\n);\n\nGroup.displayName = 'Group';\n"],"mappings":";;;;;;;;;;AAsBA,IAAa,QAAQ,WAClB,EAAE,UAAU,SAAS,UAAU,SAAS,MAAM,SAAS,GAAG,SAAS,iBAAiB;CACnF,MAAM,EAAE,WAAW,GAAG,SAAS,gBAAgB,OAAO,EAAE,YAAY,QAAQ,MAAM,EAAE,CAAC;CACrF,OACE,oBAAC,IAAI,KAAL;EACW;EACT,GAAI;EACJ,cAAW;EACX,aAAU;EACV,gBAAc;EACd,aAAW,OAAO,KAAK,KAAA;EACvB,gBAAc,UAAU,KAAK,KAAA;EAClB;EACX,KAAK;EAEJ;CACM,CAAA;AAEb,CACF;AAEA,MAAM,cAAc"}