@npm_leadtech/legal-lib-components 5.33.3 → 5.33.5

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.
Files changed (19) hide show
  1. package/dist/src/components/atoms/AddButton/AddButton.styled.js +0 -1
  2. package/dist/src/components/atoms/AddButton/AddButton.styled.ts +0 -1
  3. package/dist/src/components/atoms/RemoveButton/RemoveButton.styled.js +0 -1
  4. package/dist/src/components/atoms/RemoveButton/RemoveButton.styled.ts +0 -1
  5. package/dist/src/components/molecules/TextInput/TextInput.js +1 -1
  6. package/dist/src/components/molecules/TextInput/TextInput.tsx +1 -1
  7. package/dist/src/components/organisms/CardFunctionality/CardFunctionality.js +1 -3
  8. package/dist/src/components/organisms/CardFunctionality/CardFunctionality.styled.js +0 -5
  9. package/dist/src/components/organisms/CardFunctionality/CardFunctionality.styled.ts +0 -5
  10. package/dist/src/components/organisms/CardFunctionality/CardFunctionality.tsx +1 -9
  11. package/dist/src/components/organisms/CardFunctionality/CardFunctionalityProps.d.ts +0 -1
  12. package/dist/src/components/organisms/CardFunctionality/CardFunctionalityProps.ts +0 -1
  13. package/dist/src/components/pages/ErrorRatafiaPage/ErrorRatafiaPage.styled.js +0 -1
  14. package/dist/src/components/pages/ErrorRatafiaPage/ErrorRatafiaPage.styled.ts +0 -1
  15. package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.js +1 -0
  16. package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.styled.js +3 -1
  17. package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.styled.ts +3 -1
  18. package/dist/src/components/sections/FunctionalityCardsSection/FunctionalityCardsSection.tsx +1 -0
  19. package/package.json +1 -1
@@ -17,7 +17,6 @@ export const AddButtonStyled = styled.div `
17
17
  .e-addButton {
18
18
  &__inner {
19
19
  display: inline-block;
20
- margin-top: 1rem;
21
20
  color: var(--primary-main);
22
21
  border-radius: var(--global-border-radius);
23
22
  transition: all 0.3s ease;
@@ -18,7 +18,6 @@ export const AddButtonStyled = styled.div`
18
18
  .e-addButton {
19
19
  &__inner {
20
20
  display: inline-block;
21
- margin-top: 1rem;
22
21
  color: var(--primary-main);
23
22
  border-radius: var(--global-border-radius);
24
23
  transition: all 0.3s ease;
@@ -5,7 +5,6 @@ export const RemoveButtonStyled = styled.section `
5
5
  .e-removeButton {
6
6
  &__inner {
7
7
  display: inline-block;
8
- margin-top: 1rem;
9
8
  color: var(--error-main);
10
9
 
11
10
  border-radius: var(--global-border-radius);
@@ -6,7 +6,6 @@ export const RemoveButtonStyled = styled.section`
6
6
  .e-removeButton {
7
7
  &__inner {
8
8
  display: inline-block;
9
- margin-top: 1rem;
10
9
  color: var(--error-main);
11
10
 
12
11
  border-radius: var(--global-border-radius);
@@ -32,7 +32,7 @@ const TextInput = React.forwardRef(({ label, value, validate = true, isValidGrou
32
32
  }
33
33
  return (_jsx(Input, { name: name ?? '', type: type, placeholder: placeholder ?? '', className: 'e-text-input', onChange: handleChange, onClick: onClick ?? (() => { }), value: value, "data-qa": name, disabled: disabled ?? false, maxLength: maxLength, onBlur: onBlur ?? (() => { }), ref: ref, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp }));
34
34
  };
35
- return (_jsxs("div", { className: classnames, children: [children !== null && _jsx("div", { className: 'e-text__children', children: children }), _jsx(TextInputTooltip, { tooltip: tooltip }), _jsx(TextInputMessage, { errorMessage: errorMessage, validate: validate }), renderInput(), _jsx(TextInputLabel, { label: label, htmlFor: name, notes: notes, dialogMenuTip: dialogMenuTip })] }));
35
+ return (_jsxs("div", { className: classnames, children: [Boolean(children) && _jsx("div", { className: 'e-text__children', children: children }), _jsx(TextInputTooltip, { tooltip: tooltip }), _jsx(TextInputMessage, { errorMessage: errorMessage, validate: validate }), renderInput(), _jsx(TextInputLabel, { label: label, htmlFor: name, notes: notes, dialogMenuTip: dialogMenuTip })] }));
36
36
  });
37
37
  export default TextInput;
38
38
  TextInput.displayName = 'TextInput';
@@ -97,7 +97,7 @@ const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(
97
97
 
98
98
  return (
99
99
  <div className={classnames}>
100
- {children !== null && <div className='e-text__children'>{children}</div>}
100
+ {Boolean(children) && <div className='e-text__children'>{children}</div>}
101
101
  <TextInputTooltip tooltip={tooltip} />
102
102
  <TextInputMessage errorMessage={errorMessage} validate={validate} />
103
103
  {renderInput()}
@@ -1,8 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Button, Tag } from '../../atoms';
3
3
  import { CardFunctionalityStyled } from './CardFunctionality.styled';
4
- export const CardFunctionality = ({ icon, title, text, tags, cta, isHidden = false }) => {
5
- if (isHidden)
6
- return null;
4
+ export const CardFunctionality = ({ icon, title, text, tags, cta }) => {
7
5
  return (_jsxs(CardFunctionalityStyled, { children: [_jsxs("div", { className: 'content-tags', children: [_jsxs("div", { className: 'content', children: [_jsxs("div", { className: 'header', children: [_jsx("div", { className: 'icon', children: icon }), _jsx("p", { className: 'title', children: title })] }), _jsx("div", { title: text, className: 'text', children: text })] }), _jsx("div", { className: 'tags', children: tags.map((tag) => (_jsx(Tag, { ...tag }, tag.id))) })] }), _jsx(Button, { ...cta, givenClass: 'cta-card' })] }));
8
6
  };
@@ -1,4 +1,3 @@
1
- import { device } from '../../../globalStyles/breakpoints';
2
1
  import styled from 'styled-components';
3
2
  export const CardFunctionalityStyled = styled.article `
4
3
  border-radius: var(--global-border-radius);
@@ -7,10 +6,6 @@ export const CardFunctionalityStyled = styled.article `
7
6
  flex-direction: column;
8
7
  gap: var(--global-gap);
9
8
  padding: 1em;
10
- width: 100%;
11
- @media ${device.laptop} {
12
- width: 50%;
13
- }
14
9
 
15
10
  .content-tags {
16
11
  display: flex;
@@ -1,4 +1,3 @@
1
- import { device } from '../../../globalStyles/breakpoints'
2
1
  import styled from 'styled-components'
3
2
 
4
3
  export const CardFunctionalityStyled = styled.article`
@@ -8,10 +7,6 @@ export const CardFunctionalityStyled = styled.article`
8
7
  flex-direction: column;
9
8
  gap: var(--global-gap);
10
9
  padding: 1em;
11
- width: 100%;
12
- @media ${device.laptop} {
13
- width: 50%;
14
- }
15
10
 
16
11
  .content-tags {
17
12
  display: flex;
@@ -4,15 +4,7 @@ import { Button, Tag } from '../../atoms'
4
4
  import { type CardFunctionalityProps } from './CardFunctionalityProps'
5
5
  import { CardFunctionalityStyled } from './CardFunctionality.styled'
6
6
 
7
- export const CardFunctionality: React.FC<CardFunctionalityProps> = ({
8
- icon,
9
- title,
10
- text,
11
- tags,
12
- cta,
13
- isHidden = false
14
- }) => {
15
- if (isHidden) return null
7
+ export const CardFunctionality: React.FC<CardFunctionalityProps> = ({ icon, title, text, tags, cta }) => {
16
8
  return (
17
9
  <CardFunctionalityStyled>
18
10
  <div className='content-tags'>
@@ -6,5 +6,4 @@ export interface CardFunctionalityProps {
6
6
  tags: TagProps[];
7
7
  cta: ButtonProps;
8
8
  id: string;
9
- isHidden: boolean;
10
9
  }
@@ -7,5 +7,4 @@ export interface CardFunctionalityProps {
7
7
  tags: TagProps[]
8
8
  cta: ButtonProps
9
9
  id: string
10
- isHidden: boolean
11
10
  }
@@ -14,7 +14,6 @@ export const ErrorRatafiaPageStyled = styled.div `
14
14
  &__button {
15
15
  display: block;
16
16
  width: 100%;
17
- height: auto;
18
17
  &:first-child {
19
18
  margin-bottom: 1rem;
20
19
  }
@@ -15,7 +15,6 @@ export const ErrorRatafiaPageStyled = styled.div`
15
15
  &__button {
16
16
  display: block;
17
17
  width: 100%;
18
- height: auto;
19
18
  &:first-child {
20
19
  margin-bottom: 1rem;
21
20
  }
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { CardFunctionality } from '../../organisms';
3
3
  import { FunctionalityCardsSectionStyled } from './FunctionalityCardsSection.styled';
4
+ // import './FunctionalityCardsSection.scss'
4
5
  export const FunctionalityCardsSection = ({ cards = [] }) => {
5
6
  if (cards.length === 0)
6
7
  return null;
@@ -3,10 +3,12 @@ import styled from 'styled-components';
3
3
  export const FunctionalityCardsSectionStyled = styled.section `
4
4
  display: flex;
5
5
  flex-direction: column;
6
- gap: var(--global-gap);
6
+ gap: $global-gap;
7
+ margin-bottom: 2rem;
7
8
  width: 100%;
8
9
 
9
10
  @media ${device.laptop} {
10
11
  flex-direction: row;
12
+ width: 50%;
11
13
  }
12
14
  `;
@@ -4,10 +4,12 @@ import styled from 'styled-components'
4
4
  export const FunctionalityCardsSectionStyled = styled.section`
5
5
  display: flex;
6
6
  flex-direction: column;
7
- gap: var(--global-gap);
7
+ gap: $global-gap;
8
+ margin-bottom: 2rem;
8
9
  width: 100%;
9
10
 
10
11
  @media ${device.laptop} {
11
12
  flex-direction: row;
13
+ width: 50%;
12
14
  }
13
15
  `
@@ -3,6 +3,7 @@ import React from 'react'
3
3
  import { CardFunctionality } from '../../organisms'
4
4
  import { type FunctionalityCardsSectionProps } from './FunctionalityCardsSectionProps'
5
5
  import { FunctionalityCardsSectionStyled } from './FunctionalityCardsSection.styled'
6
+ // import './FunctionalityCardsSection.scss'
6
7
 
7
8
  export const FunctionalityCardsSection: React.FC<FunctionalityCardsSectionProps> = ({ cards = [] }) => {
8
9
  if (cards.length === 0) return null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "5.33.3",
3
+ "version": "5.33.5",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",