@pagopa/selfcare-common-frontend 1.28.0 → 1.29.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 +6 -0
- package/build.info +2 -2
- package/components/SessionModal.js +1 -1
- package/components/SessionModal.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,14 @@ 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.29.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.28.0...v1.29.0)
|
|
8
|
+
|
|
9
|
+
- PNPG-196 Added CSS FlexWrap for show button in reverse when the window shrink down [`#177`](https://github.com/pagopa/selfcare-common-frontend/pull/177)
|
|
10
|
+
|
|
7
11
|
#### [v1.28.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.27.0...v1.28.0)
|
|
8
12
|
|
|
13
|
+
> 28 June 2023
|
|
14
|
+
|
|
9
15
|
#### [v1.27.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.26.0...v1.27.0)
|
|
10
16
|
|
|
11
17
|
> 28 June 2023
|
package/build.info
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
tags/v1.
|
|
1
|
+
20230629.1 - selfcare-common-frontend.deploy(103802)
|
|
2
|
+
tags/v1.29.0~1^2 238f85e99f6d3c0a3b3d5322c4ec3b1c14d13bbd
|
|
@@ -12,7 +12,7 @@ const react_i18next_1 = require("react-i18next");
|
|
|
12
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, 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 &&
|
|
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', flexWrap: 'wrap-reverse', 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
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
17
|
.toLowerCase()
|
|
18
18
|
.replace(/\b[a-z]/g, p.environment.charAt(0).toUpperCase()) }) }, p.environment)))] }))] })] })] }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionModal.js","sourceRoot":"","sources":["../../src/lib/components/Session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AQ,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,YAC7E,KAAK,GACK,IACR,EAEP,wBAAC,cAAG,IAAC,KAAK,EAAC,MAAM,aACf,uBAAC,eAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,YACtB,uBAAC,qBAAU,IAAC,OAAO,EAAC,OAAO,YAAE,OAAO,GAAc,GAC7C,EACP,wBAAC,eAAI,IACH,IAAI,QACJ,EAAE,EAAE,EAAE,EACN,OAAO,EAAC,MAAM,EACd,cAAc,EAAE,mBAAmB,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,UAAU,
|
|
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,MAAM,EACd,aAAa,GAAG,KAAK,EACrB,eAAe,GAAG,IAAI,GAChB;IACN,MAAM,KAAK,GAAG,IAAA,iBAAQ,GAAE,CAAC;IACzB,MAAM,UAAU,GAAG,IAAA,uBAAa,EAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAE/D,OAAO,CACL,uBAAC,gBAAM,IACL,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,WAAW,qBAC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AAO,EAAC,MAAM,EAAC,aAAa,EAAC,aAAa,aACpD,uBAAC,iBAAM,IACL,EAAE,EAAE,EAAE,UAAU,EAAE,CAAC,EAAE,EACrB,KAAK,EAAC,SAAS,EACf,OAAO,EAAC,WAAW,EACnB,OAAO,EAAE,SAAS,EAClB,QAAQ,EAAE,CAAC,gBAAgB,YAE1B,cAAc,GACR,EACR,mBAAmB;4CAClB,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAC7B,uBAAC,cAAG,IAAC,EAAE,EAAE,CAAC,YACR,uBAAC,iBAAM,IACL,KAAK,EAAE,CAAC,CAAC,WAAW,EACpB,KAAK,EAAC,SAAS,EACf,OAAO,EAAC,WAAW,EACnB,OAAO,EAAE,SAAS,YAEjB,CAAC,CAAC,WAAW;yDACX,WAAW,EAAE;yDACb,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,GACtD,IAVM,CAAC,CAAC,WAAW,CAWxB,CACP,CAAC,IACA,CACP,IACI,IACH,IACD,GACA,CACV,CAAC;AACJ,CAAC;AACD,kBAAe,IAAA,+BAAe,GAAE,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.29.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/pagopa/selfcare-common-frontend",
|
|
7
7
|
"author": "https://www.pagopa.gov.it",
|