@pagopa/selfcare-common-frontend 1.11.7 → 1.11.10
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 +19 -0
- package/build.info +2 -2
- package/components/NavigationBar.js +9 -7
- package/components/NavigationBar.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,27 @@ 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.11.10](https://github.com/pagopa/selfcare-common-frontend/compare/v1.11.9...v1.11.10)
|
|
8
|
+
|
|
9
|
+
- added also for first part of breadcrumb [`#92`](https://github.com/pagopa/selfcare-common-frontend/pull/92)
|
|
10
|
+
|
|
11
|
+
#### [v1.11.9](https://github.com/pagopa/selfcare-common-frontend/compare/v1.11.8...v1.11.9)
|
|
12
|
+
|
|
13
|
+
> 1 July 2022
|
|
14
|
+
|
|
15
|
+
- Handling ellipsis in NavigationBar [`#91`](https://github.com/pagopa/selfcare-common-frontend/pull/91)
|
|
16
|
+
|
|
17
|
+
#### [v1.11.8](https://github.com/pagopa/selfcare-common-frontend/compare/v1.11.7...v1.11.8)
|
|
18
|
+
|
|
19
|
+
> 27 June 2022
|
|
20
|
+
|
|
21
|
+
- Update qa [`#90`](https://github.com/pagopa/selfcare-common-frontend/pull/90)
|
|
22
|
+
- Update qa (#90) [`#1122`](https://pagopa.atlassian.net/browse/1122) [`#1122`](https://pagopa.atlassian.net/browse/1122) [`#1122`](https://pagopa.atlassian.net/browse/1122) [`#1122`](https://pagopa.atlassian.net/browse/1122)
|
|
23
|
+
|
|
7
24
|
#### [v1.11.7](https://github.com/pagopa/selfcare-common-frontend/compare/v1.11.6...v1.11.7)
|
|
8
25
|
|
|
26
|
+
> 27 June 2022
|
|
27
|
+
|
|
9
28
|
- Update common [`#89`](https://github.com/pagopa/selfcare-common-frontend/pull/89)
|
|
10
29
|
- Update common (#89) [`#1122`](https://pagopa.atlassian.net/browse/1122) [`#1122`](https://pagopa.atlassian.net/browse/1122) [`#1122`](https://pagopa.atlassian.net/browse/1122)
|
|
11
30
|
|
package/build.info
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
tags/v1.11.
|
|
1
|
+
20220701.2 - selfcare-common-frontend.deploy(37489)
|
|
2
|
+
tags/v1.11.10^0 7df3a6328be5946f056d1328c554eea7de0959c7
|
|
@@ -3,17 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const material_1 = require("@mui/material");
|
|
6
|
+
const mui_italia_1 = require("@pagopa/mui-italia");
|
|
6
7
|
const useUnloadEventInterceptor_1 = require("../hooks/useUnloadEventInterceptor");
|
|
7
8
|
const BackComponent_1 = tslib_1.__importDefault(require("./BackComponent"));
|
|
8
9
|
function NavigationBar({ paths, goBack, showBackComponent }) {
|
|
9
10
|
const onExit = (0, useUnloadEventInterceptor_1.useUnloadEventOnExit)();
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
const truncatedText = {
|
|
12
|
+
display: 'inline-block',
|
|
13
|
+
width: '50ch',
|
|
14
|
+
whiteSpace: 'nowrap',
|
|
15
|
+
overflow: 'hidden',
|
|
16
|
+
textOverflow: 'ellipsis',
|
|
17
|
+
};
|
|
18
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { display: "flex", children: [showBackComponent && ((0, jsx_runtime_1.jsx)(material_1.Box, { children: (0, jsx_runtime_1.jsx)(BackComponent_1.default, { goBack: goBack }) })), (0, jsx_runtime_1.jsx)(material_1.Box, { display: "flex", alignItems: 'center', children: (0, jsx_runtime_1.jsx)(material_1.Breadcrumbs, { "aria-label": "breadcrumb", children: paths.map((p) => p.onClick ? ((0, jsx_runtime_1.jsx)(material_1.Box, { display: "flex", alignItems: "center", justifyContent: "center", ml: 2, children: (0, jsx_runtime_1.jsx)(mui_italia_1.ButtonNaked, { component: "button", onClick: () => onExit(p.onClick), startIcon: p.icon && (0, jsx_runtime_1.jsx)(material_1.Icon, { component: p.icon }), sx: { color: 'colorTextPrimary' }, weight: "default", children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", sx: truncatedText, children: p.description }) }) }, p.description)) : ((0, jsx_runtime_1.jsxs)(material_1.Box, { display: "flex", children: [p.icon && ((0, jsx_runtime_1.jsx)(material_1.Box, { mr: 1, display: "flex", alignItems: "center", children: (0, jsx_runtime_1.jsx)(material_1.Icon, { component: p.icon }) })), (0, jsx_runtime_1.jsx)(material_1.Box, { display: "flex", alignItems: "center", children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", sx: { ...truncatedText, color: 'text.secondary', fontSize: 'fontSize' }, children: p.description }, p.description) })] }, p.description))) }) })] }));
|
|
17
19
|
}
|
|
18
20
|
exports.default = NavigationBar;
|
|
19
21
|
//# sourceMappingURL=NavigationBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationBar.js","sourceRoot":"","sources":["../../src/lib/components/NavigationBar.tsx"],"names":[],"mappings":";;;;AACA,
|
|
1
|
+
{"version":3,"file":"NavigationBar.js","sourceRoot":"","sources":["../../src/lib/components/NavigationBar.tsx"],"names":[],"mappings":";;;;AACA,4CAAmE;AACnE,mDAAiD;AACjD,kFAA0E;AAC1E,4EAA4C;AAiB5C,SAAwB,aAAa,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAS;IAC/E,MAAM,MAAM,GAAG,IAAA,gDAAoB,GAAE,CAAC;IAEtC,MAAM,aAAa,GAAG;QACpB,OAAO,EAAE,cAAc;QACvB,KAAK,EAAE,MAAM;QACb,UAAU,EAAE,QAAQ;QACp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IAAC,OAAO,EAAC,MAAM,EAAC,UAAU,EAAC,QAAQ,YACrC,uBAAC,qBAAU,IAET,OAAO,EAAC,OAAO,EACf,EAAE,EAAE,EAAE,GAAG,aAAa,EAAE,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,UAAU,EAAE,YAEtE,CAAC,CAAC,WAAW,IAJT,CAAC,CAAC,WAAW,CAKP,GACT,KAdiB,CAAC,CAAC,WAAW,CAehC,CACP,CACF,GACW,GACV,IACF,CACP,CAAC;AACJ,CAAC;AAhED,gCAgEC"}
|
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.11.
|
|
4
|
+
"version": "1.11.10",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/pagopa/selfcare-common-frontend",
|
|
7
7
|
"author": "https://www.pagopa.gov.it",
|