@cakemail-org/ui-components-v2 2.0.71 → 2.0.73

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.
@@ -18,6 +18,7 @@ export declare enum EIconName {
18
18
  "X14" = "X14",
19
19
  "Activity18" = "Activity18",
20
20
  "Add18" = "Add18",
21
+ "AddTags18" = "AddTags18",
21
22
  "AccountProfile18" = "AccountProfile18",
22
23
  "Arrow18" = "Arrow18",
23
24
  "Attribute18" = "Attribute18",
@@ -0,0 +1,4 @@
1
+ import { SvgIconProps } from '@mui/material/SvgIcon';
2
+ import React from "react";
3
+ declare function AddTags18(props: SvgIconProps): React.JSX.Element;
4
+ export default AddTags18;
@@ -34,6 +34,7 @@ export * from "./loadingContainer";
34
34
  export * from "./logo";
35
35
  export * from "./metricCard";
36
36
  export * from "./modal";
37
+ export * from "./resourceEdit";
37
38
  export * from "./search";
38
39
  export * from "./sideMenu";
39
40
  export * from "./sideMenu/sideMenuContainer";
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import "./styles.scss";
3
+ import { TResourceEdit } from "./types";
4
+ export declare function ResourceEdit({ editable, title, desc, support, status, editableContent, initOpen }: TResourceEdit): React.JSX.Element;
5
+ export default ResourceEdit;
@@ -0,0 +1,9 @@
1
+ export type TResourceEdit = {
2
+ editable: boolean;
3
+ status?: "valid" | "warning" | "error" | "empty";
4
+ title: string | React.ReactNode;
5
+ desc?: string | React.ReactNode;
6
+ editableContent?: React.ReactNode;
7
+ support: string | React.ReactNode;
8
+ initOpen?: boolean;
9
+ };
@@ -1,5 +1,5 @@
1
1
  import { BaseTextFieldProps } from "@mui/material";
2
- import { ChangeEvent } from "react";
2
+ import { ChangeEventHandler } from "react";
3
3
  import { TIconName } from "../icon/types";
4
4
  export interface TTextField extends Omit<BaseTextFieldProps, "onMouseUp" | "FormHelperTextProps" | "fullWidth" | "select" | "margin" | "component" | "InputLabelProps" | "SelectProps" | "classes" | "size" | "color"> {
5
5
  onChange?: TTextFieldChange;
@@ -13,4 +13,4 @@ export interface TTextField extends Omit<BaseTextFieldProps, "onMouseUp" | "Form
13
13
  helperErrorText?: string;
14
14
  pickerPosition?: "top" | "bottom";
15
15
  }
16
- export type TTextFieldChange = ChangeEvent<HTMLInputElement | HTMLTextAreaElement>;
16
+ export type TTextFieldChange = ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;