@star-insure/sdk 6.0.10 → 6.0.11

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/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": "6.0.10",
5
+ "version": "6.0.11",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -56,7 +56,7 @@ export default function Pagination({ meta, className, showPerPageSelector = fals
56
56
  <svg xmlns="http://www.w3.org/2000/svg" className="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth="2">
57
57
  <path strokeLinecap="round" strokeLinejoin="round" d="M10 19l-7-7m0 0l7-7m-7 7h18" />
58
58
  </svg>
59
- Prev
59
+ Previous
60
60
  </Link>
61
61
  <div className="flex gap-6 items-center">
62
62
  <p>Page {current_page} of {page_count}</p>
@@ -3,13 +3,16 @@ import { Tooltip } from 'react-tooltip';
3
3
  import { Link, router } from "@inertiajs/react";
4
4
  import { TPageHeaderAction } from "../../types";
5
5
  import {useClickOutside} from "../../lib";
6
-
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();
11
- const className =
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';
6
+ import { default as cn } from 'classnames';
7
+
8
+ export default function Action({ title, href, as = 'Link', target = '_self', type, onClick = () => {}, shortcutKey, backgroundColor, hoverBackgroundColor, textColor, hoverTextColor, actions }: TPageHeaderAction) {
9
+ const className = cn('rounded-full font-bold px-4 py-1.5 text-sm whitespace-nowrap hover:border-gray-400 transition-colors border border-gray-300', {
10
+ 'bg-white': !backgroundColor,
11
+ [`bg-${backgroundColor}`]: !!backgroundColor,
12
+ [`text-${textColor}`]: !!textColor,
13
+ 'hover:bg-gray-100': !hoverBackgroundColor,
14
+ [`hover:bg-${hoverBackgroundColor}`]: !!hoverBackgroundColor,
15
+ });
13
16
 
14
17
  const tooltipId = `action-${title}`;
15
18
  const tooltipContent = shortcutKey ? `Ctrl + ${shortcutKey}` : undefined;
@@ -34,6 +34,8 @@ export type TPageHeaderAction = {
34
34
  shortcutKey?: string;
35
35
  backgroundColor?: string;
36
36
  textColor?: string;
37
+ hoverBackgroundColor?: string;
38
+ hoverTextColor?: string;
37
39
  actions?: TPageHeaderInnerAction[];
38
40
  };
39
41
 
@@ -86,6 +86,8 @@ export interface QuoteRequest {
86
86
  agent_firm_id?: QuoteRequestUserGroup['id'];
87
87
  broker_firm_id?: QuoteRequestUserGroup['id'];
88
88
  broker_id?: QuoteRequestUser['id'];
89
+ dealer_firm_id?: QuoteRequestUserGroup['id'];
90
+ dealer_id?: QuoteRequestUser['id'];
89
91
  club_id?: Club['id'];
90
92
  lead_id?: Lead['id'];
91
93
  blacklist_entry_id?: BlacklistEntry['id'];