@star-insure/sdk 5.0.6 → 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
@@ -2586,7 +2586,7 @@ function SearchBar(_ref) {
2586
2586
  onChange: function onChange(e) {
2587
2587
  return setQuery(e.currentTarget.value || '');
2588
2588
  },
2589
- className: "!focus:border-0 !border-0 !bg-transparent !shadow-none !ring-opacity-0 !transition-none placeholder:text-gray-400 !py-1.5 text-sm",
2589
+ className: "no-focus-shadow !focus:border-0 !border-0 !bg-transparent !shadow-none !ring-opacity-0 !transition-none placeholder:text-gray-400 !py-1.5 text-sm",
2590
2590
  autoFocus: true,
2591
2591
  placeholder: placeholder
2592
2592
  }), query && React__default.createElement("button", {
@@ -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);