@monarkmarkets/marketplace 2.0.15 → 2.0.16
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/dist/index.esm.js +34 -23
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +34 -23
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -196,7 +196,7 @@ var TableRow$1 = /*#__PURE__*/memo(function (_a) {
|
|
|
196
196
|
});
|
|
197
197
|
};
|
|
198
198
|
var getButtonClassName = function () {
|
|
199
|
-
var baseClasses = "font-medium py-2 px-4 rounded-lg transition-all duration-300 disabled:opacity-50 disabled:cursor-not-allowed
|
|
199
|
+
var baseClasses = "font-medium py-2 px-4 rounded-lg transition-all duration-300 disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2 relative overflow-hidden box-border";
|
|
200
200
|
if (isInWatchlist && !isTogglingWatchlist) {
|
|
201
201
|
var hoverClasses = isMounted && !justToggled ? 'hover:text-white hover:border-red-500 group' : '';
|
|
202
202
|
return "".concat(baseClasses, " bg-white border-2 border-custom-blue text-custom-blue ").concat(hoverClasses);
|
|
@@ -250,23 +250,31 @@ var TableRow$1 = /*#__PURE__*/memo(function (_a) {
|
|
|
250
250
|
}), jsx("td", {
|
|
251
251
|
className: "py-4 px-4 border-b border-gray-100",
|
|
252
252
|
role: "cell",
|
|
253
|
-
children:
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
className: "absolute inset-0 bg-red-500 transition-transform duration-300 ease-out origin-left scale-x-0 group-hover:scale-x-100",
|
|
253
|
+
children: jsx("div", {
|
|
254
|
+
className: "flex justify-end",
|
|
255
|
+
children: jsxs("button", {
|
|
256
|
+
onClick: handleWatchlistToggle,
|
|
257
|
+
onMouseEnter: function () {
|
|
258
|
+
return setIsHovering(true);
|
|
259
|
+
},
|
|
260
|
+
onMouseLeave: function () {
|
|
261
|
+
return setIsHovering(false);
|
|
262
|
+
},
|
|
263
|
+
disabled: isWatchlistButtonDisabled,
|
|
264
|
+
className: getButtonClassName(),
|
|
266
265
|
style: {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
266
|
+
width: '165px',
|
|
267
|
+
minWidth: '165px',
|
|
268
|
+
maxWidth: '165px'
|
|
269
|
+
},
|
|
270
|
+
"aria-label": "".concat(isInWatchlist ? 'Remove from' : 'Add to', " watchlist for ").concat(safeName),
|
|
271
|
+
children: [isInWatchlist && !isTogglingWatchlist && !justToggled && isMounted && jsx("span", {
|
|
272
|
+
className: "absolute inset-0 bg-red-500 transition-transform duration-300 ease-out origin-left scale-x-0 group-hover:scale-x-100",
|
|
273
|
+
style: {
|
|
274
|
+
zIndex: 0
|
|
275
|
+
}
|
|
276
|
+
}), getButtonContent()]
|
|
277
|
+
})
|
|
270
278
|
})
|
|
271
279
|
})]
|
|
272
280
|
});
|
|
@@ -286,7 +294,7 @@ var TableHeaders = /*#__PURE__*/memo(function (_a) {
|
|
|
286
294
|
role: "row",
|
|
287
295
|
children: columns.map(function (column, index) {
|
|
288
296
|
return jsx("th", {
|
|
289
|
-
className: "py-3
|
|
297
|
+
className: "px-6 py-3 ".concat(index === columns.length - 1 ? 'text-right' : 'text-left', " text-xs font-semibold text-gray-900 uppercase tracking-wider ").concat(column.width || ''),
|
|
290
298
|
scope: "col",
|
|
291
299
|
role: "columnheader",
|
|
292
300
|
children: column.title
|
|
@@ -1247,11 +1255,14 @@ var TableRow = /*#__PURE__*/memo(function (_a) {
|
|
|
1247
1255
|
}), jsx("td", {
|
|
1248
1256
|
className: "py-4 px-4 border-b border-gray-100",
|
|
1249
1257
|
role: "cell",
|
|
1250
|
-
children: jsx("
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1258
|
+
children: jsx("div", {
|
|
1259
|
+
className: "flex justify-end",
|
|
1260
|
+
children: jsx("button", {
|
|
1261
|
+
onClick: handleButtonClick,
|
|
1262
|
+
className: "bg-custom-blue hover:bg-custom-blue-dark text-white font-medium py-2 px-4 rounded-lg shadow-md transition-all duration-200",
|
|
1263
|
+
"aria-label": "".concat(buttonText, " for ").concat(companyName),
|
|
1264
|
+
children: buttonText
|
|
1265
|
+
})
|
|
1255
1266
|
})
|
|
1256
1267
|
})]
|
|
1257
1268
|
});
|