@star-insure/sdk 5.0.7 → 5.0.8

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/sdk.esm.js CHANGED
@@ -2616,9 +2616,14 @@ function Action(_ref) {
2616
2616
  _ref$onClick = _ref.onClick,
2617
2617
  _onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
2618
2618
  shortcutKey = _ref.shortcutKey,
2619
+ backgroundColor = _ref.backgroundColor,
2620
+ textColor = _ref.textColor,
2619
2621
  actions = _ref.actions;
2620
2622
 
2621
- var className = 'bg-white rounded-full font-bold px-4 py-1.5 text-sm whitespace-nowrap hover:bg-gray-100 hover:border-gray-400 transition-colors border border-gray-300';
2623
+ var backgroundColorClass = backgroundColor ? "bg-" + backgroundColor : 'bg-white';
2624
+ var textColorClass = textColor ? "text-" + textColor : '';
2625
+ var colorClass = (backgroundColorClass + " " + textColorClass).trim();
2626
+ var className = colorClass + ' rounded-full font-bold px-4 py-1.5 text-sm whitespace-nowrap hover:bg-gray-100 hover:border-gray-400 transition-colors border border-gray-300';
2622
2627
  var tooltipId = "action-" + title;
2623
2628
  var tooltipContent = shortcutKey ? "Ctrl + " + shortcutKey : undefined;
2624
2629
  var actionButtonRef = React__default.useRef(null);