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.
@@ -1,5 +1,8 @@
1
1
  import { MuiMarkdownProps } from "mui-markdown";
2
- export default function MarkdownDisplay({ children, props, }: {
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
- id: number;
6
- __component: string;
7
- title: string;
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
- slug?: string;
15
- is_archive?: boolean;
16
- createdAt?: string;
17
- updatedAt?: string;
18
- publishedAt?: string;
19
- products?: {
20
- data: ExtendedProduct[];
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
- previewAmount?: number;
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 FeatureProps {
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 FeatureSectionProps {
11
+ interface PBFeatureSectionProps {
12
12
  data: {
13
13
  id: number;
14
14
  __component: string;
15
15
  title: string;
16
16
  description: string;
17
- feature: FeatureProps[];
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<FeatureSectionProps>): import("react/jsx-runtime").JSX.Element;
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.768",
3
+ "version": "0.1.770",
4
4
  "description": "UMWD Component library",
5
5
  "main": "./dist/cjs/src/index.js",
6
6
  "module": "./dist/esm/src/index.js",