@mtes-mct/monitor-ui 24.24.0 → 24.25.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/CHANGELOG.md +12 -0
- package/components/Banner/index.d.ts.map +1 -1
- package/index.js +3 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [24.25.0](https://github.com/MTES-MCT/monitor-ui/compare/v24.24.0...v24.25.0) (2025-07-09)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* **libs:** bump to jest v30 ([7ea2996](https://github.com/MTES-MCT/monitor-ui/commit/7ea2996c71de1836e60cc83b7cec0b9262228c82))
|
|
6
|
+
|
|
7
|
+
## [24.24.0](https://github.com/MTES-MCT/monitor-ui/compare/v24.23.0...v24.24.0) (2025-07-09)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **libs:** bump to React 19 ([df44917](https://github.com/MTES-MCT/monitor-ui/commit/df44917734a7faf36723cee2f7c42bb44e32d663))
|
|
12
|
+
|
|
1
13
|
## [24.23.0](https://github.com/MTES-MCT/monitor-ui/compare/v24.22.3...v24.23.0) (2025-07-09)
|
|
2
14
|
|
|
3
15
|
### Features
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Banner/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,EAAQ,MAAM,YAAY,CAAA;AAKtD,OAAO,EAAE,KAAK,SAAS,EAA4C,MAAM,OAAO,CAAA;AAChF,OAAe,EAAO,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAKnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAE3C,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,SAAS,CAAC,EAAE,M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AE,OAAO,GAAG,SAAS,CAAA;IACvC,KAAK,EAAE,KAAK,CAAA;IACZ,WAAW,CAAC,EAAE,CAAC,MAAM,UAAU,CAAC,IAAI,CAAC,CAAC,GAAG,SAAS,CAAA;IAClD,OAAO,CAAC,EAAE,CAAC,MAAM,UAAU,CAAC,IAAI,CAAC,CAAC,GAAG,SAAS,CAAA;IAC9C,KAAK,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;IACjC,GAAG,EAAE,MAAM,CAAA;IACX,oBAAoB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC3C,CAAA;AAED,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,SAAqB,EACrB,YAAmB,EACnB,UAAkB,EAClB,aAAqB,EACrB,OAAe,EACf,iBAAyB,EACzB,KAAK,EACL,WAAW,EACX,OAAO,EACP,KAAK,EACL,GAAG,EACH,oBAA4B,EAC7B,EAAE,QAAQ,CAAC,WAAW,CAAC,2CA6FvB;yBA3Ge,MAAM"}
|
package/index.js
CHANGED
|
@@ -24187,7 +24187,7 @@ const getBannerPalette = (level)=>{
|
|
|
24187
24187
|
function Banner({ children, className = undefined, closingDelay = 3000, isClosable = false, isCollapsible = false, isFixed = false, isHiddenByDefault = false, level, onAutoClose, onClose, style, top, withAutomaticClosing = false }) {
|
|
24188
24188
|
const timeoutIdRef = useRef(undefined);
|
|
24189
24189
|
const controlledClassName = classnames('Component-Banner', className);
|
|
24190
|
-
const [isHidden, setIsHidden] = useState(
|
|
24190
|
+
const [isHidden, setIsHidden] = useState(isHiddenByDefault);
|
|
24191
24191
|
const [isCollapsed, setIsCollapsed] = useState(false);
|
|
24192
24192
|
const [isCollapsing, setIsCollapsing] = useState(false);
|
|
24193
24193
|
const [hasCollapsed, setHasCollapsed] = useState(false);
|
|
@@ -24293,7 +24293,6 @@ const Wrapper$1 = styled.div`
|
|
|
24293
24293
|
left: 0;
|
|
24294
24294
|
max-width: 100%;
|
|
24295
24295
|
min-width: 100%;
|
|
24296
|
-
padding: 0 2rem;
|
|
24297
24296
|
position: ${(p)=>p.$isFixed ? 'fixed' : 'absolute'};
|
|
24298
24297
|
top: ${(p)=>`${p.$top}`};
|
|
24299
24298
|
transition: height ${ANIMATION_DURATION_IN_MS}ms ease;
|
|
@@ -24307,9 +24306,11 @@ const ContentWrapper = styled.div`
|
|
|
24307
24306
|
font-size: 16px;
|
|
24308
24307
|
font-weight: 500;
|
|
24309
24308
|
text-align: center;
|
|
24309
|
+
padding-left: 2rem;
|
|
24310
24310
|
`;
|
|
24311
24311
|
const ButtonWrapper = styled.div`
|
|
24312
24312
|
align-self: center;
|
|
24313
|
+
padding-right: 2rem;
|
|
24313
24314
|
`;
|
|
24314
24315
|
const StyledLinkButton = styled(LinkButton)`
|
|
24315
24316
|
${(p)=>p.$level === Level.ERROR ? css`
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mtes-mct/monitor-ui",
|
|
3
3
|
"description": "Common React components, hooks, utilities and CSS stylesheets for MonitorFish, MonitorEnv and RapportNav.",
|
|
4
|
-
"version": "24.
|
|
4
|
+
"version": "24.25.1",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"conventional-changelog-conventionalcommits": ">= 8.0.0"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@sentry/react": "^7.0.0 || ^8.0.0",
|
|
21
|
+
"@sentry/react": "^7.0.0 || ^8.0.0 || ^9.0.0",
|
|
22
22
|
"@tanstack/react-table": "^8.0.0",
|
|
23
23
|
"@tanstack/react-virtual": "^3.0.0",
|
|
24
24
|
"cypress": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0",
|