formica-ui-lib 1.0.251 → 1.0.254
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/spinner/SpinnerProps.d.ts +5 -0
- package/dist/componentProps/molecules/cards/recommendednextstepcard/RecommendedNextStepCardProps.d.ts +1 -0
- 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/dataissues/AdminDataIssuesTemplateProps.d.ts +2 -0
- package/dist/componentProps/templates/admin/marketreadinesslanding/MarketReadinessLandingTemplateProps.d.ts +25 -0
- package/dist/componentProps/templates/admin/productguides/AdminProductGuidesTemplateProps.d.ts +55 -0
- package/dist/index.cjs +8 -8
- package/dist/index.d.ts +6 -1
- package/dist/index.js +2431 -2042
- package/dist/stories/atoms/spinner/Spinner.d.ts +4 -0
- package/dist/stories/templates/admin/productguides/AdminProductGuidesTemplate.d.ts +4 -0
- package/dist/tailwind.css +1 -1
- package/package.json +7 -7
|
@@ -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";
|
|
@@ -134,6 +134,8 @@ export interface AdminDataIssuesTemplateProps {
|
|
|
134
134
|
pageTitle: string;
|
|
135
135
|
pageDescription?: string;
|
|
136
136
|
lastScanLabel?: string;
|
|
137
|
+
recalculateLabel?: string;
|
|
138
|
+
recalculateStatus?: AdminDataIssuesOperationStatus;
|
|
137
139
|
updateCacheLabel?: string;
|
|
138
140
|
deleteAndRebuildLabel?: string;
|
|
139
141
|
changeProductDataLabel?: string;
|
|
@@ -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,55 @@
|
|
|
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 AdminProductGuideLogo {
|
|
14
|
+
src: string;
|
|
15
|
+
alt?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface AdminProductGuideCard {
|
|
18
|
+
id: string;
|
|
19
|
+
title: string;
|
|
20
|
+
description: string;
|
|
21
|
+
logo?: AdminProductGuideLogo;
|
|
22
|
+
availability?: AdminProductGuideAvailability;
|
|
23
|
+
availabilityMessage?: string;
|
|
24
|
+
selectedFile?: AdminProductGuideSelectedFile;
|
|
25
|
+
actionStatus?: AdminProductGuideActionStatus;
|
|
26
|
+
actionStatusMessage?: string;
|
|
27
|
+
validationIssues?: AdminProductGuideValidationIssue[];
|
|
28
|
+
uploadDisabled?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface AdminProductGuideFileSelectPayload {
|
|
31
|
+
guideId: string;
|
|
32
|
+
files: File[];
|
|
33
|
+
}
|
|
34
|
+
export interface AdminProductGuideActionPayload {
|
|
35
|
+
guideId: string;
|
|
36
|
+
}
|
|
37
|
+
export interface AdminProductGuidesTemplateProps {
|
|
38
|
+
pageTitle: string;
|
|
39
|
+
pageDescription?: string;
|
|
40
|
+
sideNavProps: AdminSideNavProps;
|
|
41
|
+
status?: AdminTemplateStatus;
|
|
42
|
+
guides: AdminProductGuideCard[];
|
|
43
|
+
emptyTitle?: string;
|
|
44
|
+
emptyDescription?: string;
|
|
45
|
+
uploadDropLabel?: string;
|
|
46
|
+
uploadBrowseLabel?: string;
|
|
47
|
+
uploadHelpText?: string;
|
|
48
|
+
uploadLabel?: string;
|
|
49
|
+
clearFileLabel?: string;
|
|
50
|
+
completeLabel?: string;
|
|
51
|
+
onGuideFileSelect?: (payload: AdminProductGuideFileSelectPayload) => void;
|
|
52
|
+
onUploadClick?: (payload: AdminProductGuideActionPayload) => void;
|
|
53
|
+
onClearSelectedFileClick?: (payload: AdminProductGuideActionPayload) => void;
|
|
54
|
+
onRetryClick?: () => void;
|
|
55
|
+
}
|