@mtes-mct/monitor-ui 1.9.1 → 1.10.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 +14 -0
- 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 +3 -0
- package/elements/IconButton.d.ts +9 -0
- package/index.d.ts +6 -2
- package/index.js +227 -87
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/assets/fonts/assets/fonts/04639b624be79623.woff2 +0 -0
- package/assets/fonts/assets/fonts/0dde8bf21b805f48.woff2 +0 -0
- package/assets/fonts/assets/fonts/4cc35a5f882145ec.woff2 +0 -0
- package/assets/fonts/assets/fonts/6299dc189e426ddc.woff2 +0 -0
- package/assets/fonts/assets/fonts/777bdf972910d740.woff2 +0 -0
- package/assets/fonts/assets/fonts/a7d48cd4c9af2970.woff2 +0 -0
- package/assets/fonts/assets/fonts/caf80cdb0cce3a53.woff2 +0 -0
- package/assets/fonts/assets/fonts/f8b1684c8481e046.woff2 +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.9.2](https://github.com/MTES-MCT/monitor-ui/compare/v1.9.1...v1.9.2) (2022-12-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **build:** set include fonts as inline data ([#90](https://github.com/MTES-MCT/monitor-ui/issues/90)) ([4872817](https://github.com/MTES-MCT/monitor-ui/commit/48728173b37f7842309b4141e8337f5263c64a35))
|
|
7
|
+
|
|
8
|
+
## [1.9.1](https://github.com/MTES-MCT/monitor-ui/compare/v1.9.0...v1.9.1) (2022-12-01)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **build:** set right font paths ([#88](https://github.com/MTES-MCT/monitor-ui/issues/88)) ([172250a](https://github.com/MTES-MCT/monitor-ui/commit/172250a58c990c3c19c5d0162bb4de1f6ab17194))
|
|
14
|
+
|
|
1
15
|
# [1.9.0](https://github.com/MTES-MCT/monitor-ui/compare/v1.8.0...v1.9.0) (2022-12-01)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -394,48 +394,6 @@ label:hover .rs-checkbox-wrapper .rs-checkbox-inner:before {
|
|
|
394
394
|
margin-bottom: 32px;
|
|
395
395
|
}
|
|
396
396
|
|
|
397
|
-
/* dropdown */
|
|
398
|
-
|
|
399
|
-
.rs-dropdown-menu {
|
|
400
|
-
border-radius: 0;
|
|
401
|
-
padding: 0;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
.rs-dropdown-item {
|
|
405
|
-
padding-top: 0px;
|
|
406
|
-
padding-bottom: 0px;
|
|
407
|
-
line-height: 38px;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
.rs-dropdown .rs-btn {
|
|
411
|
-
padding-left: 32px;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
.rs-dropdown .rs-btn > .rs-dropdown-toggle-icon {
|
|
415
|
-
width: 30px;
|
|
416
|
-
height: 30px;
|
|
417
|
-
padding: 5px;
|
|
418
|
-
position: absolute;
|
|
419
|
-
left: 0;
|
|
420
|
-
top: 0;
|
|
421
|
-
margin: 0;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
.rs-dropdown .rs-btn.rs-btn-sm > .rs-dropdown-toggle-icon {
|
|
425
|
-
width: 24px;
|
|
426
|
-
height: 24px;
|
|
427
|
-
padding: 3px;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
.rs-dropdown-item:not(:last-child) {
|
|
431
|
-
border-bottom: 1px solid var(--lightGray);
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
svg.rs-dropdown-item-menu-icon {
|
|
435
|
-
vertical-align: middle;
|
|
436
|
-
margin-right: 10px;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
397
|
/* Tags */
|
|
440
398
|
|
|
441
399
|
.rs-tag-default {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IconProps } from '../../types';
|
|
2
|
+
import type { FunctionComponent } from 'react';
|
|
3
|
+
import type { DropdownMenuItemProps as RsuiteDropdownMenuItemProps } from 'rsuite';
|
|
4
|
+
export declare type DropdownItemProps = Omit<RsuiteDropdownMenuItemProps, 'as' | 'icon'> & {
|
|
5
|
+
Icon?: FunctionComponent<IconProps>;
|
|
6
|
+
};
|
|
7
|
+
export declare function Item({ Icon, ...originalProps }: DropdownItemProps): JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IconProps } from '../../types';
|
|
2
|
+
import type { DropdownItemProps } from './Item';
|
|
3
|
+
import type { FunctionComponent } from 'react';
|
|
4
|
+
import type { DropdownProps as RsuiteDropdownProps } from 'rsuite';
|
|
5
|
+
export declare type DropdownProps = Omit<RsuiteDropdownProps, 'as' | 'icon'> & {
|
|
6
|
+
Icon?: FunctionComponent<IconProps>;
|
|
7
|
+
};
|
|
8
|
+
export declare const Dropdown: FunctionComponent<DropdownProps> & {
|
|
9
|
+
Item: FunctionComponent<DropdownItemProps>;
|
|
10
|
+
};
|
|
11
|
+
export { DropdownItemProps };
|
package/elements/Button.d.ts
CHANGED
|
@@ -8,3 +8,6 @@ export declare type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
8
8
|
size?: Size;
|
|
9
9
|
};
|
|
10
10
|
export declare function Button({ accent, children, Icon, isFullWidth, size, type, ...nativeProps }: ButtonProps): JSX.Element;
|
|
11
|
+
export declare const PrimaryButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
|
12
|
+
export declare const SecondaryButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
|
13
|
+
export declare const TertiaryButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Accent, Size } from '../contants';
|
|
2
|
+
import type { IconProps } from '../types';
|
|
3
|
+
import type { ButtonHTMLAttributes, FunctionComponent } from 'react';
|
|
4
|
+
export declare type IconButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> & {
|
|
5
|
+
Icon: FunctionComponent<IconProps>;
|
|
6
|
+
accent?: Accent;
|
|
7
|
+
size?: Size;
|
|
8
|
+
};
|
|
9
|
+
export declare function IconButton({ accent, Icon, size, type, ...nativeProps }: IconButtonProps): JSX.Element;
|
package/index.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
export { Accent, Size } from './contants';
|
|
1
2
|
export { GlobalStyle } from './GlobalStyle';
|
|
2
3
|
export { THEME } from './theme';
|
|
3
4
|
export { ThemeProvider } from './ThemeProvider';
|
|
5
|
+
export { Dropdown } from './components/Dropdown';
|
|
4
6
|
export { Button } from './elements/Button';
|
|
5
7
|
export { Field } from './elements/Field';
|
|
6
8
|
export { Fieldset } from './elements/Fieldset';
|
|
9
|
+
export { IconButton } from './elements/IconButton';
|
|
7
10
|
export { Label } from './elements/Label';
|
|
8
11
|
export { Legend } from './elements/Legend';
|
|
9
12
|
export { Checkbox } from './fields/Checkbox';
|
|
@@ -26,12 +29,13 @@ export { FormikSelect } from './formiks/FormikSelect';
|
|
|
26
29
|
export { FormikTextarea } from './formiks/FormikTextarea';
|
|
27
30
|
export { FormikTextInput } from './formiks/FormikTextInput';
|
|
28
31
|
export * as Icon from './icons';
|
|
29
|
-
export { Accent, Size } from './contants';
|
|
30
|
-
export type { DateRange, IconProps, Option } from './types';
|
|
31
32
|
export type { PartialTheme, Theme } from './theme';
|
|
33
|
+
export type { DateRange, IconProps, Option } from './types';
|
|
34
|
+
export type { DropdownProps, DropdownItemProps } from './components/Dropdown';
|
|
32
35
|
export type { ButtonProps } from './elements/Button';
|
|
33
36
|
export type { FieldProps } from './elements/Field';
|
|
34
37
|
export type { FieldsetProps } from './elements/Fieldset';
|
|
38
|
+
export type { IconButtonProps } from './elements/IconButton';
|
|
35
39
|
export type { LabelProps } from './elements/Label';
|
|
36
40
|
export type { LegendProps } from './elements/Legend';
|
|
37
41
|
export type { CheckboxProps } from './fields/Checkbox';
|