@mtes-mct/monitor-ui 16.5.0 → 17.1.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 +36 -0
- package/components/Dropdown/index.d.ts.map +1 -1
- package/cypress/global.d.ts +1 -0
- package/cypress/index.js +13 -8
- package/elements/Button.d.ts.map +1 -1
- package/elements/IconBox.d.ts +3 -3
- package/elements/IconBox.d.ts.map +1 -1
- package/fields/CheckPicker.d.ts.map +1 -1
- package/index.js +8 -17
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
## [17.0.0](https://github.com/MTES-MCT/monitor-ui/compare/v16.5.0...v17.0.0) (2024-05-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### ⚠ BREAKING CHANGES
|
|
5
|
+
|
|
6
|
+
* **elements:** `<IconButton />` is now a span instead of a div.
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **elements:** switch IconBox wrapper element from a div to a span ([4a17f10](https://github.com/MTES-MCT/monitor-ui/commit/4a17f10699bfe59c6484641e0759741a89dbcc88))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Buid System & Dependencies
|
|
14
|
+
|
|
15
|
+
* **deps:** bump @babel/runtime from 7.24.4 to 7.24.5 ([0c6b0a6](https://github.com/MTES-MCT/monitor-ui/commit/0c6b0a609e79c6870ae70c36cd52ed2ec5cb1084))
|
|
16
|
+
* **deps:** bump ejs from 3.1.9 to 3.1.10 ([5a3e05a](https://github.com/MTES-MCT/monitor-ui/commit/5a3e05a4139084163cdbed69929af0056031fbc9))
|
|
17
|
+
* **dev-deps:** bump @babel/preset-react from 7.22.15 to 7.24.1 ([a78b5b3](https://github.com/MTES-MCT/monitor-ui/commit/a78b5b37108683db184a416259ee04a0551ef44a))
|
|
18
|
+
* **dev-deps:** bump react-is from 18.2.0 to 18.3.1 ([258a53d](https://github.com/MTES-MCT/monitor-ui/commit/258a53d57d981fd2c92a167627fd5620e48682d0))
|
|
19
|
+
* **dev-deps:** bump rollup-plugin-sizes from 1.0.5 to 1.0.6 ([8a19fe6](https://github.com/MTES-MCT/monitor-ui/commit/8a19fe605c9f6e10612e2b37f1b561ec1cb3e375))
|
|
20
|
+
* **dev-deps:** bump semantic-release from 23.0.0 to 23.0.8 ([47e7c23](https://github.com/MTES-MCT/monitor-ui/commit/47e7c23ab207cbc950503bed03909ccdf70fb717))
|
|
21
|
+
|
|
22
|
+
## [16.5.0](https://github.com/MTES-MCT/monitor-ui/compare/v16.4.0...v16.5.0) (2024-05-01)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **elements:** add Link ([b72322b](https://github.com/MTES-MCT/monitor-ui/commit/b72322bb5d0b3e61fe41c4ce21a02e32c09fcbd0))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Buid System & Dependencies
|
|
31
|
+
|
|
32
|
+
* **dev-deps:** bump @types/node in /e2e/release/sample ([0df00a3](https://github.com/MTES-MCT/monitor-ui/commit/0df00a3f4194d21ac3f95df7d7f3d644fdfc2640))
|
|
33
|
+
* **dev-deps:** bump rsuite in /e2e/release/sample ([69e238e](https://github.com/MTES-MCT/monitor-ui/commit/69e238e8bdf271d5556c9db104e64928003cd9b8))
|
|
34
|
+
* **dev-deps:** bump styled-components in /e2e/release/sample ([6b8e9f4](https://github.com/MTES-MCT/monitor-ui/commit/6b8e9f4e31b04314568af1a2db5e1bfdd9fb216f))
|
|
35
|
+
* **dev-deps:** bump vite from 5.1.7 to 5.2.10 in /e2e/release/sample ([3861028](https://github.com/MTES-MCT/monitor-ui/commit/3861028a8bca05bcc9780ee07a4ca8e4386cd5c0))
|
|
36
|
+
|
|
1
37
|
## [16.4.0](https://github.com/MTES-MCT/monitor-ui/compare/v16.3.1...v16.4.0) (2024-04-30)
|
|
2
38
|
|
|
3
39
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/index.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAExC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAK,EAAE,aAAa,IAAI,mBAAmB,EAAE,MAAM,QAAQ,CAAA;AAElE,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,mBAAmB,EAAE,IAAI,GAAG,MAAM,CAAC,GAAG;IACrE,IAAI,CAAC,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAA;IACnC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/index.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAExC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAK,EAAE,aAAa,IAAI,mBAAmB,EAAE,MAAM,QAAQ,CAAA;AAElE,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,mBAAmB,EAAE,IAAI,GAAG,MAAM,CAAC,GAAG;IACrE,IAAI,CAAC,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAA;IACnC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B,CAAA;AAgGD,eAAO,MAAM,QAAQ,EAAE,iBAAiB,CAAC,aAAa,CAAC,GAAG;IACxD,IAAI,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAA;CAG1C,CAAA;AAEF,OAAO,EAAE,KAAK,iBAAiB,EAAE,CAAA"}
|
package/cypress/global.d.ts
CHANGED
package/cypress/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// I have no idea why I have to add this dirty hack of setting an external variable
|
|
2
2
|
// instead of using a cleaner FP `.filter()`
|
|
3
3
|
// but real experience made me think it greatly improves results stability.
|
|
4
|
-
function
|
|
4
|
+
function findElementByText(selector, text, { fallbackSelector, index = 0, inElement } = {}) {
|
|
5
5
|
const trimmedText = text.trim();
|
|
6
6
|
if (inElement) {
|
|
7
7
|
let foundElement;
|
|
@@ -47,7 +47,7 @@ function findElementBytext(selector, text, { fallbackSelector, index = 0, inElem
|
|
|
47
47
|
|
|
48
48
|
const RETRIES = 5;
|
|
49
49
|
function findButton(label, preSelector, { index, prevSubjectElement }) {
|
|
50
|
-
const buttonElement =
|
|
50
|
+
const buttonElement = findElementByText(`${preSelector}button`, label, {
|
|
51
51
|
index,
|
|
52
52
|
inElement: prevSubjectElement
|
|
53
53
|
});
|
|
@@ -62,7 +62,7 @@ function findButton(label, preSelector, { index, prevSubjectElement }) {
|
|
|
62
62
|
if (buttonElementByTitle) {
|
|
63
63
|
return buttonElementByTitle;
|
|
64
64
|
}
|
|
65
|
-
const menuItemElement =
|
|
65
|
+
const menuItemElement = findElementByText(`${preSelector}[role="menuitem"]`, label, {
|
|
66
66
|
index,
|
|
67
67
|
inElement: prevSubjectElement
|
|
68
68
|
});
|
|
@@ -206,6 +206,7 @@ function checkMultiRadioOption(fieldsetElement, value, _label, force) {
|
|
|
206
206
|
const DEFAULT_OPTIONS = {
|
|
207
207
|
delay: 10,
|
|
208
208
|
force: true,
|
|
209
|
+
index: 0,
|
|
209
210
|
retries: 5
|
|
210
211
|
};
|
|
211
212
|
|
|
@@ -809,11 +810,13 @@ function fill(label, value, options = {}) {
|
|
|
809
810
|
try {
|
|
810
811
|
// =========================================================================
|
|
811
812
|
// If it's a field labelled by a `<label />` element
|
|
812
|
-
const labelElement =
|
|
813
|
+
const labelElement = findElementByText('label', label, {
|
|
814
|
+
index: controlledOptions.index
|
|
815
|
+
});
|
|
813
816
|
if (labelElement) {
|
|
814
817
|
const fieldElement = findElementParentBySelector(labelElement, '.Element-Field');
|
|
815
818
|
if (!fieldElement) {
|
|
816
|
-
throwError(`Could not find '.Element-Field' in field with label "${label}".`);
|
|
819
|
+
throwError(`Could not find '.Element-Field' in field with label "${label}" at index "${controlledOptions.index}".`);
|
|
817
820
|
}
|
|
818
821
|
switch(true){
|
|
819
822
|
// ---------------------------------------------------------------------
|
|
@@ -876,11 +879,13 @@ function fill(label, value, options = {}) {
|
|
|
876
879
|
}
|
|
877
880
|
// =========================================================================
|
|
878
881
|
// If it's a field labelled by a `<legend />` element
|
|
879
|
-
const legendElement =
|
|
882
|
+
const legendElement = findElementByText('legend', label, {
|
|
883
|
+
index: controlledOptions.index
|
|
884
|
+
});
|
|
880
885
|
if (legendElement) {
|
|
881
886
|
const fieldsetElement = findElementParentBySelector(legendElement, '.Element-Fieldset');
|
|
882
887
|
if (!fieldsetElement) {
|
|
883
|
-
throwError(`Could not find '.Element-Fieldset' in field with \`<legend />\` "${label}".`);
|
|
888
|
+
throwError(`Could not find '.Element-Fieldset' in field with \`<legend />\` "${label}" at index "${controlledOptions.index}".`);
|
|
884
889
|
}
|
|
885
890
|
switch(true){
|
|
886
891
|
// ---------------------------------------------------------------------
|
|
@@ -935,7 +940,7 @@ function fill(label, value, options = {}) {
|
|
|
935
940
|
name: 'fill'
|
|
936
941
|
}).error(normalizedError);
|
|
937
942
|
throwError([
|
|
938
|
-
`Could not find or fill field with label or legend "${label}" after ${TOTAL_RETRIES} attempts.`,
|
|
943
|
+
`Could not find or fill field with label or legend "${label}" at index "${controlledOptions.index}" after ${TOTAL_RETRIES} attempts.`,
|
|
939
944
|
`This error was thrown: “${normalizedError.message}”`,
|
|
940
945
|
`Please check the Cypress "- ERROR" log above for more details.`
|
|
941
946
|
].join('\n'));
|
package/elements/Button.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/elements/Button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAyC,KAAK,oBAAoB,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAGhH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAA;AASrD,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC,GAAG;IACpF,IAAI,CAAC,EAAE,iBAAiB,CAAC,SAAS,CAAC,GAAG,SAAS,CAAA;IAC/C,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7B,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACjC,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAA;IACvB,yCAAyC;IACzC,qBAAqB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC5C,CAAA;AACD,wBAAgB,MAAM,CAAC,EACrB,MAAuB,EACvB,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,WAAmB,EACnB,OAAO,EACP,IAAkB,EAClB,IAAe,EACf,qBAA6B,EAC7B,GAAG,WAAW,EACf,EAAE,WAAW,2CAoDb;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/elements/Button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAyC,KAAK,oBAAoB,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAGhH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAA;AASrD,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC,GAAG;IACpF,IAAI,CAAC,EAAE,iBAAiB,CAAC,SAAS,CAAC,GAAG,SAAS,CAAA;IAC/C,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7B,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACjC,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAA;IACvB,yCAAyC;IACzC,qBAAqB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC5C,CAAA;AACD,wBAAgB,MAAM,CAAC,EACrB,MAAuB,EACvB,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,WAAmB,EACnB,OAAO,EACP,IAAkB,EAClB,IAAe,EACf,qBAA6B,EAC7B,GAAG,WAAW,EACf,EAAE,WAAW,2CAoDb;AAsCD,eAAO,MAAM,aAAa,4GAyBzB,CAAA;AAED,eAAO,MAAM,eAAe,4GAyB3B,CAAA;AAED,eAAO,MAAM,cAAc,4GAyB1B,CAAA;AACD,eAAO,MAAM,aAAa,4GA0BzB,CAAA;AACD,eAAO,MAAM,WAAW,4GAqCvB,CAAA"}
|
package/elements/IconBox.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'react';
|
|
2
|
-
export type IconBoxProps = HTMLAttributes<
|
|
2
|
+
export type IconBoxProps = HTMLAttributes<HTMLSpanElement> & {
|
|
3
3
|
$color?: string | undefined;
|
|
4
4
|
/** In pixels */
|
|
5
5
|
$size?: number | undefined;
|
|
@@ -7,9 +7,9 @@ export type IconBoxProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
7
7
|
/**
|
|
8
8
|
* Internal component used to wrap SVG icon components
|
|
9
9
|
*/
|
|
10
|
-
export declare const IconBox: import("styled-components").StyledComponent<"
|
|
10
|
+
export declare const IconBox: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, HTMLAttributes<HTMLSpanElement> & {
|
|
11
11
|
$color?: string | undefined;
|
|
12
12
|
/** In pixels */
|
|
13
13
|
$size?: number | undefined;
|
|
14
|
-
}, keyof HTMLAttributes<
|
|
14
|
+
}, keyof HTMLAttributes<HTMLSpanElement> | "$color" | "$size">;
|
|
15
15
|
//# sourceMappingURL=IconBox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconBox.d.ts","sourceRoot":"","sources":["../../src/elements/IconBox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAE3C,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"IconBox.d.ts","sourceRoot":"","sources":["../../src/elements/IconBox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAE3C,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC,eAAe,CAAC,GAAG;IAC3D,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,gBAAgB;IAChB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC3B,CAAA;AACD;;GAEG;AACH,eAAO,MAAM,OAAO;aAPT,MAAM,GAAG,SAAS;IAC3B,gBAAgB;YACR,MAAM,GAAG,SAAS;8DAgB3B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckPicker.d.ts","sourceRoot":"","sources":["../../src/fields/CheckPicker.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAoC,KAAK,gBAAgB,IAAI,sBAAsB,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"CheckPicker.d.ts","sourceRoot":"","sources":["../../src/fields/CheckPicker.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAoC,KAAK,gBAAgB,IAAI,sBAAsB,EAAE,MAAM,QAAQ,CAAA;AAQ1G,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAKxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAE3C,MAAM,MAAM,gBAAgB,CAAC,WAAW,SAAS,eAAe,GAAG,MAAM,IAAI,IAAI,CAC/E,sBAAsB,CAAC,MAAM,CAAC,EAC9B,IAAI,GAAG,WAAW,GAAG,MAAM,GAAG,cAAc,GAAG,IAAI,GAAG,UAAU,GAAG,gBAAgB,GAAG,OAAO,GAAG,UAAU,CAC3G,GAAG;IACF,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAA;IAChD,+EAA+E;IAC/E,0BAA0B,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/C,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,oBAAoB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC1C,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACnC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAChC,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACnC,uBAAuB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7C,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,GAAG,SAAS,KAAK,UAAU,CAAC,IAAI,CAAC,CAAA;IACrE,cAAc,CAAC,EAAE,MAAM,WAAW,GAAG,SAAS,CAAA;IAC9C,OAAO,EAAE,MAAM,CAAC,WAAW,CAAC,EAAE,CAAA;IAC9B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,KAAK,CAAC,EAAE,WAAW,EAAE,GAAG,SAAS,CAAA;CAClC,CAAA;AACD,wBAAgB,WAAW,CAAC,WAAW,SAAS,eAAe,GAAG,MAAM,EAAE,EACxE,SAAS,EACT,YAAY,EACZ,0BAA8B,EAC9B,QAAgB,EAChB,KAAK,EACL,oBAA4B,EAC5B,aAAqB,EACrB,OAAe,EACf,UAAkB,EAClB,aAAqB,EACrB,uBAA+B,EAC/B,KAAK,EACL,QAAQ,EACR,OAAO,EACP,cAAc,EACd,UAAU,EACV,QAAgB,EAChB,UAAkB,EAClB,KAAK,EACL,KAAK,EACL,GAAG,aAAa,EACjB,EAAE,gBAAgB,CAAC,WAAW,CAAC,2CAwG/B"}
|
package/index.js
CHANGED
|
@@ -17707,7 +17707,7 @@ const Dialog = Object.assign(RawDialog, {
|
|
|
17707
17707
|
|
|
17708
17708
|
/**
|
|
17709
17709
|
* Internal component used to wrap SVG icon components
|
|
17710
|
-
*/ const IconBox = styled.
|
|
17710
|
+
*/ const IconBox = styled.span.attrs(()=>({
|
|
17711
17711
|
className: 'Element-IconBox'
|
|
17712
17712
|
}))`
|
|
17713
17713
|
display: inline-block;
|
|
@@ -21723,8 +21723,7 @@ const PrimaryDropdownItem = styled(Dropdown$1.Item)`
|
|
|
21723
21723
|
&:not(:last-child) {
|
|
21724
21724
|
border-bottom: 1px solid var(--lightGray);
|
|
21725
21725
|
}
|
|
21726
|
-
|
|
21727
|
-
> div {
|
|
21726
|
+
> .Element-IconBox {
|
|
21728
21727
|
margin-top: 1px;
|
|
21729
21728
|
}
|
|
21730
21729
|
`;
|
|
@@ -21786,8 +21785,7 @@ const PrimaryDropdown = styled(Dropdown$1)`
|
|
|
21786
21785
|
color: ${(p)=>p.theme.color.cultured};
|
|
21787
21786
|
}
|
|
21788
21787
|
|
|
21789
|
-
|
|
21790
|
-
> div {
|
|
21788
|
+
> .Element-IconBox {
|
|
21791
21789
|
margin: 1px 8px 0 0;
|
|
21792
21790
|
}
|
|
21793
21791
|
|
|
@@ -53150,8 +53148,7 @@ const StyledButton$1 = styled.button`
|
|
|
53150
53148
|
padding: ${(p)=>PADDING$2[p.size]};
|
|
53151
53149
|
width: ${(p)=>p.isFullWidth ? '100%' : 'auto'};
|
|
53152
53150
|
|
|
53153
|
-
|
|
53154
|
-
> div {
|
|
53151
|
+
> .Element-IconBox {
|
|
53155
53152
|
margin-right: 5px;
|
|
53156
53153
|
}
|
|
53157
53154
|
`;
|
|
@@ -54136,8 +54133,8 @@ const Box$a = styled.span`
|
|
|
54136
54133
|
height: 22px;
|
|
54137
54134
|
line-height: normal;
|
|
54138
54135
|
padding: ${(p)=>p.$withCircleIcon ? '1px 8px 0px 1px' : '0px 8px'};
|
|
54139
|
-
|
|
54140
|
-
>
|
|
54136
|
+
|
|
54137
|
+
> .Element-IconBox {
|
|
54141
54138
|
margin-right: 4px;
|
|
54142
54139
|
}
|
|
54143
54140
|
`;
|
|
@@ -54897,13 +54894,7 @@ function CheckPicker({ className, customSearch, customSearchMinQueryLength = 1,
|
|
|
54897
54894
|
const controlledError = useMemo(()=>normalizeString(error), [
|
|
54898
54895
|
error
|
|
54899
54896
|
]);
|
|
54900
|
-
const hasError =
|
|
54901
|
-
controlledError
|
|
54902
|
-
]);
|
|
54903
|
-
const key = useKey([
|
|
54904
|
-
disabled,
|
|
54905
|
-
originalProps.name
|
|
54906
|
-
]);
|
|
54897
|
+
const hasError = Boolean(controlledError);
|
|
54907
54898
|
const selectedRsuiteValue = useMemo(()=>getRsuiteDataItemValuesFromOptionValues(value, optionValueKey), [
|
|
54908
54899
|
optionValueKey,
|
|
54909
54900
|
value
|
|
@@ -54986,7 +54977,7 @@ function CheckPicker({ className, customSearch, customSearchMinQueryLength = 1,
|
|
|
54986
54977
|
size: originalProps.size ?? 'sm',
|
|
54987
54978
|
value: selectedRsuiteValue,
|
|
54988
54979
|
...originalProps
|
|
54989
|
-
}
|
|
54980
|
+
})
|
|
54990
54981
|
}),
|
|
54991
54982
|
!isErrorMessageHidden && hasError && /*#__PURE__*/ jsx(FieldError, {
|
|
54992
54983
|
children: controlledError
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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": "
|
|
4
|
+
"version": "17.1.0",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=20"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@babel/runtime": "7.24.
|
|
11
|
+
"@babel/runtime": "7.24.5",
|
|
12
12
|
"@tanstack/react-table": "8.9.7",
|
|
13
13
|
"@tanstack/react-virtual": "beta",
|
|
14
14
|
"prop-types": "15.8.1",
|