@npm_leadtech/legal-lib-components 5.79.5 → 5.81.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,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { RatafiaReviewResultStyled } from './RatafiaReviewResult.styled';
3
- export const RatafiaReviewResult = ({ reviewQuestion, reviewPositiveIcon, reviewPositiveText, handleOnClickReviewPositive, reviewPositiveDataQa = true, reviewNegativeIcon, reviewNegativeText, handleOnClickReviewNegative, reviewNegativeDataQa, reviewFeedbackText, review }) => {
4
- return (_jsx(RatafiaReviewResultStyled, { className: 'ratafia-review-result', children: review === null ? (_jsxs("div", { className: 'ratafia-review-result__review', children: [_jsx("p", { className: 'sans-serif ratafia-review-result__review__question', children: reviewQuestion }), _jsxs("div", { className: 'ratafia-review-result__review__buttons', children: [_jsxs("button", { className: 'ratafia-review-result__review__buttons__item', onClick: handleOnClickReviewPositive, "data-qa": reviewPositiveDataQa, children: [_jsx("div", { className: 'ratafia-review-result__review__buttons__item__icon', children: reviewPositiveIcon }), _jsx("p", { className: 'sans-serif --small ratafia-review-result__review__buttons__item__text positive', children: reviewPositiveText })] }), _jsxs("button", { className: 'ratafia-review-result__review__buttons__item', onClick: handleOnClickReviewNegative, "data-qa": reviewNegativeDataQa, children: [_jsx("div", { className: 'ratafia-review-result__review__buttons__item__icon', children: reviewNegativeIcon }), _jsx("p", { className: 'sans-serif --small ratafia-review-result__review__buttons__item__text negative', children: reviewNegativeText })] })] })] })) : (_jsx("div", { className: 'ratafia-review-result__review', children: _jsx("p", { className: 'sans-serif --small ratafia-review-result__review__question', children: reviewFeedbackText }) })) }));
3
+ export const RatafiaReviewResult = ({ reviewQuestion, reviewPositiveIcon, reviewPositiveText, handleOnClickReviewPositive, reviewPositiveDataQa = true, reviewNegativeIcon, reviewNegativeText, handleOnClickReviewNegative, reviewNegativeDataQa, reviewFeedbackText, reviewFeedBackTextDataQa = 'lawgenius_review_feedback_text', review }) => {
4
+ return (_jsx(RatafiaReviewResultStyled, { className: 'ratafia-review-result', children: review === null ? (_jsxs("div", { className: 'ratafia-review-result__review', children: [_jsx("p", { className: 'sans-serif ratafia-review-result__review__question', children: reviewQuestion }), _jsxs("div", { className: 'ratafia-review-result__review__buttons', children: [_jsxs("button", { className: 'ratafia-review-result__review__buttons__item', onClick: handleOnClickReviewPositive, "data-qa": reviewPositiveDataQa, children: [_jsx("div", { className: 'ratafia-review-result__review__buttons__item__icon', children: reviewPositiveIcon }), _jsx("p", { className: 'sans-serif --small ratafia-review-result__review__buttons__item__text positive', children: reviewPositiveText })] }), _jsxs("button", { className: 'ratafia-review-result__review__buttons__item', onClick: handleOnClickReviewNegative, "data-qa": reviewNegativeDataQa, children: [_jsx("div", { className: 'ratafia-review-result__review__buttons__item__icon', children: reviewNegativeIcon }), _jsx("p", { className: 'sans-serif --small ratafia-review-result__review__buttons__item__text negative', children: reviewNegativeText })] })] })] })) : (_jsx("div", { className: 'ratafia-review-result__review', children: _jsx("p", { className: 'sans-serif --small ratafia-review-result__review__question', "data-qa": reviewFeedBackTextDataQa, children: reviewFeedbackText }) })) }));
5
5
  };
6
6
  export default RatafiaReviewResult;
@@ -14,6 +14,7 @@ export const RatafiaReviewResult: React.FC<RatafiaReviewResultProps> = ({
14
14
  handleOnClickReviewNegative,
15
15
  reviewNegativeDataQa,
16
16
  reviewFeedbackText,
17
+ reviewFeedBackTextDataQa = 'lawgenius_review_feedback_text',
17
18
  review
18
19
  }) => {
19
20
  return (
@@ -46,7 +47,9 @@ export const RatafiaReviewResult: React.FC<RatafiaReviewResultProps> = ({
46
47
  </div>
47
48
  ) : (
48
49
  <div className='ratafia-review-result__review'>
49
- <p className='sans-serif --small ratafia-review-result__review__question'>{reviewFeedbackText}</p>
50
+ <p className='sans-serif --small ratafia-review-result__review__question' data-qa={reviewFeedBackTextDataQa}>
51
+ {reviewFeedbackText}
52
+ </p>
50
53
  </div>
51
54
  )}
52
55
  </RatafiaReviewResultStyled>
@@ -10,5 +10,6 @@ export interface RatafiaReviewResultProps {
10
10
  reviewNegativeDataQa: string;
11
11
  handleOnClickReviewNegative?: MouseEventHandler;
12
12
  reviewFeedbackText: string;
13
+ reviewFeedBackTextDataQa?: string;
13
14
  review: boolean | null;
14
15
  }
@@ -11,5 +11,6 @@ export interface RatafiaReviewResultProps {
11
11
  reviewNegativeDataQa: string
12
12
  handleOnClickReviewNegative?: MouseEventHandler
13
13
  reviewFeedbackText: string
14
+ reviewFeedBackTextDataQa?: string
14
15
  review: boolean | null
15
16
  }
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { RatafiaLoadingResultContentStyled } from './RatafiaLoadingResultContent.styled';
3
- export const RatafiaLoadingResultContent = ({ documentName, icon, text }) => {
4
- return (_jsxs(RatafiaLoadingResultContentStyled, { children: [_jsx("h2", { className: 'sans-serif --bold-weight ratafia-result-loading-content__document-name', children: documentName }), _jsxs("div", { className: 'ratafia-result-loading-content__animation-wrapper', children: [_jsxs("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation animation-1', children: [_jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-1' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-6' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-2' })] }), _jsxs("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation animation-2', children: [_jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-3' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-4' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-5' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-6' })] }), _jsxs("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation animation-3', children: [_jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-1' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-7' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-4' })] }), _jsxs("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation animation-4', children: [_jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-3' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-8' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-2' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-6' })] })] }), _jsxs("div", { className: 'ratafia-result-loading-content__message', children: [_jsx("div", { className: 'ratafia-result-loading-content__message__icon', children: icon }), _jsx("span", { className: 'sans-serif --medium ratafia-result-loading-content__message__text', children: text })] })] }));
3
+ export const RatafiaLoadingResultContent = ({ documentName, icon, text, loadingContentDataQa = 'lawgenius_loading_result_content', loadingMessageDataQa = 'lawgenius_loading_result_message' }) => {
4
+ return (_jsxs(RatafiaLoadingResultContentStyled, { "data-qa": loadingContentDataQa, children: [_jsx("h2", { className: 'sans-serif --bold-weight ratafia-result-loading-content__document-name', children: documentName }), _jsxs("div", { className: 'ratafia-result-loading-content__animation-wrapper', children: [_jsxs("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation animation-1', children: [_jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-1' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-6' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-2' })] }), _jsxs("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation animation-2', children: [_jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-3' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-4' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-5' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-6' })] }), _jsxs("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation animation-3', children: [_jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-1' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-7' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-4' })] }), _jsxs("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation animation-4', children: [_jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-3' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-8' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-2' }), _jsx("div", { className: 'ratafia-result-loading-content__animation-wrapper__animation__loader item-6' })] })] }), _jsxs("div", { className: 'ratafia-result-loading-content__message', "data-qa": loadingMessageDataQa, children: [_jsx("div", { className: 'ratafia-result-loading-content__message__icon', children: icon }), _jsx("span", { className: 'sans-serif --medium ratafia-result-loading-content__message__text', children: text })] })] }));
5
5
  };
6
6
  export default RatafiaLoadingResultContent;
@@ -6,10 +6,12 @@ import { RatafiaLoadingResultContentStyled } from './RatafiaLoadingResultContent
6
6
  export const RatafiaLoadingResultContent: React.FC<RatafiaLoadingResultContentProps> = ({
7
7
  documentName,
8
8
  icon,
9
- text
9
+ text,
10
+ loadingContentDataQa = 'lawgenius_loading_result_content',
11
+ loadingMessageDataQa = 'lawgenius_loading_result_message'
10
12
  }) => {
11
13
  return (
12
- <RatafiaLoadingResultContentStyled>
14
+ <RatafiaLoadingResultContentStyled data-qa={loadingContentDataQa}>
13
15
  <h2 className='sans-serif --bold-weight ratafia-result-loading-content__document-name'>{documentName}</h2>
14
16
  <div className='ratafia-result-loading-content__animation-wrapper'>
15
17
  <div className='ratafia-result-loading-content__animation-wrapper__animation animation-1'>
@@ -35,7 +37,7 @@ export const RatafiaLoadingResultContent: React.FC<RatafiaLoadingResultContentPr
35
37
  <div className='ratafia-result-loading-content__animation-wrapper__animation__loader item-6'></div>
36
38
  </div>
37
39
  </div>
38
- <div className='ratafia-result-loading-content__message'>
40
+ <div className='ratafia-result-loading-content__message' data-qa={loadingMessageDataQa}>
39
41
  <div className='ratafia-result-loading-content__message__icon'>{icon}</div>
40
42
  <span className='sans-serif --medium ratafia-result-loading-content__message__text'>{text}</span>
41
43
  </div>
@@ -2,4 +2,6 @@ export interface RatafiaLoadingResultContentProps {
2
2
  documentName: string;
3
3
  icon?: React.ReactNode;
4
4
  text?: React.ReactNode;
5
+ loadingContentDataQa?: string;
6
+ loadingMessageDataQa?: string;
5
7
  }
@@ -2,4 +2,6 @@ export interface RatafiaLoadingResultContentProps {
2
2
  documentName: string
3
3
  icon?: React.ReactNode
4
4
  text?: React.ReactNode
5
+ loadingContentDataQa?: string
6
+ loadingMessageDataQa?: string
5
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "5.79.5",
3
+ "version": "5.81.0",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",