Adds an N-tool for the labeled date input + calendar-icon trigger. Emits ONLY the CLOSED state; the open month grid lives in add_calendar_grid_v0 and is typically shown inside a popover, not stacked directly below. Two visual states: - placeholder (no value): slate-400 "Select date" + calendar icon - populated (value): slate-900 date text + calendar icon `clearable: true` adds a small X affordance to the right of the value (only when value is present — no-op for the placeholder state since there's nothing to clear). `required: true` appends " *" to the label. Keeping closed + open as separate tools is intentional: AI specs often ask for only the closed trigger inside a form, and a single combined tool would either force an unwanted grid or require a mode flag that splits the parameter surface. Separate narrow tools compose cleanly via batch_design when a designer DOES want both. Wired through all 3 paths + parity/contract/design-prompt tests. Handler test covers 7 cases: placeholder state fills, populated value fills, clearable X behaviors (both present + absent value), custom placeholder override, required marker, bogus parent_id rejection. |
||
|---|---|---|
| .. | ||
| cli | ||
| desktop | ||
| web | ||