@stackline/react-multiselect-dropdown 17.0.0 → 18.0.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/README.md +14 -14
- package/package.json +11 -10
package/README.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
# @stackline/react-multiselect-dropdown
|
|
2
2
|
|
|
3
|
-
> A maintained React multiselect dropdown for React
|
|
3
|
+
> A maintained React multiselect dropdown for React 18 applications, with controlled React state, searchable/grouped options, lazy loading hooks, custom render functions, skins, body-overlay positioning, and ADA-friendly keyboard/ARIA behavior.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@stackline/react-multiselect-dropdown)
|
|
6
6
|
[](https://www.npmjs.com/package/@stackline/react-multiselect-dropdown)
|
|
7
7
|
[](https://www.npmjs.com/package/@stackline/react-multiselect-dropdown)
|
|
8
8
|
[](https://github.com/alexandroit/react-multiselect-dropdown/blob/main/LICENSE)
|
|
9
|
-
[](https://alexandro.net/docs/react/multiselect/react-18/)
|
|
10
10
|
[](https://www.typescriptlang.org)
|
|
11
11
|
[](https://github.com/alexandroit/react-multiselect-dropdown/stargazers)
|
|
12
12
|
|
|
13
|
-
**[Documentation & Live Demos](https://alexandro.net/docs/react/multiselect/)** | **[React
|
|
13
|
+
**[Documentation & Live Demos](https://alexandro.net/docs/react/multiselect/)** | **[React 18 Demo](https://alexandro.net/docs/react/multiselect/react-18/)** | **[npm](https://www.npmjs.com/package/@stackline/react-multiselect-dropdown)** | **[Issues](https://github.com/alexandroit/react-multiselect-dropdown/issues)** | **[Repository](https://github.com/alexandroit/react-multiselect-dropdown)**
|
|
14
14
|
|
|
15
|
-
**Latest tested package release:** `
|
|
15
|
+
**Latest tested package release:** `18.0.0` for React `18.x`
|
|
16
16
|
|
|
17
17
|
---
|
|
18
18
|
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
|
|
27
27
|
The package is built around a controlled React API: pass `data`, bind `selectedItems`, receive updates through `onChange`, and customize behavior through a `settings` object. It also supports custom React render functions for option rows and selected badges, lazy loading callbacks, imperative `ref` methods, and body-overlay positioning for dialogs or clipped containers.
|
|
28
28
|
|
|
29
|
-
The current package release is `
|
|
29
|
+
The current package release is `18.0.0` for React 18.x applications. It was tested in a clean React `18.3.1` application before publication to the local validation registry.
|
|
30
30
|
|
|
31
31
|
## Features
|
|
32
32
|
|
|
33
33
|
| Feature | Supported |
|
|
34
34
|
| :--- | :---: |
|
|
35
|
-
| React
|
|
35
|
+
| React 18 tested published release line | Yes |
|
|
36
36
|
| Multi-select and single-select modes | Yes |
|
|
37
37
|
| Controlled and uncontrolled selection | Yes |
|
|
38
38
|
| Search and filter | Yes |
|
|
@@ -54,7 +54,7 @@ The current package release is `17.0.0` for React 17.x applications. It was test
|
|
|
54
54
|
3. [Setup](#setup)
|
|
55
55
|
4. [Styling and Skins](#styling-and-skins)
|
|
56
56
|
5. [Basic Usage](#basic-usage)
|
|
57
|
-
6. [Official React
|
|
57
|
+
6. [Official React 18 Test Matrix](#official-react-18-test-matrix)
|
|
58
58
|
7. [Custom Render Functions](#custom-render-functions)
|
|
59
59
|
8. [Forms and Controlled State](#forms-and-controlled-state)
|
|
60
60
|
9. [Lazy Loading and Dynamic Data](#lazy-loading-and-dynamic-data)
|
|
@@ -71,16 +71,16 @@ Each package family installs on its matching React family. Keep the package fami
|
|
|
71
71
|
| Package family | React family | Peer range | Tested release window | Demo link |
|
|
72
72
|
| :---: | :---: | :---: | :---: | :--- |
|
|
73
73
|
| **17.x** | **React 17 only** | **`>=17.0.0 <18.0.0`** | **17.0.0 -> 17.0.2** | [React 17 family docs](https://alexandro.net/docs/react/multiselect/react-17/) |
|
|
74
|
-
| **18.x** | **React 18 only** | **`>=18.0.0 <19.0.0`** |
|
|
74
|
+
| **18.x** | **React 18 only** | **`>=18.0.0 <19.0.0`** | **18.0.0 -> 18.3.1** | [React 18 family docs](https://alexandro.net/docs/react/multiselect/react-18/) |
|
|
75
75
|
| **19.x** | **React 19 only** | **`>=19.0.0 <20.0.0`** | Planned | [React docs](https://alexandro.net/docs/react/multiselect/) |
|
|
76
76
|
|
|
77
77
|
## Installation
|
|
78
78
|
|
|
79
79
|
```bash
|
|
80
|
-
npm install @stackline/react-multiselect-dropdown@
|
|
80
|
+
npm install @stackline/react-multiselect-dropdown@18.0.0 --save-exact
|
|
81
81
|
```
|
|
82
82
|
|
|
83
|
-
Install `
|
|
83
|
+
Install `18.0.0` for React 18.x applications. The package includes its component styles and injects them at runtime, so no extra CSS import is required for the default experience.
|
|
84
84
|
|
|
85
85
|
## Setup
|
|
86
86
|
|
|
@@ -204,9 +204,9 @@ export function CountrySelector() {
|
|
|
204
204
|
}
|
|
205
205
|
```
|
|
206
206
|
|
|
207
|
-
## Official React
|
|
207
|
+
## Official React 18 Test Matrix
|
|
208
208
|
|
|
209
|
-
The
|
|
209
|
+
The React 18 release was tested in a clean React `18.3.1` application with `@stackline/react-multiselect-dropdown@18.0.0`. The docs use the same examples from that test app, including keyboard navigation, focus, ARIA behavior, badge counters, responsive action buttons, scrollable lists, and dialog-safe body overlays.
|
|
210
210
|
|
|
211
211
|
The same core scenarios are validated for the visual skins:
|
|
212
212
|
|
|
@@ -361,10 +361,10 @@ npm run build
|
|
|
361
361
|
npm test
|
|
362
362
|
```
|
|
363
363
|
|
|
364
|
-
React
|
|
364
|
+
React 18 docs:
|
|
365
365
|
|
|
366
366
|
```bash
|
|
367
|
-
cd docs-src/react-
|
|
367
|
+
cd docs-src/react-18
|
|
368
368
|
npm install
|
|
369
369
|
npm run build
|
|
370
370
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackline/react-multiselect-dropdown",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "A maintained React
|
|
3
|
+
"version": "18.0.0",
|
|
4
|
+
"description": "A maintained React 18 multiselect dropdown with controlled state, skins, live docs, and ADA-friendly keyboard support.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
7
7
|
"multiselect",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "https://github.com/alexandroit/react-multiselect-dropdown.git"
|
|
23
|
+
"url": "git+https://github.com/alexandroit/react-multiselect-dropdown.git"
|
|
24
24
|
},
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"type": "module",
|
|
@@ -53,22 +53,23 @@
|
|
|
53
53
|
"build:docs:react-17": "cd docs-src/react-17 && npm run build",
|
|
54
54
|
"build:docs:react-18": "cd docs-src/react-18 && npm run build",
|
|
55
55
|
"build:docs:react-19": "cd docs-src/react-19 && npm run build",
|
|
56
|
-
"build:docs": "npm run build:docs:react-
|
|
56
|
+
"build:docs": "npm run build:docs:react-18",
|
|
57
57
|
"publish:verdaccio:react-17": "npm run build && npm publish --registry=http://127.0.0.1:4873 --@stackline:registry=http://127.0.0.1:4873 --tag react-17 --access public",
|
|
58
|
+
"publish:verdaccio:react-18": "npm run build && npm publish --registry=http://127.0.0.1:4873 --@stackline:registry=http://127.0.0.1:4873 --tag react-18 --access public",
|
|
58
59
|
"test": "node --test tests/*.test.cjs"
|
|
59
60
|
},
|
|
60
61
|
"peerDependencies": {
|
|
61
|
-
"react": ">=
|
|
62
|
-
"react-dom": ">=
|
|
62
|
+
"react": ">=18.0.0 <19.0.0",
|
|
63
|
+
"react-dom": ">=18.0.0 <19.0.0"
|
|
63
64
|
},
|
|
64
65
|
"publishConfig": {
|
|
65
66
|
"access": "public"
|
|
66
67
|
},
|
|
67
68
|
"devDependencies": {
|
|
68
|
-
"@types/react": "
|
|
69
|
-
"@types/react-dom": "
|
|
70
|
-
"react": "
|
|
71
|
-
"react-dom": "
|
|
69
|
+
"@types/react": "18.3.28",
|
|
70
|
+
"@types/react-dom": "18.3.7",
|
|
71
|
+
"react": "18.3.1",
|
|
72
|
+
"react-dom": "18.3.1",
|
|
72
73
|
"tsup": "8.5.1",
|
|
73
74
|
"typescript": "5.9.3"
|
|
74
75
|
}
|