@mindly/ui-components 1.6.2 → 1.7.0
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/index.js +12 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/cjs/types/lib/TextEditor/TextEditor.d.ts +6 -0
- package/dist/cjs/types/lib/TextEditor/TextEditor.style.d.ts +7 -0
- package/dist/cjs/types/lib/TextEditor/TextEditorContainer.d.ts +19 -0
- package/dist/cjs/types/lib/TextEditor/index.d.ts +1 -0
- package/dist/esm/index.js +13 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/esm/types/lib/TextEditor/TextEditor.d.ts +6 -0
- package/dist/esm/types/lib/TextEditor/TextEditor.style.d.ts +7 -0
- package/dist/esm/types/lib/TextEditor/TextEditorContainer.d.ts +19 -0
- package/dist/esm/types/lib/TextEditor/index.d.ts +1 -0
- package/dist/index.d.ts +7 -1
- package/package.json +4 -1
|
@@ -22,4 +22,5 @@ export { ArchivedConsultationCard, DatePicker, Button, FloatingButton, FooterFor
|
|
|
22
22
|
export type { SelectImpressionEmojiProps };
|
|
23
23
|
export * from './lib/EntryNotFound';
|
|
24
24
|
export * from './lib/consultation-card';
|
|
25
|
+
export * from './lib/TextEditor';
|
|
25
26
|
export * from './lib/HorisontalCalendar';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import RichTextEditor from 'react-rte';
|
|
2
|
+
declare type EditorContainerProps = {
|
|
3
|
+
isKeyboardOpen?: boolean;
|
|
4
|
+
keyboardHeight?: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const EditorContainer: import("styled-components").StyledComponent<typeof RichTextEditor, any, EditorContainerProps, never>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { EditorValue } from 'react-rte';
|
|
3
|
+
declare type TextEditorState = {
|
|
4
|
+
value: EditorValue;
|
|
5
|
+
};
|
|
6
|
+
declare type TextEditorProps = {
|
|
7
|
+
defaultValue?: string;
|
|
8
|
+
onChange?: (value: string) => void;
|
|
9
|
+
isKeyboardOpen?: boolean;
|
|
10
|
+
keyboardHeight?: number;
|
|
11
|
+
};
|
|
12
|
+
export declare class TextEditorContainer extends Component<TextEditorProps, TextEditorState> {
|
|
13
|
+
state: {
|
|
14
|
+
value: EditorValue;
|
|
15
|
+
};
|
|
16
|
+
onChange: (value: EditorValue) => void;
|
|
17
|
+
render(): JSX.Element;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TextEditor';
|