<!-- source-hash: c7355b336531eeee83c49994040e5cbf -->
A floating tooltip component built with `@floating-ui/react` that supports smart positioning, directional arrows, and inline color markup parsing.

## Key Components

### `FloatingTooltip`
The main exported component. Renders a portal-based tooltip with:
- **Auto-positioning** via `flip`, `shift`, and `offset` middleware — avoids viewport clipping
- **Arrow indicator** that dynamically repositions based on the resolved placement
- **Hover interaction** with configurable open delay and safe polygon close detection
- **`disabled` prop** — suppresses tooltip without unmounting the trigger wrapper

### `parseColoredText` (internal)
Parses `[COLOR]text[/COLOR]` markup within string content and maps it to ODS CSS classes:

| Tag | Tailwind Class |
|-----|----------------|
| `[YELLOW]` | `text-ods-accent` |
| `[GREEN]` | `text-ods-success` |
| `[RED]` | `text-ods-error` |
| `[BLUE]` / `[CYAN]` | `text-ods-info` |
| `[PINK]` | `text-ods-accent` |

### `FloatingTooltipProps`

| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `content` | `React.ReactNode` | — | Tooltip body; strings support color markup |
| `children` | `React.ReactNode` | — | Trigger element |
| `side` | `"top" \| "right" \| "bottom" \| "left"` | `"right"` | Preferred placement |
| `delayDuration` | `number` | `0` | Open delay in ms |
| `disabled` | `boolean` | `false` | Suppresses tooltip |
| `className` | `string` | — | Extra classes on the tooltip panel |

## Usage Example

```typescript
import { FloatingTooltip } from "./floating-tooltip"

// Basic usage
<FloatingTooltip content="Save changes">
  <button>Save</button>
</FloatingTooltip>

// With color markup and delay
<FloatingTooltip
  content="Status: [GREEN]Online[/GREEN] — [YELLOW]1 warning[/YELLOW]"
  side="top"
  delayDuration={300}
>
  <span>Hover me</span>
</FloatingTooltip>

// Disabled (wrapper renders, tooltip suppressed)
<FloatingTooltip content="Hidden tip" disabled>
  <button>No tooltip</button>
</FloatingTooltip>
```