<!-- @dsCard group="Components" viewport="700x400" name="Voice 语音" subtitle="RecognitionOverlay · MicBar · Waveform" -->
<!DOCTYPE html>
<html lang="zh-CN">
<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 { margin: 0; font-family: var(--font-sans); display: grid; grid-template-columns: 1fr 1fr; }
  .pane { padding: 20px; box-sizing: border-box; min-height: 400px; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; }
  .left { background: var(--gray-100); }
  .right { background: var(--bg-app); }
  .caption { font-size: var(--text-xs); color: var(--text-3); align-self: flex-start; margin: -6px 0 -8px 4px; }
</style>
</head>
<body>
  <div class="pane left" id="overlays"></div>
  <div class="pane right" id="micbars" data-theme="dark"></div>
  <script type="text/babel">
    const { RecognitionOverlay, MicBar, Waveform } = window.DuduDesignSystem_2e0172;
    ReactDOM.createRoot(document.getElementById('overlays')).render(
      <React.Fragment>
        <RecognitionOverlay state="listening" width={300} />
        <RecognitionOverlay state="streaming" width={300}
          finalText="帮我把这份周报整理一下，" partialText="重点突出本周的" />
        <Waveform active height={22} />
      </React.Fragment>
    );
    ReactDOM.createRoot(document.getElementById('micbars')).render(
      <div style={{ display: 'grid', gap: 12, width: '100%', maxWidth: 300 }}>
        <MicBar state="idle" />
        <MicBar state="recording" />
        <MicBar state="disabled" />
        <MicBar state="quota" />
      </div>
    );
  </script>
</body>
</html>
