umwd-components 0.1.768 → 0.1.770
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/cjs/src/components/common/EnhancedTable/EnhancedTable.js +1 -1
- package/dist/cjs/src/components/common/EnhancedTable/EnhancedTableRow.js +1 -1
- package/dist/cjs/src/components/common/markdown/MarkdownDisplay.js +1 -1
- package/dist/cjs/src/components/common/markdown/MarkdownTextField.js +6 -0
- package/dist/cjs/src/components/page-builder/PBCategoryBlock.js +1 -2
- package/dist/cjs/src/components/page-builder/PageBuilder.js +1 -1
- package/dist/cjs/src/index.js +1 -1
- package/dist/cjs/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/src/components/common/EnhancedTable/EnhancedTable.js +1 -2
- package/dist/esm/src/components/common/EnhancedTable/EnhancedTableRow.js +1 -4
- package/dist/esm/src/components/common/markdown/MarkdownDisplay.js +6 -2
- package/dist/esm/src/components/common/markdown/MarkdownTextField.js +32 -0
- package/dist/esm/src/components/page-builder/PBCategoryBlock.js +16 -11
- package/dist/esm/src/components/page-builder/PageBuilder.js +1 -1
- package/dist/esm/src/index.js +1 -0
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/types/components/common/markdown/MarkdownDisplay.d.ts +4 -1
- package/dist/esm/types/components/common/markdown/MarkdownTextField.d.ts +10 -0
- package/dist/esm/types/components/page-builder/PBCategoryBlock.d.ts +22 -21
- package/dist/esm/types/components/page-builder/PBFeaturesSection.d.ts +4 -4
- package/dist/esm/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { MuiMarkdownProps } from "mui-markdown";
|
|
2
|
-
|
|
2
|
+
import { SxProps, Theme } from "@mui/material/styles";
|
|
3
|
+
export default function MarkdownDisplay({ children, props, onClickCallback, sx, }: {
|
|
3
4
|
children: string;
|
|
4
5
|
props?: MuiMarkdownProps;
|
|
6
|
+
onClickCallback?: () => void;
|
|
7
|
+
sx?: SxProps<Theme>;
|
|
5
8
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SxProps, Theme } from "@mui/material/styles";
|
|
2
|
+
declare function MarkdownTextField({ id, name, label, defaultValue, sx, onChangeCallback, }: {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
label: string;
|
|
6
|
+
defaultValue?: string;
|
|
7
|
+
sx?: SxProps<Theme>;
|
|
8
|
+
onChangeCallback?: (value: string) => void;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default MarkdownTextField;
|
|
@@ -2,30 +2,31 @@ import { SxProps, Theme } from "@mui/material/styles";
|
|
|
2
2
|
import { ExtendedProduct } from "../../types/e-commerce/product/types";
|
|
3
3
|
type MaxWidth = "xs" | "sm" | "md" | "lg" | "xl" | false | undefined;
|
|
4
4
|
interface PBCategoryBlockProps {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
description: string;
|
|
9
|
-
category: {
|
|
10
|
-
documentId: string;
|
|
11
|
-
uuid?: string;
|
|
5
|
+
data: {
|
|
6
|
+
id: number;
|
|
7
|
+
__component: string;
|
|
12
8
|
title: string;
|
|
13
9
|
description: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
category: {
|
|
11
|
+
documentId: string;
|
|
12
|
+
uuid?: string;
|
|
13
|
+
title: string;
|
|
14
|
+
description: string;
|
|
15
|
+
slug?: string;
|
|
16
|
+
is_archive?: boolean;
|
|
17
|
+
createdAt?: string;
|
|
18
|
+
updatedAt?: string;
|
|
19
|
+
publishedAt?: string;
|
|
20
|
+
products?: {
|
|
21
|
+
data: ExtendedProduct[];
|
|
22
|
+
};
|
|
21
23
|
};
|
|
24
|
+
previewAmount?: number;
|
|
25
|
+
maxWidth?: MaxWidth;
|
|
26
|
+
sx?: SxProps<Theme>;
|
|
27
|
+
glass?: boolean;
|
|
22
28
|
};
|
|
23
|
-
|
|
24
|
-
maxWidth?: MaxWidth;
|
|
25
|
-
sx?: SxProps<Theme>;
|
|
26
|
-
glass?: boolean;
|
|
29
|
+
index: number;
|
|
27
30
|
}
|
|
28
|
-
export declare function PBCategoryBlock({ data, }:
|
|
29
|
-
readonly data: PBCategoryBlockProps;
|
|
30
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare function PBCategoryBlock({ data, index, }: Readonly<PBCategoryBlockProps>): import("react/jsx-runtime").JSX.Element;
|
|
31
32
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SxProps, Theme } from "@mui/material/styles";
|
|
2
2
|
type MaxWidth = "xs" | "sm" | "md" | "lg" | "xl" | false | undefined;
|
|
3
|
-
interface
|
|
3
|
+
interface PBFeatureProps {
|
|
4
4
|
id: number;
|
|
5
5
|
heading: string;
|
|
6
6
|
subHeading: string;
|
|
@@ -8,18 +8,18 @@ interface FeatureProps {
|
|
|
8
8
|
icon: string;
|
|
9
9
|
anchor?: string;
|
|
10
10
|
}
|
|
11
|
-
interface
|
|
11
|
+
interface PBFeatureSectionProps {
|
|
12
12
|
data: {
|
|
13
13
|
id: number;
|
|
14
14
|
__component: string;
|
|
15
15
|
title: string;
|
|
16
16
|
description: string;
|
|
17
|
-
feature:
|
|
17
|
+
feature: PBFeatureProps[];
|
|
18
18
|
maxWidth: MaxWidth;
|
|
19
19
|
sx?: SxProps<Theme>;
|
|
20
20
|
anchor?: string;
|
|
21
21
|
};
|
|
22
22
|
index: number;
|
|
23
23
|
}
|
|
24
|
-
export declare function PBFeatureSection({ data, index, }: Readonly<
|
|
24
|
+
export declare function PBFeatureSection({ data, index, }: Readonly<PBFeatureSectionProps>): import("react/jsx-runtime").JSX.Element;
|
|
25
25
|
export {};
|
|
@@ -119,6 +119,7 @@ export { StrapiErrors as StrapiErrors } from "./components/StrapiErrors";
|
|
|
119
119
|
export { SubmitButton as SubmitButton } from "./components/SubmitButton";
|
|
120
120
|
export { default as MarkdownDisplay } from "./components/common/markdown/MarkdownDisplay";
|
|
121
121
|
export { default as MarkdownEditor } from "./components/common/markdown/MarkdownEditor";
|
|
122
|
+
export { default as MarkdownTextField } from "./components/common/markdown/MarkdownTextField";
|
|
122
123
|
export { areBusinessCredentailsComplete as areBusinessCredentailsComplete } from "./lib/areBusinessCredentialsComplete";
|
|
123
124
|
export { isCustomerProfileComplete as isCustomerProfileComplete } from "./lib/isCustomerProfileComplete";
|
|
124
125
|
export { isCustomerProfileCompleteV2 as isCustomerProfileCompleteV2 } from "./lib/isCustomerProfileCompleteV2";
|