@npm_leadtech/legal-lib-components 5.78.1 → 5.78.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.
@@ -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, 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 }) })) }));
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 }) })) }));
5
5
  };
6
6
  export default RatafiaReviewResult;
@@ -14,7 +14,6 @@ export const RatafiaReviewResult: React.FC<RatafiaReviewResultProps> = ({
14
14
  handleOnClickReviewNegative,
15
15
  reviewNegativeDataQa,
16
16
  reviewFeedbackText,
17
- reviewFeedBackTextDataQa = 'lawgenius_review_feedback_text',
18
17
  review
19
18
  }) => {
20
19
  return (
@@ -47,9 +46,7 @@ export const RatafiaReviewResult: React.FC<RatafiaReviewResultProps> = ({
47
46
  </div>
48
47
  ) : (
49
48
  <div className='ratafia-review-result__review'>
50
- <p className='sans-serif --small ratafia-review-result__review__question' data-qa={reviewFeedBackTextDataQa}>
51
- {reviewFeedbackText}
52
- </p>
49
+ <p className='sans-serif --small ratafia-review-result__review__question'>{reviewFeedbackText}</p>
53
50
  </div>
54
51
  )}
55
52
  </RatafiaReviewResultStyled>
@@ -10,6 +10,5 @@ export interface RatafiaReviewResultProps {
10
10
  reviewNegativeDataQa: string;
11
11
  handleOnClickReviewNegative?: MouseEventHandler;
12
12
  reviewFeedbackText: string;
13
- reviewFeedBackTextDataQa?: string;
14
13
  review: boolean | null;
15
14
  }
@@ -11,6 +11,5 @@ export interface RatafiaReviewResultProps {
11
11
  reviewNegativeDataQa: string
12
12
  handleOnClickReviewNegative?: MouseEventHandler
13
13
  reviewFeedbackText: string
14
- reviewFeedBackTextDataQa?: string
15
14
  review: boolean | null
16
15
  }
@@ -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, 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 })] })] }));
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 })] })] }));
5
5
  };
6
6
  export default RatafiaLoadingResultContent;
@@ -6,12 +6,10 @@ import { RatafiaLoadingResultContentStyled } from './RatafiaLoadingResultContent
6
6
  export const RatafiaLoadingResultContent: React.FC<RatafiaLoadingResultContentProps> = ({
7
7
  documentName,
8
8
  icon,
9
- text,
10
- loadingContentDataQa = 'lawgenius_loading_result_content',
11
- loadingMessageDataQa = 'lawgenius_loading_result_message'
9
+ text
12
10
  }) => {
13
11
  return (
14
- <RatafiaLoadingResultContentStyled data-qa={loadingContentDataQa}>
12
+ <RatafiaLoadingResultContentStyled>
15
13
  <h2 className='sans-serif --bold-weight ratafia-result-loading-content__document-name'>{documentName}</h2>
16
14
  <div className='ratafia-result-loading-content__animation-wrapper'>
17
15
  <div className='ratafia-result-loading-content__animation-wrapper__animation animation-1'>
@@ -37,7 +35,7 @@ export const RatafiaLoadingResultContent: React.FC<RatafiaLoadingResultContentPr
37
35
  <div className='ratafia-result-loading-content__animation-wrapper__animation__loader item-6'></div>
38
36
  </div>
39
37
  </div>
40
- <div className='ratafia-result-loading-content__message' data-qa={loadingMessageDataQa}>
38
+ <div className='ratafia-result-loading-content__message'>
41
39
  <div className='ratafia-result-loading-content__message__icon'>{icon}</div>
42
40
  <span className='sans-serif --medium ratafia-result-loading-content__message__text'>{text}</span>
43
41
  </div>
@@ -2,6 +2,4 @@ export interface RatafiaLoadingResultContentProps {
2
2
  documentName: string;
3
3
  icon?: React.ReactNode;
4
4
  text?: React.ReactNode;
5
- loadingContentDataQa?: string;
6
- loadingMessageDataQa?: string;
7
5
  }
@@ -2,6 +2,4 @@ export interface RatafiaLoadingResultContentProps {
2
2
  documentName: string
3
3
  icon?: React.ReactNode
4
4
  text?: React.ReactNode
5
- loadingContentDataQa?: string
6
- loadingMessageDataQa?: string
7
5
  }
@@ -4,6 +4,7 @@ export const WhyLawDistrictSectionStyled = styled.section `
4
4
  text-align: center;
5
5
  background-color: var(--neutral-neutral-6);
6
6
  width: 100%;
7
+ padding-top: 2.5rem;
7
8
  padding-bottom: 2rem;
8
9
  display: flex;
9
10
  flex-direction: column;
@@ -5,6 +5,7 @@ export const WhyLawDistrictSectionStyled = styled.section`
5
5
  text-align: center;
6
6
  background-color: var(--neutral-neutral-6);
7
7
  width: 100%;
8
+ padding-top: 2.5rem;
8
9
  padding-bottom: 2rem;
9
10
  display: flex;
10
11
  flex-direction: column;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "5.78.1",
3
+ "version": "5.78.2",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",