@mtes-mct/monitor-ui 1.9.2 → 1.10.1
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 +15 -0
- package/ThemeProvider.d.ts +1 -1
- package/assets/stylesheets/rsuite-override.css +0 -42
- package/components/Dropdown/Item.d.ts +7 -0
- package/components/Dropdown/index.d.ts +11 -0
- package/elements/Button.d.ts +4 -1
- package/elements/Field.d.ts +1 -1
- package/elements/Fieldset.d.ts +1 -1
- package/elements/IconBox.d.ts +1 -1
- package/elements/IconButton.d.ts +9 -0
- package/elements/Label.d.ts +1 -1
- package/elements/Legend.d.ts +1 -1
- package/fields/Checkbox.d.ts +1 -1
- package/fields/DatePicker/CalendarPicker.d.ts +1 -1
- package/fields/DatePicker/index.d.ts +1 -1
- package/fields/DateRangePicker/DateInput.d.ts +1 -1
- package/fields/DateRangePicker/NumberInput.d.ts +1 -1
- package/fields/DateRangePicker/RangeCalendarPicker.d.ts +1 -1
- package/fields/DateRangePicker/RangedTimePicker.d.ts +1 -1
- package/fields/DateRangePicker/TimeInput.d.ts +1 -1
- package/fields/DateRangePicker/index.d.ts +1 -1
- package/fields/DateRangePicker/types.d.ts +4 -4
- package/fields/MultiCheckbox.d.ts +1 -1
- package/fields/MultiRadio.d.ts +1 -1
- package/fields/MultiSelect.d.ts +1 -1
- package/fields/Select.d.ts +1 -1
- package/fields/TextInput.d.ts +1 -1
- package/fields/Textarea.d.ts +1 -1
- package/formiks/FormikCheckbox.d.ts +1 -1
- package/formiks/FormikDatePicker.d.ts +1 -1
- package/formiks/FormikDateRangePicker.d.ts +1 -1
- package/formiks/FormikEffect.d.ts +1 -1
- package/formiks/FormikMultiCheckbox.d.ts +1 -1
- package/formiks/FormikMultiRadio.d.ts +1 -1
- package/formiks/FormikMultiSelect.d.ts +1 -1
- package/formiks/FormikSelect.d.ts +1 -1
- package/formiks/FormikTextInput.d.ts +1 -1
- package/formiks/FormikTextarea.d.ts +1 -1
- package/index.d.ts +6 -2
- package/index.js +220 -80
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/theme.d.ts +2 -2
- package/types.d.ts +4 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mtes-mct/monitor-ui",
|
|
3
3
|
"description": "Common React UI components and styles for Monitorfish and Monitorenv.",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.10.1",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": "18",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"bash -c 'npm run test:type'"
|
|
28
28
|
]
|
|
29
29
|
},
|
|
30
|
-
"packageManager": "yarn@3.
|
|
30
|
+
"packageManager": "yarn@3.3.0",
|
|
31
31
|
"bugs": {
|
|
32
32
|
"url": "https://github.com/MTES-MCT/monitor-ui/issues"
|
|
33
33
|
},
|
package/theme.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DeepPartial } from './types';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type Theme = typeof THEME;
|
|
3
|
+
export type PartialTheme = DeepPartial<Theme>;
|
|
4
4
|
export declare const THEME: {
|
|
5
5
|
color: {
|
|
6
6
|
/** INTERFACE COLORS */
|
package/types.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { IconBoxProps } from './elements/IconBox';
|
|
2
2
|
import type { SVGProps } from 'react';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type DateRange = [Date, Date];
|
|
4
|
+
export type DeepPartial<T> = T extends object ? {
|
|
5
5
|
[P in keyof T]?: DeepPartial<T[P]>;
|
|
6
6
|
} : T;
|
|
7
|
-
export
|
|
8
|
-
export
|
|
7
|
+
export type IconProps = SVGProps<SVGSVGElement> & IconBoxProps;
|
|
8
|
+
export type Option<V = string> = {
|
|
9
9
|
label: string;
|
|
10
10
|
value: V;
|
|
11
11
|
};
|