frst-components 0.29.0 → 0.29.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.
package/dist/index.js CHANGED
@@ -24836,6 +24836,7 @@ const WrapperImage = styled__default["default"]('div') `
24836
24836
  height: 120px;
24837
24837
  border-top-left-radius: 12px;
24838
24838
  border-bottom-left-radius: 12px;
24839
+ object-fit: cover;
24839
24840
  }
24840
24841
  `;
24841
24842
  const CardInfo$1 = styled__default["default"]('div') `
@@ -24873,8 +24874,9 @@ const DescriptionWrapper = styled__default["default"]('div') `
24873
24874
  `;
24874
24875
  const CardFooter = styled__default["default"]('div') `
24875
24876
  display: flex;
24876
- flex-direction: row-reverse;
24877
+ flex-direction: row;
24877
24878
  justify-content: space-between;
24879
+ align-items: center;
24878
24880
 
24879
24881
  .company {
24880
24882
  display: flex;
@@ -24884,6 +24886,7 @@ const CardFooter = styled__default["default"]('div') `
24884
24886
  font-weight: 400;
24885
24887
  line-height: 1.5;
24886
24888
  color: #444444;
24889
+ margin: 0;
24887
24890
 
24888
24891
  img {
24889
24892
  width: 16px;
@@ -24901,6 +24904,7 @@ const CardFooter = styled__default["default"]('div') `
24901
24904
  line-height: 1.5;
24902
24905
  color: #444444;
24903
24906
  cursor: pointer;
24907
+ margin: 0;
24904
24908
  }
24905
24909
 
24906
24910
  `;
@@ -24908,9 +24912,11 @@ const CardFooter = styled__default["default"]('div') `
24908
24912
  function DownloadIcon() {
24909
24913
  return (jsxRuntime.jsxs("svg", { width: "20", height: "21", viewBox: "0 0 20 21", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [jsxRuntime.jsx("path", { d: "M15.9031 12.1523V14.7604C15.9031 15.1062 15.7657 15.4379 15.5212 15.6825C15.2766 15.927 14.945 16.0644 14.5991 16.0644H5.47101C5.12516 16.0644 4.79348 15.927 4.54893 15.6825C4.30438 15.4379 4.16699 15.1062 4.16699 14.7604V12.1523", stroke: "#444444", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round" }), jsxRuntime.jsx("path", { d: "M6.17285 9.66699L9.92285 13.0003L13.6729 9.66699", stroke: "#444444", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round" }), jsxRuntime.jsx("path", { d: "M9.92285 13.0002V3.8335", stroke: "#444444", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round" })] }));
24910
24914
  }
24911
- function CardContent$1({ contentType, contentImage, contentDescription, company, handleDownload }) {
24912
- return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(CardContainer$1, { children: [jsxRuntime.jsx(WrapperImage, { children: jsxRuntime.jsx("img", { src: contentImage }) }), jsxRuntime.jsxs(CardInfo$1, { children: [jsxRuntime.jsxs(DescriptionWrapper, { children: [jsxRuntime.jsxs("p", { className: 'title', children: [" ", contentType.toUpperCase(), " "] }), jsxRuntime.jsxs("p", { className: 'description', children: [" ", contentDescription, " "] })] }), jsxRuntime.jsxs(CardFooter, { children: [jsxRuntime.jsxs("p", { className: 'download', onClick: handleDownload, children: ["Baixar", jsxRuntime.jsx(DownloadIcon, {})] }), company &&
24913
- jsxRuntime.jsxs("p", { className: 'company', children: [jsxRuntime.jsx("img", { src: company.icon }), company.name] })] })] })] }) }));
24915
+ function CardContent$1({ contentType, contentImage, contentDescription, company, enableDownload, handleDownload, handleClickCard }) {
24916
+ return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(CardContainer$1, { onClick: handleClickCard ? handleClickCard : () => { }, children: [jsxRuntime.jsx(WrapperImage, { children: jsxRuntime.jsx("img", { src: contentImage }) }), jsxRuntime.jsxs(CardInfo$1, { children: [jsxRuntime.jsxs(DescriptionWrapper, { children: [jsxRuntime.jsxs("p", { className: 'title', children: [" ", contentType.toUpperCase(), " "] }), jsxRuntime.jsxs("p", { className: 'description', children: [" ", contentDescription, " "] })] }), jsxRuntime.jsxs(CardFooter, { children: [company &&
24917
+ jsxRuntime.jsxs("p", { className: 'company', children: [company.icon && company.icon !== '' &&
24918
+ jsxRuntime.jsx("img", { src: company.icon }), company.name] }), enableDownload &&
24919
+ jsxRuntime.jsxs("p", { className: 'download', onClick: handleDownload, children: ["Baixar", jsxRuntime.jsx(DownloadIcon, {})] })] })] })] }) }));
24914
24920
  }
24915
24921
 
24916
24922
  const CardContainer = styled__default["default"].div `
@@ -8,8 +8,10 @@ interface cardContentProps {
8
8
  contentImage: string;
9
9
  contentDescription: string;
10
10
  company?: Company;
11
- handleDownload: () => void;
11
+ enableDownload?: boolean;
12
+ handleDownload?: () => void;
13
+ handleClickCard?: () => void;
12
14
  }
13
- export default function CardContent({ contentType, contentImage, contentDescription, company, handleDownload }: cardContentProps): import("react/jsx-runtime").JSX.Element;
15
+ export default function CardContent({ contentType, contentImage, contentDescription, company, enableDownload, handleDownload, handleClickCard }: cardContentProps): import("react/jsx-runtime").JSX.Element;
14
16
  export {};
15
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DS/newCards/content/index.tsx"],"names":[],"mappings":"AAoBA,UAAU,OAAO;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;CAChB;AACD,UAAU,gBAAgB;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,cAAc,EAAE,MAAM,IAAI,CAAA;CAC7B;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAE,EACjC,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,OAAO,EACP,cAAc,EACjB,EAAE,gBAAgB,2CA8BlB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DS/newCards/content/index.tsx"],"names":[],"mappings":"AAoBA,UAAU,OAAO;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;CAChB;AACD,UAAU,gBAAgB;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;CAC/B;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAE,EACjC,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,OAAO,EACP,cAAc,EACd,cAAc,EACd,eAAe,EAClB,EAAE,gBAAgB,2CAkClB"}
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DS/newCards/content/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,oEAkBzB,CAAA;AAED,eAAO,MAAM,YAAY,oEAOxB,CAAA;AAED,eAAO,MAAM,QAAQ,oEAMpB,CAAA;AAED,eAAO,MAAM,kBAAkB,oEAyB9B,CAAA;AAED,eAAO,MAAM,UAAU,oEAgCtB,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DS/newCards/content/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,oEAkBzB,CAAA;AAED,eAAO,MAAM,YAAY,oEAQxB,CAAA;AAED,eAAO,MAAM,QAAQ,oEAMpB,CAAA;AAED,eAAO,MAAM,kBAAkB,oEAyB9B,CAAA;AAED,eAAO,MAAM,UAAU,oEAmCtB,CAAA"}
@@ -15,7 +15,7 @@ export declare const LoginIconCustom: import("styled-components").StyledComponen
15
15
  muiName: string;
16
16
  }, any, {}, never>;
17
17
  export declare const FormControlSelect: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material/FormControl").FormControlTypeMap<{}, "div">>, any, {}, never>;
18
- export declare const DropDownList: import("styled-components").StyledComponent<(<Value = unknown>(props: import("@mui/material/Select").SelectProps<Value>) => JSX.Element) & {
18
+ export declare const DropDownList: import("styled-components").StyledComponent<(<Value = unknown>(props: import("@mui/material/Select").SelectProps<Value>) => import("react").JSX.Element) & {
19
19
  muiName: string;
20
20
  }, any, {}, never>;
21
21
  export declare const LabelDateStepper: import("styled-components").StyledComponent<"label", any, {}, never>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "frst-components",
3
3
  "homepage": "http://FRST-Falconi.github.io/storybook.frstfalconi.com",
4
- "version": "0.29.0",
4
+ "version": "0.29.2",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",