formica-ui-lib 1.0.296 → 1.0.298
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/dist/componentProps/atoms/input/inputProps.d.ts +3 -0
- package/dist/componentProps/organisms/forms/dynamicform/DynamicFormProps.d.ts +6 -0
- package/dist/componentProps/templates/admin/marketreadiness/MarketReadinessTemplateProps.d.ts +19 -2
- package/dist/index.cjs +9 -9
- package/dist/index.js +909 -816
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ export type DynamicFormFieldState = "neutral" | "valid" | "warning" | "error";
|
|
|
4
4
|
export type DynamicFormFieldValue = string | number | string[] | null;
|
|
5
5
|
export type DynamicFormDensity = "compact" | "comfortable";
|
|
6
6
|
export type DynamicFormSeverityDisplay = "icon" | "label" | "none";
|
|
7
|
+
export type DynamicFormFieldMessagePlacement = "inline" | "below-label";
|
|
7
8
|
export type DynamicFormFieldLayoutWidth = "full" | "half" | "third";
|
|
8
9
|
export type DynamicFormInformationLayout = "singleLine" | "multiline";
|
|
9
10
|
export interface DynamicFormFieldOption {
|
|
@@ -28,6 +29,9 @@ export interface DynamicFormFieldConfig {
|
|
|
28
29
|
message?: string;
|
|
29
30
|
helpText?: string;
|
|
30
31
|
readOnly?: boolean;
|
|
32
|
+
min?: number;
|
|
33
|
+
max?: number;
|
|
34
|
+
step?: number;
|
|
31
35
|
rows?: number;
|
|
32
36
|
layoutWidth?: DynamicFormFieldLayoutWidth;
|
|
33
37
|
informationLayout?: DynamicFormInformationLayout;
|
|
@@ -49,10 +53,12 @@ export interface DynamicFormSubmitPayload {
|
|
|
49
53
|
export interface DynamicFormProps {
|
|
50
54
|
title?: string;
|
|
51
55
|
description?: string;
|
|
56
|
+
headerAction?: React.ReactNode;
|
|
52
57
|
fields: DynamicFormFieldConfig[];
|
|
53
58
|
fieldGroups?: DynamicFormFieldGroup[];
|
|
54
59
|
density?: DynamicFormDensity;
|
|
55
60
|
severityDisplay?: DynamicFormSeverityDisplay;
|
|
61
|
+
fieldMessagePlacement?: DynamicFormFieldMessagePlacement;
|
|
56
62
|
submitLabel?: string;
|
|
57
63
|
cancelLabel?: string;
|
|
58
64
|
cancelDisabled?: boolean;
|
package/dist/componentProps/templates/admin/marketreadiness/MarketReadinessTemplateProps.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ export interface MarketReadinessLocalizationAvailability {
|
|
|
65
65
|
}
|
|
66
66
|
export interface MarketReadinessVariantOptionsProps {
|
|
67
67
|
title: string;
|
|
68
|
+
iconName: string;
|
|
68
69
|
dimension: MarketReadinessSkuVariantDimension;
|
|
69
70
|
options: MarketReadinessSkuVariantOption[];
|
|
70
71
|
selectedValue?: string;
|
|
@@ -225,8 +226,14 @@ export interface MarketReadinessNotice {
|
|
|
225
226
|
message: string;
|
|
226
227
|
actionLabel?: string;
|
|
227
228
|
}
|
|
229
|
+
export interface MarketReadinessLxImport {
|
|
230
|
+
state?: "idle" | "loading" | "error";
|
|
231
|
+
errorMessage?: string;
|
|
232
|
+
disabled?: boolean;
|
|
233
|
+
}
|
|
228
234
|
export interface MarketReadinessTemplateData {
|
|
229
235
|
mode?: "create" | "edit";
|
|
236
|
+
region?: string;
|
|
230
237
|
pageTitle: string;
|
|
231
238
|
pageDescription?: string;
|
|
232
239
|
activeTabId: MarketReadinessTabId;
|
|
@@ -239,6 +246,7 @@ export interface MarketReadinessTemplateData {
|
|
|
239
246
|
sampleEditor: MarketReadinessSampleEditor;
|
|
240
247
|
sampleGuide?: MarketReadinessSampleGuide;
|
|
241
248
|
notice?: MarketReadinessNotice;
|
|
249
|
+
lxImport?: MarketReadinessLxImport;
|
|
242
250
|
}
|
|
243
251
|
export interface MarketReadinessTabSelectPayload {
|
|
244
252
|
tabId: MarketReadinessTabId;
|
|
@@ -257,6 +265,10 @@ export interface MarketReadinessDecorActionPayload {
|
|
|
257
265
|
export interface MarketReadinessDecorDeletePayload {
|
|
258
266
|
decorId: string;
|
|
259
267
|
}
|
|
268
|
+
export interface MarketReadinessLxImportPayload {
|
|
269
|
+
decorId: string;
|
|
270
|
+
decorCode: string;
|
|
271
|
+
}
|
|
260
272
|
export interface MarketReadinessSkuSearchPayload {
|
|
261
273
|
value: string;
|
|
262
274
|
}
|
|
@@ -343,6 +355,7 @@ interface MarketReadinessTemplateCallbacks {
|
|
|
343
355
|
onDecorSave?: (payload: MarketReadinessDecorActionPayload) => void;
|
|
344
356
|
onDecorCancel?: (payload: MarketReadinessDecorActionPayload) => void;
|
|
345
357
|
onDeleteDecorClick?: (payload: MarketReadinessDecorDeletePayload) => void;
|
|
358
|
+
onLxImport?: (payload: MarketReadinessLxImportPayload) => void;
|
|
346
359
|
onSkuSearchChange?: (payload: MarketReadinessSkuSearchPayload) => void;
|
|
347
360
|
onSkuSelect?: (payload: MarketReadinessSkuSelectPayload) => void;
|
|
348
361
|
onAddSkuClick?: () => void;
|
|
@@ -375,7 +388,11 @@ interface MarketReadinessTemplateCallbacks {
|
|
|
375
388
|
onSampleDisableAll?: (payload: MarketReadinessSampleDisableAllPayload) => void;
|
|
376
389
|
onNoticeActionClick?: () => void;
|
|
377
390
|
}
|
|
378
|
-
|
|
391
|
+
interface MarketReadinessTemplateNavigationProps {
|
|
392
|
+
backLabel?: string;
|
|
393
|
+
onBackClick?: () => void;
|
|
394
|
+
}
|
|
395
|
+
export type MarketReadinessTemplateProps = MarketReadinessTemplateNavigationProps & ((MarketReadinessTemplateCallbacks & {
|
|
379
396
|
state?: "ready";
|
|
380
397
|
}) | {
|
|
381
398
|
state: "loading";
|
|
@@ -391,5 +408,5 @@ export type MarketReadinessTemplateProps = (MarketReadinessTemplateCallbacks & {
|
|
|
391
408
|
message: string;
|
|
392
409
|
actionLabel?: string;
|
|
393
410
|
onActionClick?: () => void;
|
|
394
|
-
};
|
|
411
|
+
});
|
|
395
412
|
export {};
|