@lax-wp/design-system 0.3.51 → 0.3.53

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.
@@ -13,10 +13,10 @@ export interface RiskDetails {
13
13
  [key: string]: any;
14
14
  }
15
15
  /**
16
- * Risk details card component props
16
+ * Risk details card component props - generic to allow consumer-specific risk types
17
17
  */
18
- export interface RiskDetailsCardProps {
19
- riskDetails: RiskDetails;
18
+ export interface RiskDetailsCardProps<T = any> {
19
+ riskDetails: T;
20
20
  maxWidth?: string;
21
21
  showAllRisksSuggestions?: boolean;
22
22
  }
@@ -79,7 +79,7 @@ export interface DateTimeFieldProps extends Omit<DatePickerProps, "onChange" | "
79
79
  /** Whether risk analysis is open */
80
80
  isRiskAnalysisOpen?: boolean;
81
81
  /** Custom risk details card component */
82
- RiskDetailsCard?: React.ComponentType<RiskDetailsCardProps>;
82
+ RiskDetailsCard?: React.ComponentType<RiskDetailsCardProps<any>>;
83
83
  /** Handler for adding GTN to document */
84
84
  onAddGTNToDocument?: (keyValuePair: {
85
85
  key: string;