{"version":3,"file":"chunk-Separator.mjs","names":[],"sources":["../../src/components/Separator/Separator.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 SeparatorOrientation = 'horizontal' | 'vertical';\n\nexport type SeparatorProps = {\n  orientation?: SeparatorOrientation;\n  /** A purely visual rule, hidden from assistive tech (e.g. between listbox options, which admit no separator role). */\n  decorative?: boolean;\n};\n\n/** A 1px rule in the separator colour: horizontal across its track, or vertical and half a control tall in a row. */\nexport const Separator = composable<HTMLDivElement, SeparatorProps>(\n  ({ orientation = 'horizontal', decorative, ...props }, forwardedRef) => {\n    const { className, ...rest } = composableProps(props, { classNames: recipes.separator() });\n    return (\n      <div\n        {...rest}\n        // `separator` is horizontal by default, so only the vertical case spells out its orientation.\n        {...(decorative\n          ? { 'role': 'none', 'aria-hidden': true }\n          : { role: 'separator', ...(orientation === 'vertical' && { 'aria-orientation': 'vertical' as const }) })}\n        data-scope='separator'\n        data-part='root'\n        data-orientation={orientation}\n        className={className}\n        ref={forwardedRef}\n      />\n    );\n  },\n);\n\nSeparator.displayName = 'Separator';\n"],"mappings":";;;;;;AAkBA,IAAa,YAAY,YACtB,EAAE,cAAc,cAAc,YAAY,GAAG,SAAS,iBAAiB;CACtE,MAAM,EAAE,WAAW,GAAG,SAAS,gBAAgB,OAAO,EAAE,YAAY,QAAQ,UAAU,EAAE,CAAC;CACzF,OACE,oBAAC,OAAD;EACE,GAAI;EAEJ,GAAK,aACD;GAAE,QAAQ;GAAQ,eAAe;EAAK,IACtC;GAAE,MAAM;GAAa,GAAI,gBAAgB,cAAc,EAAE,oBAAoB,WAAoB;EAAG;EACxG,cAAW;EACX,aAAU;EACV,oBAAkB;EACP;EACX,KAAK;CACN,CAAA;AAEL,CACF;AAEA,UAAU,cAAc"}