@inbeat/ui 0.11.0 → 0.11.2
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 +14 -0
- package/package.json +2 -2
- package/src/components/table.tsx +1 -1
- package/src/components/tooltip.tsx +16 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.11.2](https://github.com/Genoux/ib-toolkit/compare/ui-v0.11.1...ui-v0.11.2) (2026-10-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **ui:** open tooltips on keyboard focus only ([#56](https://github.com/Genoux/ib-toolkit/issues/56)) ([cee23e3](https://github.com/Genoux/ib-toolkit/commit/cee23e3d16012e27bc16ea19b8f6830a4a439e63))
|
|
9
|
+
|
|
10
|
+
## [0.11.1](https://github.com/Genoux/ib-toolkit/compare/ui-v0.11.0...ui-v0.11.1) (2026-10-08)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **ui:** reduce table row radius to lg ([#54](https://github.com/Genoux/ib-toolkit/issues/54)) ([597ef96](https://github.com/Genoux/ib-toolkit/commit/597ef96327be82c562c0e616920f1ec09f888032))
|
|
16
|
+
|
|
3
17
|
## [0.11.0](https://github.com/Genoux/ib-toolkit/compare/ui-v0.10.0...ui-v0.11.0) (2026-10-08)
|
|
4
18
|
|
|
5
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inbeat/ui",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.2",
|
|
4
4
|
"description": "inBeat design tokens and primitives (Radix + Tailwind v4), shipped as source",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@base-ui/react": "^1.2.0",
|
|
65
65
|
"@fontsource-variable/geist": "^5.3.0",
|
|
66
66
|
"@fontsource-variable/geist-mono": "^5.3.0",
|
|
67
|
-
"@inbeat/config": "^0.11.
|
|
67
|
+
"@inbeat/config": "^0.11.2",
|
|
68
68
|
"@storybook/addon-a11y": "^10.6.0",
|
|
69
69
|
"@storybook/addon-docs": "^10.6.0",
|
|
70
70
|
"@storybook/addon-themes": "^10.6.0",
|
package/src/components/table.tsx
CHANGED
|
@@ -14,7 +14,7 @@ function Table({ className, ...props }: React.ComponentProps<"table">) {
|
|
|
14
14
|
data-slot="table"
|
|
15
15
|
className={cn(
|
|
16
16
|
"w-full border-separate border-spacing-x-0 border-spacing-y-1.5 text-sm",
|
|
17
|
-
"[&_tbody_tr>td:first-child]:rounded-l-
|
|
17
|
+
"[&_tbody_tr>td:first-child]:rounded-l-lg [&_tbody_tr>td:last-child]:rounded-r-lg",
|
|
18
18
|
"[&_tbody_tr:hover>td]:bg-muted/50 [&_tbody_tr:focus-within>td]:bg-muted/50",
|
|
19
19
|
"[&_tbody_tr[data-state=selected]>td]:bg-muted",
|
|
20
20
|
"[&_tbody_tr>td]:transition-[background-color,color]",
|
|
@@ -22,8 +22,22 @@ function TooltipRoot({ ...props }: React.ComponentProps<typeof TooltipPrimitive.
|
|
|
22
22
|
return <TooltipPrimitive.Root data-slot="tooltip" {...props} />;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
function TooltipTrigger({
|
|
26
|
-
|
|
25
|
+
function TooltipTrigger({
|
|
26
|
+
onFocus,
|
|
27
|
+
...props
|
|
28
|
+
}: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {
|
|
29
|
+
return (
|
|
30
|
+
<TooltipPrimitive.Trigger
|
|
31
|
+
data-slot="tooltip-trigger"
|
|
32
|
+
// Radix opens on any focus, including the auto-focus a Dialog/Sheet gives its first
|
|
33
|
+
// button; preventDefault makes Radix skip opening unless the focus came from the keyboard.
|
|
34
|
+
onFocus={(event) => {
|
|
35
|
+
onFocus?.(event);
|
|
36
|
+
if (!event.currentTarget.matches(":focus-visible")) event.preventDefault();
|
|
37
|
+
}}
|
|
38
|
+
{...props}
|
|
39
|
+
/>
|
|
40
|
+
);
|
|
27
41
|
}
|
|
28
42
|
|
|
29
43
|
function TooltipContent({
|