@mtes-mct/monitor-ui 12.0.0 → 12.0.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 +89 -0
- package/fields/shared/StyledRsuitePickerBox.d.ts.map +1 -1
- package/fields/shared/utils.d.ts +1 -1
- package/fields/shared/utils.d.ts.map +1 -1
- package/index.js +37 -34
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/utils/getRsuiteDataItemValueFromOptionValue.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,92 @@
|
|
|
1
|
+
## [12.0.1](https://github.com/MTES-MCT/monitor-ui/compare/v12.0.0...v12.0.1) (2024-02-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **fields:** handle missing boolean option value case in options fields ([966e17c](https://github.com/MTES-MCT/monitor-ui/commit/966e17c5dfea03a48a8387f03cbcbaeff5c68008))
|
|
7
|
+
|
|
8
|
+
## [12.0.0](https://github.com/MTES-MCT/monitor-ui/compare/v11.9.1...v12.0.0) (2024-02-26)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### ⚠ BREAKING CHANGES
|
|
12
|
+
|
|
13
|
+
* **fields:** - Add mandatory `name` prop on `CoordinatesInput`.
|
|
14
|
+
- Add mandatory `name` prop on `DatePicker`.
|
|
15
|
+
- Add mandatory `name` prop on `DateRangePicker`.
|
|
16
|
+
- `isChecked` prop has been renamed to `checked` in Toggle.
|
|
17
|
+
* **fields:** - `isReadOnly` has been renamed to `readOnly` in `MultiRadio`.
|
|
18
|
+
* **fields:** - `.rs-picker*`, `.rs-tag*`, `.rs-btn*` & `label` styles have been removed from `rsuite-override.css`
|
|
19
|
+
* **fields:** - Migrate to Rsuite v5.53.2 and enforce it as minimal version via `^5.53.2` in peer dependencies.
|
|
20
|
+
- Remove `baseContainer` property from `MultiSelect` and `FormikMultiSelect`.
|
|
21
|
+
- Remove `baseContainer` property from `Select` and `FormikSelect`.
|
|
22
|
+
- Forbid Rsuite inherited property `valueKey` in `CheckPicker`.
|
|
23
|
+
- Forbid Rsuite inherited property `valueKey` in `MultiSelect` and `FormikMultiSelect`.
|
|
24
|
+
- Forbid Rsuite inherited property `valueKey` in `Search`.
|
|
25
|
+
- The `Option` type now doesn't allow the `children` property, you need to use `TreeOption` for that instead.
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* **cypress:** use Escape instead of click outside for fill() on DateRangePicker ([3883337](https://github.com/MTES-MCT/monitor-ui/commit/3883337273eb38829e25d77e1b3f8703c23dae4e))
|
|
30
|
+
* **field:** add Radio ([0573fc8](https://github.com/MTES-MCT/monitor-ui/commit/0573fc890ccfd5e04028359e7fe2f55f1006da32))
|
|
31
|
+
* **fields:** add isLight prop to Checkbox ([9992824](https://github.com/MTES-MCT/monitor-ui/commit/9992824e519f4bb8151aa6d61eade3f87e6992ba))
|
|
32
|
+
* **fields:** add MultiCascader ([5900bb6](https://github.com/MTES-MCT/monitor-ui/commit/5900bb6a6234adc904aa01917da05edf14777111))
|
|
33
|
+
* **fields:** add readOnly prop to MultiCheckbox ([bd1e21b](https://github.com/MTES-MCT/monitor-ui/commit/bd1e21b00b041be05acb896cc0e65a9b8692a7c0))
|
|
34
|
+
* **fields:** close DatePicker calendar & time pickers on Escape ([96344da](https://github.com/MTES-MCT/monitor-ui/commit/96344da55e609a1bd19c82279bbcbc2cdac83031))
|
|
35
|
+
* **fields:** close DateRangePicker calendar & time pickers on Escape ([4ae6edd](https://github.com/MTES-MCT/monitor-ui/commit/4ae6edda9367cd078426b651832c590fad36ec53))
|
|
36
|
+
* **fields:** normalize disabled, isLight, isTransparent & readOnly props ([88e8308](https://github.com/MTES-MCT/monitor-ui/commit/88e8308c20b216de4925e9258b207798c5d139ef))
|
|
37
|
+
* **fields:** rename isReadOnly prop to readOnly in MultiRadio ([71581b4](https://github.com/MTES-MCT/monitor-ui/commit/71581b46129e8a6e90bd4c701eaf41be5bffa20f))
|
|
38
|
+
* **fields:** set CheckPicker, MultiCascader, MultiSelect & Select height to 30px ([6caff98](https://github.com/MTES-MCT/monitor-ui/commit/6caff986cacbc73c51b3843764fd5f31fa8cbdda))
|
|
39
|
+
* **formiks:** add FormikCheckPicker ([b480014](https://github.com/MTES-MCT/monitor-ui/commit/b4800141a9587f98035d6094d8f0e6b74d255038))
|
|
40
|
+
* **formiks:** add FormikMultiCascader ([77effaa](https://github.com/MTES-MCT/monitor-ui/commit/77effaafca094407eee6f8f369423c82254a483d))
|
|
41
|
+
* **formiks:** add FormikToggle ([e4e821b](https://github.com/MTES-MCT/monitor-ui/commit/e4e821b162a20eeef40566542ac207b7e974d342))
|
|
42
|
+
* **hooks:** add usePressEscapeEffect() ([9e85593](https://github.com/MTES-MCT/monitor-ui/commit/9e85593e37b6e372b621d601af76e07411f6c78e))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Bug Fixes
|
|
46
|
+
|
|
47
|
+
* **cypress:** add dedicated function to fill() for Search field ([b20a102](https://github.com/MTES-MCT/monitor-ui/commit/b20a1028eae0d5210fdb9be4e5b7f50543ded818))
|
|
48
|
+
* **cypress:** fix fill() command for CheckPicker after Rsuite upgrade ([f987cde](https://github.com/MTES-MCT/monitor-ui/commit/f987cdeba881ff8ed799a16cbe3d953bb9360f72))
|
|
49
|
+
* **cypress:** fix fill() command for Select & MultiSelect after Rsuite upgrade ([0112f3b](https://github.com/MTES-MCT/monitor-ui/commit/0112f3b5d9cf696ee0a1a063534f3930e747ba87))
|
|
50
|
+
* **field:** fix Checkbox after Rsuite upgrade ([abc0b71](https://github.com/MTES-MCT/monitor-ui/commit/abc0b712b596ed917694af9c7e7a2b36adf3a61a))
|
|
51
|
+
* **field:** fix MultiRadio after Rsuite upgrade ([63829b8](https://github.com/MTES-MCT/monitor-ui/commit/63829b83a53f73d32907f9d989e61928bcf3b074))
|
|
52
|
+
* **field:** set rsuite value to null when undefined in Select ([e40ae4e](https://github.com/MTES-MCT/monitor-ui/commit/e40ae4ece7fc71963b53e74394ed16737e3cdadd))
|
|
53
|
+
* **fields:** finalize DatePicker & DateRangePicker style after Rsuite upgrade ([0004843](https://github.com/MTES-MCT/monitor-ui/commit/00048437b0b72db7659e649550b221640e5e738f))
|
|
54
|
+
* **fields:** fix DateRangePicker basic styles after Rsuite upgrade ([e2b853f](https://github.com/MTES-MCT/monitor-ui/commit/e2b853f30bb87f076c87c08e25eb532daef3ae82))
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### Code Refactoring
|
|
58
|
+
|
|
59
|
+
* **cypress:** improve fill() command for Checkbox & basic fields ([747c009](https://github.com/MTES-MCT/monitor-ui/commit/747c009f0bc493dc9fd9d1f5c2f6c466c67415fe))
|
|
60
|
+
* **cypress:** improve fill() command for MultiRadio ([30a5f05](https://github.com/MTES-MCT/monitor-ui/commit/30a5f05c7772e4e87c2a6073ac2eddc0a3d6bb7b))
|
|
61
|
+
* **cypress:** move fill() utils within fill/ folder ([5be34e2](https://github.com/MTES-MCT/monitor-ui/commit/5be34e2582edce2b64352b3878c133b7ea766a4a))
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### Buid System & Dependencies
|
|
65
|
+
|
|
66
|
+
* **jest:** fix missing SWC paths ([13a98ea](https://github.com/MTES-MCT/monitor-ui/commit/13a98ea0149ee96840a97d2674c4dd0930c7de0a))
|
|
67
|
+
* **storybook:** migrate to v8 ([eaa25fb](https://github.com/MTES-MCT/monitor-ui/commit/eaa25fbfc87152204ce577da15e073b9c5271ff9))
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### Documentation
|
|
71
|
+
|
|
72
|
+
* **components:** clean stories ([7536d4e](https://github.com/MTES-MCT/monitor-ui/commit/7536d4e1bbf03cb0efb755da865e5f71d9bd00a0))
|
|
73
|
+
* **cypress:** update fill() command tsdoc ([7d1db8d](https://github.com/MTES-MCT/monitor-ui/commit/7d1db8d252468dae1f891de637b26415562c9a09))
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
### Styles
|
|
77
|
+
|
|
78
|
+
* **components:** set Dialog action buttons spacing to 8px ([3281d20](https://github.com/MTES-MCT/monitor-ui/commit/3281d2011bc9d605ee8c0765ec8d4b19111e0912))
|
|
79
|
+
* **fields:** add 8px padding in DatePicker & DateRangePicker calendars ([3aac367](https://github.com/MTES-MCT/monitor-ui/commit/3aac36748443747be17c0736a69f388208e5f361))
|
|
80
|
+
* **fields:** fix Checkbox checkmark color when transparent ([c2dbfae](https://github.com/MTES-MCT/monitor-ui/commit/c2dbfae11f0eae57fcce5e18eda0eeba31879a5e))
|
|
81
|
+
* **fields:** fix CoordinatesInput states & height ([9900849](https://github.com/MTES-MCT/monitor-ui/commit/9900849530fcb6ddb3b4120f5a46274e5031333b))
|
|
82
|
+
* **fields:** fix counter badge look in CheckPicker & MultiCascader ([9ffeaff](https://github.com/MTES-MCT/monitor-ui/commit/9ffeafffa8f652a7b1637dc616a708513c1e8982))
|
|
83
|
+
* **fields:** fix option focus colors in CheckPicker, MultiCascader, MultiSelect & Select ([a76fe8f](https://github.com/MTES-MCT/monitor-ui/commit/a76fe8f6fa27c3ac92a9c7ce21c5b049f26041c8))
|
|
84
|
+
* **fields:** fix option hover color in CheckPicker, MultiCascader, MultiSelect & Select ([c91c249](https://github.com/MTES-MCT/monitor-ui/commit/c91c249f2c7fcd007235d325a2087a3c75329502))
|
|
85
|
+
* **fields:** fix picker popup column border in MultiCascader ([879f4a8](https://github.com/MTES-MCT/monitor-ui/commit/879f4a893005b712348b1ede5c4b6beefa8d4d52))
|
|
86
|
+
* **fields:** fix selected value(s) color in CheckPicker, MultiCascader & Select ([0390555](https://github.com/MTES-MCT/monitor-ui/commit/03905556fb61b6baf139d57bcae4e0fdf6eed1b0))
|
|
87
|
+
* **fields:** fix Toggle state colors ([ab9b0ba](https://github.com/MTES-MCT/monitor-ui/commit/ab9b0bad746dd5cb5462f4f49ea6bf958a5dc889))
|
|
88
|
+
* remove Rsuite table classes from rsuite-override.css ([f69b89d](https://github.com/MTES-MCT/monitor-ui/commit/f69b89dcbd8d850943ef23cda6be7442465d2a46))
|
|
89
|
+
|
|
1
90
|
## [11.9.1](https://github.com/MTES-MCT/monitor-ui/compare/v11.9.0...v11.9.1) (2024-02-23)
|
|
2
91
|
|
|
3
92
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StyledRsuitePickerBox.d.ts","sourceRoot":"","sources":["../../../src/fields/shared/StyledRsuitePickerBox.ts"],"names":[],"mappings":"AAQA,KAAK,0BAA0B,GAAG;IAChC,SAAS,EAAE,OAAO,CAAA;IAClB,WAAW,EAAE,OAAO,CAAA;IACpB,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,EAAE,OAAO,CAAA;IACpB,cAAc,EAAE,OAAO,CAAA;CACxB,CAAA;AACD,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"StyledRsuitePickerBox.d.ts","sourceRoot":"","sources":["../../../src/fields/shared/StyledRsuitePickerBox.ts"],"names":[],"mappings":"AAQA,KAAK,0BAA0B,GAAG;IAChC,SAAS,EAAE,OAAO,CAAA;IAClB,WAAW,EAAE,OAAO,CAAA;IACpB,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,EAAE,OAAO,CAAA;IACpB,cAAc,EAAE,OAAO,CAAA;CACxB,CAAA;AACD,eAAO,MAAM,qBAAqB,iIAySjC,CAAA"}
|
package/fields/shared/utils.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import type { CommonChoiceFieldStyleProps, CommonFieldStyleProps, PseudoState }
|
|
|
2
2
|
export declare function getChoiceFieldBackgroundColorFactoryForState(pseudoState: PseudoState): (props: CommonChoiceFieldStyleProps) => string;
|
|
3
3
|
export declare function getChoiceFieldBorderColorFactoryForState(pseudoState: PseudoState): (props: CommonChoiceFieldStyleProps) => string;
|
|
4
4
|
export declare function getFieldBackgroundColorFactory(): (props: CommonFieldStyleProps) => string;
|
|
5
|
-
export declare function
|
|
5
|
+
export declare function getFieldBorderColorFactoryForState(pseudoState: PseudoState): (props: CommonFieldStyleProps) => string;
|
|
6
6
|
export declare function getFieldPlaceholderColorFactoryForState(pseudoState: PseudoState): (props: CommonFieldStyleProps) => string;
|
|
7
7
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/fields/shared/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE9F,wBAAgB,4CAA4C,CAAC,WAAW,EAAE,WAAW,WACpE,2BAA2B,YAsC3C;AAED,wBAAgB,wCAAwC,CAAC,WAAW,EAAE,WAAW,WAChE,2BAA2B,YAoC3C;AAED,wBAAgB,8BAA8B,YAC7B,qBAAqB,YAqBrC;AAED,wBAAgB,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/fields/shared/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE9F,wBAAgB,4CAA4C,CAAC,WAAW,EAAE,WAAW,WACpE,2BAA2B,YAsC3C;AAED,wBAAgB,wCAAwC,CAAC,WAAW,EAAE,WAAW,WAChE,2BAA2B,YAoC3C;AAED,wBAAgB,8BAA8B,YAC7B,qBAAqB,YAqBrC;AAED,wBAAgB,kCAAkC,CAAC,WAAW,EAAE,WAAW,WAC1D,qBAAqB,YAiCrC;AAED,wBAAgB,uCAAuC,CAAC,WAAW,EAAE,WAAW,WAC/D,qBAAqB,YAoBrC"}
|
package/index.js
CHANGED
|
@@ -55685,7 +55685,7 @@ function getFieldBackgroundColorFactory() {
|
|
|
55685
55685
|
}
|
|
55686
55686
|
};
|
|
55687
55687
|
}
|
|
55688
|
-
function
|
|
55688
|
+
function getFieldBorderColorFactoryForState(pseudoState) {
|
|
55689
55689
|
return (props)=>{
|
|
55690
55690
|
switch(true){
|
|
55691
55691
|
case props.$hasError:
|
|
@@ -55700,10 +55700,10 @@ function getFieldMainColorFactoryForState(pseudoState) {
|
|
|
55700
55700
|
return props.theme.color.blueGray;
|
|
55701
55701
|
// When transparent on white background
|
|
55702
55702
|
case props.$isTransparent && props.$isLight:
|
|
55703
|
-
return props.theme.color.
|
|
55703
|
+
return props.theme.color.slateGray;
|
|
55704
55704
|
// When transparent on gray/gainsboro background
|
|
55705
55705
|
case props.$isTransparent:
|
|
55706
|
-
return props.theme.color.
|
|
55706
|
+
return props.theme.color.lightGray;
|
|
55707
55707
|
// When non-transparent on gray/gainsboro background
|
|
55708
55708
|
case props.$isLight:
|
|
55709
55709
|
return props.theme.color.white;
|
|
@@ -55954,7 +55954,7 @@ const StyledRsuitePickerBox = styled.div`
|
|
|
55954
55954
|
|
|
55955
55955
|
> [role='combobox'] {
|
|
55956
55956
|
background-color: ${getFieldBackgroundColorFactory()} !important;
|
|
55957
|
-
border: solid 1px ${
|
|
55957
|
+
border: solid 1px ${getFieldBorderColorFactoryForState('default')} !important;
|
|
55958
55958
|
border-radius: 0;
|
|
55959
55959
|
/* Remove focus ring (Select) */
|
|
55960
55960
|
box-shadow: none;
|
|
@@ -55963,8 +55963,9 @@ const StyledRsuitePickerBox = styled.div`
|
|
|
55963
55963
|
line-height: 1.3846;
|
|
55964
55964
|
padding: 3.5px 40px 0 8px !important;
|
|
55965
55965
|
|
|
55966
|
-
&:hover
|
|
55967
|
-
|
|
55966
|
+
&:hover,
|
|
55967
|
+
&._hover {
|
|
55968
|
+
border: solid 1px ${getFieldBorderColorFactoryForState('hover')} !important;
|
|
55968
55969
|
|
|
55969
55970
|
> .rs-stack {
|
|
55970
55971
|
> .rs-stack-item {
|
|
@@ -55977,9 +55978,11 @@ const StyledRsuitePickerBox = styled.div`
|
|
|
55977
55978
|
}
|
|
55978
55979
|
|
|
55979
55980
|
&:active,
|
|
55981
|
+
&._active,
|
|
55980
55982
|
&:focus,
|
|
55983
|
+
&._focus,
|
|
55981
55984
|
&.rs-picker-toggle-active {
|
|
55982
|
-
border: solid 1px ${
|
|
55985
|
+
border: solid 1px ${getFieldBorderColorFactoryForState('focus')} !important;
|
|
55983
55986
|
|
|
55984
55987
|
> .rs-stack {
|
|
55985
55988
|
> .rs-stack-item {
|
|
@@ -56201,7 +56204,8 @@ const StyledRsuitePickerBox = styled.div`
|
|
|
56201
56204
|
}
|
|
56202
56205
|
}
|
|
56203
56206
|
|
|
56204
|
-
&:hover
|
|
56207
|
+
&:hover,
|
|
56208
|
+
&._hover {
|
|
56205
56209
|
background-color: ${(p)=>p.theme.color.blueYonder25};
|
|
56206
56210
|
|
|
56207
56211
|
> .rs-checkbox-checker {
|
|
@@ -56248,13 +56252,14 @@ const StyledRsuitePickerBox = styled.div`
|
|
|
56248
56252
|
if (typeof optionValue[optionValueKey] !== 'number' && typeof optionValue[optionValueKey] !== 'string') {
|
|
56249
56253
|
throw new Error([
|
|
56250
56254
|
`You must provide a valid option value key when using objects as option values.`,
|
|
56255
|
+
`The property value must exist and be a unique number or a string.`,
|
|
56251
56256
|
`OptionValue: \`${JSON.stringify(optionValue)}\`.`,
|
|
56252
56257
|
`OptionValueKey: \`${String(optionValueKey)}\`.`
|
|
56253
56258
|
].join(' '));
|
|
56254
56259
|
}
|
|
56255
56260
|
return String(optionValue[optionValueKey]);
|
|
56256
56261
|
}
|
|
56257
|
-
if (typeof optionValue !== 'number' && typeof optionValue !== 'string') {
|
|
56262
|
+
if (typeof optionValue !== 'boolean' && typeof optionValue !== 'number' && typeof optionValue !== 'string') {
|
|
56258
56263
|
throw new Error([
|
|
56259
56264
|
`You must provide an option value key when using objects as option values.`,
|
|
56260
56265
|
`OptionValue: \`${JSON.stringify(optionValue)}\`.`
|
|
@@ -66452,7 +66457,7 @@ const StyledFieldset = styled(Fieldset)`
|
|
|
66452
66457
|
|
|
66453
66458
|
input {
|
|
66454
66459
|
background-color: ${getFieldBackgroundColorFactory()};
|
|
66455
|
-
border: 1px solid ${
|
|
66460
|
+
border: 1px solid ${getFieldBorderColorFactoryForState('default')};
|
|
66456
66461
|
color: ${(p)=>p.theme.color.gunMetal};
|
|
66457
66462
|
font-size: 13px;
|
|
66458
66463
|
font-weight: 500;
|
|
@@ -66461,7 +66466,7 @@ const StyledFieldset = styled(Fieldset)`
|
|
|
66461
66466
|
|
|
66462
66467
|
&:hover,
|
|
66463
66468
|
&._hover {
|
|
66464
|
-
border: 1px solid ${
|
|
66469
|
+
border: 1px solid ${getFieldBorderColorFactoryForState('hover')};
|
|
66465
66470
|
}
|
|
66466
66471
|
|
|
66467
66472
|
&:active,
|
|
@@ -66469,7 +66474,7 @@ const StyledFieldset = styled(Fieldset)`
|
|
|
66469
66474
|
&:focus,
|
|
66470
66475
|
&._focus {
|
|
66471
66476
|
background-color: ${getFieldBackgroundColorFactory()};
|
|
66472
|
-
border: 1px solid ${
|
|
66477
|
+
border: 1px solid ${getFieldBorderColorFactoryForState('focus')};
|
|
66473
66478
|
}
|
|
66474
66479
|
&:focus-visible {
|
|
66475
66480
|
outline: 0;
|
|
@@ -67376,7 +67381,7 @@ const DateInput = /*#__PURE__*/ forwardRef(DateInputWithRef);
|
|
|
67376
67381
|
const Box$7 = styled.div`
|
|
67377
67382
|
align-items: center;
|
|
67378
67383
|
background-color: ${getFieldBackgroundColorFactory()};
|
|
67379
|
-
border: solid 1px ${
|
|
67384
|
+
border: solid 1px ${getFieldBorderColorFactoryForState('default')};
|
|
67380
67385
|
color: ${getFieldPlaceholderColorFactoryForState('default')};
|
|
67381
67386
|
display: inline-flex;
|
|
67382
67387
|
font-size: 13px;
|
|
@@ -67387,7 +67392,7 @@ const Box$7 = styled.div`
|
|
|
67387
67392
|
|
|
67388
67393
|
&:hover {
|
|
67389
67394
|
border: solid 1px
|
|
67390
|
-
${(p)=>p.$isFocused ?
|
|
67395
|
+
${(p)=>p.$isFocused ? getFieldBorderColorFactoryForState('focus')(p) : getFieldBorderColorFactoryForState('hover')(p)};
|
|
67391
67396
|
color: ${(p)=>p.$isFocused ? getFieldPlaceholderColorFactoryForState('focus')(p) : getFieldPlaceholderColorFactoryForState('hover')(p)};
|
|
67392
67397
|
}
|
|
67393
67398
|
|
|
@@ -67723,7 +67728,7 @@ function TimeInputWithRef({ baseContainer, disabled, isCompact, isEndDate = fals
|
|
|
67723
67728
|
const TimeInput = /*#__PURE__*/ forwardRef(TimeInputWithRef);
|
|
67724
67729
|
const Box$5 = styled.div`
|
|
67725
67730
|
background-color: ${getFieldBackgroundColorFactory()};
|
|
67726
|
-
border: solid 1px ${
|
|
67731
|
+
border: solid 1px ${getFieldBorderColorFactoryForState('default')};
|
|
67727
67732
|
color: ${getFieldPlaceholderColorFactoryForState('default')};
|
|
67728
67733
|
display: inline-block;
|
|
67729
67734
|
font-size: 13px;
|
|
@@ -67733,8 +67738,8 @@ const Box$5 = styled.div`
|
|
|
67733
67738
|
|
|
67734
67739
|
:hover {
|
|
67735
67740
|
border: solid 1px
|
|
67736
|
-
${(p)=>p.$isFocused ?
|
|
67737
|
-
color: ${(p)=>p.$isFocused ?
|
|
67741
|
+
${(p)=>p.$isFocused ? getFieldBorderColorFactoryForState('focus')(p) : getFieldBorderColorFactoryForState('hover')(p)};
|
|
67742
|
+
color: ${(p)=>p.$isFocused ? getFieldBorderColorFactoryForState('focus')(p) : getFieldBorderColorFactoryForState('hover')(p)};
|
|
67738
67743
|
}
|
|
67739
67744
|
`;
|
|
67740
67745
|
const InputGroup = styled.div`
|
|
@@ -69205,11 +69210,9 @@ const StyledRsuiteRadioGroup = styled(RadioGroup)`
|
|
|
69205
69210
|
display: flex;
|
|
69206
69211
|
flex-direction: ${(p)=>p.$isInline ? 'row' : 'column'};
|
|
69207
69212
|
|
|
69208
|
-
|
|
69209
|
-
|
|
69210
|
-
|
|
69211
|
-
}
|
|
69212
|
-
`}
|
|
69213
|
+
> .Field-Radio:not(:first-child) {
|
|
69214
|
+
margin: ${(p)=>p.$isInline ? '0 0 0 16px' : '8px 0 0 0'};
|
|
69215
|
+
}
|
|
69213
69216
|
`;
|
|
69214
69217
|
|
|
69215
69218
|
// TODO Clean, split and finalize this component.
|
|
@@ -69445,7 +69448,7 @@ function NumberInput({ className, disabled = false, error, isErrorMessageHidden
|
|
|
69445
69448
|
}
|
|
69446
69449
|
const StyledInput = styled(Input)`
|
|
69447
69450
|
background-color: ${getFieldBackgroundColorFactory()};
|
|
69448
|
-
border: solid 1px ${
|
|
69451
|
+
border: solid 1px ${getFieldBorderColorFactoryForState('default')};
|
|
69449
69452
|
border-radius: 0;
|
|
69450
69453
|
color: ${(p)=>p.theme.color.gunMetal};
|
|
69451
69454
|
${(p)=>p.$isReadOnly && `cursor: default;`}
|
|
@@ -69462,7 +69465,7 @@ const StyledInput = styled(Input)`
|
|
|
69462
69465
|
|
|
69463
69466
|
&:hover {
|
|
69464
69467
|
background-color: ${getFieldBackgroundColorFactory()};
|
|
69465
|
-
border: solid 1px ${
|
|
69468
|
+
border: solid 1px ${getFieldBorderColorFactoryForState('hover')} !important;
|
|
69466
69469
|
|
|
69467
69470
|
&::placeholder {
|
|
69468
69471
|
color: ${getFieldPlaceholderColorFactoryForState('hover')};
|
|
@@ -69472,7 +69475,7 @@ const StyledInput = styled(Input)`
|
|
|
69472
69475
|
&:active,
|
|
69473
69476
|
&:focus {
|
|
69474
69477
|
background-color: ${getFieldBackgroundColorFactory()};
|
|
69475
|
-
border: solid 1px ${
|
|
69478
|
+
border: solid 1px ${getFieldBorderColorFactoryForState('focus')} !important;
|
|
69476
69479
|
outline: 0;
|
|
69477
69480
|
|
|
69478
69481
|
&::placeholder {
|
|
@@ -69736,7 +69739,7 @@ const StyledAutoComplete = styled(AutoComplete)`
|
|
|
69736
69739
|
|
|
69737
69740
|
> [role='combobox'] {
|
|
69738
69741
|
background-color: ${getFieldBackgroundColorFactory()};
|
|
69739
|
-
border: solid 1px ${
|
|
69742
|
+
border: solid 1px ${getFieldBorderColorFactoryForState('default')};
|
|
69740
69743
|
border-radius: 0;
|
|
69741
69744
|
outline: 0;
|
|
69742
69745
|
|
|
@@ -69745,7 +69748,7 @@ const StyledAutoComplete = styled(AutoComplete)`
|
|
|
69745
69748
|
}
|
|
69746
69749
|
|
|
69747
69750
|
&:hover {
|
|
69748
|
-
border: solid 1px ${
|
|
69751
|
+
border: solid 1px ${getFieldBorderColorFactoryForState('hover')};
|
|
69749
69752
|
|
|
69750
69753
|
&::placeholder {
|
|
69751
69754
|
color: ${getFieldPlaceholderColorFactoryForState('hover')};
|
|
@@ -69754,7 +69757,7 @@ const StyledAutoComplete = styled(AutoComplete)`
|
|
|
69754
69757
|
|
|
69755
69758
|
&:active,
|
|
69756
69759
|
&:focus {
|
|
69757
|
-
border: solid 1px ${
|
|
69760
|
+
border: solid 1px ${getFieldBorderColorFactoryForState('focus')};
|
|
69758
69761
|
|
|
69759
69762
|
&::placeholder {
|
|
69760
69763
|
color: ${getFieldPlaceholderColorFactoryForState('focus')};
|
|
@@ -69978,7 +69981,7 @@ function Textarea({ className, disabled = false, error, isErrorMessageHidden = f
|
|
|
69978
69981
|
}
|
|
69979
69982
|
const StyledRsuiteInput$1 = styled(Input)`
|
|
69980
69983
|
background-color: ${getFieldBackgroundColorFactory()};
|
|
69981
|
-
border: solid 1px ${
|
|
69984
|
+
border: solid 1px ${getFieldBorderColorFactoryForState('default')};
|
|
69982
69985
|
color: ${(p)=>p.theme.color.gunMetal};
|
|
69983
69986
|
${(p)=>p.$isReadOnly && `cursor: default;`}
|
|
69984
69987
|
font-size: 13px;
|
|
@@ -69992,7 +69995,7 @@ const StyledRsuiteInput$1 = styled(Input)`
|
|
|
69992
69995
|
|
|
69993
69996
|
&:hover {
|
|
69994
69997
|
background-color: ${getFieldBackgroundColorFactory()};
|
|
69995
|
-
border: solid 1px ${
|
|
69998
|
+
border: solid 1px ${getFieldBorderColorFactoryForState('hover')};
|
|
69996
69999
|
|
|
69997
70000
|
&::placeholder {
|
|
69998
70001
|
color: ${getFieldPlaceholderColorFactoryForState('hover')};
|
|
@@ -70002,7 +70005,7 @@ const StyledRsuiteInput$1 = styled(Input)`
|
|
|
70002
70005
|
&:active,
|
|
70003
70006
|
&:focus {
|
|
70004
70007
|
background-color: ${getFieldBackgroundColorFactory()};
|
|
70005
|
-
border: solid 1px ${
|
|
70008
|
+
border: solid 1px ${getFieldBorderColorFactoryForState('focus')};
|
|
70006
70009
|
outline: 0;
|
|
70007
70010
|
|
|
70008
70011
|
&::placeholder {
|
|
@@ -70128,7 +70131,7 @@ const Separator = styled.div`
|
|
|
70128
70131
|
`;
|
|
70129
70132
|
const StyledRsuiteInput = styled(Input)`
|
|
70130
70133
|
background-color: ${getFieldBackgroundColorFactory()};
|
|
70131
|
-
border: solid 1px ${
|
|
70134
|
+
border: solid 1px ${getFieldBorderColorFactoryForState('default')};
|
|
70132
70135
|
border-radius: 0;
|
|
70133
70136
|
color: ${(p)=>p.theme.color.gunMetal};
|
|
70134
70137
|
${(p)=>p.$isReadOnly && `cursor: default;`}
|
|
@@ -70145,7 +70148,7 @@ const StyledRsuiteInput = styled(Input)`
|
|
|
70145
70148
|
|
|
70146
70149
|
&:hover {
|
|
70147
70150
|
background-color: ${getFieldBackgroundColorFactory()};
|
|
70148
|
-
border: solid 1px ${
|
|
70151
|
+
border: solid 1px ${getFieldBorderColorFactoryForState('hover')} !important;
|
|
70149
70152
|
|
|
70150
70153
|
&::placeholder {
|
|
70151
70154
|
color: ${getFieldPlaceholderColorFactoryForState('hover')};
|
|
@@ -70155,7 +70158,7 @@ const StyledRsuiteInput = styled(Input)`
|
|
|
70155
70158
|
&:active,
|
|
70156
70159
|
&:focus {
|
|
70157
70160
|
background-color: ${getFieldBackgroundColorFactory()};
|
|
70158
|
-
border: solid 1px ${
|
|
70161
|
+
border: solid 1px ${getFieldBorderColorFactoryForState('focus')} !important;
|
|
70159
70162
|
outline: 0;
|
|
70160
70163
|
|
|
70161
70164
|
&::placeholder {
|