@cosxai/ui 1.0.0-alpha.4 → 1.0.0-alpha.5
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/CHANGELOG.md +5 -0
- package/package.json +2 -2
- package/src/components/ActionBar.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
## 1.0.0-alpha.5 (2026-09-29)
|
|
2
|
+
|
|
3
|
+
- Builds under the consuming app's TypeScript settings without
|
|
4
|
+
DOM.Iterable (ActionBar no longer spreads a NodeList); `typecheck` checks it.
|
|
5
|
+
|
|
1
6
|
## 1.0.0-alpha.4 (2026-09-29)
|
|
2
7
|
|
|
3
8
|
- ToastCard: one toast drawn in place (documentation specimens, previews).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosxai/ui",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.5",
|
|
4
4
|
"description": "COSX Design System 3.0 \u2014 tokens, Tailwind v4 theme and React components",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"registry": "https://registry.npmjs.org/"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
|
-
"typecheck": "tsc --noEmit",
|
|
34
|
+
"typecheck": "tsc --noEmit && tsc -p tsconfig.consumer.json",
|
|
35
35
|
"test": "vitest run",
|
|
36
36
|
"check:css": "tailwindcss -i test/fixture.css -o test/out.css",
|
|
37
37
|
"playground": "vite --config playground/vite.config.ts"
|
|
@@ -454,7 +454,7 @@ export function ActionBar({ presentation, hidden: hiddenProp, maxActions = 6, la
|
|
|
454
454
|
|
|
455
455
|
const onToolbarKey = (e: ReactKeyboardEvent<HTMLDivElement>) => {
|
|
456
456
|
if (e.key !== 'ArrowLeft' && e.key !== 'ArrowRight' && e.key !== 'Home' && e.key !== 'End') return;
|
|
457
|
-
const buttons =
|
|
457
|
+
const buttons = Array.from(bar.current?.querySelectorAll<HTMLButtonElement>('button:not([disabled])') ?? []);
|
|
458
458
|
const i = buttons.indexOf(document.activeElement as HTMLButtonElement);
|
|
459
459
|
if (i < 0) return;
|
|
460
460
|
e.preventDefault();
|