@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 CHANGED
@@ -76,7 +76,7 @@ var tooltip = (0, import_blocks.defineBlock)("BHT__Tooltip", {
76
76
  focusVisible: {
77
77
  outlineWidth: 3,
78
78
  outlineStyle: "solid",
79
- outlineColor: color.secondary,
79
+ outlineColor: color.primary,
80
80
  outlineOffset: 2
81
81
  }
82
82
  },
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-secondary, #615b71);
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
@@ -40,7 +40,7 @@ var tooltip = defineBlock("BHT__Tooltip", {
40
40
  focusVisible: {
41
41
  outlineWidth: 3,
42
42
  outlineStyle: "solid",
43
- outlineColor: color.secondary,
43
+ outlineColor: color.primary,
44
44
  outlineOffset: 2
45
45
  }
46
46
  },
@@ -53,7 +53,7 @@ var __bht0_light = __bhtStyleSheet.create({
53
53
  "__disabledTrigger:focusVisible": {
54
54
  outlineWidth: 3,
55
55
  outlineStyle: "solid",
56
- outlineColor: "#615b71",
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: "#cbc3dc",
85
+ outlineColor: "#cebdfe",
86
86
  outlineOffset: 2
87
87
  }
88
88
  });
package/docs.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://github.com/behivetech/bht-component-registry/docs.schema.json",
3
3
  "version": 2,
4
- "generatedAt": "2026-11-26T05:23:46.091Z",
4
+ "generatedAt": "2026-11-30T23:21:13.924Z",
5
5
  "docs": [
6
6
  {
7
7
  "displayName": "Tooltip",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@behivetech/atoms.tooltip",
3
- "version": "1.1.0",
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.1.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/blocks.builder": "0.1.0",
56
- "@behivetech/blocks.native-test": "0.0.1",
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.2.17",
59
- "@types/react-dom": "19.2.3",
59
+ "@types/react": "19.3.3",
60
+ "@types/react-dom": "19.3.0",
60
61
  "eslint": "^9.39.5",
61
- "react": "19.2.8",
62
- "react-dom": "19.2.8",
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
@@ -38,7 +38,7 @@
38
38
  .BHT__Tooltip__disabled-trigger:focus-visible {
39
39
  outline-width: 3px;
40
40
  outline-style: solid;
41
- outline-color: var(--md-sys-color-secondary, #615b71);
41
+ outline-color: var(--md-sys-color-primary, #64558f);
42
42
  outline-offset: 2px;
43
43
  }
44
44
 
@@ -36,7 +36,7 @@ const __bht0_light = __bhtStyleSheet.create({
36
36
  "__disabledTrigger:focusVisible": {
37
37
  outlineWidth: 3,
38
38
  outlineStyle: "solid",
39
- outlineColor: "#615b71",
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: "#cbc3dc",
68
+ outlineColor: "#cebdfe",
69
69
  outlineOffset: 2,
70
70
  },
71
71
  });
package/tooltip.block.ts CHANGED
@@ -35,7 +35,7 @@ export const tooltip = defineBlock("BHT__Tooltip", {
35
35
  focusVisible: {
36
36
  outlineWidth: 3,
37
37
  outlineStyle: "solid",
38
- outlineColor: color.secondary,
38
+ outlineColor: color.primary,
39
39
  outlineOffset: 2,
40
40
  },
41
41
  },
@@ -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
- <button type="button">Rect</button>
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
- <button type="button">Top</button>
13
+ <Button variant="secondary">Top</Button>
13
14
  </Tooltip>
14
15
  <Tooltip label="To the right" side="right">
15
- <button type="button">Right</button>
16
+ <Button variant="secondary">Right</Button>
16
17
  </Tooltip>
17
18
  <Tooltip label="Below" side="bottom">
18
- <button type="button">Bottom</button>
19
+ <Button variant="secondary">Bottom</Button>
19
20
  </Tooltip>
20
21
  <Tooltip label="To the left" side="left">
21
- <button type="button">Left</button>
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
- <button type="button" disabled>
30
+ <Button variant="secondary" disabled>
30
31
  Road
31
- </button>
32
+ </Button>
32
33
  </Tooltip>
33
34
  );