@qilin-agent/client-ui-primitives 3.1.6 → 3.1.7
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/lib/Tooltip.module.css +18 -3
- package/lib/index.js +2776 -1259
- package/lib/types/LinkIcon.d.ts +15 -30
- package/lib/types/Menu.d.ts +7 -2
- package/lib/types/PermissionIcon.d.ts +51 -0
- package/lib/types/ReferenceIcon.d.ts +12 -7
- package/lib/types/SiteGlyph.d.ts +1 -1
- package/lib/types/Tooltip.d.ts +26 -16
- package/lib/types/code-file-types.d.ts +1 -1
- package/lib/types/icons/index.d.ts +397 -216
- package/lib/types/icons/props.d.ts +1 -1
- package/lib/types/icons/shared-artwork.d.ts +43 -0
- package/lib/types/index.d.ts +3 -2
- package/lib/types/tooltip-placement.d.ts +35 -0
- package/package.json +3 -3
package/lib/Tooltip.module.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.bubble {
|
|
2
2
|
display: inline-flex;
|
|
3
|
-
align-items: center;
|
|
3
|
+
align-items: safe center;
|
|
4
4
|
gap: 8px;
|
|
5
5
|
position: fixed;
|
|
6
6
|
z-index: 100;
|
|
@@ -8,7 +8,10 @@
|
|
|
8
8
|
viewport edge, so anchors near the right edge would wrap early;
|
|
9
9
|
max-content sizes by the label alone, capped at half the viewport. */
|
|
10
10
|
width: max-content;
|
|
11
|
-
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
max-width: min(50vw, calc(100vw - 24px));
|
|
13
|
+
max-height: calc(100vh - 24px);
|
|
14
|
+
overflow: auto;
|
|
12
15
|
padding: 3px 7px;
|
|
13
16
|
border-radius: 8px;
|
|
14
17
|
background: var(--qilin-alias-tooltip-bg);
|
|
@@ -23,13 +26,15 @@
|
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
.bubble[data-portal] { z-index: 1100; }
|
|
29
|
+
.bubble[data-pinned] { pointer-events: auto; }
|
|
26
30
|
.label { min-width: 0; }
|
|
27
31
|
|
|
28
32
|
/* A 16px keycap centered beside a 20px label has 5px of vertical clearance. */
|
|
29
33
|
.bubble[data-has-shortcut] { padding-inline-end: 5px; }
|
|
30
34
|
.bubble[data-has-shortcut]:not(:has(.label)) { padding: 3px; }
|
|
31
35
|
|
|
32
|
-
.bubble[data-side='right']
|
|
36
|
+
.bubble[data-side='right'],
|
|
37
|
+
.bubble[data-side='left'] {
|
|
33
38
|
transform: translateY(-50%);
|
|
34
39
|
}
|
|
35
40
|
|
|
@@ -41,6 +46,16 @@
|
|
|
41
46
|
transform: translate(-50%, -100%);
|
|
42
47
|
}
|
|
43
48
|
|
|
49
|
+
/* End alignment: `left` carries the anchor's right edge, so the bubble sits
|
|
50
|
+
fully left of it instead of centering. */
|
|
51
|
+
.bubble[data-side='bottom'][data-align='end'] {
|
|
52
|
+
transform: translateX(-100%);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.bubble[data-side='top'][data-align='end'] {
|
|
56
|
+
transform: translate(-100%, -100%);
|
|
57
|
+
}
|
|
58
|
+
|
|
44
59
|
@keyframes tooltip-in {
|
|
45
60
|
from { opacity: 0; }
|
|
46
61
|
}
|