@sakaniui/mcp 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/AGENTS.md +7 -0
- package/data/CHANGELOG.md +18 -0
- package/data/dist/emoji-index.json +1 -1
- package/data/dist/icon-index.json +1 -1
- package/data/dist/manifest.json +113 -18
- package/data/package.json +1 -1
- package/package.json +1 -1
package/data/AGENTS.md
CHANGED
|
@@ -213,6 +213,13 @@ lists its other names under `aliases` in `manifest.json`, and `search_components
|
|
|
213
213
|
(it is a custom listbox, not native `<select>`, so the open state matches the design). Combobox: search a
|
|
214
214
|
long list or pick several (multi, with chips). *Why:* choosing the lightest control that fits keeps forms
|
|
215
215
|
fast; don't use a Combobox for four options.
|
|
216
|
+
- **Input / Textarea `variant="ai"`** — The prompt box of an AI product ("Ask anything"): use `Input` for one line and
|
|
217
|
+
`Textarea` when the prompt can run long (it grows with the text up to `maxRows`). Put the buttons in `leading` and
|
|
218
|
+
`trailing` (an attach "+", a mic, a send button that replaces the mic once there is text); they take interactive
|
|
219
|
+
content, unlike `leadingIcon`. A thin ember light sweeps round the border while it is idle and on focus (`glow`:
|
|
220
|
+
`"pulse"` default, `"focus"`, `"off"`); under reduced motion it draws none. *Why:* it reads as the place to talk to the AI,
|
|
221
|
+
not as another form field. *Not for* ordinary forms: use the default variant there, and still give it a label
|
|
222
|
+
(`aria-label` if the design has none).
|
|
216
223
|
- **Checkbox / Radio / Switch** — Checkbox: independent yes/no, or multiple choices. Radio: exactly one of a
|
|
217
224
|
few (give them a shared `name`). Switch: an immediate on/off that takes effect now; a checkbox is for
|
|
218
225
|
things applied on submit.
|
package/data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@sakaniui/react` are documented here.
|
|
4
4
|
|
|
5
|
+
## 0.14.0
|
|
6
|
+
|
|
7
|
+
- **New: `variant="ai"` on `Input` and `Textarea`**, the prompt box of an AI product, built from the new *Input AI* and *Textarea AI* sets in
|
|
8
|
+
Figma. Pass `variant="ai"` and the field becomes the "Ask anything" box: a larger 16px field, room for action buttons, and a light that
|
|
9
|
+
sweeps round its border.
|
|
10
|
+
- **Input:** a pill (44 / 56 / 64px for `sm` / `md` / `lg`) with `leading` and `trailing` slots for action buttons, such as an attach
|
|
11
|
+
button, a mic and a send button. Unlike `leadingIcon`, these slots take interactive content.
|
|
12
|
+
- **Textarea:** a 16px-radius box with the field on top and an actions row underneath (`leading` on the left, `trailing` on the
|
|
13
|
+
right). The field grows with what you type, up to `maxRows` lines (8 by default), then scrolls. Focus swaps the border for a static
|
|
14
|
+
1.5px ember gradient, left to right (not for `error` or `disabled`, which keep their own borders).
|
|
15
|
+
- **`glow`:** `"pulse"` (default) sweeps the light every 2.5s while idle and once each time the field takes focus; `"focus"` sweeps
|
|
16
|
+
only on focus; `"off"` draws none. The light is a thin line in an ember gradient (indigo, violet, magenta, red, brand orange,
|
|
17
|
+
amber, pale gold: a cool tail and a hot head) with a faint haze, one lap in about 1.3s, clockwise from the top-left. It follows the
|
|
18
|
+
border's own path at an even speed (CSS `offset-path`), so it works on any box, wide or square. It is hidden under
|
|
19
|
+
`prefers-reduced-motion` and where `offset-path: inset()` is not supported.
|
|
20
|
+
- Light, dark and glass surfaces come from the tokens, with nothing extra to set. The text is `body/md` (16px, weight 500).
|
|
21
|
+
- New tokens: `--color-blue-700` and `--color-violet-500`, the two Figma primitives the ember gradient needs.
|
|
22
|
+
|
|
5
23
|
## 0.13.0
|
|
6
24
|
|
|
7
25
|
- **New: `CommandMenu`**, a ⌘K search and command palette, built from the new *↳ Command Menu* page in Figma. A search field,
|