@luscii-healthtech/web-ui 21.0.1 → 21.1.1
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.
|
@@ -3,12 +3,11 @@ type Color = "red" | "amber" | "green" | "gray" | "blue";
|
|
|
3
3
|
type Size = "base" | "small";
|
|
4
4
|
interface TagPropsShared extends React.ComponentPropsWithoutRef<"span"> {
|
|
5
5
|
colorTheme?: Color;
|
|
6
|
-
children?: string;
|
|
7
6
|
size?: Size;
|
|
8
7
|
className?: string;
|
|
9
8
|
}
|
|
10
9
|
interface PropsWithChildren extends TagPropsShared {
|
|
11
|
-
children?:
|
|
10
|
+
children?: React.ReactNode;
|
|
12
11
|
/**
|
|
13
12
|
* @deprecated Use `children` instead
|
|
14
13
|
*/
|
|
@@ -22,7 +22,7 @@ type TextEditorProps = Pick<ReactQuillProps, "defaultValue" | "placeholder"> & {
|
|
|
22
22
|
*
|
|
23
23
|
* See: https://github.com/zenoamaro/react-quill#custom-formats
|
|
24
24
|
*/
|
|
25
|
-
formats
|
|
25
|
+
formats?: TextEditorFormat[];
|
|
26
26
|
/**
|
|
27
27
|
* Which buttons to show in the toolbar, like "bold" and "italic".
|
|
28
28
|
*
|
|
@@ -41,7 +41,7 @@ type TextEditorProps = Pick<ReactQuillProps, "defaultValue" | "placeholder"> & {
|
|
|
41
41
|
* ]
|
|
42
42
|
* See: https://github.com/zenoamaro/react-quill#custom-toolbar
|
|
43
43
|
*/
|
|
44
|
-
toolbar
|
|
44
|
+
toolbar?: TextEditorToolbarOption[][];
|
|
45
45
|
};
|
|
46
46
|
type TextEditorToolbarOption = "bold" | "italic" | "underline" | "strike" | "link" | "video" | {
|
|
47
47
|
list: "ordered";
|