@primer/react 0.0.0-20260305032343 → 0.0.0-20260305033200
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 +1 -1
- package/dist/TooltipV2/Tooltip.js +2 -2
- package/generated/components.json +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -83,7 +83,7 @@ const Tooltip = /*#__PURE__*/React.forwardRef(({
|
|
|
83
83
|
children,
|
|
84
84
|
id,
|
|
85
85
|
className,
|
|
86
|
-
keybindingHint,
|
|
86
|
+
keybindingHint = [],
|
|
87
87
|
delay = 'short',
|
|
88
88
|
_privateDisableTooltip = false,
|
|
89
89
|
...rest
|
|
@@ -198,7 +198,7 @@ const Tooltip = /*#__PURE__*/React.forwardRef(({
|
|
|
198
198
|
const hasAriaLabel = 'aria-label' in rest;
|
|
199
199
|
|
|
200
200
|
// Normalize keybindingHint to an array for uniform rendering
|
|
201
|
-
const keybindingHints =
|
|
201
|
+
const keybindingHints = Array.isArray(keybindingHint) ? keybindingHint : [keybindingHint];
|
|
202
202
|
return /*#__PURE__*/jsx(TooltipContext.Provider, {
|
|
203
203
|
value: value,
|
|
204
204
|
children: /*#__PURE__*/jsxs(Fragment, {
|
|
@@ -2043,8 +2043,8 @@
|
|
|
2043
2043
|
},
|
|
2044
2044
|
{
|
|
2045
2045
|
"name": "keybindingHint",
|
|
2046
|
-
"type": "string",
|
|
2047
|
-
"description": "Optional keybinding hint to show in the tooltip for this button. See the `KeybindingHint` component documentation for the correct format
|
|
2046
|
+
"type": "string | string[]",
|
|
2047
|
+
"description": "Optional keybinding hint to show in the tooltip for this button. Pass a string for a single shortcut or an array of strings to show multiple shortcuts joined with \"or\". See the `KeybindingHint` component documentation for the correct format. Has no effect if tooltip is overridden or disabled. Does **not** bind any keybindings for this button - this is only for visual hints."
|
|
2048
2048
|
},
|
|
2049
2049
|
{
|
|
2050
2050
|
"name": "tooltipDirection",
|
|
@@ -8298,8 +8298,8 @@
|
|
|
8298
8298
|
},
|
|
8299
8299
|
{
|
|
8300
8300
|
"name": "keybindingHint",
|
|
8301
|
-
"type": "string",
|
|
8302
|
-
"description": "Optional keybinding hint to indicate the availability of a keyboard shortcut. Supported syntax is described in the docs for the `KeybindingHint` component."
|
|
8301
|
+
"type": "string | string[]",
|
|
8302
|
+
"description": "Optional keybinding hint to indicate the availability of a keyboard shortcut. Pass a string for a single shortcut or an array of strings to show multiple shortcuts joined with \"or\". Supported syntax is described in the docs for the `KeybindingHint` component."
|
|
8303
8303
|
},
|
|
8304
8304
|
{
|
|
8305
8305
|
"name": "delay",
|
package/package.json
CHANGED