{"version":3,"file":"warning.mjs","names":[],"sources":["../../src/react/warning.tsx"],"sourcesContent":["import { useId, type SVGProps } from 'react';\n\nexport type WarningIconProps = SVGProps<SVGSVGElement> & {\n  /** Accessibility title for the icon, set aria-hidden=\"true\" if the icon is purely decorative. */\n  title?: string;\n  /**\n   * The size of the icon.\n   * It sets the font-size, possible as the width and height is `1em`. If not set, the icon will inherit the font size of its parent.\n   */\n  size?: '2xl' | 'xl' | 'large' | 'medium' | 'small';\n  /**\n   * The color of the icon.\n   * @default 'inherit'\n   */\n  color?: 'inherit' | 'primary' | 'gray' | 'black' | 'white';\n};\n\nexport const WarningIcon = ({ title, size, color, ...props }: WarningIconProps) => {\n  const titleId = useId();\n  return (\n    <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"currentColor\" viewBox=\"0 0 24 24\" focusable='false' role='img' width='1em' height='1em'  aria-labelledby={title ? titleId : undefined} data-size={size} data-color={color} {...props}>{title ? <title id={titleId}>{title}</title> : null}<path d=\"M12.003 17.734a1.123 1.123 0 1 0 0-2.246 1.123 1.123 0 0 0 0 2.246\" /><path d=\"m13.448 3.753.212.393 7.381 13.624-1.426 2.129-.221.332h-.4l-14.457.01-.223-.333-1.173-1.757-.252-.378.217-.398 7.422-13.622zM4.64 17.693l.699 1.048 13.252-.01.699-1.043-6.735-12.435h-1.136l-6.78 12.44ZM12.753 8v6.49h-1.5V8z\" /></svg>\n  );\n};"],"mappings":";;;AAiBA,MAAa,eAAe,EAAE,OAAO,MAAM,OAAO,GAAG,YAA8B;CACjF,MAAM,UAAU,OAAO;CACvB,OACE,qBAAC,OAAD;EAAK,OAAM;EAA6B,MAAK;EAAe,SAAQ;EAAY,WAAU;EAAQ,MAAK;EAAM,OAAM;EAAM,QAAO;EAAO,mBAAiB,QAAQ,UAAU,KAAA;EAAW,aAAW;EAAM,cAAY;EAAO,GAAI;YAA7N;GAAqO,QAAQ,oBAAC,SAAD;IAAO,IAAI;cAAU;IAAc,CAAA,GAAG;GAAK,oBAAC,QAAD,EAAM,GAAE,sEAAuE,CAAA;uBAAC,QAAD,EAAM,GAAE,oOAAqO,CAAA;GAAM"}