@cashub/ui 0.9.5 → 0.9.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.
@@ -87,7 +87,7 @@ var DropdownContent = function DropdownContent(_ref) {
87
87
  }));
88
88
  };
89
89
 
90
- var Wrapper = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n visibility: ", ";\n min-width: 160px;\n max-width: 320px;\n border: 1px solid var(--border-color);\n color: var(--font-on-background);\n background: var(--color-background2);\n box-shadow: var(--box-shadow);\n border-radius: var(--border-radius);\n padding: var(--spacing-s) 0;\n z-index: 20;\n margin: 0 !important;\n max-height: min(320px, ((50vh - 36px) - 20px) - 36px);\n overflow-y: auto;\n overflow-x: visible;\n\n ", "\n"])), function (_ref2) {
90
+ var Wrapper = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n visibility: ", ";\n min-width: 160px;\n max-width: 320px;\n border: 1px solid var(--border-color);\n color: var(--font-on-background);\n background: var(--color-background2);\n box-shadow: var(--box-shadow);\n border-radius: var(--border-radius);\n padding: var(--spacing-s) 0;\n z-index: 20;\n margin: 0 !important;\n max-height: min(320px, ((50vh - 36px) - 20px) - 36px);\n overflow-y: auto;\n overflow-x: hidden;\n\n ", "\n"])), function (_ref2) {
91
91
  var $display = _ref2.$display;
92
92
  return $display === true ? 'visible' : 'hidden';
93
93
  }, _scrollbar.default);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cashub/ui",
3
- "version": "0.9.5",
3
+ "version": "0.9.7",
4
4
  "private": false,
5
5
  "author": "CASHUB Team",
6
6
  "description": "CASHUB UI components library",
package/table/Table.js CHANGED
@@ -119,15 +119,17 @@ var Table = function Table(_ref) {
119
119
  event.target.id = id;
120
120
  }
121
121
 
122
- var containerLength = event.target.offsetWidth;
123
- var textLength = event.target.scrollWidth;
122
+ var _event$target = event.target,
123
+ offsetWidth = _event$target.offsetWidth,
124
+ scrollWidth = _event$target.scrollWidth,
125
+ innerText = _event$target.innerText;
124
126
 
125
- if (textLength >= containerLength) {
127
+ if (scrollWidth >= offsetWidth && innerText) {
126
128
  event.stopPropagation();
127
129
  (0, _Popover.default)({
128
130
  id: id,
129
131
  target: event.target,
130
- content: event.target.innerText,
132
+ content: innerText,
131
133
  boundary: tableRef.current
132
134
  });
133
135
  }
package/wizard/Wizard.js CHANGED
@@ -155,6 +155,7 @@ var Wizard = function Wizard(props) {
155
155
  var className = index + 1 === currentStep && 'active';
156
156
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(Step, {
157
157
  className: className,
158
+ "data-testid": "step",
158
159
  children: (0, _utils.isReactComponent)(child) ? /*#__PURE__*/(0, _react.cloneElement)(child, api) : child
159
160
  });
160
161
  });