@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.
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { TPageHeaderAction } from "../../types";
3
- export default function Action({ title, href, as, target, type, onClick, shortcutKey, actions }: TPageHeaderAction): JSX.Element;
3
+ export default function Action({ title, href, as, target, type, onClick, shortcutKey, backgroundColor, textColor, actions }: TPageHeaderAction): JSX.Element;
@@ -2593,7 +2593,7 @@ function SearchBar(_ref) {
2593
2593
  onChange: function onChange(e) {
2594
2594
  return setQuery(e.currentTarget.value || '');
2595
2595
  },
2596
- className: "!focus:border-0 !border-0 !bg-transparent !shadow-none !ring-opacity-0 !transition-none placeholder:text-gray-400 !py-1.5 text-sm",
2596
+ 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",
2597
2597
  autoFocus: true,
2598
2598
  placeholder: placeholder
2599
2599
  }), query && React__default.createElement("button", {
@@ -2623,9 +2623,14 @@ function Action(_ref) {
2623
2623
  _ref$onClick = _ref.onClick,
2624
2624
  _onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
2625
2625
  shortcutKey = _ref.shortcutKey,
2626
+ backgroundColor = _ref.backgroundColor,
2627
+ textColor = _ref.textColor,
2626
2628
  actions = _ref.actions;
2627
2629
 
2628
- 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';
2630
+ var backgroundColorClass = backgroundColor ? "bg-" + backgroundColor : 'bg-white';
2631
+ var textColorClass = textColor ? "text-" + textColor : '';
2632
+ var colorClass = (backgroundColorClass + " " + textColorClass).trim();
2633
+ 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';
2629
2634
  var tooltipId = "action-" + title;
2630
2635
  var tooltipContent = shortcutKey ? "Ctrl + " + shortcutKey : undefined;
2631
2636
  var actionButtonRef = React__default.useRef(null);