@spaced-out/ui-design-system 0.4.2 → 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,20 @@
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
+
12
+ ### [0.4.3](https://github.com/spaced-out/ui-design-system/compare/v0.4.2...v0.4.3) (2025-07-18)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * truncated text ([#371](https://github.com/spaced-out/ui-design-system/issues/371)) ([8e22eb5](https://github.com/spaced-out/ui-design-system/commit/8e22eb58bce960798d4b758497324d4f6f21b46a))
18
+
5
19
  ### [0.4.2](https://github.com/spaced-out/ui-design-system/compare/v0.4.1...v0.4.2) (2025-07-18)
6
20
 
7
21
 
@@ -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 ref = (0, _react2.useMergeRefs)([refs.setReference, children.ref]);
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
- ref,
90
- ...children.props
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 ref = useMergeRefs([refs.setReference, children.ref]);
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
 
@@ -60,7 +60,9 @@ const TruncatedTextWithTooltip = _ref => {
60
60
  return /*#__PURE__*/React.createElement(_Tooltip.Tooltip, _extends({}, tooltip, {
61
61
  body: tooltip?.body || modifiedChild,
62
62
  elevation: tooltip?.elevation ?? 'toast'
63
- }), children);
63
+ }), /*#__PURE__*/React.createElement("div", {
64
+ className: _TruncatedTextWithTooltipModule.default.childrenWrapper
65
+ }, children));
64
66
  }
65
67
  }, /*#__PURE__*/React.createElement("span", {
66
68
  className: (0, _classify.default)(_TruncatedTextWithTooltipModule.default.truncateLineClamp, classNames?.wrapper),
@@ -87,7 +87,7 @@ export const TruncatedTextWithTooltip = ({
87
87
  body={tooltip?.body || modifiedChild}
88
88
  elevation={tooltip?.elevation ?? 'toast'}
89
89
  >
90
- {children}
90
+ <div className={css.childrenWrapper}>{children}</div>
91
91
  </Tooltip>
92
92
  );
93
93
  }}
@@ -2,3 +2,6 @@
2
2
  composes: truncate from '../../styles/typography.module.css';
3
3
  white-space: normal;
4
4
  }
5
+ .childrenWrapper {
6
+ display: flex;
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaced-out/ui-design-system",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "main": "index.js",
5
5
  "description": "Sense UI components library",
6
6
  "author": {