@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 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 inline-flex items-center justify-center gap-2 min-w-[170px] relative overflow-hidden";
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: jsxs("button", {
254
- onClick: handleWatchlistToggle,
255
- onMouseEnter: function () {
256
- return setIsHovering(true);
257
- },
258
- onMouseLeave: function () {
259
- return setIsHovering(false);
260
- },
261
- disabled: isWatchlistButtonDisabled,
262
- className: getButtonClassName(),
263
- "aria-label": "".concat(isInWatchlist ? 'Remove from' : 'Add to', " watchlist for ").concat(safeName),
264
- children: [isInWatchlist && !isTogglingWatchlist && !justToggled && isMounted && jsx("span", {
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
- zIndex: 0
268
- }
269
- }), getButtonContent()]
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 px-4 text-left text-sm font-semibold text-gray-900 ".concat(column.width || ''),
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("button", {
1251
- onClick: handleButtonClick,
1252
- 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",
1253
- "aria-label": "".concat(buttonText, " for ").concat(companyName),
1254
- children: buttonText
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
  });