@mindly/ui-components 1.7.5 → 1.9.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.
@@ -19,7 +19,10 @@ import { DayToRender, HorizontalCalendar } from './lib/HorisontalCalendar';
19
19
  import SelectImpressionEmoji from './lib/SelectImpressionEmoji';
20
20
  import SelectImpressionEmojiProps from './lib/SelectImpressionEmoji/SelectImpressionEmojiProps';
21
21
  import ImpressionEmojiEnum from './lib/SelectImpressionEmoji/ImpressionEmojiEnum';
22
- export { ArchivedConsultationCard, DatePicker, Button, FloatingButton, FooterForBooking, ListButton, NavigationBar, ContentCard, TherapistCard, toast, NoInternetConnection, TherapistInformationComponent, Input, ScrollTabs, TabBar, YourLocalTimeBlock, ModalCalendar, HorizontalCalendar, SelectImpressionEmoji, ImpressionEmojiEnum, };
23
- export type { SelectImpressionEmojiProps, DayToRender };
22
+ import LetterAvatar, { LetterAvatarProps } from './lib/LetterAvatar/LetterAvatar';
23
+ import ImageWithFallback, { ImageWithFallbackProps } from './lib/ImageWithFallback/ImageWithFallback';
24
+ import PersonDateTimeCard, { PersonDateTimeCardProps } from './lib/PersonDateTimeCard/PersonDateTimeCard';
25
+ export { ArchivedConsultationCard, DatePicker, Button, FloatingButton, FooterForBooking, ListButton, NavigationBar, ContentCard, TherapistCard, toast, NoInternetConnection, TherapistInformationComponent, Input, ScrollTabs, TabBar, YourLocalTimeBlock, ModalCalendar, HorizontalCalendar, SelectImpressionEmoji, ImpressionEmojiEnum, LetterAvatar, ImageWithFallback, PersonDateTimeCard };
26
+ export type { SelectImpressionEmojiProps, DayToRender, LetterAvatarProps, ImageWithFallbackProps, PersonDateTimeCardProps };
24
27
  export * from './lib/EntryNotFound';
25
28
  export * from './lib/consultation-card';
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare type ImageWithFallbackProps = JSX.IntrinsicElements["img"] & ({
3
+ onErrorContent: React.ReactElement;
4
+ });
5
+ declare const ImageWithFallback: React.FC<ImageWithFallbackProps>;
6
+ export default ImageWithFallback;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ export declare type LetterAvatarProps = {
3
+ letter: string;
4
+ className?: string;
5
+ };
6
+ declare const _default: React.NamedExoticComponent<LetterAvatarProps>;
7
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const LetterAvatarStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export default LetterAvatarStyled;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export declare type PersonDateTimeCardProps = {
3
+ photoSrc?: string;
4
+ name: string;
5
+ dateTime: Date;
6
+ };
7
+ declare const _default: React.NamedExoticComponent<PersonDateTimeCardProps>;
8
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const PersonDateTimeCardStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export default PersonDateTimeCardStyled;
package/dist/index.d.ts CHANGED
@@ -199,7 +199,25 @@ declare type SelectImpressionEmojiProps = {
199
199
  onChange?: (val: ImpressionEmojiEnum) => void;
200
200
  };
201
201
 
202
- declare const _default: React.NamedExoticComponent<SelectImpressionEmojiProps>;
202
+ declare const _default$2: React.NamedExoticComponent<SelectImpressionEmojiProps>;
203
+
204
+ declare type LetterAvatarProps = {
205
+ letter: string;
206
+ className?: string;
207
+ };
208
+ declare const _default$1: React.NamedExoticComponent<LetterAvatarProps>;
209
+
210
+ declare type ImageWithFallbackProps = JSX.IntrinsicElements["img"] & ({
211
+ onErrorContent: React.ReactElement;
212
+ });
213
+ declare const ImageWithFallback: React.FC<ImageWithFallbackProps>;
214
+
215
+ declare type PersonDateTimeCardProps = {
216
+ photoSrc?: string;
217
+ name: string;
218
+ dateTime: Date;
219
+ };
220
+ declare const _default: React.NamedExoticComponent<PersonDateTimeCardProps>;
203
221
 
204
222
  declare type EntryNotFoundProps = {
205
223
  title?: string;
@@ -236,4 +254,4 @@ declare const ConsultationCard: React.FC<ConsultationCardProps>;
236
254
 
237
255
  declare const ConsultationCardSkeleton: () => JSX.Element;
238
256
 
239
- export { ArchivedConsultationCard, Button, ConsultationCard, ConsultationCardProps, ConsultationCardSkeleton, ContentCard, DatePicker, DayOfWeeks, DayToRender, EntryNotFound, EntryNotFoundProps, FloatingButton, FooterForBooking, HorizontalCalendar, ImpressionEmojiEnum, Input, ListButton, ModalCalendar, NavigationBar, NoInternetConnection, ScrollTabs, _default as SelectImpressionEmoji, SelectImpressionEmojiProps, TabBar, TherapistCard, TherapistInformationComponent, YourLocalTimeBlock, toast };
257
+ export { ArchivedConsultationCard, Button, ConsultationCard, ConsultationCardProps, ConsultationCardSkeleton, ContentCard, DatePicker, DayOfWeeks, DayToRender, EntryNotFound, EntryNotFoundProps, FloatingButton, FooterForBooking, HorizontalCalendar, ImageWithFallback, ImageWithFallbackProps, ImpressionEmojiEnum, Input, _default$1 as LetterAvatar, LetterAvatarProps, ListButton, ModalCalendar, NavigationBar, NoInternetConnection, _default as PersonDateTimeCard, PersonDateTimeCardProps, ScrollTabs, _default$2 as SelectImpressionEmoji, SelectImpressionEmojiProps, TabBar, TherapistCard, TherapistInformationComponent, YourLocalTimeBlock, toast };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "1.7.5",
3
+ "version": "1.9.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -31,6 +31,7 @@
31
31
  "@types/react-dom": "^17.0.9",
32
32
  "auto": "^10.32.0",
33
33
  "date-fns": "^2.28.0",
34
+ "luxon": "^2.4.0",
34
35
  "react": "^17.0.2",
35
36
  "react-day-picker": "^8.0.5",
36
37
  "react-dom": "^17.0.2",
@@ -116,6 +117,7 @@
116
117
  "@storybook/preset-create-react-app": "^3.2.0",
117
118
  "@storybook/react": "^6.3.9",
118
119
  "@svgr/rollup": "^5.5.0",
120
+ "@types/luxon": "^2.3.2",
119
121
  "@types/styled-components": "^5.1.13",
120
122
  "@typescript-eslint/parser": "^4.30.0",
121
123
  "babel-cli": "^6.26.0",