@lax-wp/design-system 0.3.38 → 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.
@@ -100,8 +100,6 @@ export type TBaseInputFieldProps = any & {
100
100
  isRiskAnalysisOpen?: boolean;
101
101
  /** Custom risk details card component */
102
102
  RiskDetailsCard?: React.ComponentType<RiskDetailsCardProps>;
103
- /** AI extracted indicator component */
104
- AIExtractedIndicator?: React.ComponentType;
105
103
  /** Required indicator component */
106
104
  RequiredIndicator?: React.ComponentType<{
107
105
  isConditional?: boolean;
@@ -110,8 +110,6 @@ export interface SelectFieldProps extends Omit<SelectProps, 'onChange'> {
110
110
  isRiskAnalysisOpen?: boolean;
111
111
  /** Custom risk details card component */
112
112
  RiskDetailsCard?: React.ComponentType<RiskDetailsCardProps>;
113
- /** AI extracted indicator component */
114
- AIExtractedIndicator?: React.ComponentType;
115
113
  /** Required indicator component */
116
114
  RequiredIndicator?: React.ComponentType;
117
115
  /** Add to document icon component */
@@ -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,9 +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>;
81
- /** AI extracted indicator component */
82
- AIExtractedIndicator?: React.ComponentType;
80
+ RiskDetailsCard?: React.ComponentType<RiskDetailsCardProps<any>>;
83
81
  /** Required indicator component */
84
82
  RequiredIndicator?: React.ComponentType<{
85
83
  isConditional?: boolean;
@@ -1,12 +1,7 @@
1
1
  import { type ReactNode } from "react";
2
2
  import type { TToggleDirection } from "../../../constants/toggle";
3
- /**
4
- * Label type for tags
5
- */
6
- export type LabelType = {
7
- label: string;
8
- color?: string;
9
- };
3
+ import { type LabelType } from "../../data-display/label/Label";
4
+ export type { LabelType };
10
5
  /**
11
6
  * Props for the Toggle component
12
7
  */
@@ -0,0 +1,7 @@
1
+ import { type TooltipPlacement } from "../tooltip/Tooltip";
2
+ type TProps = {
3
+ position?: TooltipPlacement;
4
+ title?: string;
5
+ };
6
+ export declare const AIExtractedIndicator: ({ position, title, }: TProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ import { type FC, type SVGAttributes } from 'react';
2
+ type TProps = SVGAttributes<SVGElement> & {
3
+ size?: number;
4
+ fill?: string;
5
+ fillSecondary?: string;
6
+ };
7
+ export declare const AIStarIcon: FC<TProps>;
8
+ export {};