@mtes-mct/monitor-ui 18.0.3 → 18.0.4
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 +16 -0
- package/fields/Search.d.ts +2 -1
- package/fields/Search.d.ts.map +1 -1
- package/index.js +1 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## [18.0.3](https://github.com/MTES-MCT/monitor-ui/compare/v18.0.2...v18.0.3) (2024-06-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **fields:** set calendar range popup width in DateRangePicker ([a758655](https://github.com/MTES-MCT/monitor-ui/commit/a7586557e76f3f53e2da47e9e509ebed9341ebdc))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Buid System & Dependencies
|
|
10
|
+
|
|
11
|
+
* **dev-deps:** bump @babel/preset-typescript from 7.23.2 to 7.24.6 ([995ec7e](https://github.com/MTES-MCT/monitor-ui/commit/995ec7e5e01c4d41b75a8b6f5788b95064598be9))
|
|
12
|
+
* **dev-deps:** bump @semantic-release/npm from 11.0.2 to 12.0.1 ([841dd01](https://github.com/MTES-MCT/monitor-ui/commit/841dd012da83ad70075349f7e5010cc387664b5d))
|
|
13
|
+
* **dev-deps:** bump @storybook/blocks from 8.0.9 to 8.1.5 ([f0f1eb2](https://github.com/MTES-MCT/monitor-ui/commit/f0f1eb2b7c435d075d0ca52c6fd36426ea804066))
|
|
14
|
+
* **dev-deps:** bump @storybook/test from 8.0.9 to 8.1.5 ([eed0812](https://github.com/MTES-MCT/monitor-ui/commit/eed0812786993f36cbcf2b8588c8ca2118cf4ddc))
|
|
15
|
+
* **dev-deps:** bump eslint-plugin-react-hooks from 4.6.0 to 4.6.2 ([8c319a7](https://github.com/MTES-MCT/monitor-ui/commit/8c319a706cdd9f28b083e6d744577fd3a10b3745))
|
|
16
|
+
|
|
1
17
|
## [18.0.2](https://github.com/MTES-MCT/monitor-ui/compare/v18.0.1...v18.0.2) (2024-05-28)
|
|
2
18
|
|
|
3
19
|
|
package/fields/Search.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export type SearchProps<OptionValue extends OptionValueType = string> = Omit<Rsu
|
|
|
18
18
|
isSearchIconHidden?: boolean | undefined;
|
|
19
19
|
isTransparent?: boolean | undefined;
|
|
20
20
|
isUndefinedWhenDisabled?: boolean | undefined;
|
|
21
|
+
key?: string | undefined;
|
|
21
22
|
label: string;
|
|
22
23
|
name: string;
|
|
23
24
|
onChange?: (nextValue: OptionValue | undefined) => Promisable<void>;
|
|
@@ -29,5 +30,5 @@ export type SearchProps<OptionValue extends OptionValueType = string> = Omit<Rsu
|
|
|
29
30
|
size?: Size | undefined;
|
|
30
31
|
value?: OptionValue | undefined;
|
|
31
32
|
};
|
|
32
|
-
export declare function Search<OptionValue extends OptionValueType = string>({ className, customSearch, customSearchMinQueryLength, disabled, error, isErrorMessageHidden, isLabelHidden, isLight, isRequired, isSearchIconHidden, isTransparent, isUndefinedWhenDisabled, label, MenuItem, onChange, onQuery, options, optionValueKey, popupWidth, readOnly, size, style, value, ...originalProps }: SearchProps<OptionValue>): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export declare function Search<OptionValue extends OptionValueType = string>({ className, customSearch, customSearchMinQueryLength, disabled, error, isErrorMessageHidden, isLabelHidden, isLight, isRequired, isSearchIconHidden, isTransparent, isUndefinedWhenDisabled, key, label, MenuItem, onChange, onQuery, options, optionValueKey, popupWidth, readOnly, size, style, value, ...originalProps }: SearchProps<OptionValue>): import("react/jsx-runtime").JSX.Element;
|
|
33
34
|
//# sourceMappingURL=Search.d.ts.map
|
package/fields/Search.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Search.d.ts","sourceRoot":"","sources":["../../src/fields/Search.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,WAAW,EAAqE,MA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-68334,7 +68334,7 @@ const StyledInputBox = styled.div`
|
|
|
68334
68334
|
}
|
|
68335
68335
|
`;
|
|
68336
68336
|
|
|
68337
|
-
function Search({ className, customSearch = undefined, customSearchMinQueryLength = 1, disabled = false, error, isErrorMessageHidden = false, isLabelHidden, isLight = false, isRequired = false, isSearchIconHidden = true, isTransparent = false, isUndefinedWhenDisabled = false, label, MenuItem, onChange, onQuery, options = [], optionValueKey, popupWidth, readOnly = false, size = Size.NORMAL, style, value, ...originalProps }) {
|
|
68337
|
+
function Search({ className, customSearch = undefined, customSearchMinQueryLength = 1, disabled = false, error, isErrorMessageHidden = false, isLabelHidden, isLight = false, isRequired = false, isSearchIconHidden = true, isTransparent = false, isUndefinedWhenDisabled = false, key, label, MenuItem, onChange, onQuery, options = [], optionValueKey, popupWidth, readOnly = false, size = Size.NORMAL, style, value, ...originalProps }) {
|
|
68338
68338
|
// eslint-disable-next-line no-null/no-null
|
|
68339
68339
|
const boxRef = useRef(null);
|
|
68340
68340
|
const currentQueryRef = useRef('');
|
|
@@ -68349,10 +68349,6 @@ function Search({ className, customSearch = undefined, customSearchMinQueryLengt
|
|
|
68349
68349
|
const hasError = useMemo(()=>Boolean(controlledError), [
|
|
68350
68350
|
controlledError
|
|
68351
68351
|
]);
|
|
68352
|
-
const key = useKey([
|
|
68353
|
-
disabled,
|
|
68354
|
-
originalProps.name
|
|
68355
|
-
]);
|
|
68356
68352
|
const rsuiteData = useMemo(()=>getRsuiteDataItemsFromOptions(options, optionValueKey), [
|
|
68357
68353
|
options,
|
|
68358
68354
|
optionValueKey
|
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": "18.0.
|
|
4
|
+
"version": "18.0.4",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|