{"version":3,"file":"index.cjs","names":["React"],"sources":["../../../src/components/TextCallout/TextCallout.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport React from \"react\";\n\ntype TextCalloutVariant = \"neutral\" | \"info\" | \"warning\" | \"success\" | \"danger\";\n\nexport interface TextCalloutProps extends Omit<React.HTMLAttributes<HTMLDivElement>, \"title\"> {\n  variant?: TextCalloutVariant;\n  title?: React.ReactNode;\n  description?: React.ReactNode;\n}\n\nconst variantMap: Record<TextCalloutVariant, string> = {\n  neutral: \"openui-text-callout-neutral\",\n  info: \"openui-text-callout-info\",\n  warning: \"openui-text-callout-warning\",\n  success: \"openui-text-callout-success\",\n  danger: \"openui-text-callout-danger\",\n};\n\nexport const TextCallout = React.forwardRef<HTMLDivElement, TextCalloutProps>((props, ref) => {\n  const { className, variant = \"neutral\", title, description, ...rest } = props;\n\n  return (\n    <div\n      ref={ref}\n      className={clsx(\"openui-text-callout\", variantMap[variant], className)}\n      {...rest}\n    >\n      <div className=\"openui-text-callout-content\">\n        {title && <span className=\"openui-text-callout-content-title\">{title}</span>}\n        {description && (\n          <span className=\"openui-text-callout-content-description\">{description}</span>\n        )}\n      </div>\n    </div>\n  );\n});\n"],"mappings":";;;;;;;;AAWA,MAAM,aAAiD;CACrD,SAAS;CACT,MAAM;CACN,SAAS;CACT,SAAS;CACT,QAAQ;CACT;AAED,MAAa,cAAcA,MAAAA,QAAM,YAA8C,OAAO,QAAQ;CAC5F,MAAM,EAAE,WAAW,UAAU,WAAW,OAAO,aAAa,GAAG,SAAS;AAExE,QACE,iBAAA,GAAA,kBAAA,KAAC,OAAD;EACO;EACL,YAAA,GAAA,KAAA,SAAgB,uBAAuB,WAAW,UAAU,UAAU;EACtE,GAAI;YAEJ,iBAAA,GAAA,kBAAA,MAAC,OAAD;GAAK,WAAU;aAAf,CACG,SAAS,iBAAA,GAAA,kBAAA,KAAC,QAAD;IAAM,WAAU;cAAqC;IAAa,CAAA,EAC3E,eACC,iBAAA,GAAA,kBAAA,KAAC,QAAD;IAAM,WAAU;cAA2C;IAAmB,CAAA,CAE5E;;EACF,CAAA;EAER"}