@npm_leadtech/legal-lib-components 7.106.8 → 7.106.9

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.
@@ -2,8 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { TrustPilotWidgetLink, TrustPilotWidgetStyled } from './TrustPilotWidget.styled';
3
3
  import { TrustpilotLogo } from '../../../../images/componentsSvg/TrustpilotLogo';
4
4
  import { TrustpilotStars } from '../../../../images/componentsSvg/TrustpilotStars';
5
- export const TrustPilotWidget = ({ logo, stars, href, className }) => {
6
- const widget = (_jsxs(TrustPilotWidgetStyled, { className: ['trustpilot-widget', className].filter(Boolean).join(' '), "data-qa": 'trustpilot_widget', children: [_jsx("span", { className: 'trustpilot-widget__logo', role: 'img', "aria-label": 'TrustPilot', "data-qa": 'trustpilot_logo', children: logo ?? _jsx(TrustpilotLogo, {}) }), _jsx("span", { className: 'trustpilot-widget__rating', "data-qa": 'trustpilot_rating', children: stars ?? _jsx(TrustpilotStars, {}) })] }));
5
+ export const TrustPilotWidget = ({ href, className }) => {
6
+ const widget = (_jsxs(TrustPilotWidgetStyled, { className: ['trustpilot-widget', className].filter(Boolean).join(' '), "data-qa": 'trustpilot_widget', children: [_jsx("span", { className: 'trustpilot-widget__logo', role: 'img', "aria-label": 'TrustPilot', "data-qa": 'trustpilot_logo', children: _jsx(TrustpilotLogo, {}) }), _jsx("span", { className: 'trustpilot-widget__rating', "data-qa": 'trustpilot_rating', children: _jsx(TrustpilotStars, {}) })] }));
7
7
  if (!href)
8
8
  return widget;
9
9
  return (_jsx(TrustPilotWidgetLink, { className: className, href: href, target: '_blank', rel: 'noopener noreferrer', children: widget }));
@@ -6,17 +6,17 @@ import { type TrustPilotWidgetProps } from './TrustPilotWidgetProps.types'
6
6
  import { TrustpilotLogo } from '../../../../images/componentsSvg/TrustpilotLogo'
7
7
  import { TrustpilotStars } from '../../../../images/componentsSvg/TrustpilotStars'
8
8
 
9
- export const TrustPilotWidget: FC<TrustPilotWidgetProps> = ({ logo, stars, href, className }) => {
9
+ export const TrustPilotWidget: FC<TrustPilotWidgetProps> = ({ href, className }) => {
10
10
  const widget = (
11
11
  <TrustPilotWidgetStyled
12
12
  className={['trustpilot-widget', className].filter(Boolean).join(' ')}
13
13
  data-qa='trustpilot_widget'
14
14
  >
15
15
  <span className='trustpilot-widget__logo' role='img' aria-label='TrustPilot' data-qa='trustpilot_logo'>
16
- {logo ?? <TrustpilotLogo />}
16
+ <TrustpilotLogo />
17
17
  </span>
18
18
  <span className='trustpilot-widget__rating' data-qa='trustpilot_rating'>
19
- {stars ?? <TrustpilotStars />}
19
+ <TrustpilotStars />
20
20
  </span>
21
21
  </TrustPilotWidgetStyled>
22
22
  )
@@ -1,6 +1,4 @@
1
1
  export interface TrustPilotWidgetProps {
2
- logo?: React.ReactNode;
3
- stars?: React.ReactNode;
4
2
  href?: string;
5
3
  className?: string;
6
4
  }
@@ -1,6 +1,4 @@
1
1
  export interface TrustPilotWidgetProps {
2
- logo?: React.ReactNode
3
- stars?: React.ReactNode
4
2
  href?: string
5
3
  className?: string
6
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "7.106.8",
3
+ "version": "7.106.9",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",