@mtes-mct/monitor-ui 7.0.0 → 7.1.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 +10 -0
- package/index.d.ts +2 -0
- package/index.js +12 -12
- package/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
# [7.0.0](https://github.com/MTES-MCT/monitor-ui/compare/v6.6.0...v7.0.0) (2023-05-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
* fix(fields)!: move style prop passing to container level ([3d727a1](https://github.com/MTES-MCT/monitor-ui/commit/3d727a17b49898f268c7e7b8405ba60c65211a30))
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### BREAKING CHANGES
|
|
8
|
+
|
|
9
|
+
* Fields `style` & `className` props are now passed to the container.
|
|
10
|
+
|
|
1
11
|
# [6.6.0](https://github.com/MTES-MCT/monitor-ui/compare/v6.5.2...v6.6.0) (2023-05-28)
|
|
2
12
|
|
|
3
13
|
|
package/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export { SingleTag } from './components/SingleTag';
|
|
|
17
17
|
export { Button } from './elements/Button';
|
|
18
18
|
export { Field } from './elements/Field';
|
|
19
19
|
export { Fieldset } from './elements/Fieldset';
|
|
20
|
+
export { FieldError } from './elements/FieldError';
|
|
20
21
|
export { IconButton } from './elements/IconButton';
|
|
21
22
|
export { Label } from './elements/Label';
|
|
22
23
|
export { Legend } from './elements/Legend';
|
|
@@ -73,6 +74,7 @@ export type { SingleTagProps } from './components/SingleTag';
|
|
|
73
74
|
export type { ButtonProps } from './elements/Button';
|
|
74
75
|
export type { FieldProps } from './elements/Field';
|
|
75
76
|
export type { FieldsetProps } from './elements/Fieldset';
|
|
77
|
+
export type { FieldErrorProps } from './elements/FieldError';
|
|
76
78
|
export type { IconButtonProps } from './elements/IconButton';
|
|
77
79
|
export type { LabelProps } from './elements/Label';
|
|
78
80
|
export type { LegendProps } from './elements/Legend';
|
package/index.js
CHANGED
|
@@ -3263,6 +3263,17 @@ const InnerBox = styled.div `
|
|
|
3263
3263
|
`}
|
|
3264
3264
|
`;
|
|
3265
3265
|
|
|
3266
|
+
const FieldError = styled.p.attrs(props => ({
|
|
3267
|
+
className: classnames('Element-FieldError', props.className)
|
|
3268
|
+
})) `
|
|
3269
|
+
color: ${p => p.theme.color.maximumRed};
|
|
3270
|
+
display: ${p => (p.isDisabled ? 'none' : 'block')};
|
|
3271
|
+
font-size: 13px;
|
|
3272
|
+
font-weight: 700;
|
|
3273
|
+
line-height: 1.3846;
|
|
3274
|
+
margin: 4px 0 0 0;
|
|
3275
|
+
`;
|
|
3276
|
+
|
|
3266
3277
|
const Label = styled.label.attrs(props => ({
|
|
3267
3278
|
className: classnames('Element-Label', props.className)
|
|
3268
3279
|
})) `
|
|
@@ -3429,17 +3440,6 @@ const SimpleTable = {
|
|
|
3429
3440
|
Th
|
|
3430
3441
|
};
|
|
3431
3442
|
|
|
3432
|
-
const FieldError = styled.p.attrs(props => ({
|
|
3433
|
-
className: classnames('Element-FieldError', props.className)
|
|
3434
|
-
})) `
|
|
3435
|
-
color: ${p => p.theme.color.maximumRed};
|
|
3436
|
-
display: ${p => (p.isDisabled ? 'none' : 'block')};
|
|
3437
|
-
font-size: 13px;
|
|
3438
|
-
font-weight: 700;
|
|
3439
|
-
line-height: 1.3846;
|
|
3440
|
-
margin: 4px 0 0 0;
|
|
3441
|
-
`;
|
|
3442
|
-
|
|
3443
3443
|
const useClickOutsideEffect = (zoneRefOrzoneRefs, action, baseContainer) => {
|
|
3444
3444
|
const handleClickOutside = useCallback((event) => {
|
|
3445
3445
|
const eventTarget = event.target;
|
|
@@ -35465,5 +35465,5 @@ function useNewWindow() {
|
|
|
35465
35465
|
return contextValue;
|
|
35466
35466
|
}
|
|
35467
35467
|
|
|
35468
|
-
export { Accent, Button, Checkbox, CoordinatesFormat, CoordinatesInput, CustomSearch, DatePicker, DateRangePicker, Dialog, Dropdown, Field$2 as Field, Fieldset, FormikCheckbox, FormikCoordinatesInput, FormikDatePicker, FormikDateRangePicker, FormikEffect, FormikMultiCheckbox, FormikMultiRadio, FormikMultiSelect, FormikNumberInput, FormikSearch, FormikSelect, FormikTextInput, FormikTextarea, GlobalStyle, index as Icon, IconButton, Label, Legend, MultiCheckbox, MultiRadio, MultiSelect, MultiZoneEditor, NewWindow, NewWindowContext, NumberInput, OPENLAYERS_PROJECTION, OnlyFontGlobalStyle, Search, Select, SimpleTable, SingleTag, Size, THEME, Tag, TagBullet, TagGroup, TextInput, Textarea, ThemeProvider, WSG84_PROJECTION, coordinatesAreDistinct, customDayjs, getCoordinates, getLocalizedDayjs, getPseudoRandomString, getUtcizedDayjs, isNumeric, stopMouseEventPropagation, useClickOutsideEffect, useFieldControl, useForceUpdate, useKey, useNewWindow, usePrevious };
|
|
35468
|
+
export { Accent, Button, Checkbox, CoordinatesFormat, CoordinatesInput, CustomSearch, DatePicker, DateRangePicker, Dialog, Dropdown, Field$2 as Field, FieldError, Fieldset, FormikCheckbox, FormikCoordinatesInput, FormikDatePicker, FormikDateRangePicker, FormikEffect, FormikMultiCheckbox, FormikMultiRadio, FormikMultiSelect, FormikNumberInput, FormikSearch, FormikSelect, FormikTextInput, FormikTextarea, GlobalStyle, index as Icon, IconButton, Label, Legend, MultiCheckbox, MultiRadio, MultiSelect, MultiZoneEditor, NewWindow, NewWindowContext, NumberInput, OPENLAYERS_PROJECTION, OnlyFontGlobalStyle, Search, Select, SimpleTable, SingleTag, Size, THEME, Tag, TagBullet, TagGroup, TextInput, Textarea, ThemeProvider, WSG84_PROJECTION, coordinatesAreDistinct, customDayjs, getCoordinates, getLocalizedDayjs, getPseudoRandomString, getUtcizedDayjs, isNumeric, stopMouseEventPropagation, useClickOutsideEffect, useFieldControl, useForceUpdate, useKey, useNewWindow, usePrevious };
|
|
35469
35469
|
//# sourceMappingURL=index.js.map
|