@mtes-mct/monitor-ui 1.10.1 → 1.11.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 +9 -0
- package/elements/Fieldset.d.ts +5 -2
- package/elements/IconBox.d.ts +2 -2
- package/elements/IconButton.d.ts +2 -1
- package/fields/DateRangePicker/NumberInput.d.ts +1 -1
- package/fields/MultiSelect.d.ts +2 -1
- package/fields/Select.d.ts +2 -1
- package/fields/TextInput.d.ts +4 -1
- package/fields/Textarea.d.ts +5 -2
- package/index.js +164 -154
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [1.10.2](https://github.com/MTES-MCT/monitor-ui/compare/v1.10.1...v1.10.2) (2022-12-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **formiks:** add missing default value handling ([#104](https://github.com/MTES-MCT/monitor-ui/issues/104)) ([8225e5f](https://github.com/MTES-MCT/monitor-ui/commit/8225e5f37f0dfc6072630ccb6b127d0fddcb6182))
|
|
7
|
+
|
|
8
|
+
## [1.10.1](https://github.com/MTES-MCT/monitor-ui/compare/v1.10.0...v1.10.1) (2022-12-06)
|
|
9
|
+
|
|
1
10
|
# [1.10.0](https://github.com/MTES-MCT/monitor-ui/compare/v1.9.2...v1.10.0) (2022-12-01)
|
|
2
11
|
|
|
3
12
|
|
package/elements/Fieldset.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import type { FieldsetHTMLAttributes } from 'react';
|
|
2
|
-
export type FieldsetProps = FieldsetHTMLAttributes<HTMLFieldSetElement
|
|
3
|
-
|
|
2
|
+
export type FieldsetProps = FieldsetHTMLAttributes<HTMLFieldSetElement> & {
|
|
3
|
+
isLight?: boolean;
|
|
4
|
+
isMulti?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare function Fieldset({ isLight, isMulti, ...nativeProps }: FieldsetProps): JSX.Element;
|
package/elements/IconBox.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type IconBoxProps = {
|
|
2
|
-
color?: string;
|
|
3
2
|
/** In REM */
|
|
4
|
-
size?: number;
|
|
3
|
+
$size?: number;
|
|
4
|
+
color?: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const IconBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, IconBoxProps, never>;
|
package/elements/IconButton.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type { ButtonHTMLAttributes, FunctionComponent } from 'react';
|
|
|
4
4
|
export type IconButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> & {
|
|
5
5
|
Icon: FunctionComponent<IconProps>;
|
|
6
6
|
accent?: Accent;
|
|
7
|
+
color?: string;
|
|
7
8
|
size?: Size;
|
|
8
9
|
};
|
|
9
|
-
export declare function IconButton({ accent, Icon, size, type, ...nativeProps }: IconButtonProps): JSX.Element;
|
|
10
|
+
export declare function IconButton({ accent, color, Icon, size, type, ...nativeProps }: IconButtonProps): JSX.Element;
|
|
@@ -15,7 +15,7 @@ export type NumberInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'maxL
|
|
|
15
15
|
onPrevious?: () => Promisable<void>;
|
|
16
16
|
size: number;
|
|
17
17
|
};
|
|
18
|
-
export declare const NumberInput: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "pattern" | "
|
|
18
|
+
export declare const NumberInput: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "pattern" | "onInput" | "type" | "maxLength"> & {
|
|
19
19
|
max: number;
|
|
20
20
|
min: number;
|
|
21
21
|
/** Called when the use press backspace key while the input is empty. */
|
package/fields/MultiSelect.d.ts
CHANGED
|
@@ -6,9 +6,10 @@ export type MultiSelectProps = Omit<TagPickerProps, 'as' | 'data' | 'defaultValu
|
|
|
6
6
|
/** Width in REM */
|
|
7
7
|
fixedWidth?: number;
|
|
8
8
|
isLabelHidden?: boolean;
|
|
9
|
+
isLight?: boolean;
|
|
9
10
|
label: string;
|
|
10
11
|
name: string;
|
|
11
12
|
onChange?: (nextValue: string[] | undefined) => Promisable<void>;
|
|
12
13
|
options: Option[];
|
|
13
14
|
};
|
|
14
|
-
export declare function MultiSelect({ fixedWidth, isLabelHidden, label, onChange, options, searchable, ...originalProps }: MultiSelectProps): JSX.Element;
|
|
15
|
+
export declare function MultiSelect({ fixedWidth, isLabelHidden, isLight, label, onChange, options, searchable, ...originalProps }: MultiSelectProps): JSX.Element;
|
package/fields/Select.d.ts
CHANGED
|
@@ -4,9 +4,10 @@ import type { Promisable } from 'type-fest';
|
|
|
4
4
|
export type SelectProps = Omit<SelectPickerProps<any>, 'as' | 'data' | 'defaultValue' | 'id' | 'onChange' | 'value'> & {
|
|
5
5
|
defaultValue?: string;
|
|
6
6
|
isLabelHidden?: boolean;
|
|
7
|
+
isLight?: boolean;
|
|
7
8
|
label: string;
|
|
8
9
|
name: string;
|
|
9
10
|
onChange?: (nextValue: string | undefined) => Promisable<void>;
|
|
10
11
|
options: Option[];
|
|
11
12
|
};
|
|
12
|
-
export declare function Select({ isLabelHidden, label, onChange, options, searchable, ...originalProps }: SelectProps): JSX.Element;
|
|
13
|
+
export declare function Select({ isLabelHidden, isLight, label, onChange, options, searchable, ...originalProps }: SelectProps): JSX.Element;
|
package/fields/TextInput.d.ts
CHANGED
|
@@ -3,9 +3,12 @@ import type { Promisable } from 'type-fest';
|
|
|
3
3
|
export type TextInputProps = Omit<InputProps, 'as' | 'defaultValue' | 'id' | 'onChange' | 'value'> & {
|
|
4
4
|
defaultValue?: string;
|
|
5
5
|
isLabelHidden?: boolean;
|
|
6
|
+
isLight?: boolean;
|
|
6
7
|
label: string;
|
|
7
8
|
name: string;
|
|
8
9
|
onChange?: (nextValue: string | undefined) => Promisable<void>;
|
|
9
10
|
};
|
|
10
11
|
export declare function TextInput({ isLabelHidden, label, onChange, ...originalProps }: TextInputProps): JSX.Element;
|
|
11
|
-
export declare const StyledInput: import("styled-components").StyledComponent<import("rsuite/esm/@types/common").RsRefForwardingComponent<"input", InputProps>, import("styled-components").DefaultTheme, {
|
|
12
|
+
export declare const StyledInput: import("styled-components").StyledComponent<import("rsuite/esm/@types/common").RsRefForwardingComponent<"input", InputProps>, import("styled-components").DefaultTheme, {
|
|
13
|
+
isLight: boolean;
|
|
14
|
+
}, never>;
|
package/fields/Textarea.d.ts
CHANGED
|
@@ -3,9 +3,12 @@ import type { Promisable } from 'type-fest';
|
|
|
3
3
|
export type TextareaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'defaultValue' | 'id' | 'onChange' | 'value'> & {
|
|
4
4
|
defaultValue?: string;
|
|
5
5
|
isLabelHidden?: boolean;
|
|
6
|
+
isLight?: boolean;
|
|
6
7
|
label: string;
|
|
7
8
|
name: string;
|
|
8
9
|
onChange?: (nextValue: string | undefined) => Promisable<void>;
|
|
9
10
|
};
|
|
10
|
-
export declare function Textarea({ isLabelHidden, label, onChange, rows, ...originalProps }: TextareaProps): JSX.Element;
|
|
11
|
-
export declare const StyledInput: import("styled-components").StyledComponent<import("rsuite/esm/@types/common").RsRefForwardingComponent<"input", import("rsuite").InputProps>, import("styled-components").DefaultTheme, {
|
|
11
|
+
export declare function Textarea({ isLabelHidden, isLight, label, onChange, rows, ...originalProps }: TextareaProps): JSX.Element;
|
|
12
|
+
export declare const StyledInput: import("styled-components").StyledComponent<import("rsuite/esm/@types/common").RsRefForwardingComponent<"input", import("rsuite").InputProps>, import("styled-components").DefaultTheme, {
|
|
13
|
+
isLight: boolean;
|
|
14
|
+
}, never>;
|