@lax-wp/design-system 0.3.53 → 0.3.55
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.
|
@@ -88,6 +88,8 @@ export interface PercentageInputFieldProps {
|
|
|
88
88
|
RiskDetailsCard?: React.ComponentType<RiskDetailsCardProps<any>>;
|
|
89
89
|
/** Translation function */
|
|
90
90
|
t?: (key: string) => string;
|
|
91
|
+
/** Input placeholder */
|
|
92
|
+
placeholder?: string;
|
|
91
93
|
}
|
|
92
94
|
/**
|
|
93
95
|
* A highly customizable percentage input component with label, validation, and styling support.
|
|
@@ -29,10 +29,10 @@ export interface RiskDetails {
|
|
|
29
29
|
[key: string]: any;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
|
-
* Risk details card component props
|
|
32
|
+
* Risk details card component props - generic to allow consumer-specific risk types
|
|
33
33
|
*/
|
|
34
|
-
export interface RiskDetailsCardProps {
|
|
35
|
-
riskDetails:
|
|
34
|
+
export interface RiskDetailsCardProps<T = any> {
|
|
35
|
+
riskDetails: T;
|
|
36
36
|
maxWidth?: string;
|
|
37
37
|
showAllRisksSuggestions?: boolean;
|
|
38
38
|
}
|
|
@@ -77,7 +77,10 @@ export interface SelectFieldProps extends Omit<SelectProps, 'onChange'> {
|
|
|
77
77
|
/** GTN name for the field */
|
|
78
78
|
gtnName?: any;
|
|
79
79
|
/** Handler for adding GTN to document */
|
|
80
|
-
|
|
80
|
+
onAddGTNToDocument?: (keyValuePair: {
|
|
81
|
+
key: string;
|
|
82
|
+
value: string;
|
|
83
|
+
}) => void;
|
|
81
84
|
/** Whether the field is hovered */
|
|
82
85
|
isHovered?: boolean;
|
|
83
86
|
/** Whether to enable filter option */
|
|
@@ -109,7 +112,7 @@ export interface SelectFieldProps extends Omit<SelectProps, 'onChange'> {
|
|
|
109
112
|
/** Whether risk analysis is open */
|
|
110
113
|
isRiskAnalysisOpen?: boolean;
|
|
111
114
|
/** Custom risk details card component */
|
|
112
|
-
RiskDetailsCard?: React.ComponentType<RiskDetailsCardProps
|
|
115
|
+
RiskDetailsCard?: React.ComponentType<RiskDetailsCardProps<any>>;
|
|
113
116
|
/** Add to document icon component */
|
|
114
117
|
AddToDocumentIcon?: React.ComponentType<{
|
|
115
118
|
fontSize?: number;
|
|
@@ -126,6 +129,8 @@ export interface SelectFieldProps extends Omit<SelectProps, 'onChange'> {
|
|
|
126
129
|
enablePopper: boolean;
|
|
127
130
|
userId: string;
|
|
128
131
|
}>;
|
|
132
|
+
/** Whether the required indicator shows as conditional (yellow instead of red) */
|
|
133
|
+
isRequiredConditional?: boolean;
|
|
129
134
|
/** Translation function */
|
|
130
135
|
t?: (key: string) => string;
|
|
131
136
|
}
|