@pagopa/selfcare-common-frontend 1.34.17 → 1.34.18

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/CHANGELOG.md CHANGED
@@ -4,8 +4,9 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
- #### [v1.34.17](https://github.com/pagopa/selfcare-common-frontend/compare/v1.35.0...v1.34.17)
7
+ #### [v1.34.18](https://github.com/pagopa/selfcare-common-frontend/compare/v1.35.0...v1.34.18)
8
8
 
9
+ - [SELC-5006] feat: Added onClick action for second button + updated README [`#219`](https://github.com/pagopa/selfcare-common-frontend/pull/219)
9
10
  - [SELC-5006] feat: Added no mandatory second button to EndingPage component and custom button stylization + updated README [`#218`](https://github.com/pagopa/selfcare-common-frontend/pull/218)
10
11
  - Bump webpack-dev-middleware from 5.3.3 to 5.3.4 [`#204`](https://github.com/pagopa/selfcare-common-frontend/pull/204)
11
12
  - feat: changed test token [`#203`](https://github.com/pagopa/selfcare-common-frontend/pull/203)
@@ -23,6 +24,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
23
24
  - SELC-2590 [`#186`](https://github.com/pagopa/selfcare-common-frontend/pull/186)
24
25
  - SELC-2590 - update common [`#185`](https://github.com/pagopa/selfcare-common-frontend/pull/185)
25
26
  - Used a environment variable to manage correct links in the footer based to product and actual environment [`#184`](https://github.com/pagopa/selfcare-common-frontend/pull/184)
27
+ - [SELC-5006] feat: Added onClick action for second button + updated README (#219) [`#5006`](https://pagopa.atlassian.net/browse/5006)
26
28
  - [SELC-5006] feat: Added no mandatory second button to EndingPage component and custom button stylization + updated README (#218) [`#5006`](https://pagopa.atlassian.net/browse/5006)
27
29
  - [SELC-4696] Feat: update library mui italia for partList performance improvements [`#4696`](https://pagopa.atlassian.net/browse/4696)
28
30
  - [SELC-4521] feat: Added two new exportable utilities methods for storage managment: parseJwt and isExpiredToken (#202) [`#4521`](https://pagopa.atlassian.net/browse/4521)
@@ -55,10 +57,19 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
55
57
  - Update README.md [`a360cdb`](https://github.com/pagopa/selfcare-common-frontend/commit/a360cdbf86d7f5b7aa9df4aec586f76362e13e3a)
56
58
  - Fixed broken unitTest [`d9bb4de`](https://github.com/pagopa/selfcare-common-frontend/commit/d9bb4deafebc474c7dfe475ca68bce898c762cfd)
57
59
 
58
- #### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.16...v1.35.0)
60
+ #### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.17...v1.35.0)
59
61
 
60
62
  > 20 July 2023
61
63
 
64
+ #### [v1.34.17](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.16...v1.34.17)
65
+
66
+ > 31 May 2024
67
+
68
+ - [SELC-5006] feat: Added no mandatory second button to EndingPage component and custom button stylization + updated README [`#218`](https://github.com/pagopa/selfcare-common-frontend/pull/218)
69
+ - Bump webpack-dev-middleware from 5.3.3 to 5.3.4 [`#204`](https://github.com/pagopa/selfcare-common-frontend/pull/204)
70
+ - [SELC-5006] feat: Added no mandatory second button to EndingPage component and custom button stylization + updated README (#218) [`#5006`](https://pagopa.atlassian.net/browse/5006)
71
+ - [SELC-4696] Feat: update library mui italia for partList performance improvements [`#4696`](https://pagopa.atlassian.net/browse/4696)
72
+
62
73
  #### [v1.34.16](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.15...v1.34.16)
63
74
 
64
75
  > 18 March 2024
package/README.md CHANGED
@@ -162,7 +162,8 @@ Selfcare's ending page
162
162
  | description | React.ReactNode | Y | The ending page description |
163
163
  | buttonLabel | React.ReactNode | N | The ending page button label if any |
164
164
  | secondButtonLabel | React.ReactNode | N | The ending page second button label if any |
165
- | onButtonClick | () => void | N | If defined it will show a button that will perform this action on click |
165
+ | onButtonClick | () => void | N | if defined performe this action on click of the first button |
166
+ | onSecondButtonClick | () => void | N | if defined performe this action on click of the second button |
166
167
  | variantTitle | 'button' \| 'caption' \| 'h1' \| 'h2' \| 'h3' \| 'h4' \| 'h5' \| 'h6' \| 'inherit' \| 'subtitle1' \| 'subtitle2' \| 'body1' \| 'body2' \| 'overline' \| undefined | N | Set the variant of the title |
167
168
  | variantDescription | 'button' \| 'caption' \| 'h1' \| 'h2' \| 'h3' \| 'h4' \| 'h5' \| 'h6' \| 'inherit' \| 'subtitle1' \| 'subtitle2' \| 'body1' \| 'body2' \| 'overline' \| undefined | N | Set the variant of the description |
168
169
  | variantFirstButton | 'contained' \| 'outlined' \| 'text' | N | Set the variant of the first button |
package/build.info CHANGED
@@ -1,2 +1,2 @@
1
- 20240531.2 - selfcare-common-frontend.deploy(157562)
2
- tags/v1.29.0~1^2 c8bb124de271d9b5efc6b7815ab9e8d01f473b35
1
+ 20240531.4 - selfcare-common-frontend.deploy(157572)
2
+ tags/v1.29.0~1^2 2dbb152b2981f9ee3f47a6d56c32523726686195
@@ -13,8 +13,10 @@ type Props = {
13
13
  buttonLabel?: React.ReactNode;
14
14
  /** The ending page second button label if any */
15
15
  secondButtonLabel?: React.ReactNode;
16
- /** if defined it will show a button that will performe this action on click */
16
+ /** if defined performe this action on click of the first button */
17
17
  onButtonClick?: () => void;
18
+ /** if defined performe this action on click of the second button */
19
+ onSecondButtonClick?: () => void;
18
20
  /** Set the variant of the title */
19
21
  variantTitle?: 'button' | 'caption' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'inherit' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'overline' | undefined;
20
22
  /** Set the variant of the description */
@@ -31,5 +33,5 @@ type Props = {
31
33
  haveTwoButtons?: boolean;
32
34
  };
33
35
  /** Selfcare's Ending Page */
34
- declare const _default: ({ minHeight, description, onButtonClick, icon, title, buttonLabel, variantTitle, variantDescription, paragraph, isParagraphPresent, haveTwoButtons, secondButtonLabel, variantFirstButton, variantSecondButton, }: Props) => import("react/jsx-runtime").JSX.Element;
36
+ declare const _default: ({ minHeight, description, onButtonClick, onSecondButtonClick, icon, title, buttonLabel, variantTitle, variantDescription, paragraph, isParagraphPresent, haveTwoButtons, secondButtonLabel, variantFirstButton, variantSecondButton, }: Props) => import("react/jsx-runtime").JSX.Element;
35
37
  export default _default;
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const jsx_runtime_1 = require("react/jsx-runtime");
4
4
  const material_1 = require("@mui/material");
5
5
  /** Selfcare's Ending Page */
6
- exports.default = ({ minHeight, description, onButtonClick, icon, title, buttonLabel, variantTitle, variantDescription, paragraph, isParagraphPresent, haveTwoButtons = false, secondButtonLabel, variantFirstButton = 'contained', variantSecondButton = 'contained', }) => ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: { minHeight, position: 'static' }, display: "flex", flexGrow: 1, children: (0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, direction: "column", style: { textAlign: 'center' }, margin: 'auto', children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, item: true, justifyContent: "center", mb: 3, children: (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: icon }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, item: true, justifyContent: "center", children: (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: variantTitle, children: title }) }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, item: true, justifyContent: "center", mb: 4, mt: 1, children: (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: variantDescription, children: description }) }) }), onButtonClick && ((0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, item: true, justifyContent: "center", children: (0, jsx_runtime_1.jsxs)(material_1.Grid, { item: true, xs: haveTwoButtons ? 12 : 4, children: [(0, jsx_runtime_1.jsx)(material_1.Button, { variant: variantFirstButton, sx: { alignSelf: 'center', marginRight: haveTwoButtons ? 3 : 0 }, onClick: onButtonClick, children: buttonLabel }), haveTwoButtons && ((0, jsx_runtime_1.jsx)(material_1.Button, { variant: variantSecondButton, sx: { alignSelf: 'center' }, onClick: onButtonClick, children: secondButtonLabel }))] }) })), isParagraphPresent && ((0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, item: true, justifyContent: "center", mb: 4, mt: 6, children: (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: variantDescription, children: paragraph }) }) }))] }, "0") }));
6
+ exports.default = ({ minHeight, description, onButtonClick, onSecondButtonClick, icon, title, buttonLabel, variantTitle, variantDescription, paragraph, isParagraphPresent, haveTwoButtons = false, secondButtonLabel, variantFirstButton = 'contained', variantSecondButton = 'contained', }) => ((0, jsx_runtime_1.jsx)(material_1.Box, { sx: { minHeight, position: 'static' }, display: "flex", flexGrow: 1, children: (0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, direction: "column", style: { textAlign: 'center' }, margin: 'auto', children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, item: true, justifyContent: "center", mb: 3, children: (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: icon }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, item: true, justifyContent: "center", children: (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: variantTitle, children: title }) }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, item: true, justifyContent: "center", mb: 4, mt: 1, children: (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: variantDescription, children: description }) }) }), buttonLabel && ((0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, item: true, justifyContent: "center", children: (0, jsx_runtime_1.jsxs)(material_1.Grid, { item: true, xs: haveTwoButtons ? 12 : 4, children: [(0, jsx_runtime_1.jsx)(material_1.Button, { variant: variantFirstButton, sx: { alignSelf: 'center', marginRight: haveTwoButtons ? 3 : 0 }, onClick: onButtonClick, children: buttonLabel }), haveTwoButtons && ((0, jsx_runtime_1.jsx)(material_1.Button, { variant: variantSecondButton, sx: { alignSelf: 'center' }, onClick: onSecondButtonClick, children: secondButtonLabel }))] }) })), isParagraphPresent && ((0, jsx_runtime_1.jsx)(material_1.Grid, { container: true, item: true, justifyContent: "center", mb: 4, mt: 6, children: (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: variantDescription, children: paragraph }) }) }))] }, "0") }));
7
7
  //# sourceMappingURL=EndingPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EndingPage.js","sourceRoot":"","sources":["../../src/lib/components/EndingPage.tsx"],"names":[],"mappings":";;;AAAA,4CAA4E;AAgE5E,6BAA6B;AAC7B,kBAAe,CAAC,EACd,SAAS,EACT,WAAW,EACX,aAAa,EACb,IAAI,EACJ,KAAK,EACL,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,SAAS,EACT,kBAAkB,EAClB,cAAc,GAAG,KAAK,EACtB,iBAAiB,EACjB,kBAAkB,GAAG,WAAW,EAChC,mBAAmB,GAAG,WAAW,GAC3B,EAAE,EAAE,CAAC,CACX,uBAAC,cAAG,IAAC,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAC,MAAM,EAAC,QAAQ,EAAE,CAAC,YACpE,wBAAC,eAAI,IAAC,SAAS,QAAC,SAAS,EAAC,QAAQ,EAAS,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,MAAM,aACvF,uBAAC,eAAI,IAAC,SAAS,QAAC,IAAI,QAAC,cAAc,EAAC,QAAQ,EAAC,EAAE,EAAE,CAAC,YAChD,uBAAC,eAAI,IAAC,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AC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,YACvD,uBAAC,eAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,YACd,uBAAC,qBAAU,IAAC,OAAO,EAAE,kBAAkB,YAAG,WAAW,GAAc,GAC9D,GACF,EACN,WAAW,IAAI,CACd,uBAAC,eAAI,IAAC,SAAS,QAAC,IAAI,QAAC,cAAc,EAAC,QAAQ,YAC1C,wBAAC,eAAI,IAAC,IAAI,QAAC,EAAE,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,aACpC,uBAAC,iBAAM,IACL,OAAO,EAAE,kBAAkB,EAC3B,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAChE,OAAO,EAAE,aAAa,YAErB,WAAW,GACL,EACR,cAAc,IAAI,CACjB,uBAAC,iBAAM,IACL,OAAO,EAAE,mBAAmB,EAC5B,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,EAC3B,OAAO,EAAE,mBAAmB,YAE3B,iBAAiB,GACX,CACV,IACI,GACF,CACR,EAEA,kBAAkB,IAAI,CACrB,uBAAC,eAAI,IAAC,SAAS,QAAC,IAAI,QAAC,cAAc,EAAC,QAAQ,EAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,YACvD,uBAAC,eAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,YACd,uBAAC,qBAAU,IAAC,OAAO,EAAE,kBAAkB,YAAG,SAAS,GAAc,GAC5D,GACF,CACR,KA7CoC,GAAG,CA8CnC,GACH,CACP,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pagopa/selfcare-common-frontend",
3
3
  "description": "Shared React components for the pagopa selfcare project",
4
- "version": "1.34.17",
4
+ "version": "1.34.18",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/pagopa/selfcare-common-frontend",
7
7
  "author": "https://www.pagopa.gov.it",