{"version":3,"file":"BigIcon.cjs","names":[],"sources":["../../../../src/components/Icon/BigIcon/BigIcon.tsx"],"sourcesContent":["/*\nCopyright 2024 New Vector Ltd.\n\nSPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial\nPlease see LICENSE files in the repository root for full details.\n*/\n\nimport React, { type JSX, type PropsWithChildren } from \"react\";\nimport styles from \"./BigIcon.module.css\";\nimport classNames from \"classnames\";\nimport type { Size } from \"../../../utils/size\";\n\ninterface BigIconProps {\n  /**\n   * The CSS class name.\n   */\n  className?: string;\n  /**\n   * The t-shirt size of the icon.\n   * @default \"lg\"\n   */\n  size?: Size & (\"sm\" | \"md\" | \"lg\");\n  /**\n   * The color variant of the icon.\n   * @default \"primary\"\n   */\n  kind?: \"primary\" | \"critical\" | \"success\";\n}\n\nexport function BigIcon({\n  className,\n  size = \"lg\",\n  kind = \"primary\",\n  children,\n}: PropsWithChildren<BigIconProps>): JSX.Element {\n  return (\n    <div\n      className={classNames(styles[\"big-icon\"], className)}\n      data-size={size}\n      data-kind={kind}\n    >\n      {React.Children.only(children)}\n    </div>\n  );\n}\n"],"mappings":";;;;;;;;AA6BA,SAAgB,QAAQ,EACtB,WACA,OAAO,MACP,OAAO,WACP,YAC+C;AAC/C,QACE,iBAAA,GAAA,kBAAA,KAAC,OAAD;EACE,YAAA,GAAA,WAAA,SAAsB,uBAAA,QAAO,aAAa,UAAU;EACpD,aAAW;EACX,aAAW;YAEV,MAAA,QAAM,SAAS,KAAK,SAAS;EAC1B,CAAA"}