@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.
@@ -27,6 +27,8 @@ export declare type TPageHeaderAction = {
27
27
  type?: 'button' | 'submit';
28
28
  hidden?: boolean;
29
29
  shortcutKey?: string;
30
+ backgroundColor?: string;
31
+ textColor?: string;
30
32
  actions?: TPageHeaderInnerAction[];
31
33
  };
32
34
  export declare type TPageHeaderInnerAction = {
@@ -89,6 +89,8 @@ export interface QuoteRequest {
89
89
  agent_firm?: QuoteRequestUserGroup;
90
90
  broker?: QuoteRequestUser;
91
91
  broker_firm?: QuoteRequestUserGroup;
92
+ dealer?: QuoteRequestUser;
93
+ dealer_firm?: QuoteRequestUserGroup;
92
94
  club?: Club;
93
95
  lead?: Lead;
94
96
  vehicles?: QuoteRequestVehicle[];
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@star-insure/sdk",
3
3
  "description": "The SDK for Star Insure client apps with shared helper functions and TypeScript definitions.",
4
4
  "author": "alexclark_nz",
5
- "version": "5.0.6",
5
+ "version": "5.0.8",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -4,9 +4,12 @@ import { Link, router } from "@inertiajs/react";
4
4
  import { TPageHeaderAction } from "../../types";
5
5
  import {useClickOutside} from "../../lib";
6
6
 
7
- export default function Action({ title, href, as = 'Link', target = '_self', type, onClick = () => {}, shortcutKey, actions }: TPageHeaderAction) {
7
+ export default function Action({ title, href, as = 'Link', target = '_self', type, onClick = () => {}, shortcutKey, backgroundColor, textColor, actions }: TPageHeaderAction) {
8
+ const backgroundColorClass = backgroundColor ? `bg-${backgroundColor}` : 'bg-white';
9
+ const textColorClass = textColor ? `text-${textColor}` : '';
10
+ const colorClass = (`${backgroundColorClass} ${textColorClass}`).trim();
8
11
  const className =
9
- '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';
12
+ 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';
10
13
 
11
14
  const tooltipId = `action-${title}`;
12
15
  const tooltipContent = shortcutKey ? `Ctrl + ${shortcutKey}` : undefined;
@@ -102,7 +102,7 @@ export default function SearchBar({ search, active, onActive, placeholder, focus
102
102
  id="search"
103
103
  value={query}
104
104
  onChange={(e) => setQuery(e.currentTarget.value || '')}
105
- className="!focus:border-0 !border-0 !bg-transparent !shadow-none !ring-opacity-0 !transition-none placeholder:text-gray-400 !py-1.5 text-sm"
105
+ 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"
106
106
  autoFocus
107
107
  placeholder={placeholder}
108
108
  />
package/src/theme.css CHANGED
@@ -52,3 +52,8 @@
52
52
  --warning-color: 250 204 21;
53
53
  --info-color: 96 165 250;
54
54
  }
55
+
56
+ .no-focus-shadow:focus {
57
+ outline: none !important;
58
+ box-shadow: none !important;
59
+ }
@@ -32,6 +32,8 @@ export type TPageHeaderAction = {
32
32
  type?: 'button' | 'submit';
33
33
  hidden?: boolean;
34
34
  shortcutKey?: string;
35
+ backgroundColor?: string;
36
+ textColor?: string;
35
37
  actions?: TPageHeaderInnerAction[];
36
38
  };
37
39
 
@@ -102,6 +102,8 @@ export interface QuoteRequest {
102
102
  agent_firm?: QuoteRequestUserGroup;
103
103
  broker?: QuoteRequestUser;
104
104
  broker_firm?: QuoteRequestUserGroup;
105
+ dealer?: QuoteRequestUser;
106
+ dealer_firm?: QuoteRequestUserGroup;
105
107
  club?: Club;
106
108
  lead?: Lead;
107
109
  vehicles?: QuoteRequestVehicle[];