@mindly/ui-components 3.56.7 → 3.57.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.
Files changed (38) hide show
  1. package/dist/cjs/index.js +34 -34
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/index.d.ts +6 -0
  4. package/dist/cjs/types/lib/Chat/ChatMessageSkeleton/ChatMessageSkeleton.d.ts +0 -1
  5. package/dist/cjs/types/lib/Consultations/UserInfoModal/UserInfoModal.d.ts +2 -0
  6. package/dist/cjs/types/lib/CustomButton/CustomButton.d.ts +1 -1
  7. package/dist/cjs/types/lib/Segment/SegmentSkeleton.d.ts +0 -1
  8. package/dist/cjs/types/lib/SpecialistCard/SpecialistCard.d.ts +3 -0
  9. package/dist/cjs/types/lib/SpecialistProfile/ProfileInformation/ProfileInformation.d.ts +5 -0
  10. package/dist/cjs/types/lib/SpecialistProfile/ReviewCard/ReviewCard.d.ts +20 -0
  11. package/dist/cjs/types/lib/SpecialistProfile/ReviewCard/ReviewCard.style.d.ts +9 -0
  12. package/dist/cjs/types/lib/SpecialistProfile/ReviewCard/index.d.ts +1 -0
  13. package/dist/cjs/types/lib/SpecialistProfile/ReviewStatistics/ReviewStatistics.d.ts +17 -0
  14. package/dist/cjs/types/lib/SpecialistProfile/ReviewStatistics/ReviewStatistics.style.d.ts +5 -0
  15. package/dist/cjs/types/lib/SpecialistProfile/ReviewStatistics/index.d.ts +1 -0
  16. package/dist/cjs/types/lib/StarRating/StarRating.d.ts +11 -0
  17. package/dist/cjs/types/lib/StarRating/StarRating.style.d.ts +1 -0
  18. package/dist/cjs/types/lib/StarRating/index.d.ts +1 -0
  19. package/dist/esm/index.js +35 -35
  20. package/dist/esm/index.js.map +1 -1
  21. package/dist/esm/types/index.d.ts +6 -0
  22. package/dist/esm/types/lib/Chat/ChatMessageSkeleton/ChatMessageSkeleton.d.ts +0 -1
  23. package/dist/esm/types/lib/Consultations/UserInfoModal/UserInfoModal.d.ts +2 -0
  24. package/dist/esm/types/lib/CustomButton/CustomButton.d.ts +1 -1
  25. package/dist/esm/types/lib/Segment/SegmentSkeleton.d.ts +0 -1
  26. package/dist/esm/types/lib/SpecialistCard/SpecialistCard.d.ts +3 -0
  27. package/dist/esm/types/lib/SpecialistProfile/ProfileInformation/ProfileInformation.d.ts +5 -0
  28. package/dist/esm/types/lib/SpecialistProfile/ReviewCard/ReviewCard.d.ts +20 -0
  29. package/dist/esm/types/lib/SpecialistProfile/ReviewCard/ReviewCard.style.d.ts +9 -0
  30. package/dist/esm/types/lib/SpecialistProfile/ReviewCard/index.d.ts +1 -0
  31. package/dist/esm/types/lib/SpecialistProfile/ReviewStatistics/ReviewStatistics.d.ts +17 -0
  32. package/dist/esm/types/lib/SpecialistProfile/ReviewStatistics/ReviewStatistics.style.d.ts +5 -0
  33. package/dist/esm/types/lib/SpecialistProfile/ReviewStatistics/index.d.ts +1 -0
  34. package/dist/esm/types/lib/StarRating/StarRating.d.ts +11 -0
  35. package/dist/esm/types/lib/StarRating/StarRating.style.d.ts +1 -0
  36. package/dist/esm/types/lib/StarRating/index.d.ts +1 -0
  37. package/dist/index.d.ts +56 -3
  38. package/package.json +2 -1
@@ -169,3 +169,9 @@ export { default as SpecialistMatch } from './lib/SpecialistProfile/SpecialistMa
169
169
  export * from './lib/SpecialistProfile/SpecialistMatch';
170
170
  export { default as SpecialistStatistic } from './lib/SpecialistProfile/SpecialistStatistic';
171
171
  export * from './lib/SpecialistProfile/SpecialistStatistic';
172
+ export { default as StarRating } from './lib/StarRating';
173
+ export * from './lib/StarRating';
174
+ export { default as ReviewCard } from './lib/SpecialistProfile/ReviewCard';
175
+ export * from './lib/SpecialistProfile/ReviewCard';
176
+ export { default as ReviewStatistics } from './lib/SpecialistProfile/ReviewStatistics';
177
+ export * from './lib/SpecialistProfile/ReviewStatistics';
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const ChatMessageSkeleton: () => JSX.Element;
3
2
  export default ChatMessageSkeleton;
@@ -8,6 +8,7 @@ declare type UserInfoModalProps = {
8
8
  onMessage?: (id: string) => void;
9
9
  onBuy?: (id: string) => void;
10
10
  onProfile?: (id: string) => void;
11
+ onRateSession?: (id: string) => void;
11
12
  onSignUp?: (id: string) => void;
12
13
  onClose: () => void;
13
14
  isClient?: boolean;
@@ -17,6 +18,7 @@ declare type UserInfoModalProps = {
17
18
  buyBtnLabel?: string;
18
19
  buyTooltip?: string;
19
20
  profile?: string;
21
+ rateTheSessionText?: string;
20
22
  clientBtnLabel?: string;
21
23
  writeLabelBtn?: string;
22
24
  sigUpBtnLabel?: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type PossibleButtonTypes = 'primary' | 'secondary' | 'accent';
2
+ export declare type PossibleButtonTypes = 'primary' | 'secondary' | 'accent' | 'accent-dark-green';
3
3
  declare type ButtonProps = {
4
4
  buttonType: PossibleButtonTypes;
5
5
  borderRadius?: number;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const SegmentSkeleton: () => JSX.Element;
3
2
  export default SegmentSkeleton;
@@ -26,6 +26,8 @@ declare type SpecialistCardProps = {
26
26
  */
27
27
  videoDurationSeconds?: number;
28
28
  percentMatch?: number;
29
+ averageStarsCount?: number;
30
+ countOfReviews?: number;
29
31
  translations: {
30
32
  name: string;
31
33
  year: string[];
@@ -37,6 +39,7 @@ declare type SpecialistCardProps = {
37
39
  sessions: string[];
38
40
  by: string;
39
41
  match: string;
42
+ reviews: string[];
40
43
  };
41
44
  };
42
45
  declare const SpecialistCard: React.FC<SpecialistCardProps>;
@@ -6,6 +6,11 @@ declare type ProfileInformationProps = {
6
6
  specialistSpecialization?: string;
7
7
  countryCode?: string;
8
8
  isLoading?: boolean;
9
+ averageStarsCount?: number;
10
+ countOfReviews?: number;
11
+ translations?: {
12
+ reviews: string[];
13
+ };
9
14
  } & React.HTMLAttributes<HTMLDivElement>;
10
15
  declare const _default: React.NamedExoticComponent<ProfileInformationProps>;
11
16
  export default _default;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { FlagTypes } from '../../Flag';
3
+ declare type ReviewCardProps = {
4
+ reviewerAvatar?: string;
5
+ reviewerFirstName?: string;
6
+ reviewerLastName?: string;
7
+ reviewerCountry?: keyof typeof FlagTypes;
8
+ reviewedAtInSeconds?: number;
9
+ averageStarsCount?: number;
10
+ reviewText?: string;
11
+ onShowMoreButtonClick?: () => void;
12
+ showAllReview?: boolean;
13
+ type: 'card' | 'list';
14
+ translations: {
15
+ showMore: string;
16
+ showAllReviews: string;
17
+ };
18
+ } & React.HTMLAttributes<HTMLDivElement>;
19
+ declare const ReviewCard: React.FC<ReviewCardProps>;
20
+ export default ReviewCard;
@@ -0,0 +1,9 @@
1
+ declare type ReviewCardContainerProps = {
2
+ showAllReview?: boolean;
3
+ type: 'card' | 'list';
4
+ };
5
+ export declare const ReviewCardContainer: import("styled-components").StyledComponent<"div", any, ReviewCardContainerProps, never>;
6
+ export declare const ReviewerInfo: import("styled-components").StyledComponent<"div", any, {}, never>;
7
+ export declare const TextContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
8
+ export declare const ShowMoreButton: import("styled-components").StyledComponent<"button", any, {}, never>;
9
+ export {};
@@ -0,0 +1 @@
1
+ export { default } from './ReviewCard';
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ declare type ReviewStatisticsProps = {
3
+ averageStarsCount: number;
4
+ countOfReviews: number;
5
+ /**
6
+ * count of reviews for each star, where key - is a number of stars and value - is a count of reviews
7
+ * @example {'1': 15, '2': 30, '3': 45, '4': 60, '5': 75}
8
+ */
9
+ statistics: {
10
+ [key: string]: number;
11
+ };
12
+ translations: {
13
+ reviews: string[];
14
+ };
15
+ } & React.HTMLAttributes<HTMLDivElement>;
16
+ declare const ReviewStatistics: React.FC<ReviewStatisticsProps>;
17
+ export default ReviewStatistics;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const ReviewStatisticsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const AllReviewContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const ReviewProgressContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const StyledProgressBar: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@ionic/core/dist/types/components").JSX.IonProgressBar & Pick<import("react").HTMLAttributes<HTMLIonProgressBarElement>, "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("@ionic/react/dist/types/components/react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonProgressBarElement>>, any, {}, never>;
@@ -0,0 +1 @@
1
+ export { default } from './ReviewStatistics';
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { RatingComponentProps } from 'react-rating';
3
+ declare type RatingWithLabelProps = {
4
+ countOfReviews?: number;
5
+ averageStarsCount?: number;
6
+ translations?: {
7
+ reviews: string[];
8
+ };
9
+ } & RatingComponentProps;
10
+ declare const StarRating: React.FC<RatingWithLabelProps>;
11
+ export default StarRating;
@@ -0,0 +1 @@
1
+ export declare const RatingSection: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1 @@
1
+ export { default } from './StarRating';