@behivetech/atoms.tooltip 1.1.0 → 1.1.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/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/index.native.js +2 -2
- package/docs.json +1 -1
- package/package.json +9 -8
- package/tooltip.block.css +1 -1
- package/tooltip.block.native.ts +2 -2
- package/tooltip.block.ts +1 -1
- package/tooltip.example.tsx +8 -7
package/dist/index.cjs
CHANGED
package/dist/index.css
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
.BHT__Tooltip__disabled-trigger:focus-visible {
|
|
27
27
|
outline-width: 3px;
|
|
28
28
|
outline-style: solid;
|
|
29
|
-
outline-color: var(--md-sys-color-
|
|
29
|
+
outline-color: var(--md-sys-color-primary, #64558f);
|
|
30
30
|
outline-offset: 2px;
|
|
31
31
|
}
|
|
32
32
|
.BHT__Tooltip__disabled-trigger > * {
|
package/dist/index.js
CHANGED
package/dist/index.native.js
CHANGED
|
@@ -53,7 +53,7 @@ var __bht0_light = __bhtStyleSheet.create({
|
|
|
53
53
|
"__disabledTrigger:focusVisible": {
|
|
54
54
|
outlineWidth: 3,
|
|
55
55
|
outlineStyle: "solid",
|
|
56
|
-
outlineColor: "#
|
|
56
|
+
outlineColor: "#64558f",
|
|
57
57
|
outlineOffset: 2
|
|
58
58
|
}
|
|
59
59
|
});
|
|
@@ -82,7 +82,7 @@ var __bht0_dark = __bhtStyleSheet.create({
|
|
|
82
82
|
"__disabledTrigger:focusVisible": {
|
|
83
83
|
outlineWidth: 3,
|
|
84
84
|
outlineStyle: "solid",
|
|
85
|
-
outlineColor: "#
|
|
85
|
+
outlineColor: "#cebdfe",
|
|
86
86
|
outlineOffset: 2
|
|
87
87
|
}
|
|
88
88
|
});
|
package/docs.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@behivetech/atoms.tooltip",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Names a control on hover and on keyboard focus, built on [`@radix-ui/react-tooltip`](https://www.radix-ui.com/primitives/docs/components/tooltip).",
|
|
6
6
|
"type": "module",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"tags": []
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@behivetech/blocks.core": "0.
|
|
41
|
+
"@behivetech/blocks.core": "0.2.0",
|
|
42
42
|
"@radix-ui/react-tooltip": "^1.4.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
@@ -52,14 +52,15 @@
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@behivetech/
|
|
56
|
-
"@behivetech/blocks.
|
|
55
|
+
"@behivetech/atoms.button": "1.1.2",
|
|
56
|
+
"@behivetech/blocks.builder": "0.2.0",
|
|
57
|
+
"@behivetech/blocks.native-test": "0.0.3",
|
|
57
58
|
"@bht-component-registry/env": "0.3.0",
|
|
58
|
-
"@types/react": "19.
|
|
59
|
-
"@types/react-dom": "19.
|
|
59
|
+
"@types/react": "19.3.3",
|
|
60
|
+
"@types/react-dom": "19.3.0",
|
|
60
61
|
"eslint": "^9.39.5",
|
|
61
|
-
"react": "19.
|
|
62
|
-
"react-dom": "19.
|
|
62
|
+
"react": "19.3.1",
|
|
63
|
+
"react-dom": "19.3.1",
|
|
63
64
|
"tsup": "^8.5.1",
|
|
64
65
|
"typescript": "^6.0.3",
|
|
65
66
|
"vitest": "^4.1.10"
|
package/tooltip.block.css
CHANGED
package/tooltip.block.native.ts
CHANGED
|
@@ -36,7 +36,7 @@ const __bht0_light = __bhtStyleSheet.create({
|
|
|
36
36
|
"__disabledTrigger:focusVisible": {
|
|
37
37
|
outlineWidth: 3,
|
|
38
38
|
outlineStyle: "solid",
|
|
39
|
-
outlineColor: "#
|
|
39
|
+
outlineColor: "#64558f",
|
|
40
40
|
outlineOffset: 2,
|
|
41
41
|
},
|
|
42
42
|
});
|
|
@@ -65,7 +65,7 @@ const __bht0_dark = __bhtStyleSheet.create({
|
|
|
65
65
|
"__disabledTrigger:focusVisible": {
|
|
66
66
|
outlineWidth: 3,
|
|
67
67
|
outlineStyle: "solid",
|
|
68
|
-
outlineColor: "#
|
|
68
|
+
outlineColor: "#cebdfe",
|
|
69
69
|
outlineOffset: 2,
|
|
70
70
|
},
|
|
71
71
|
});
|
package/tooltip.block.ts
CHANGED
package/tooltip.example.tsx
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
|
+
import { Button } from "@behivetech/atoms.button";
|
|
1
2
|
import { Tooltip } from "./tooltip.js";
|
|
2
3
|
|
|
3
4
|
export const BasicTooltip = () => (
|
|
4
5
|
<Tooltip label="Rectangle">
|
|
5
|
-
<
|
|
6
|
+
<Button variant="secondary">Rect</Button>
|
|
6
7
|
</Tooltip>
|
|
7
8
|
);
|
|
8
9
|
|
|
9
10
|
export const TooltipSides = () => (
|
|
10
11
|
<div style={{ display: "flex", gap: "1.5rem", padding: "3rem" }}>
|
|
11
12
|
<Tooltip label="Above" side="top">
|
|
12
|
-
<
|
|
13
|
+
<Button variant="secondary">Top</Button>
|
|
13
14
|
</Tooltip>
|
|
14
15
|
<Tooltip label="To the right" side="right">
|
|
15
|
-
<
|
|
16
|
+
<Button variant="secondary">Right</Button>
|
|
16
17
|
</Tooltip>
|
|
17
18
|
<Tooltip label="Below" side="bottom">
|
|
18
|
-
<
|
|
19
|
+
<Button variant="secondary">Bottom</Button>
|
|
19
20
|
</Tooltip>
|
|
20
21
|
<Tooltip label="To the left" side="left">
|
|
21
|
-
<
|
|
22
|
+
<Button variant="secondary">Left</Button>
|
|
22
23
|
</Tooltip>
|
|
23
24
|
</div>
|
|
24
25
|
);
|
|
@@ -26,8 +27,8 @@ export const TooltipSides = () => (
|
|
|
26
27
|
/** The case a bare Radix tooltip cannot do — and the reason this is an atom. */
|
|
27
28
|
export const DisabledTrigger = () => (
|
|
28
29
|
<Tooltip label="You do not have permission to edit roads" side="right">
|
|
29
|
-
<
|
|
30
|
+
<Button variant="secondary" disabled>
|
|
30
31
|
Road
|
|
31
|
-
</
|
|
32
|
+
</Button>
|
|
32
33
|
</Tooltip>
|
|
33
34
|
);
|