@mtes-mct/monitor-ui 18.4.1 → 18.5.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 +624 -390
- package/components/Dropdown/index.d.ts.map +1 -1
- package/elements/Label.d.ts +3 -3
- package/elements/Label.d.ts.map +1 -1
- package/fields/PhoneInput.d.ts.map +1 -1
- package/index.js +100 -19
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/index.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAExC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAK,EAAE,aAAa,IAAI,mBAAmB,EAAE,MAAM,QAAQ,CAAA;AAElE,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,mBAAmB,EAAE,IAAI,GAAG,MAAM,CAAC,GAAG;IACrE,IAAI,CAAC,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAA;IACnC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/index.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAExC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAK,EAAE,aAAa,IAAI,mBAAmB,EAAE,MAAM,QAAQ,CAAA;AAElE,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,mBAAmB,EAAE,IAAI,GAAG,MAAM,CAAC,GAAG;IACrE,IAAI,CAAC,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAA;IACnC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B,CAAA;AAkND,eAAO,MAAM,QAAQ,EAAE,iBAAiB,CAAC,aAAa,CAAC,GAAG;IACxD,IAAI,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAA;CAG1C,CAAA;AAEF,OAAO,EAAE,KAAK,iBAAiB,EAAE,CAAA"}
|
package/elements/Label.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { LabelHTMLAttributes } from 'react';
|
|
2
2
|
export type LabelProps = LabelHTMLAttributes<HTMLLabelElement> & {
|
|
3
|
+
$isHidden?: boolean | undefined;
|
|
3
4
|
$isRequired?: boolean | undefined;
|
|
4
5
|
disabled?: boolean | undefined;
|
|
5
6
|
hasError?: boolean | undefined;
|
|
6
|
-
isHidden?: boolean | undefined;
|
|
7
7
|
};
|
|
8
8
|
export declare const Label: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, LabelHTMLAttributes<HTMLLabelElement> & {
|
|
9
|
+
$isHidden?: boolean | undefined;
|
|
9
10
|
$isRequired?: boolean | undefined;
|
|
10
11
|
disabled?: boolean | undefined;
|
|
11
12
|
hasError?: boolean | undefined;
|
|
12
|
-
|
|
13
|
-
}, "disabled" | keyof LabelHTMLAttributes<HTMLLabelElement> | "isHidden" | "$isRequired" | "hasError">;
|
|
13
|
+
}, "disabled" | keyof LabelHTMLAttributes<HTMLLabelElement> | "$isHidden" | "$isRequired" | "hasError">;
|
|
14
14
|
//# sourceMappingURL=Label.d.ts.map
|
package/elements/Label.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../src/elements/Label.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAA;AAEhD,MAAM,MAAM,UAAU,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,GAAG;IAC/D,
|
|
1
|
+
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../src/elements/Label.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAA;AAEhD,MAAM,MAAM,UAAU,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,GAAG;IAC/D,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC/B,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACjC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC/B,CAAA;AACD,eAAO,MAAM,KAAK;gBALJ,OAAO,GAAG,SAAS;kBACjB,OAAO,GAAG,SAAS;eACtB,OAAO,GAAG,SAAS;eACnB,OAAO,GAAG,SAAS;uGA4B/B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PhoneInput.d.ts","sourceRoot":"","sources":["../../src/fields/PhoneInput.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,OAAO,CAAA;AAIvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAE3C,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,oBAAoB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC1C,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,KAAK,UAAU,CAAC,IAAI,CAAC,CAAA;IAC7D,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;CAC1B,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"PhoneInput.d.ts","sourceRoot":"","sources":["../../src/fields/PhoneInput.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,OAAO,CAAA;AAIvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAE3C,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,oBAAoB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC1C,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,KAAK,UAAU,CAAC,IAAI,CAAC,CAAA;IAC7D,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;CAC1B,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,CAAA;AAgBvD;;GAEG;AACH,eAAO,MAAM,UAAU,2HAgEtB,CAAA"}
|
package/index.js
CHANGED
|
@@ -21780,7 +21780,7 @@ const PrimaryDropdownItem = styled(Dropdown$1.Item)`
|
|
|
21780
21780
|
}
|
|
21781
21781
|
`;
|
|
21782
21782
|
|
|
21783
|
-
function RawDropdown({ accent, className, Icon, ...originalProps }) {
|
|
21783
|
+
function RawDropdown({ accent, className, Icon, title, ...originalProps }) {
|
|
21784
21784
|
const controlledClassName = classnames('Component-Dropdow', className);
|
|
21785
21785
|
const icon = useMemo(()=>Icon ? /*#__PURE__*/ jsx(Icon, {
|
|
21786
21786
|
size: 20
|
|
@@ -21791,18 +21791,31 @@ function RawDropdown({ accent, className, Icon, ...originalProps }) {
|
|
|
21791
21791
|
Icon
|
|
21792
21792
|
]);
|
|
21793
21793
|
switch(accent){
|
|
21794
|
+
case Accent.TERTIARY:
|
|
21795
|
+
return /*#__PURE__*/ jsx(TertiaryDropdown, {
|
|
21796
|
+
$hasIcon: hasIcon,
|
|
21797
|
+
$hasTitle: !!title,
|
|
21798
|
+
className: controlledClassName,
|
|
21799
|
+
icon: icon,
|
|
21800
|
+
title: title,
|
|
21801
|
+
...originalProps
|
|
21802
|
+
});
|
|
21794
21803
|
case Accent.SECONDARY:
|
|
21795
21804
|
return /*#__PURE__*/ jsx(SecondaryDropdown, {
|
|
21796
21805
|
$hasIcon: hasIcon,
|
|
21806
|
+
$hasTitle: !!title,
|
|
21797
21807
|
className: controlledClassName,
|
|
21798
21808
|
icon: icon,
|
|
21809
|
+
title: title,
|
|
21799
21810
|
...originalProps
|
|
21800
21811
|
});
|
|
21801
21812
|
default:
|
|
21802
21813
|
return /*#__PURE__*/ jsx(PrimaryDropdown, {
|
|
21803
21814
|
$hasIcon: hasIcon,
|
|
21815
|
+
$hasTitle: !!title,
|
|
21804
21816
|
className: controlledClassName,
|
|
21805
21817
|
icon: icon,
|
|
21818
|
+
title: title,
|
|
21806
21819
|
...originalProps
|
|
21807
21820
|
});
|
|
21808
21821
|
}
|
|
@@ -21817,7 +21830,7 @@ const PrimaryDropdown = styled(Dropdown$1)`
|
|
|
21817
21830
|
color: ${(p)=>p.theme.color.gainsboro};
|
|
21818
21831
|
display: flex;
|
|
21819
21832
|
font-size: 13px;
|
|
21820
|
-
padding: 3px
|
|
21833
|
+
padding: 3px ${(p)=>p.$hasTitle ? 12 : 6}px ${(p)=>p.$hasIcon ? '4px' : '5px'};
|
|
21821
21834
|
|
|
21822
21835
|
:hover {
|
|
21823
21836
|
background-color: ${(p)=>p.theme.color.blueYonder};
|
|
@@ -21838,7 +21851,7 @@ const PrimaryDropdown = styled(Dropdown$1)`
|
|
|
21838
21851
|
}
|
|
21839
21852
|
|
|
21840
21853
|
> .Element-IconBox {
|
|
21841
|
-
margin: 1px
|
|
21854
|
+
margin: 1px ${(p)=>p.$hasTitle ? 8 : 0}px 0 0;
|
|
21842
21855
|
}
|
|
21843
21856
|
|
|
21844
21857
|
> svg {
|
|
@@ -21860,7 +21873,7 @@ const SecondaryDropdown = styled(Dropdown$1)`
|
|
|
21860
21873
|
.rs-btn {
|
|
21861
21874
|
align-items: center;
|
|
21862
21875
|
display: flex;
|
|
21863
|
-
padding: 3px
|
|
21876
|
+
padding: 3px ${(p)=>p.$hasTitle ? 12 : 6}px ${(p)=>p.$hasIcon ? '4px' : '5px'};
|
|
21864
21877
|
|
|
21865
21878
|
border-radius: 0;
|
|
21866
21879
|
background-color: transparent;
|
|
@@ -21889,7 +21902,58 @@ const SecondaryDropdown = styled(Dropdown$1)`
|
|
|
21889
21902
|
}
|
|
21890
21903
|
|
|
21891
21904
|
> .Element-IconBox {
|
|
21892
|
-
margin: 1px
|
|
21905
|
+
margin: 1px ${(p)=>p.$hasTitle ? 8 : 0}px 0 0;
|
|
21906
|
+
}
|
|
21907
|
+
|
|
21908
|
+
> svg {
|
|
21909
|
+
display: none;
|
|
21910
|
+
}
|
|
21911
|
+
}
|
|
21912
|
+
|
|
21913
|
+
> .rs-dropdown-menu {
|
|
21914
|
+
border-radius: 0;
|
|
21915
|
+
padding: 0;
|
|
21916
|
+
}
|
|
21917
|
+
|
|
21918
|
+
svg.rs-dropdown-item-menu-icon {
|
|
21919
|
+
vertical-align: middle;
|
|
21920
|
+
margin-right: 10px;
|
|
21921
|
+
}
|
|
21922
|
+
`;
|
|
21923
|
+
const TertiaryDropdown = styled(Dropdown$1)`
|
|
21924
|
+
.rs-btn {
|
|
21925
|
+
align-items: center;
|
|
21926
|
+
display: flex;
|
|
21927
|
+
padding: 3px ${(p)=>p.$hasTitle ? 13 : 7}px ${(p)=>p.$hasIcon ? '4px' : '5px'};
|
|
21928
|
+
|
|
21929
|
+
border-radius: 0;
|
|
21930
|
+
background-color: transparent;
|
|
21931
|
+
border: unset;
|
|
21932
|
+
color: ${(p)=>p.theme.color.charcoal};
|
|
21933
|
+
|
|
21934
|
+
&:hover,
|
|
21935
|
+
&._hover {
|
|
21936
|
+
background-color: ${(p)=>p.theme.color.blueYonder25};
|
|
21937
|
+
border: unset;
|
|
21938
|
+
color: ${(p)=>p.theme.color.blueYonder};
|
|
21939
|
+
}
|
|
21940
|
+
|
|
21941
|
+
&:active,
|
|
21942
|
+
&._active {
|
|
21943
|
+
background-color: ${(p)=>p.theme.color.blueGray25};
|
|
21944
|
+
border: unset;
|
|
21945
|
+
color: ${(p)=>p.theme.color.blueGray};
|
|
21946
|
+
}
|
|
21947
|
+
|
|
21948
|
+
&:disabled,
|
|
21949
|
+
&._disabled {
|
|
21950
|
+
background-color: transparent;
|
|
21951
|
+
border: unset;
|
|
21952
|
+
color: ${(p)=>p.theme.color.lightGray};
|
|
21953
|
+
}
|
|
21954
|
+
|
|
21955
|
+
> .Element-IconBox {
|
|
21956
|
+
margin: 1px ${(p)=>p.$hasTitle ? 8 : 0}px 0 0;
|
|
21893
21957
|
}
|
|
21894
21958
|
|
|
21895
21959
|
> svg {
|
|
@@ -54170,7 +54234,6 @@ const Label = styled.label.attrs((props)=>({
|
|
|
54170
54234
|
}))`
|
|
54171
54235
|
color: ${(p)=>// eslint-disable-next-line no-nested-ternary
|
|
54172
54236
|
p.disabled ? p.theme.color.lightGray : p.hasError ? p.theme.color.maximumRed : p.theme.color.slateGray};
|
|
54173
|
-
display: ${(p)=>p.isHidden ? 'none' : 'block'};
|
|
54174
54237
|
font-size: 13px;
|
|
54175
54238
|
line-height: 1.3846;
|
|
54176
54239
|
margin-bottom: 4px;
|
|
@@ -54179,6 +54242,14 @@ const Label = styled.label.attrs((props)=>({
|
|
|
54179
54242
|
content:" *";
|
|
54180
54243
|
color: ${p.theme.color.maximumRed};
|
|
54181
54244
|
}`}
|
|
54245
|
+
${(p)=>p.$isHidden && `
|
|
54246
|
+
position:absolute;
|
|
54247
|
+
left:-10000px;
|
|
54248
|
+
top:auto;
|
|
54249
|
+
width:1px;
|
|
54250
|
+
height:1px;
|
|
54251
|
+
overflow:hidden;
|
|
54252
|
+
`}
|
|
54182
54253
|
`;
|
|
54183
54254
|
|
|
54184
54255
|
const Link$1 = styled.a`
|
|
@@ -55113,10 +55184,10 @@ function CheckPicker({ className, customSearch, customSearchMinQueryLength = 1,
|
|
|
55113
55184
|
style: style,
|
|
55114
55185
|
children: [
|
|
55115
55186
|
/*#__PURE__*/ jsx(Label, {
|
|
55187
|
+
$isHidden: isLabelHidden,
|
|
55116
55188
|
$isRequired: isRequired,
|
|
55117
55189
|
disabled: disabled,
|
|
55118
55190
|
htmlFor: originalProps.name,
|
|
55119
|
-
isHidden: isLabelHidden,
|
|
55120
55191
|
children: label
|
|
55121
55192
|
}),
|
|
55122
55193
|
/*#__PURE__*/ jsx(StyledRsuitePickerBox, {
|
|
@@ -67676,10 +67747,10 @@ function MultiCascader({ className, disabled = false, error, isErrorMessageHidde
|
|
|
67676
67747
|
style: style,
|
|
67677
67748
|
children: [
|
|
67678
67749
|
/*#__PURE__*/ jsx(Label, {
|
|
67750
|
+
$isHidden: isLabelHidden,
|
|
67679
67751
|
$isRequired: isRequired,
|
|
67680
67752
|
disabled: disabled,
|
|
67681
67753
|
htmlFor: originalProps.name,
|
|
67682
|
-
isHidden: isLabelHidden,
|
|
67683
67754
|
children: label
|
|
67684
67755
|
}),
|
|
67685
67756
|
/*#__PURE__*/ jsx(Box$1, {
|
|
@@ -67809,10 +67880,10 @@ function MultiSelect({ className, customSearch, customSearchMinQueryLength = 1,
|
|
|
67809
67880
|
style: style,
|
|
67810
67881
|
children: [
|
|
67811
67882
|
/*#__PURE__*/ jsx(Label, {
|
|
67883
|
+
$isHidden: isLabelHidden,
|
|
67812
67884
|
$isRequired: isRequired,
|
|
67813
67885
|
disabled: disabled,
|
|
67814
67886
|
htmlFor: originalProps.name,
|
|
67815
|
-
isHidden: isLabelHidden,
|
|
67816
67887
|
children: label
|
|
67817
67888
|
}),
|
|
67818
67889
|
/*#__PURE__*/ jsx(Box, {
|
|
@@ -68347,10 +68418,10 @@ function NumberInput({ className, disabled = false, error, isErrorMessageHidden
|
|
|
68347
68418
|
style: style,
|
|
68348
68419
|
children: [
|
|
68349
68420
|
/*#__PURE__*/ jsx(Label, {
|
|
68421
|
+
$isHidden: isLabelHidden,
|
|
68350
68422
|
$isRequired: isRequired,
|
|
68351
68423
|
disabled: disabled,
|
|
68352
68424
|
htmlFor: name,
|
|
68353
|
-
isHidden: isLabelHidden,
|
|
68354
68425
|
children: label
|
|
68355
68426
|
}),
|
|
68356
68427
|
/*#__PURE__*/ jsx(StyledInput, {
|
|
@@ -68493,6 +68564,12 @@ const internationalFormat = {
|
|
|
68493
68564
|
},
|
|
68494
68565
|
mask: '`@@ #[00] 000 000 000 000'
|
|
68495
68566
|
};
|
|
68567
|
+
const internationalFrenchFormat = {
|
|
68568
|
+
definitions: {
|
|
68569
|
+
'@': /0/
|
|
68570
|
+
},
|
|
68571
|
+
mask: '`@@ 00 00 00 00 00'
|
|
68572
|
+
};
|
|
68496
68573
|
const frenchFormat = {
|
|
68497
68574
|
definitions: {
|
|
68498
68575
|
'#': /[1-9]/,
|
|
@@ -68515,10 +68592,10 @@ const defaultFormat = {
|
|
|
68515
68592
|
className: "Field-PhoneInput",
|
|
68516
68593
|
children: [
|
|
68517
68594
|
/*#__PURE__*/ jsx(Label, {
|
|
68595
|
+
$isHidden: isLabelHidden,
|
|
68518
68596
|
$isRequired: isRequired,
|
|
68519
68597
|
disabled: disabled,
|
|
68520
68598
|
htmlFor: name,
|
|
68521
|
-
isHidden: isLabelHidden,
|
|
68522
68599
|
children: label
|
|
68523
68600
|
}),
|
|
68524
68601
|
/*#__PURE__*/ jsx(StyledIMaskInput, {
|
|
@@ -68529,18 +68606,22 @@ const defaultFormat = {
|
|
|
68529
68606
|
$isTransparent: isTransparent,
|
|
68530
68607
|
disabled: disabled,
|
|
68531
68608
|
dispatch: (appended, dynamicMasked)=>{
|
|
68532
|
-
const phoneNumber = dynamicMasked.unmaskedValue + appended;
|
|
68609
|
+
const phoneNumber = (dynamicMasked.unmaskedValue + appended).replace(/\s+/g, '');
|
|
68533
68610
|
if (phoneNumber.startsWith('00')) {
|
|
68611
|
+
if (value && value.length === 12 && phoneNumber === value) {
|
|
68612
|
+
return dynamicMasked.compiledMasks[1];
|
|
68613
|
+
}
|
|
68534
68614
|
return dynamicMasked.compiledMasks[0];
|
|
68535
68615
|
}
|
|
68536
68616
|
if (phoneNumber.startsWith('0') && value && value.length <= 10 && phoneNumber === value) {
|
|
68537
|
-
return dynamicMasked.compiledMasks[
|
|
68617
|
+
return dynamicMasked.compiledMasks[2];
|
|
68538
68618
|
}
|
|
68539
|
-
return dynamicMasked.compiledMasks[
|
|
68619
|
+
return dynamicMasked.compiledMasks[3];
|
|
68540
68620
|
},
|
|
68541
68621
|
id: name,
|
|
68542
68622
|
mask: [
|
|
68543
68623
|
internationalFormat,
|
|
68624
|
+
internationalFrenchFormat,
|
|
68544
68625
|
frenchFormat,
|
|
68545
68626
|
defaultFormat
|
|
68546
68627
|
],
|
|
@@ -68779,10 +68860,10 @@ function Search({ className, customSearch = undefined, customSearchMinQueryLengt
|
|
|
68779
68860
|
style: style,
|
|
68780
68861
|
children: [
|
|
68781
68862
|
/*#__PURE__*/ jsx(Label, {
|
|
68863
|
+
$isHidden: isLabelHidden,
|
|
68782
68864
|
$isRequired: isRequired,
|
|
68783
68865
|
disabled: disabled,
|
|
68784
68866
|
htmlFor: originalProps.name,
|
|
68785
|
-
isHidden: isLabelHidden,
|
|
68786
68867
|
children: label
|
|
68787
68868
|
}),
|
|
68788
68869
|
/*#__PURE__*/ jsxs(StyledInputBox, {
|
|
@@ -68943,10 +69024,10 @@ function Select({ className, customSearch, customSearchMinQueryLength = 1, disab
|
|
|
68943
69024
|
style: style,
|
|
68944
69025
|
children: [
|
|
68945
69026
|
/*#__PURE__*/ jsx(Label, {
|
|
69027
|
+
$isHidden: isLabelHidden,
|
|
68946
69028
|
$isRequired: isRequired,
|
|
68947
69029
|
disabled: disabled,
|
|
68948
69030
|
htmlFor: originalProps.name,
|
|
68949
|
-
isHidden: isLabelHidden,
|
|
68950
69031
|
children: label
|
|
68951
69032
|
}),
|
|
68952
69033
|
/*#__PURE__*/ jsx(StyledRsuitePickerBox, {
|
|
@@ -69018,10 +69099,10 @@ function Textarea({ className, disabled = false, error, isErrorMessageHidden = f
|
|
|
69018
69099
|
style: style,
|
|
69019
69100
|
children: [
|
|
69020
69101
|
/*#__PURE__*/ jsx(Label, {
|
|
69102
|
+
$isHidden: isLabelHidden,
|
|
69021
69103
|
$isRequired: isRequired,
|
|
69022
69104
|
disabled: disabled,
|
|
69023
69105
|
htmlFor: originalProps.name,
|
|
69024
|
-
isHidden: isLabelHidden,
|
|
69025
69106
|
children: label
|
|
69026
69107
|
}),
|
|
69027
69108
|
/*#__PURE__*/ jsx(StyledRsuiteInput, {
|
|
@@ -69121,10 +69202,10 @@ function TextInput({ className, disabled = false, error, Icon, isErrorMessageHid
|
|
|
69121
69202
|
style: style,
|
|
69122
69203
|
children: [
|
|
69123
69204
|
/*#__PURE__*/ jsx(Label, {
|
|
69205
|
+
$isHidden: isLabelHidden,
|
|
69124
69206
|
$isRequired: isRequired,
|
|
69125
69207
|
disabled: disabled,
|
|
69126
69208
|
htmlFor: name,
|
|
69127
|
-
isHidden: isLabelHidden,
|
|
69128
69209
|
children: label
|
|
69129
69210
|
}),
|
|
69130
69211
|
/*#__PURE__*/ jsxs(StyledInputBox, {
|
|
@@ -69277,10 +69358,10 @@ function Toggle({ checked = false, className, dataCy, disabled = false, error, i
|
|
|
69277
69358
|
style: style,
|
|
69278
69359
|
children: [
|
|
69279
69360
|
/*#__PURE__*/ jsx(Label, {
|
|
69361
|
+
$isHidden: isLabelHidden,
|
|
69280
69362
|
$isRequired: isRequired,
|
|
69281
69363
|
disabled: disabled,
|
|
69282
69364
|
htmlFor: originalProps.name,
|
|
69283
|
-
isHidden: isLabelHidden,
|
|
69284
69365
|
children: label
|
|
69285
69366
|
}),
|
|
69286
69367
|
/*#__PURE__*/ jsx(StyledToggle, {
|
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.
|
|
4
|
+
"version": "18.5.0",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|