@npm_leadtech/legal-lib-components 5.39.11 → 5.39.12

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.
@@ -1783,6 +1783,9 @@ h2.react-datepicker__current-month {
1783
1783
  align-items: center;
1784
1784
  gap: 0.5rem;
1785
1785
  }
1786
+ .e-radio.default .e-radio__inner .radio-item-container .e-radio-label .radio-item-input {
1787
+ visibility: hidden;
1788
+ }
1786
1789
  .e-radio.default .e-radio__inner .radio-item-container .e-radio-label input[type=radio]:after {
1787
1790
  width: 16px;
1788
1791
  height: 16px;
@@ -1947,6 +1950,9 @@ h2.react-datepicker__current-month {
1947
1950
  align-items: center;
1948
1951
  gap: 0.5rem;
1949
1952
  }
1953
+ .e-radio.--icons .e-radio__inner .radio-item-container .e-radio-label .radio-item-input {
1954
+ visibility: hidden;
1955
+ }
1950
1956
  .e-radio.--icons .e-radio__inner .radio-item-container .e-radio-label input[type=radio]:after {
1951
1957
  width: 16px;
1952
1958
  height: 16px;
@@ -12,6 +12,10 @@
12
12
  align-items: center;
13
13
  gap: 0.5rem;
14
14
 
15
+ .radio-item-input {
16
+ visibility: hidden;
17
+ }
18
+
15
19
  input[type='radio']:after {
16
20
  width: 16px;
17
21
  height: 16px;
@@ -14,7 +14,7 @@ const themes = {
14
14
  icon: _jsx(Done24pxOutline, {})
15
15
  }
16
16
  };
17
- const Feedback = ({ theme = 'success', title, text, button, cancel, large, fluid, imgSrc = '', dataQa = '' }) => {
17
+ const Feedback = ({ theme = 'success', title, text, button, cancel, large = false, fluid = false, imgSrc = '', dataQa = '' }) => {
18
18
  const currentTheme = themes[theme] ?? {};
19
19
  if (Object.keys(currentTheme).length === 0 && imgSrc.length === 0) {
20
20
  return null;
@@ -28,8 +28,8 @@ const Feedback: FC<FeedbackProps> = ({
28
28
  text,
29
29
  button,
30
30
  cancel,
31
- large,
32
- fluid,
31
+ large = false,
32
+ fluid = false,
33
33
  imgSrc = '',
34
34
  dataQa = ''
35
35
  }) => {
@@ -4,8 +4,8 @@ export interface FeedbackProps {
4
4
  title?: string;
5
5
  text?: string;
6
6
  imgSrc?: string;
7
- large: boolean;
8
- fluid: boolean;
7
+ large?: boolean;
8
+ fluid?: boolean;
9
9
  dataQa?: string;
10
10
  button?: ButtonProps;
11
11
  cancel?: {
@@ -5,8 +5,8 @@ export interface FeedbackProps {
5
5
  title?: string
6
6
  text?: string
7
7
  imgSrc?: string
8
- large: boolean
9
- fluid: boolean
8
+ large?: boolean
9
+ fluid?: boolean
10
10
  dataQa?: string
11
11
  button?: ButtonProps
12
12
  cancel?: {
@@ -2,11 +2,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Button, IconSvgURLWithThemeColor, RichTextStrapi } from '../../atoms';
3
3
  import { RatafiaSubscriptionCardStyled } from './RatafiaSubscriptionCard.styled';
4
4
  import { stringSlugify } from '../../../utils/stringSlugify';
5
- const RatafiaSubscriptionCard = ({ cardStyle = 'primary', iconTitle, title, priceText, mainFeatures, AIFeatures, buttonText, handleClick }) => {
5
+ const RatafiaSubscriptionCard = ({ cardStyle = 'primary', iconTitle, title, priceText, mainFeatures, AIFeatures, buttonText, dataQa, handleClick }) => {
6
6
  if (!title)
7
7
  return null;
8
8
  const buttonStyle = cardStyle === 'Secondary' ? 'primary3' : 'primary';
9
9
  const renderFeatures = (features, className) => features.map((feature) => (_jsxs("div", { className: `ratafia-card__feature ${className ?? ''}`, children: [feature.image?.url && _jsx(IconSvgURLWithThemeColor, { url: feature.image.url, height: '16', width: '16' }), _jsx(RichTextStrapi, { html: feature.title })] }, feature.title)));
10
- return (_jsxs(RatafiaSubscriptionCardStyled, { className: `ratafia-card ${cardStyle ? stringSlugify(cardStyle) : 'primary'}`, children: [_jsxs("div", { className: 'ratafia-card__header', children: [title && (_jsxs("div", { className: 'ratafia-card__title', children: [iconTitle?.url && _jsx(IconSvgURLWithThemeColor, { url: iconTitle.url, height: '26', width: '26' }), _jsx(RichTextStrapi, { html: title })] })), priceText && _jsx("div", { className: 'ratafia-card__price-text', children: priceText })] }), _jsx("hr", {}), _jsxs("div", { className: 'ratafia-card__body', children: [mainFeatures && renderFeatures(mainFeatures, 'main-feature'), AIFeatures && renderFeatures(AIFeatures, 'ratafia-feature')] }), buttonText && (_jsx("div", { className: 'ratafia-card__footer', children: _jsx(Button, { dataQa: 'ratafia-card-button', givenClass: 'ratafia-card__button', color: buttonStyle, label: buttonText, noLink: true, onClick: handleClick }) }))] }));
10
+ return (_jsxs(RatafiaSubscriptionCardStyled, { className: `ratafia-card ${cardStyle ? stringSlugify(cardStyle) : 'primary'}`, children: [_jsxs("div", { className: 'ratafia-card__header', children: [title && (_jsxs("div", { className: 'ratafia-card__title', children: [iconTitle?.url && _jsx(IconSvgURLWithThemeColor, { url: iconTitle.url, height: '26', width: '26' }), _jsx(RichTextStrapi, { html: title })] })), priceText && _jsx("div", { className: 'ratafia-card__price-text', children: priceText })] }), _jsx("hr", {}), _jsxs("div", { className: 'ratafia-card__body', children: [mainFeatures && renderFeatures(mainFeatures, 'main-feature'), AIFeatures && renderFeatures(AIFeatures, 'ratafia-feature')] }), buttonText && (_jsx("div", { className: 'ratafia-card__footer', children: _jsx(Button, { dataQa: `${dataQa ?? 'ratafia-card-button'}`, givenClass: 'ratafia-card__button', color: buttonStyle, label: buttonText, noLink: true, onClick: handleClick }) }))] }));
11
11
  };
12
12
  export default RatafiaSubscriptionCard;
@@ -13,6 +13,7 @@ const RatafiaSubscriptionCard: FC<RatafiaSubscriptionCardProps> = ({
13
13
  mainFeatures,
14
14
  AIFeatures,
15
15
  buttonText,
16
+ dataQa,
16
17
  handleClick
17
18
  }) => {
18
19
  if (!title) return null
@@ -44,7 +45,7 @@ const RatafiaSubscriptionCard: FC<RatafiaSubscriptionCardProps> = ({
44
45
  {buttonText && (
45
46
  <div className='ratafia-card__footer'>
46
47
  <Button
47
- dataQa='ratafia-card-button'
48
+ dataQa={`${dataQa ?? 'ratafia-card-button'}`}
48
49
  givenClass='ratafia-card__button'
49
50
  color={buttonStyle}
50
51
  label={buttonText}
@@ -1,4 +1,5 @@
1
1
  export interface RatafiaSubscriptionCardProps {
2
+ subscriptionTypeName?: string;
2
3
  cardStyle?: CardStyleType;
3
4
  iconTitle?: IconTitleProps;
4
5
  title?: string;
@@ -6,6 +7,7 @@ export interface RatafiaSubscriptionCardProps {
6
7
  mainFeatures?: BenefitProps[];
7
8
  AIFeatures?: BenefitProps[];
8
9
  buttonText?: string;
10
+ dataQa?: string;
9
11
  handleClick?: () => void;
10
12
  }
11
13
  interface IconTitleProps {
@@ -1,4 +1,5 @@
1
1
  export interface RatafiaSubscriptionCardProps {
2
+ subscriptionTypeName?: string
2
3
  cardStyle?: CardStyleType
3
4
  iconTitle?: IconTitleProps
4
5
  title?: string
@@ -6,6 +7,7 @@ export interface RatafiaSubscriptionCardProps {
6
7
  mainFeatures?: BenefitProps[]
7
8
  AIFeatures?: BenefitProps[]
8
9
  buttonText?: string
10
+ dataQa?: string
9
11
  handleClick?: () => void
10
12
  }
11
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "5.39.11",
3
+ "version": "5.39.12",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",