@spaced-out/ui-design-system 0.4.3 → 0.4.4
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
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.4.4](https://github.com/spaced-out/ui-design-system/compare/v0.4.3...v0.4.4) (2025-07-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* [FE-1325] tooltip child ref ([#373](https://github.com/spaced-out/ui-design-system/issues/373)) ([2997cf1](https://github.com/spaced-out/ui-design-system/commit/2997cf1523c7386b7248d6c97fea1285ce5ab1a6))
|
|
11
|
+
|
|
5
12
|
### [0.4.3](https://github.com/spaced-out/ui-design-system/compare/v0.4.2...v0.4.3) (2025-07-18)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -83,11 +83,11 @@ const Tooltip = _ref => {
|
|
|
83
83
|
role: 'tooltip'
|
|
84
84
|
}), (0, _react2.useDismiss)(context)]);
|
|
85
85
|
|
|
86
|
-
// Note(Nishant) Preserve the consumer's ref
|
|
87
|
-
const
|
|
86
|
+
// Note(Nishant): Preserve the consumer's ref (React 19 safe)
|
|
87
|
+
const mergedRef = (0, _react2.useMergeRefs)([refs.setReference, children.ref ?? null]);
|
|
88
88
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.cloneElement(children, getReferenceProps({
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
...children.props,
|
|
90
|
+
ref: mergedRef
|
|
91
91
|
})), isOpen && /*#__PURE__*/React.createElement(_react2.FloatingPortal, null, /*#__PURE__*/React.createElement(React.Fragment, null, !hidden && /*#__PURE__*/React.createElement("div", _extends({
|
|
92
92
|
ref: refs.setFloating,
|
|
93
93
|
className: (0, _classify.classify)(_TooltipModule.default.tooltip, classNames?.tooltip),
|
|
@@ -146,16 +146,16 @@ export const Tooltip = ({
|
|
|
146
146
|
useDismiss(context),
|
|
147
147
|
]);
|
|
148
148
|
|
|
149
|
-
// Note(Nishant) Preserve the consumer's ref
|
|
150
|
-
const
|
|
149
|
+
// Note(Nishant): Preserve the consumer's ref (React 19 safe)
|
|
150
|
+
const mergedRef = useMergeRefs([refs.setReference, children.ref ?? null]);
|
|
151
151
|
|
|
152
152
|
return (
|
|
153
153
|
<>
|
|
154
154
|
{React.cloneElement(
|
|
155
155
|
children,
|
|
156
156
|
getReferenceProps({
|
|
157
|
-
ref,
|
|
158
157
|
...children.props,
|
|
158
|
+
ref: mergedRef,
|
|
159
159
|
}),
|
|
160
160
|
)}
|
|
161
161
|
|