@overdoser/react-toolkit 0.0.12 → 0.0.13

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/llms.txt CHANGED
@@ -384,6 +384,7 @@ Props:
384
384
  - `onValueChange?: (value: string) => void` — single-mode value-only callback.
385
385
  - `onValuesChange?: (values: string[]) => void` — multi-mode callback.
386
386
  - `clearSearchOnSelect?: boolean` — default `true`. Multi-mode only.
387
+ - `closeOnSelect?: boolean` — default `true`. Multi-mode only. The menu closes after each add/remove (and after a `Create` row click). Set to `false` for the "stay open until done" pattern when picking many values rapidly.
387
388
  - `allowCreate?: boolean` — default `false`. Multi-mode only. Adds a "Create '<query>'" row when the search query doesn't match an existing option. Pressing Enter (or clicking the row) pushes the trimmed query into `onValuesChange` and fires `onCreate`.
388
389
  - `onCreate?: (value: string) => void` — Multi-mode only, paired with `allowCreate`. Fires with the new value; consumers typically persist it (e.g. push it back into `options`).
389
390
  - `createLabel?: (query: string) => ReactNode` — Multi-mode only. Custom render for the create row. Default: `Create "<query>"`.
package/manifest.json CHANGED
@@ -256,6 +256,7 @@
256
256
  "onValueChange": { "type": "(value: string) => void", "notes": "Single-mode value-only callback." },
257
257
  "onValuesChange": { "type": "(values: string[]) => void", "notes": "Multi-mode callback." },
258
258
  "clearSearchOnSelect": { "type": "boolean", "default": true, "notes": "Multi-mode only." },
259
+ "closeOnSelect": { "type": "boolean", "default": true, "notes": "Multi-mode only. Menu closes after each add/remove/create. Set false for the stay-open pattern." },
259
260
  "allowCreate": { "type": "boolean", "default": false, "notes": "Multi-mode only. Adds a 'Create <query>' row when the query doesn't match an existing option; pressing Enter (or clicking it) pushes the trimmed query into onValuesChange and fires onCreate." },
260
261
  "onCreate": { "type": "(value: string) => void", "notes": "Multi-mode only. Paired with allowCreate." },
261
262
  "createLabel": { "type": "(query: string) => ReactNode", "notes": "Multi-mode only. Custom render for the Create row." },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@overdoser/react-toolkit",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",