@mindly/ui-components 9.0.0 → 9.0.2
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 +4 -4
- package/dist/cjs/lib2/features/ReviewCardFeature/ReviewCardFeature.d.ts +4 -1
- package/dist/cjs/lib2/features/ReviewCardFeature/styles.d.ts +33 -0
- package/dist/cjs/lib2/shared/ui/Rating/types.d.ts +1 -0
- package/dist/cjs/lib2/widgets/SpecialistReviewsListWidget/ScrollTopButton.d.ts +7 -0
- package/dist/cjs/lib2/widgets/SpecialistReviewsListWidget/SpecialistEmptyReviews.d.ts +8 -0
- package/dist/cjs/lib2/widgets/SpecialistReviewsListWidget/SpecialistReviewsList.d.ts +14 -0
- package/dist/cjs/lib2/widgets/SpecialistReviewsListWidget/SpecialistReviewsListWidget.d.ts +20 -0
- package/dist/cjs/lib2/widgets/SpecialistReviewsListWidget/index.d.ts +1 -0
- package/dist/cjs/lib2/widgets/index.d.ts +1 -0
- package/dist/esm/index.js +6 -6
- package/dist/esm/lib2/features/ReviewCardFeature/ReviewCardFeature.d.ts +4 -1
- package/dist/esm/lib2/features/ReviewCardFeature/styles.d.ts +33 -0
- package/dist/esm/lib2/shared/ui/Rating/types.d.ts +1 -0
- package/dist/esm/lib2/widgets/SpecialistReviewsListWidget/ScrollTopButton.d.ts +7 -0
- package/dist/esm/lib2/widgets/SpecialistReviewsListWidget/SpecialistEmptyReviews.d.ts +8 -0
- package/dist/esm/lib2/widgets/SpecialistReviewsListWidget/SpecialistReviewsList.d.ts +14 -0
- package/dist/esm/lib2/widgets/SpecialistReviewsListWidget/SpecialistReviewsListWidget.d.ts +20 -0
- package/dist/esm/lib2/widgets/SpecialistReviewsListWidget/index.d.ts +1 -0
- package/dist/esm/lib2/widgets/index.d.ts +1 -0
- package/dist/index.d.ts +23 -2
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ declare const _default: React.NamedExoticComponent<{
|
|
|
8
8
|
date: number;
|
|
9
9
|
rating: number;
|
|
10
10
|
review: string;
|
|
11
|
-
size?: "default" | "small" | "large";
|
|
11
|
+
size?: "default" | "small" | "large" | "v2";
|
|
12
12
|
variant?: ReviewCardFeatureVariantType;
|
|
13
13
|
reviewTextClamp?: number;
|
|
14
14
|
onExpandReview?(): void;
|
|
@@ -16,6 +16,9 @@ declare const _default: React.NamedExoticComponent<{
|
|
|
16
16
|
useDate?: boolean;
|
|
17
17
|
locale?: SupportedLocales;
|
|
18
18
|
isEditable?: boolean;
|
|
19
|
+
isUnread?: boolean;
|
|
20
|
+
expandType?: "modal" | "inline";
|
|
19
21
|
onEditReview?: (review: Pick<SpecialistReview, "id" | "review_rating" | "text_of_review">) => void;
|
|
22
|
+
onMoreClick?(): void;
|
|
20
23
|
} & TranslationType & React.RefAttributes<HTMLDivElement>>;
|
|
21
24
|
export default _default;
|
|
@@ -10,6 +10,16 @@ export declare const reviewCardStyle: import("tailwind-variants").TVReturnType<{
|
|
|
10
10
|
ratingSize: string;
|
|
11
11
|
avatarSize: string;
|
|
12
12
|
};
|
|
13
|
+
v2: {
|
|
14
|
+
base: string;
|
|
15
|
+
ratingSize: string;
|
|
16
|
+
avatarSize: string;
|
|
17
|
+
userContainer: string;
|
|
18
|
+
rating: string;
|
|
19
|
+
starIcon: string;
|
|
20
|
+
mainTextVariant: TypographyVariantsEnum;
|
|
21
|
+
dateTextVariant: TypographyVariantsEnum;
|
|
22
|
+
};
|
|
13
23
|
small: {
|
|
14
24
|
base: string;
|
|
15
25
|
userContainer: string;
|
|
@@ -69,6 +79,7 @@ export declare const reviewCardStyle: import("tailwind-variants").TVReturnType<{
|
|
|
69
79
|
editContainer: string;
|
|
70
80
|
editIcon: string;
|
|
71
81
|
rating: string;
|
|
82
|
+
starIcon: string;
|
|
72
83
|
review: string;
|
|
73
84
|
reviewText: string;
|
|
74
85
|
name: string;
|
|
@@ -87,6 +98,16 @@ export declare const reviewCardStyle: import("tailwind-variants").TVReturnType<{
|
|
|
87
98
|
ratingSize: string;
|
|
88
99
|
avatarSize: string;
|
|
89
100
|
};
|
|
101
|
+
v2: {
|
|
102
|
+
base: string;
|
|
103
|
+
ratingSize: string;
|
|
104
|
+
avatarSize: string;
|
|
105
|
+
userContainer: string;
|
|
106
|
+
rating: string;
|
|
107
|
+
starIcon: string;
|
|
108
|
+
mainTextVariant: TypographyVariantsEnum;
|
|
109
|
+
dateTextVariant: TypographyVariantsEnum;
|
|
110
|
+
};
|
|
90
111
|
small: {
|
|
91
112
|
base: string;
|
|
92
113
|
userContainer: string;
|
|
@@ -146,6 +167,7 @@ export declare const reviewCardStyle: import("tailwind-variants").TVReturnType<{
|
|
|
146
167
|
editContainer: string;
|
|
147
168
|
editIcon: string;
|
|
148
169
|
rating: string;
|
|
170
|
+
starIcon: string;
|
|
149
171
|
review: string;
|
|
150
172
|
reviewText: string;
|
|
151
173
|
name: string;
|
|
@@ -164,6 +186,16 @@ export declare const reviewCardStyle: import("tailwind-variants").TVReturnType<{
|
|
|
164
186
|
ratingSize: string;
|
|
165
187
|
avatarSize: string;
|
|
166
188
|
};
|
|
189
|
+
v2: {
|
|
190
|
+
base: string;
|
|
191
|
+
ratingSize: string;
|
|
192
|
+
avatarSize: string;
|
|
193
|
+
userContainer: string;
|
|
194
|
+
rating: string;
|
|
195
|
+
starIcon: string;
|
|
196
|
+
mainTextVariant: TypographyVariantsEnum;
|
|
197
|
+
dateTextVariant: TypographyVariantsEnum;
|
|
198
|
+
};
|
|
167
199
|
small: {
|
|
168
200
|
base: string;
|
|
169
201
|
userContainer: string;
|
|
@@ -223,6 +255,7 @@ export declare const reviewCardStyle: import("tailwind-variants").TVReturnType<{
|
|
|
223
255
|
editContainer: string;
|
|
224
256
|
editIcon: string;
|
|
225
257
|
rating: string;
|
|
258
|
+
starIcon: string;
|
|
226
259
|
review: string;
|
|
227
260
|
reviewText: string;
|
|
228
261
|
name: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type ScrollTopButtonProps = {
|
|
2
|
+
showScrollTop: boolean;
|
|
3
|
+
handleScrollToTop: () => void;
|
|
4
|
+
scrollTopLabel: string;
|
|
5
|
+
};
|
|
6
|
+
declare const ScrollTopButton: ({ showScrollTop, handleScrollToTop, scrollTopLabel }: ScrollTopButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default ScrollTopButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WithTranslation } from 'react-i18next';
|
|
2
|
+
type SpecialistEmptyReviewsProps = {
|
|
3
|
+
headerLabel: string;
|
|
4
|
+
t?: WithTranslation['t'];
|
|
5
|
+
onBackClick?: () => void;
|
|
6
|
+
};
|
|
7
|
+
declare const SpecialistEmptyReviews: ({ headerLabel, t, onBackClick }: SpecialistEmptyReviewsProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default SpecialistEmptyReviews;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ReviewCardFeature from '../../features/ReviewCardFeature/ReviewCardFeature';
|
|
3
|
+
import { WithTranslation } from 'react-i18next';
|
|
4
|
+
type ReviewCardFeatureProps = React.ComponentProps<typeof ReviewCardFeature>;
|
|
5
|
+
type SharedReviewCardProps = Pick<ReviewCardFeatureProps, 'size' | 'variant' | 'expandType' | 'reviewTextClamp'>;
|
|
6
|
+
type SpecialistReviewItem = Omit<ReviewCardFeatureProps, keyof SharedReviewCardProps | 't'>;
|
|
7
|
+
interface SpecialistReviewsListProps {
|
|
8
|
+
reviews: SpecialistReviewItem[];
|
|
9
|
+
className?: string;
|
|
10
|
+
t: WithTranslation['t'];
|
|
11
|
+
onMoreClick?(id: string): void;
|
|
12
|
+
}
|
|
13
|
+
declare const SpecialistReviewsList: React.FC<SpecialistReviewsListProps>;
|
|
14
|
+
export default SpecialistReviewsList;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ReviewCardFeature from '../../features/ReviewCardFeature/ReviewCardFeature';
|
|
3
|
+
import { WithTranslation } from 'react-i18next';
|
|
4
|
+
type ReviewCardFeatureProps = React.ComponentProps<typeof ReviewCardFeature>;
|
|
5
|
+
type SharedReviewCardProps = Pick<ReviewCardFeatureProps, 'size' | 'variant' | 'expandType' | 'reviewTextClamp'>;
|
|
6
|
+
type SpecialistReviewItem = Omit<ReviewCardFeatureProps, keyof SharedReviewCardProps | 't'>;
|
|
7
|
+
export interface SpecialistReviewsListWidgetProps extends SharedReviewCardProps {
|
|
8
|
+
reviews: SpecialistReviewItem[];
|
|
9
|
+
headerLabel: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
scrollTopButtonLabel?: string;
|
|
12
|
+
isLoading?: boolean;
|
|
13
|
+
averageRating?: number;
|
|
14
|
+
headerReviewsLabel?: string;
|
|
15
|
+
t: WithTranslation['t'];
|
|
16
|
+
onBackClick?: () => void;
|
|
17
|
+
onMoreClick?(id: string): void;
|
|
18
|
+
}
|
|
19
|
+
declare const SpecialistReviewsListWidget: React.FC<SpecialistReviewsListWidgetProps>;
|
|
20
|
+
export default SpecialistReviewsListWidget;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SpecialistReviewsListWidget } from './SpecialistReviewsListWidget';
|