formica-ui-lib 1.0.251 → 1.0.252
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/molecules/searchbar/SearchBarProps.d.ts +2 -0
- package/dist/componentProps/molecules/searchcombobox/SearchComboboxProps.d.ts +2 -0
- package/dist/componentProps/templates/admin/marketreadinesslanding/MarketReadinessLandingTemplateProps.d.ts +25 -0
- package/dist/componentProps/templates/admin/productguides/AdminProductGuidesTemplateProps.d.ts +72 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +4 -1
- package/dist/index.js +614 -218
- package/dist/stories/templates/admin/productguides/AdminProductGuidesTemplate.d.ts +4 -0
- package/dist/tailwind.css +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { InputProps } from "../../atoms/input/inputProps";
|
|
2
|
+
export type SearchBarControlSize = "compact" | "default";
|
|
2
3
|
export interface SearchBarSubmitPayload {
|
|
3
4
|
value: string;
|
|
4
5
|
}
|
|
5
6
|
export type SearchBarProps = Omit<InputProps, "type" | "leadingIcon" | "trailingIcon" | "clearable"> & {
|
|
7
|
+
controlSize?: SearchBarControlSize;
|
|
6
8
|
onSearchSubmit?: (payload: SearchBarSubmitPayload) => void;
|
|
7
9
|
};
|
|
@@ -29,8 +29,10 @@ export interface SearchComboboxProps {
|
|
|
29
29
|
disabled?: boolean;
|
|
30
30
|
readOnly?: boolean;
|
|
31
31
|
clearLabel?: string;
|
|
32
|
+
controlSize?: SearchBarControlSize;
|
|
32
33
|
onQueryChange?: (payload: SearchComboboxQueryChangePayload) => void;
|
|
33
34
|
onOptionSelect?: (payload: SearchComboboxSelectPayload) => void;
|
|
34
35
|
onSearchSubmit?: (payload: SearchComboboxSubmitPayload) => void;
|
|
35
36
|
onClear?: (payload: SearchComboboxClearPayload) => void;
|
|
36
37
|
}
|
|
38
|
+
import type { SearchBarControlSize } from "../searchbar/SearchBarProps";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AdminSideNavProps } from "../../../organisms/navigation/AdminSideNavProps";
|
|
2
|
+
import type { SearchComboboxOption, SearchComboboxSelectPayload } from "../../../molecules/searchcombobox/SearchComboboxProps";
|
|
2
3
|
export type MarketReadinessLandingStatus = "idle" | "checking" | "error";
|
|
3
4
|
export interface MarketReadinessSkuChangePayload {
|
|
4
5
|
value: string;
|
|
@@ -6,6 +7,10 @@ export interface MarketReadinessSkuChangePayload {
|
|
|
6
7
|
export interface MarketReadinessSkuActionPayload {
|
|
7
8
|
sku: string;
|
|
8
9
|
}
|
|
10
|
+
export interface MarketReadinessCopySkuActionPayload {
|
|
11
|
+
sourceSku: string;
|
|
12
|
+
newSku: string;
|
|
13
|
+
}
|
|
9
14
|
export interface MarketReadinessLandingTemplateProps {
|
|
10
15
|
pageTitle: string;
|
|
11
16
|
pageDescription?: string;
|
|
@@ -13,8 +18,10 @@ export interface MarketReadinessLandingTemplateProps {
|
|
|
13
18
|
getStartedTitle?: string;
|
|
14
19
|
getStartedDescription?: string;
|
|
15
20
|
skuValue: string;
|
|
21
|
+
skuOptions?: SearchComboboxOption[];
|
|
16
22
|
skuLabel?: string;
|
|
17
23
|
skuPlaceholder?: string;
|
|
24
|
+
skuEmptyMessage?: string;
|
|
18
25
|
skuHelpText?: string;
|
|
19
26
|
status: MarketReadinessLandingStatus;
|
|
20
27
|
statusMessage?: string;
|
|
@@ -25,9 +32,27 @@ export interface MarketReadinessLandingTemplateProps {
|
|
|
25
32
|
createNewLabel?: string;
|
|
26
33
|
createNewHelpText?: string;
|
|
27
34
|
createNewDisabled?: boolean;
|
|
35
|
+
copySkuTitle?: string;
|
|
36
|
+
copySkuDescription?: string;
|
|
37
|
+
sourceSkuValue: string;
|
|
38
|
+
sourceSkuOptions?: SearchComboboxOption[];
|
|
39
|
+
sourceSkuLabel?: string;
|
|
40
|
+
sourceSkuPlaceholder?: string;
|
|
41
|
+
sourceSkuEmptyMessage?: string;
|
|
42
|
+
newSkuValue: string;
|
|
43
|
+
newSkuLabel?: string;
|
|
44
|
+
newSkuPlaceholder?: string;
|
|
45
|
+
copySkuLabel?: string;
|
|
46
|
+
copySkuHelpText?: string;
|
|
47
|
+
copySkuDisabled?: boolean;
|
|
28
48
|
retryLabel?: string;
|
|
29
49
|
onSkuChange: (payload: MarketReadinessSkuChangePayload) => void;
|
|
50
|
+
onSkuOptionSelect?: (payload: SearchComboboxSelectPayload) => void;
|
|
30
51
|
onOpenExistingClick: (payload: MarketReadinessSkuActionPayload) => void;
|
|
31
52
|
onCreateNewClick: (payload: MarketReadinessSkuActionPayload) => void;
|
|
53
|
+
onSourceSkuChange: (payload: MarketReadinessSkuChangePayload) => void;
|
|
54
|
+
onSourceSkuOptionSelect?: (payload: SearchComboboxSelectPayload) => void;
|
|
55
|
+
onNewSkuChange: (payload: MarketReadinessSkuChangePayload) => void;
|
|
56
|
+
onCopySkuClick: (payload: MarketReadinessCopySkuActionPayload) => void;
|
|
32
57
|
onRetryClick?: () => void;
|
|
33
58
|
}
|
package/dist/componentProps/templates/admin/productguides/AdminProductGuidesTemplateProps.d.ts
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { AdminSideNavProps } from "../../../organisms/navigation/AdminSideNavProps";
|
|
2
|
+
import type { AdminTemplateStatus } from "../shared/AdminTemplateStatus";
|
|
3
|
+
export type AdminProductGuideActionStatus = "idle" | "validating" | "pending" | "success" | "error";
|
|
4
|
+
export type AdminProductGuideAvailability = "available" | "coming-soon";
|
|
5
|
+
export interface AdminProductGuideSelectedFile {
|
|
6
|
+
name: string;
|
|
7
|
+
sizeLabel?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface AdminProductGuideValidationIssue {
|
|
10
|
+
path: string;
|
|
11
|
+
message: string;
|
|
12
|
+
}
|
|
13
|
+
export interface AdminProductGuideSummary {
|
|
14
|
+
schemaVersion: number;
|
|
15
|
+
productCount: number;
|
|
16
|
+
offeringSetCount: number;
|
|
17
|
+
rangeProductCounts: Record<string, number>;
|
|
18
|
+
}
|
|
19
|
+
export interface AdminProductGuideStorage {
|
|
20
|
+
source: "bundled" | "runtime-upload";
|
|
21
|
+
durable: boolean;
|
|
22
|
+
updatedAt: string | null;
|
|
23
|
+
updatedBy: string | null;
|
|
24
|
+
}
|
|
25
|
+
export interface AdminProductGuideLogo {
|
|
26
|
+
src: string;
|
|
27
|
+
alt?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface AdminProductGuideCard {
|
|
30
|
+
id: string;
|
|
31
|
+
title: string;
|
|
32
|
+
description: string;
|
|
33
|
+
logo?: AdminProductGuideLogo;
|
|
34
|
+
availability?: AdminProductGuideAvailability;
|
|
35
|
+
availabilityMessage?: string;
|
|
36
|
+
edition?: string;
|
|
37
|
+
effectiveDate?: string;
|
|
38
|
+
sourceFileName?: string;
|
|
39
|
+
summary?: AdminProductGuideSummary;
|
|
40
|
+
storage?: AdminProductGuideStorage;
|
|
41
|
+
selectedFile?: AdminProductGuideSelectedFile;
|
|
42
|
+
actionStatus?: AdminProductGuideActionStatus;
|
|
43
|
+
actionStatusMessage?: string;
|
|
44
|
+
validationIssues?: AdminProductGuideValidationIssue[];
|
|
45
|
+
uploadDisabled?: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface AdminProductGuideFileSelectPayload {
|
|
48
|
+
guideId: string;
|
|
49
|
+
files: File[];
|
|
50
|
+
}
|
|
51
|
+
export interface AdminProductGuideActionPayload {
|
|
52
|
+
guideId: string;
|
|
53
|
+
}
|
|
54
|
+
export interface AdminProductGuidesTemplateProps {
|
|
55
|
+
pageTitle: string;
|
|
56
|
+
pageDescription?: string;
|
|
57
|
+
sideNavProps: AdminSideNavProps;
|
|
58
|
+
status?: AdminTemplateStatus;
|
|
59
|
+
guides: AdminProductGuideCard[];
|
|
60
|
+
emptyTitle?: string;
|
|
61
|
+
emptyDescription?: string;
|
|
62
|
+
uploadDropLabel?: string;
|
|
63
|
+
uploadBrowseLabel?: string;
|
|
64
|
+
uploadHelpText?: string;
|
|
65
|
+
uploadLabel?: string;
|
|
66
|
+
clearFileLabel?: string;
|
|
67
|
+
completeLabel?: string;
|
|
68
|
+
onGuideFileSelect?: (payload: AdminProductGuideFileSelectPayload) => void;
|
|
69
|
+
onUploadClick?: (payload: AdminProductGuideActionPayload) => void;
|
|
70
|
+
onClearSelectedFileClick?: (payload: AdminProductGuideActionPayload) => void;
|
|
71
|
+
onRetryClick?: () => void;
|
|
72
|
+
}
|