frst-components 0.29.0 → 0.29.1

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
@@ -24819,7 +24819,6 @@ const CardContainer$1 = styled__default["default"]('div') `
24819
24819
  width: 450px;
24820
24820
  height: 120px;
24821
24821
  padding-right: 16px;
24822
- box-sizing: content-box;
24823
24822
 
24824
24823
  :hover {
24825
24824
  border: 2px solid #757575;
@@ -24873,8 +24872,9 @@ const DescriptionWrapper = styled__default["default"]('div') `
24873
24872
  `;
24874
24873
  const CardFooter = styled__default["default"]('div') `
24875
24874
  display: flex;
24876
- flex-direction: row-reverse;
24875
+ flex-direction: row;
24877
24876
  justify-content: space-between;
24877
+ align-items: center;
24878
24878
 
24879
24879
  .company {
24880
24880
  display: flex;
@@ -24884,6 +24884,7 @@ const CardFooter = styled__default["default"]('div') `
24884
24884
  font-weight: 400;
24885
24885
  line-height: 1.5;
24886
24886
  color: #444444;
24887
+ margin: 0;
24887
24888
 
24888
24889
  img {
24889
24890
  width: 16px;
@@ -24901,6 +24902,7 @@ const CardFooter = styled__default["default"]('div') `
24901
24902
  line-height: 1.5;
24902
24903
  color: #444444;
24903
24904
  cursor: pointer;
24905
+ margin: 0;
24904
24906
  }
24905
24907
 
24906
24908
  `;
@@ -24908,9 +24910,11 @@ const CardFooter = styled__default["default"]('div') `
24908
24910
  function DownloadIcon() {
24909
24911
  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
24912
  }
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] })] })] })] }) }));
24913
+ function CardContent$1({ contentType, contentImage, contentDescription, company, enableDownload, handleDownload, handleClickCard }) {
24914
+ 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 &&
24915
+ jsxRuntime.jsxs("p", { className: 'company', children: [company.icon && company.icon !== '' &&
24916
+ jsxRuntime.jsx("img", { src: company.icon }), company.name] }), enableDownload &&
24917
+ jsxRuntime.jsxs("p", { className: 'download', onClick: handleDownload, children: ["Baixar", jsxRuntime.jsx(DownloadIcon, {})] })] })] })] }) }));
24914
24918
  }
24915
24919
 
24916
24920
  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,oEAiBzB,CAAA;AAED,eAAO,MAAM,YAAY,oEAOxB,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.1",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",