<!-- handoff copy (card tag removed) -->
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="../../styles.css">
<script src="https://unpkg.com/react@18.3.1/umd/react.development.js" integrity="sha384-hD6/rw4ppMLGNu3tX5cjIb+uRZ7UkRJ6BPkLpg4hAu/6onKUg4lLsHAs9EBPT82L" crossorigin="anonymous"></script>
<script src="https://unpkg.com/react-dom@18.3.1/umd/react-dom.development.js" integrity="sha384-u6aeetuaXnQ38mYT8rp6sbXaQe3NL9t+IBXmnYxwkUI2Hw4bsp2Wvmx4yRQF1uAm" crossorigin="anonymous"></script>
<script src="https://unpkg.com/@babel/standalone@7.29.0/babel.min.js" integrity="sha384-m08KidiNqLdpJqLq95G/LEi8Qvjl/xUYll3QILypMoQ65QorJ9Lvtp2RXYGBFj1y" crossorigin="anonymous"></script>
<script src="../../_ds_bundle.js"></script>
<style>
  body { padding: 18px 22px; }
  /* keep the dialog demo inside the card */
  .dialog-stage { position: relative; height: 218px; overflow: hidden; border-radius: var(--radius-3); }
  .dialog-stage .ct-dialog-scrim { position: absolute; }
</style>
</head>
<body>
<div id="root"></div>
<script type="text/babel">
const { Dialog, Toast, Tooltip, Button, Icon } = window.CommiTeaDesignSystem_20e63b;

function Demo() {
  return (
    <div style={{ display: 'flex', flexDirection: 'column', gap: 14 }}>
      <div style={{ display: 'flex', gap: 10, alignItems: 'flex-start', flexWrap: 'wrap' }}>
        <Toast tone="ok" title="Reconcile finished" onDismiss={() => {}}>500 issues in 3.2s. Nothing drifted.</Toast>
        <Toast tone="warn" title="Gitea unreachable">I'll keep trying and say nothing more about it.</Toast>
      </div>
      <div style={{ display: 'flex', gap: 18, alignItems: 'center' }}>
        <Tooltip content="Critical path: 4 issues">
          <span style={{ display: 'inline-flex', color: 'var(--ink-2)' }}><Icon name="network" size={18} /></span>
        </Tooltip>
        <span style={{ font: 'var(--text-caption)', color: 'var(--ink-3)' }}>← hover for Tooltip</span>
      </div>
      <div className="dialog-stage">
        <Dialog open title="Delete milestone"
                onClose={() => {}}
                footer={<>
                  <Button variant="ghost">Keep it</Button>
                  <Button variant="danger">Yes, delete</Button>
                </>}>
          This deletes the milestone and unhouses 12 issues. I'd like to hear you say yes.
        </Dialog>
      </div>
    </div>
  );
}
ReactDOM.createRoot(document.getElementById('root')).render(<Demo />);
</script>
</body>
</html>
