@pagopa/selfcare-common-frontend 1.25.0 → 1.27.0
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 +14 -0
- package/build.info +2 -2
- package/components/SessionModal.js +5 -5
- package/components/SessionModal.js.map +1 -1
- package/package.json +1 -1
- package/utils/utils.js +1 -1
- package/utils/utils.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,22 @@ 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.27.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.26.0...v1.27.0)
|
|
8
|
+
|
|
9
|
+
- PNPG-196 Responsive mobile SessionModal component [`#176`](https://github.com/pagopa/selfcare-common-frontend/pull/176)
|
|
10
|
+
|
|
11
|
+
#### [v1.26.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.25.0...v1.26.0)
|
|
12
|
+
|
|
13
|
+
> 27 June 2023
|
|
14
|
+
|
|
15
|
+
- SELC-2552-added-new-characters-acceptes [`#175`](https://github.com/pagopa/selfcare-common-frontend/pull/175)
|
|
16
|
+
- Merge pull request #175 from pagopa/SELC-2552-added-new-characters-accepted [`#2552`](https://pagopa.atlassian.net/browse/2552) [`#2552`](https://pagopa.atlassian.net/browse/2552)
|
|
17
|
+
- SELC-2552-added-new-characters-acceptes [`#2552`](https://pagopa.atlassian.net/browse/2552)
|
|
18
|
+
|
|
7
19
|
#### [v1.25.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.24.0...v1.25.0)
|
|
8
20
|
|
|
21
|
+
> 26 June 2023
|
|
22
|
+
|
|
9
23
|
- SELC-2533 - added dash character on verifySurname and verifyName [`#2533`](https://pagopa.atlassian.net/browse/2533)
|
|
10
24
|
- SELC-2533 - added dash character on verifySurnameMatchWithTaxCode andverifySurnameMatchWithTaxCode [`#2533`](https://pagopa.atlassian.net/browse/2533)
|
|
11
25
|
- docs: add pull request template [`7822111`](https://github.com/pagopa/selfcare-common-frontend/commit/7822111b7457ab0d704cdbbbdc22c6e029b510b4)
|
package/build.info
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
tags/v1.
|
|
1
|
+
20230628.1 - selfcare-common-frontend.deploy(103706)
|
|
2
|
+
tags/v1.27.0~1^2 cf73c23cdd3e75b5fa71a2a1a8ed390e74f9adaa
|
|
@@ -9,13 +9,13 @@ const styles_1 = require("@mui/material/styles");
|
|
|
9
9
|
const ClearOutlined_1 = tslib_1.__importDefault(require("@mui/icons-material/ClearOutlined"));
|
|
10
10
|
const react_i18next_1 = require("react-i18next");
|
|
11
11
|
/** Selfcare's popup */
|
|
12
|
-
function SessionModal({ t, open, title, message, onConfirm, onConfirmEnabled = true, onConfirmLabel = t('common.sessionModal.confirmButton'), productEnvironments, handleClose, handleExit = handleClose, onCloseLabel = t('common.sessionModal.closeButton'), height, minHeight, width = '
|
|
12
|
+
function SessionModal({ t, open, title, message, onConfirm, onConfirmEnabled = true, onConfirmLabel = t('common.sessionModal.confirmButton'), productEnvironments, handleClose, handleExit = handleClose, onCloseLabel = t('common.sessionModal.closeButton'), height, minHeight, width = '100%', showCloseIcon = false, showCloseButton = true, }) {
|
|
13
13
|
const theme = (0, styles_1.useTheme)();
|
|
14
14
|
const fullScreen = (0, useMediaQuery_1.default)(theme.breakpoints.down('xs'));
|
|
15
|
-
return ((0, jsx_runtime_1.jsx)(Dialog_1.default, { fullScreen: fullScreen, open: open, onClose: handleClose, "aria-labelledby": "responsive-dialog-title", children: (0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, sx: { height, minHeight, width }, px: 4, children: [(0, jsx_runtime_1.jsxs)(material_1.Grid, { item: true, xs: 12, mt: 4, children: [showCloseIcon && ((0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: handleExit, style: { position: 'absolute', top: '20px', right: '16px', zIndex: 100 }, children: (0, jsx_runtime_1.jsx)(ClearOutlined_1.default, {}) })), (0, jsx_runtime_1.jsx)(material_1.Typography, { sx: { fontSize: '24px', fontWeight: '600' }, children: title })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { width: "100%", children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 12, my: 3, children: (0, jsx_runtime_1.jsx)(material_1.Typography, {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)(Dialog_1.default, { fullScreen: fullScreen, open: open, onClose: handleClose, "aria-labelledby": "responsive-dialog-title", children: (0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, sx: { height, minHeight, width, maxWidth: '100%' }, px: 4, children: [(0, jsx_runtime_1.jsxs)(material_1.Grid, { item: true, xs: 12, mt: 4, children: [showCloseIcon && ((0, jsx_runtime_1.jsx)(material_1.IconButton, { onClick: handleExit, style: { position: 'absolute', top: '20px', right: '16px', zIndex: 100 }, children: (0, jsx_runtime_1.jsx)(ClearOutlined_1.default, {}) })), (0, jsx_runtime_1.jsx)(material_1.Typography, { sx: { fontSize: '24px', fontWeight: '600', wordBreak: 'break-word' }, children: title })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { width: "100%", children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 12, my: 3, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", children: message }) }), (0, jsx_runtime_1.jsxs)(material_1.Grid, { item: true, xs: 12, display: "flex", justifyContent: productEnvironments ? 'space-between' : 'flex-end', children: [showCloseButton && ((0, jsx_runtime_1.jsx)(material_1.Box, { mb: 3, mt: 0, children: (0, jsx_runtime_1.jsx)(material_1.Button, { onClick: handleClose, color: "primary", variant: "outlined", children: onCloseLabel }) })), onConfirm && ((0, jsx_runtime_1.jsxs)(material_1.Box, { mb: 3, display: "flex", flexDirection: "row-reverse", children: [(0, jsx_runtime_1.jsx)(material_1.Button, { sx: { marginLeft: 2 }, color: "primary", variant: "contained", onClick: onConfirm, disabled: !onConfirmEnabled, children: onConfirmLabel }), productEnvironments &&
|
|
16
|
+
productEnvironments.map((p) => ((0, jsx_runtime_1.jsx)(material_1.Box, { ml: 2, children: (0, jsx_runtime_1.jsx)(material_1.Button, { value: p.environment, color: "primary", variant: "contained", onClick: onConfirm, children: p.environment
|
|
17
|
+
.toLowerCase()
|
|
18
|
+
.replace(/\b[a-z]/g, p.environment.charAt(0).toUpperCase()) }) }, p.environment)))] }))] })] })] }) }));
|
|
19
19
|
}
|
|
20
20
|
exports.default = (0, react_i18next_1.withTranslation)()(SessionModal);
|
|
21
21
|
//# sourceMappingURL=SessionModal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionModal.js","sourceRoot":"","sources":["../../src/lib/components/SessionModal.tsx"],"names":[],"mappings":";;;;AACA,4CAA0E;AAC1E,0EAA0C;AAC1C,wFAAwD;AACxD,iDAAgD;AAChD,8FAAkE;AAClE,iDAA2D;AAuC3D,uBAAuB;AACvB,SAAS,YAAY,CAAC,EACpB,CAAC,EACD,IAAI,EACJ,KAAK,EACL,OAAO,EACP,SAAS,EACT,gBAAgB,GAAG,IAAI,EACvB,cAAc,GAAG,CAAC,CAAC,mCAAmC,CAAC,EACvD,mBAAmB,EACnB,WAAW,EACX,UAAU,GAAG,WAAW,EACxB,YAAY,GAAG,CAAC,CAAC,iCAAiC,CAAC,EACnD,MAAM,EACN,SAAS,EACT,KAAK,GAAG,
|
|
1
|
+
{"version":3,"file":"SessionModal.js","sourceRoot":"","sources":["../../src/lib/components/SessionModal.tsx"],"names":[],"mappings":";;;;AACA,4CAA0E;AAC1E,0EAA0C;AAC1C,wFAAwD;AACxD,iDAAgD;AAChD,8FAAkE;AAClE,iDAA2D;AAuC3D,uBAAuB;AACvB,SAAS,YAAY,CAAC,EACpB,CAAC,EACD,IAAI,EACJ,KAAK,EACL,OAAO,EACP,SAAS,EACT,gBAAgB,GAA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,CAAC,YAAY,CAAC,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.
|
|
4
|
+
"version": "1.27.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/pagopa/selfcare-common-frontend",
|
|
7
7
|
"author": "https://www.pagopa.gov.it",
|
package/utils/utils.js
CHANGED
|
@@ -8,6 +8,6 @@ const formatDateAsLongString = (date) => {
|
|
|
8
8
|
return `${da} ${mo} ${ye}`;
|
|
9
9
|
};
|
|
10
10
|
exports.formatDateAsLongString = formatDateAsLongString;
|
|
11
|
-
exports.acceptedConsonants = /[^
|
|
11
|
+
exports.acceptedConsonants = /[^aeiouàèìòùé'üöäẅæâçêîôœûščžẞ-]/gi;
|
|
12
12
|
exports.acceptedVowels = /[aeiou]/gi;
|
|
13
13
|
//# sourceMappingURL=utils.js.map
|
package/utils/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/lib/utils/utils.ts"],"names":[],"mappings":";;;AAAO,MAAM,sBAAsB,GAAG,CAAC,IAAU,EAAU,EAAE;IAC3D,MAAM,EAAE,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC3E,MAAM,EAAE,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACzE,MAAM,EAAE,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CA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