{"version":3,"file":"ButtonGroup.mjs","sources":["../../../src/components/ButtonGroup/ButtonGroup.tsx"],"sourcesContent":["import clsx from 'clsx';\nimport type { ReactNode } from 'react';\nimport React from 'react';\n\nimport styles from './ButtonGroup.module.css';\n\ntype ButtonGroupProps = {\n  // Component API\n  /**\n   * The buttons. Should not be wrapped in another element – we just want the buttons.\n   */\n  children: ReactNode;\n  /**\n   * Additional classnames passed in for styling.\n   *\n   * This will be applied to the container we're placing around the buttons.\n   */\n  className?: string;\n  // Design API\n  /**\n   * Whether the buttons should be laid out horizontally or stacked vertically (along with relative button position).\n   *\n   * (**Note**: `horizontal-align-left` should ONLY be used in combination with `AppNotification`)\n   */\n  buttonLayout?:\n    | 'horizontal'\n    | 'vertical'\n    | 'horizontal-progressive'\n    | 'horizontal-align-left';\n};\n\n/**\n * A container for buttons grouped together horizontally or vertically.\n */\nexport function ButtonGroup({\n  children,\n  className,\n  buttonLayout = 'horizontal',\n}: ButtonGroupProps) {\n  const componentClassName = clsx(\n    styles['button-group'],\n    buttonLayout && styles[`button-group--${buttonLayout}`],\n    className,\n  );\n\n  return <div className={componentClassName}>{children}</div>;\n}\n\nButtonGroup.displayName = 'ButtonGroup';\n"],"names":["React"],"mappings":";;;;AA+BA;;AAEG;AACG,SAAU,WAAW,CAAC,EAC1B,QAAQ,EACR,SAAS,EACT,YAAY,GAAG,YAAY,GACV,EAAA;IACjB,MAAM,kBAAkB,GAAG,IAAI,CAC7B,MAAM,CAAC,cAAc,CAAC,EACtB,YAAY,IAAI,MAAM,CAAC,iBAAiB,YAAY,CAAA,CAAE,CAAC,EACvD,SAAS,CACV;AAED,IAAA,OAAOA,sCAAK,SAAS,EAAE,kBAAkB,EAAA,EAAG,QAAQ,CAAO;AAC7D;AAEA,WAAW,CAAC,WAAW,GAAG,aAAa;;"}