import { forwardRef } from 'react' import { Group } from '../Primitives/Group' import { GroupOrientation } from '../Primitives/Group/types' import type { TextInputGroupProps } from './TextInputGroupProps.types' import { flattenChildren } from '../../global-utils/GlobalUtils' const TextInputGroup = forwardRef( ({ stacked = false, gap, children, ...restProps }, ref) => { const flatChildren = flattenChildren(children) const totalChildren = flatChildren.length return ( {flatChildren} ) } ) /** TextInputGroup owns layout/position composition only; it has no component-local color, border, background, or theme tokens, so it is excluded from the per-component dark-theme retrofit. */ TextInputGroup.displayName = 'TextInputGroup' export default TextInputGroup