@mindly/ui-components 1.8.0 → 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.
@@ -21,7 +21,8 @@ import SelectImpressionEmojiProps from './lib/SelectImpressionEmoji/SelectImpres
21
21
  import ImpressionEmojiEnum from './lib/SelectImpressionEmoji/ImpressionEmojiEnum';
22
22
  import LetterAvatar, { LetterAvatarProps } from './lib/LetterAvatar/LetterAvatar';
23
23
  import ImageWithFallback, { ImageWithFallbackProps } from './lib/ImageWithFallback/ImageWithFallback';
24
- export { ArchivedConsultationCard, DatePicker, Button, FloatingButton, FooterForBooking, ListButton, NavigationBar, ContentCard, TherapistCard, toast, NoInternetConnection, TherapistInformationComponent, Input, ScrollTabs, TabBar, YourLocalTimeBlock, ModalCalendar, HorizontalCalendar, SelectImpressionEmoji, ImpressionEmojiEnum, LetterAvatar, ImageWithFallback, };
25
- export type { SelectImpressionEmojiProps, DayToRender, LetterAvatarProps, ImageWithFallbackProps };
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 };
26
27
  export * from './lib/EntryNotFound';
27
28
  export * from './lib/consultation-card';
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  export declare type LetterAvatarProps = {
3
3
  letter: string;
4
+ className?: string;
4
5
  };
5
6
  declare const _default: React.NamedExoticComponent<LetterAvatarProps>;
6
7
  export default _default;
@@ -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,18 +199,26 @@ declare type SelectImpressionEmojiProps = {
199
199
  onChange?: (val: ImpressionEmojiEnum) => void;
200
200
  };
201
201
 
202
- declare const _default$1: React.NamedExoticComponent<SelectImpressionEmojiProps>;
202
+ declare const _default$2: React.NamedExoticComponent<SelectImpressionEmojiProps>;
203
203
 
204
204
  declare type LetterAvatarProps = {
205
205
  letter: string;
206
+ className?: string;
206
207
  };
207
- declare const _default: React.NamedExoticComponent<LetterAvatarProps>;
208
+ declare const _default$1: React.NamedExoticComponent<LetterAvatarProps>;
208
209
 
209
210
  declare type ImageWithFallbackProps = JSX.IntrinsicElements["img"] & ({
210
211
  onErrorContent: React.ReactElement;
211
212
  });
212
213
  declare const ImageWithFallback: React.FC<ImageWithFallbackProps>;
213
214
 
215
+ declare type PersonDateTimeCardProps = {
216
+ photoSrc?: string;
217
+ name: string;
218
+ dateTime: Date;
219
+ };
220
+ declare const _default: React.NamedExoticComponent<PersonDateTimeCardProps>;
221
+
214
222
  declare type EntryNotFoundProps = {
215
223
  title?: string;
216
224
  };
@@ -246,4 +254,4 @@ declare const ConsultationCard: React.FC<ConsultationCardProps>;
246
254
 
247
255
  declare const ConsultationCardSkeleton: () => JSX.Element;
248
256
 
249
- export { ArchivedConsultationCard, Button, ConsultationCard, ConsultationCardProps, ConsultationCardSkeleton, ContentCard, DatePicker, DayOfWeeks, DayToRender, EntryNotFound, EntryNotFoundProps, FloatingButton, FooterForBooking, HorizontalCalendar, ImageWithFallback, ImageWithFallbackProps, ImpressionEmojiEnum, Input, _default as LetterAvatar, LetterAvatarProps, ListButton, ModalCalendar, NavigationBar, NoInternetConnection, ScrollTabs, _default$1 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.8.0",
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",