@npm_leadtech/legal-lib-components 5.12.2 → 5.12.3

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,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Button } from '../../atoms';
2
3
  import { SubtypeDocumentCardStyled } from './SubtypeDocumentCard.styled';
3
- const SubtypeDocumentCard = ({ title, description, sampleImage, pdfButton, wordButton, createDocButton }) => {
4
- return (_jsxs(SubtypeDocumentCardStyled, { children: [sampleImage, _jsxs("div", { className: 'content', children: [_jsx("h1", { className: 'title', children: title }), _jsx("p", { className: 'description', children: description }), _jsxs("div", { className: 'buttons-container', children: [createDocButton, _jsxs("div", { className: 'downloadable-buttons', children: [pdfButton, wordButton] })] })] })] }));
4
+ const SubtypeDocumentCard = ({ title, description, children, pdfButton, wordButton, createDocButton }) => {
5
+ return (_jsxs(SubtypeDocumentCardStyled, { children: [children, _jsxs("div", { className: 'content', children: [_jsx("h1", { className: 'title', children: title }), _jsx("p", { className: 'description', children: description }), _jsxs("div", { className: 'buttons-container', children: [_jsx(Button, { ...createDocButton }), _jsxs("div", { className: 'downloadable-buttons', children: [_jsx(Button, { ...pdfButton }), _jsx(Button, { ...wordButton })] })] })] })] }));
5
6
  };
6
7
  export default SubtypeDocumentCard;
@@ -28,7 +28,7 @@ export const SubtypeDocumentCardStyled = styled.div `
28
28
  }
29
29
 
30
30
  @media (min-width: ${size.lg}) {
31
- width: 710px;
31
+ width: 715px;
32
32
  height: 307px;
33
33
  min-height: 335px;
34
34
  }
@@ -29,7 +29,7 @@ export const SubtypeDocumentCardStyled = styled.div`
29
29
  }
30
30
 
31
31
  @media (min-width: ${size.lg}) {
32
- width: 710px;
32
+ width: 715px;
33
33
  height: 307px;
34
34
  min-height: 335px;
35
35
  }
@@ -1,28 +1,29 @@
1
1
  /* eslint-disable @typescript-eslint/no-unsafe-assignment */
2
2
  import React, { type FC } from 'react'
3
3
 
4
+ import { Button } from '../../atoms'
4
5
  import { type SubtypeDocumentCardProps } from './SubtypeDocumentCardProps.types'
5
6
  import { SubtypeDocumentCardStyled } from './SubtypeDocumentCard.styled'
6
7
 
7
8
  const SubtypeDocumentCard: FC<SubtypeDocumentCardProps> = ({
8
9
  title,
9
10
  description,
10
- sampleImage,
11
+ children,
11
12
  pdfButton,
12
13
  wordButton,
13
14
  createDocButton
14
15
  }) => {
15
16
  return (
16
17
  <SubtypeDocumentCardStyled>
17
- {sampleImage}
18
+ {children}
18
19
  <div className='content'>
19
20
  <h1 className='title'>{title}</h1>
20
21
  <p className='description'>{description}</p>
21
22
  <div className='buttons-container'>
22
- {createDocButton}
23
+ <Button {...createDocButton} />
23
24
  <div className='downloadable-buttons'>
24
- {pdfButton}
25
- {wordButton}
25
+ <Button {...pdfButton} />
26
+ <Button {...wordButton} />
26
27
  </div>
27
28
  </div>
28
29
  </div>
@@ -1,8 +1,9 @@
1
+ import { ButtonProps } from 'src/components/atoms';
1
2
  export interface SubtypeDocumentCardProps {
2
3
  title: string;
3
4
  description: string;
4
- sampleImage: React.ReactNode;
5
- pdfButton: React.ReactNode;
6
- wordButton: React.ReactNode;
7
- createDocButton: React.ReactNode;
5
+ children: React.ReactNode;
6
+ pdfButton: ButtonProps;
7
+ wordButton: ButtonProps;
8
+ createDocButton: ButtonProps;
8
9
  }
@@ -1,8 +1,10 @@
1
+ import { ButtonProps } from 'src/components/atoms'
2
+
1
3
  export interface SubtypeDocumentCardProps {
2
4
  title: string
3
5
  description: string
4
- sampleImage: React.ReactNode
5
- pdfButton: React.ReactNode
6
- wordButton: React.ReactNode
7
- createDocButton: React.ReactNode
6
+ children: React.ReactNode
7
+ pdfButton: ButtonProps
8
+ wordButton: ButtonProps
9
+ createDocButton: ButtonProps
8
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "5.12.2",
3
+ "version": "5.12.3",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",