@lax-wp/design-system 0.3.39 → 0.3.40

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.
@@ -11,10 +11,10 @@ export interface RiskDetails {
11
11
  [key: string]: any;
12
12
  }
13
13
  /**
14
- * Risk details card component props
14
+ * Risk details card component props - generic to allow consumer-specific risk types
15
15
  */
16
- export interface RiskDetailsCardProps {
17
- riskDetails: RiskDetails;
16
+ export interface RiskDetailsCardProps<T = any> {
17
+ riskDetails: T;
18
18
  maxWidth?: string;
19
19
  showAllRisksSuggestions?: boolean;
20
20
  }
@@ -77,7 +77,7 @@ export interface TextAreaFieldProps extends Omit<React.TextareaHTMLAttributes<HT
77
77
  /** Whether risk analysis is open */
78
78
  isRiskAnalysisOpen?: boolean;
79
79
  /** Custom risk details card component */
80
- RiskDetailsCard?: React.ComponentType<RiskDetailsCardProps>;
80
+ RiskDetailsCard?: React.ComponentType<RiskDetailsCardProps<any>>;
81
81
  /** Required indicator component */
82
82
  RequiredIndicator?: React.ComponentType<{
83
83
  isConditional?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lax-wp/design-system",
3
3
  "private": false,
4
- "version": "0.3.39",
4
+ "version": "0.3.40",
5
5
  "type": "module",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",