@scbt-ecom/ui 0.89.3 → 0.90.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.
@@ -1,16 +1,26 @@
1
1
  import { FormStep, FormStepSetter, SubmitCallback, UseRatingReturn } from './model';
2
- import { SelectRatingProps, SuccessProps, UserReviewFormProps } from './ui';
2
+ import { FinallyClasses, FinallyProps, SelectRatingClasses, SelectRatingProps, UserReviewClasses, UserReviewProps } from './ui';
3
+ import { PopoverProps } from '../../shared/ui';
3
4
  export type RenderFormStep = UserFeedbackProps & {
4
5
  formStep: FormStep;
5
6
  setFormStep: FormStepSetter;
6
7
  ratingProps: UseRatingReturn;
7
8
  submitCallback: SubmitCallback;
8
9
  };
10
+ type UserFeedbackClasses = {
11
+ root?: string;
12
+ wrapper?: string;
13
+ selectRating: SelectRatingClasses;
14
+ userReview?: UserReviewClasses;
15
+ finally: FinallyClasses;
16
+ };
9
17
  export type UserFeedbackProps = {
10
18
  submitCallback: SubmitCallback;
11
19
  selectRatingStepProps?: SelectRatingProps;
12
- userReviewStepProps?: Pick<UserReviewFormProps, 'title' | 'subtitle'>;
13
- successStepProps?: SuccessProps;
20
+ userReviewStepProps?: Pick<UserReviewProps, 'title' | 'subtitle'>;
21
+ finallyStepProps?: FinallyProps;
22
+ classes?: UserFeedbackClasses;
23
+ popoverProps?: PopoverProps;
14
24
  };
15
25
  export declare const UserFeedback: (props: UserFeedbackProps) => import("react/jsx-runtime").JSX.Element;
16
26
  export default UserFeedback;
@@ -0,0 +1,10 @@
1
+ export type FinallyClasses = {
2
+ wrapper?: string;
3
+ icon?: string;
4
+ title?: string;
5
+ };
6
+ export interface FinallyProps {
7
+ title?: string;
8
+ classes?: FinallyClasses;
9
+ }
10
+ export declare const Finally: ({ title, classes }: FinallyProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,16 @@
1
1
  import { UseRatingReturn } from '../model';
2
+ export type SelectRatingClasses = {
3
+ wrapper?: string;
4
+ textBlock?: string;
5
+ title?: string;
6
+ subtitle?: string;
7
+ ratingsWrapper?: string;
8
+ ratingBtn?: string;
9
+ ratingIcon?: string;
10
+ };
2
11
  export interface SelectRatingProps {
3
12
  title?: string;
4
13
  subtitle?: string;
14
+ classes?: SelectRatingClasses;
5
15
  }
6
- export declare const SelectRating: ({ handleMouseLeave, hoveredRatings, selectedRating, handleSelectRating, handleMouseEnter, title, subtitle }: SelectRatingProps & UseRatingReturn) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const SelectRating: ({ handleMouseLeave, hoveredRatings, selectedRating, handleSelectRating, handleMouseEnter, title, subtitle, classes }: SelectRatingProps & UseRatingReturn) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,20 @@
1
+ import { ReactNode } from 'react';
2
+ import { FormStepSetter, SubmitCallback } from '../model';
3
+ import { TextareaControlProps } from '../../../shared/ui';
4
+ export type UserReviewClasses = {
5
+ form?: string;
6
+ textBlock?: string;
7
+ title?: string;
8
+ subtitle?: string;
9
+ textareaClasses?: TextareaControlProps['classes'];
10
+ button?: string;
11
+ };
12
+ export interface UserReviewProps {
13
+ submitCallback: SubmitCallback;
14
+ setFormStep: FormStepSetter;
15
+ rating: number;
16
+ title?: string;
17
+ subtitle?: ReactNode;
18
+ classes?: UserReviewClasses;
19
+ }
20
+ export declare const UserReview: ({ submitCallback, rating, setFormStep, title, subtitle, classes }: UserReviewProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  export * from './FeedbackTrigger';
2
- export * from './Success';
3
- export * from './UserReviewForm';
2
+ export * from './Finally';
3
+ export * from './UserReview';
4
4
  export * from './SelectRating';