@mtes-mct/monitor-ui 11.7.0 → 11.7.2
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 +23 -0
- package/assets/stylesheets/rsuite-override.css +0 -47
- package/fields/Toggle.d.ts +1 -1
- package/fields/Toggle.d.ts.map +1 -1
- package/index.js +36 -4
- package/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
## [11.7.1](https://github.com/MTES-MCT/monitor-ui/compare/v11.7.0...v11.7.1) (2024-02-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **fields:** fix MultiRadio colors ([42d87c7](https://github.com/MTES-MCT/monitor-ui/commit/42d87c7fc15eb3af9a602242d4f5f8c3f3e683a6))
|
|
7
|
+
|
|
8
|
+
## [11.7.0](https://github.com/MTES-MCT/monitor-ui/compare/v11.6.0...v11.7.0) (2024-02-08)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **fields:** accept JSX Elements for multiradio label ([5776236](https://github.com/MTES-MCT/monitor-ui/commit/577623600d3588733c111b73fe0b341625d03f25))
|
|
14
|
+
* **fields:** add field and label to Toggle component ([1ef21e3](https://github.com/MTES-MCT/monitor-ui/commit/1ef21e34d262e56d21a2bd2eac87a7401d34bf1d))
|
|
15
|
+
* **fields:** can display custom items for MultiRadio component ([5e75fff](https://github.com/MTES-MCT/monitor-ui/commit/5e75fffdcef9fd47926e2f699e702d024f9c5fe7))
|
|
16
|
+
* **fields:** can display custom items for MultiRadio component ([86080d7](https://github.com/MTES-MCT/monitor-ui/commit/86080d755c429ae604ae4ab9c70998dca3ac2389))
|
|
17
|
+
* **fields:** create Toggle component ([6a649cd](https://github.com/MTES-MCT/monitor-ui/commit/6a649cd2733055f9b13ebc988e61a2138cfeb637))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **fields:** update error mode for MultiRadio component ([b7babe9](https://github.com/MTES-MCT/monitor-ui/commit/b7babe98124929cd707ce67e80f710351181eca1))
|
|
23
|
+
|
|
1
24
|
## [11.6.0](https://github.com/MTES-MCT/monitor-ui/compare/v11.5.1...v11.6.0) (2024-02-05)
|
|
2
25
|
|
|
3
26
|
|
|
@@ -311,53 +311,6 @@ label:hover .rs-checkbox-wrapper .rs-checkbox-inner:before {
|
|
|
311
311
|
position: inherit;
|
|
312
312
|
}
|
|
313
313
|
|
|
314
|
-
/* radio */
|
|
315
|
-
|
|
316
|
-
.rs-radio-wrapper::before,
|
|
317
|
-
.rs-radio-wrapper .rs-radio-inner::before,
|
|
318
|
-
.rs-radio-wrapper {
|
|
319
|
-
width: 14px;
|
|
320
|
-
height: 14px;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
.rs-radio-wrapper .rs-radio-inner::before {
|
|
324
|
-
background: var(--gainsboro);
|
|
325
|
-
border-width: 2px;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
.rs-radio-checked .rs-radio-wrapper .rs-radio-inner::before {
|
|
329
|
-
background: var(--gainsboro);
|
|
330
|
-
border-color: var(--charcoal);
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
/* center of radio button when checked */
|
|
334
|
-
.rs-radio-wrapper .rs-radio-inner::after {
|
|
335
|
-
background: var(--charcoal);
|
|
336
|
-
width: 6px;
|
|
337
|
-
height: 6px;
|
|
338
|
-
margin-top: 4px;
|
|
339
|
-
margin-left: 4px;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
.rs-radio.rs-radio-disabled .rs-radio-wrapper .rs-radio-inner::after {
|
|
343
|
-
background: var(--lightGray);
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
.rs-radio.rs-radio-disabled .rs-radio-inner:before {
|
|
347
|
-
background: var(--white);
|
|
348
|
-
border-color: var(--lightGray);
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
.rs-radio-checker > label {
|
|
352
|
-
color: var(--charcoal);
|
|
353
|
-
font-weight: 500;
|
|
354
|
-
line-height: 17px;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
.rs-radio:hover .rs-radio-inner:before {
|
|
358
|
-
border-color: var(--charcoal);
|
|
359
|
-
}
|
|
360
|
-
|
|
361
314
|
/* form */
|
|
362
315
|
.rs-form:not(.rs-form-inline) .rs-form-group:not(:last-child) {
|
|
363
316
|
margin-bottom: 32px;
|
package/fields/Toggle.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export type ToggleProps = Omit<RSuiteToggleProps, 'onChange'> & {
|
|
|
7
7
|
isLabelHidden?: boolean | undefined;
|
|
8
8
|
label: string;
|
|
9
9
|
name: string;
|
|
10
|
-
onChange
|
|
10
|
+
onChange?: (isChecked: boolean) => void;
|
|
11
11
|
};
|
|
12
12
|
export declare function Toggle({ className, dataCy, error, isChecked, isErrorMessageHidden, isLabelHidden, label, onChange, style, ...originalProps }: ToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
//# sourceMappingURL=Toggle.d.ts.map
|
package/fields/Toggle.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../src/fields/Toggle.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA0B,KAAK,WAAW,IAAI,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAStF,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,iBAAiB,EAAE,UAAU,CAAC,GAAG;IAC9D,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,OAAO,CAAA;IAClB,oBAAoB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC1C,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../src/fields/Toggle.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA0B,KAAK,WAAW,IAAI,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAStF,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,iBAAiB,EAAE,UAAU,CAAC,GAAG;IAC9D,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,OAAO,CAAA;IAClB,oBAAoB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC1C,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;CACxC,CAAA;AACD,wBAAgB,MAAM,CAAC,EACrB,SAAS,EACT,MAAM,EACN,KAAK,EACL,SAAS,EACT,oBAA4B,EAC5B,aAAa,EACb,KAAK,EACL,QAAQ,EACR,KAAK,EACL,GAAG,aAAa,EACjB,EAAE,WAAW,2CA4Bb"}
|
package/index.js
CHANGED
|
@@ -58582,15 +58582,47 @@ const Box$4 = styled.div`
|
|
|
58582
58582
|
padding: 0 0 0 28px;
|
|
58583
58583
|
user-select: none;
|
|
58584
58584
|
|
|
58585
|
+
> label {
|
|
58586
|
+
color: ${(p)=>p.theme.color.charcoal};
|
|
58587
|
+
font-weight: 500;
|
|
58588
|
+
line-height: 17px;
|
|
58589
|
+
}
|
|
58590
|
+
|
|
58585
58591
|
.rs-radio-wrapper {
|
|
58586
58592
|
left: 2px;
|
|
58587
58593
|
top: 3px !important;
|
|
58594
|
+
|
|
58595
|
+
.rs-radio-inner:before {
|
|
58596
|
+
background: ${(p)=>p.theme.color.gainsboro};
|
|
58597
|
+
border: 2px solid ${(p)=>p.$hasError ? p.theme.color.maximumRed : p.theme.color.lightGray};
|
|
58598
|
+
}
|
|
58599
|
+
.rs-radio-inner:after {
|
|
58600
|
+
background: ${(p)=>p.$hasError ? p.theme.color.maximumRed : p.theme.color.charcoal};
|
|
58601
|
+
}
|
|
58602
|
+
}
|
|
58603
|
+
}
|
|
58604
|
+
}
|
|
58605
|
+
> .rs-radio-checked {
|
|
58606
|
+
> .rs-radio-checker {
|
|
58607
|
+
.rs-radio-wrapper {
|
|
58608
|
+
.rs-radio-inner:before {
|
|
58609
|
+
border: 2px solid ${(p)=>p.$hasError ? p.theme.color.maximumRed : p.theme.color.charcoal};
|
|
58610
|
+
}
|
|
58588
58611
|
}
|
|
58589
|
-
|
|
58590
|
-
|
|
58612
|
+
}
|
|
58613
|
+
}
|
|
58614
|
+
> .rs-radio-disabled {
|
|
58615
|
+
> .rs-radio-checker {
|
|
58616
|
+
> label {
|
|
58617
|
+
color: ${(p)=>p.theme.color.lightGray};
|
|
58591
58618
|
}
|
|
58592
|
-
.rs-radio-
|
|
58593
|
-
|
|
58619
|
+
.rs-radio-wrapper {
|
|
58620
|
+
.rs-radio-inner:before {
|
|
58621
|
+
background: ${(p)=>p.theme.color.white};
|
|
58622
|
+
}
|
|
58623
|
+
.rs-radio-inner:after {
|
|
58624
|
+
background: ${(p)=>p.$hasError ? p.theme.color.maximumRed : p.theme.color.lightGray};
|
|
58625
|
+
}
|
|
58594
58626
|
}
|
|
58595
58627
|
}
|
|
58596
58628
|
}
|