@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';
|
package/dist/index.d.ts
CHANGED
|
@@ -200,6 +200,12 @@ declare const ConsultationCard: React.FC<ConsultationCardProps>;
|
|
|
200
200
|
|
|
201
201
|
declare const ConsultationCardSkeleton: () => JSX.Element;
|
|
202
202
|
|
|
203
|
+
declare type TextEditorProps = {
|
|
204
|
+
defaultValue?: string;
|
|
205
|
+
onChange?: (value: string) => void;
|
|
206
|
+
};
|
|
207
|
+
declare const TextEditor: FC<TextEditorProps>;
|
|
208
|
+
|
|
203
209
|
declare type HorizontalCalendarProps = {
|
|
204
210
|
consultationDatesSeconds?: number[];
|
|
205
211
|
/**
|
|
@@ -237,4 +243,4 @@ declare type DayToRender = {
|
|
|
237
243
|
};
|
|
238
244
|
declare const HorizontalCalendar: React.FC<HorizontalCalendarProps>;
|
|
239
245
|
|
|
240
|
-
export { ArchivedConsultationCard, Button, ConsultationCard, ConsultationCardProps, ConsultationCardSkeleton, ContentCard, DatePicker, DayOfWeek, DayOfWeeks, DayToRender, EntryNotFound, EntryNotFoundProps, FloatingButton, FooterForBooking, HorizontalCalendar, HorizontalCalendarProps, ImpressionEmojiEnum, Input, ListButton, ModalCalendar, NavigationBar, NoInternetConnection, ScrollTabs, _default as SelectImpressionEmoji, SelectImpressionEmojiProps, TabBar, TherapistCard, TherapistInformationComponent, YourLocalTimeBlock, dateToShortDate, toast };
|
|
246
|
+
export { ArchivedConsultationCard, Button, ConsultationCard, ConsultationCardProps, ConsultationCardSkeleton, ContentCard, DatePicker, DayOfWeek, DayOfWeeks, DayToRender, EntryNotFound, EntryNotFoundProps, FloatingButton, FooterForBooking, HorizontalCalendar, HorizontalCalendarProps, ImpressionEmojiEnum, Input, ListButton, ModalCalendar, NavigationBar, NoInternetConnection, ScrollTabs, _default as SelectImpressionEmoji, SelectImpressionEmojiProps, TabBar, TextEditor, TextEditorProps, TherapistCard, TherapistInformationComponent, YourLocalTimeBlock, dateToShortDate, toast };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindly/ui-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "react-scripts start",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"-": "^0.0.1",
|
|
20
20
|
"@babel/polyfill": "^7.12.1",
|
|
21
21
|
"@ionic/react": "^5.8.0",
|
|
22
|
+
"@ionic/react-hooks": "^0.0.8",
|
|
22
23
|
"@ionic/react-router": "^5.8.0",
|
|
23
24
|
"@storybook/addon-viewport": "^6.3.10",
|
|
24
25
|
"@storybook/cli": "^6.4.20",
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"react-day-picker": "^8.0.5",
|
|
36
37
|
"react-dom": "^17.0.2",
|
|
37
38
|
"react-refresh": "^0.9.0",
|
|
39
|
+
"react-rte": "^0.16.5",
|
|
38
40
|
"react-scripts": "4.0.3",
|
|
39
41
|
"styled-components": "^5.3.1",
|
|
40
42
|
"web-vitals": "^1.1.2"
|
|
@@ -116,6 +118,7 @@
|
|
|
116
118
|
"@storybook/preset-create-react-app": "^3.2.0",
|
|
117
119
|
"@storybook/react": "^6.3.9",
|
|
118
120
|
"@svgr/rollup": "^5.5.0",
|
|
121
|
+
"@types/react-rte": "^0.16.3",
|
|
119
122
|
"@types/styled-components": "^5.1.13",
|
|
120
123
|
"@typescript-eslint/parser": "^4.30.0",
|
|
121
124
|
"babel-cli": "^6.26.0",
|