@kazee-ds/react 0.5.2 → 0.5.3
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 +6 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,12 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Accessible Kazee React components, including Toast, built on React Aria Components. Requires React/React DOM 19+ and ESM.
|
|
4
4
|
|
|
5
|
+
|
|
6
|
+
Version 0.5.3 ignores Toast shortcut events with missing or non-string keys. Normal shortcuts and scoped Escape dismissal remain available.
|
|
7
|
+
|
|
5
8
|
## Install
|
|
6
9
|
|
|
7
10
|
Public npm installation requires no read token or login. Preserve the application's package manager and lockfile.
|
|
8
11
|
|
|
9
12
|
```sh
|
|
10
|
-
npm install --save-exact @kazee-ds/react@0.5.
|
|
13
|
+
npm install --save-exact @kazee-ds/react@0.5.3 @kazee-ds/styles@0.5.3
|
|
11
14
|
```
|
|
12
15
|
|
|
13
16
|
## Use
|
|
@@ -21,8 +24,8 @@ export function Example() {
|
|
|
21
24
|
}
|
|
22
25
|
```
|
|
23
26
|
|
|
24
|
-
Import the stylesheet once globally.
|
|
27
|
+
Import the stylesheet once globally. Check the [version matrix](https://gitlab.com/kazee.indonesia/kazee-design-system/-/blob/main/docs/versions.md) for release availability. Read installed public types before using an API from a newer Storybook or MCP catalog.
|
|
25
28
|
|
|
26
|
-
[Installation](https://gitlab.com/kazee.indonesia/kazee-design-system/-/blob/main/docs/installation.md)
|
|
29
|
+
[Installation](https://gitlab.com/kazee.indonesia/kazee-design-system/-/blob/main/docs/installation.md) | [Public Storybook](https://kazee-design-system-023417.gitlab.io) | [Consumer lint](https://gitlab.com/kazee.indonesia/kazee-design-system/-/blob/main/docs/consumer-lint.md)
|
|
27
30
|
|
|
28
31
|
License: UNLICENSED. Public distribution does not grant an open-source license.
|
package/dist/index.js
CHANGED
|
@@ -3136,7 +3136,7 @@ function ToastProvider({ children, manager: suppliedManager, placement = "bottom
|
|
|
3136
3136
|
}
|
|
3137
3137
|
return;
|
|
3138
3138
|
}
|
|
3139
|
-
if (!keys.length) return;
|
|
3139
|
+
if (!keys.length || typeof event.key !== "string") return;
|
|
3140
3140
|
const key = keys[keys.length - 1].toLowerCase();
|
|
3141
3141
|
const modifiers = keys.slice(0, -1).map((value) => value.toLowerCase());
|
|
3142
3142
|
if (event.key.toLowerCase() === key && event.altKey === modifiers.includes("alt") && event.ctrlKey === modifiers.includes("control") && event.metaKey === modifiers.includes("meta") && event.shiftKey === modifiers.includes("shift")) {
|