@mtes-mct/monitor-ui 24.11.0 → 24.11.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 +17 -0
- package/GlobalStyle.d.ts +1 -1
- package/GlobalStyle.d.ts.map +1 -1
- package/OnlyFontGlobalStyle.d.ts +1 -1
- package/OnlyFontGlobalStyle.d.ts.map +1 -1
- package/components/Dialog/Action.d.ts +1 -1
- package/components/Dialog/Action.d.ts.map +1 -1
- package/components/Dialog/Body.d.ts +2 -2
- package/components/Dialog/Body.d.ts.map +1 -1
- package/components/Dialog/Title.d.ts +1 -1
- package/components/Dialog/Title.d.ts.map +1 -1
- package/components/Dialog/index.d.ts +6 -6
- package/components/Dialog/index.d.ts.map +1 -1
- package/components/MapMenuDialog/index.d.ts +9 -13
- package/components/MapMenuDialog/index.d.ts.map +1 -1
- package/elements/Button/BaseButton.d.ts +1 -1
- package/elements/Button/BaseButton.d.ts.map +1 -1
- package/elements/Button/styles.d.ts +2 -2
- package/elements/Button/styles.d.ts.map +1 -1
- package/elements/Field.d.ts +3 -1
- package/elements/Field.d.ts.map +1 -1
- package/elements/FieldError.d.ts +4 -4
- package/elements/FieldError.d.ts.map +1 -1
- package/elements/Figure.d.ts +1 -1
- package/elements/Figure.d.ts.map +1 -1
- package/elements/IconBox.d.ts +3 -5
- package/elements/IconBox.d.ts.map +1 -1
- package/elements/IconButton/BaseIconButton.d.ts +1 -1
- package/elements/IconButton/BaseIconButton.d.ts.map +1 -1
- package/elements/Label.d.ts +4 -7
- package/elements/Label.d.ts.map +1 -1
- package/elements/Legend.d.ts +3 -6
- package/elements/Legend.d.ts.map +1 -1
- package/elements/Link.d.ts +1 -1
- package/elements/Link.d.ts.map +1 -1
- package/elements/Tag/index.d.ts +15 -9
- package/elements/Tag/index.d.ts.map +1 -1
- package/elements/TagGroup.d.ts +3 -1
- package/elements/TagGroup.d.ts.map +1 -1
- package/fields/CheckPicker.d.ts +3 -22
- package/fields/CheckPicker.d.ts.map +1 -1
- package/fields/Checkbox.d.ts +3 -1
- package/fields/Checkbox.d.ts.map +1 -1
- package/fields/DateRangePicker/NumberInput.d.ts +1 -1
- package/fields/MultiRadio.d.ts.map +1 -1
- package/fields/MultiSelect.d.ts +3 -22
- package/fields/MultiSelect.d.ts.map +1 -1
- package/fields/PhoneInput.d.ts +1 -0
- package/fields/PhoneInput.d.ts.map +1 -1
- package/fields/Toggle/index.d.ts +1 -1
- package/fields/Toggle/index.d.ts.map +1 -1
- package/fields/shared/StyledInputBox.d.ts +2 -2
- package/fields/shared/StyledInputBox.d.ts.map +1 -1
- package/fields/shared/StyledRsuiteCalendarBox.d.ts +2 -2
- package/fields/shared/StyledRsuiteCalendarBox.d.ts.map +1 -1
- package/fields/shared/StyledRsuitePickerBox.d.ts +1 -1
- package/fields/shared/StyledRsuitePickerBox.d.ts.map +1 -1
- package/index.js +130 -94
- package/package.json +2 -2
- package/symbols/Dot.d.ts +1 -1
- package/symbols/Dot.d.ts.map +1 -1
- package/symbols/ExclamationPoint.d.ts +1 -1
- package/symbols/ExclamationPoint.d.ts.map +1 -1
- package/tables/DataTable/SortingIcon.d.ts +2 -2
- package/tables/DataTable/SortingIcon.d.ts.map +1 -1
- package/tables/SimpleTable/CellLoader.d.ts +1 -1
- package/tables/SimpleTable/CellLoader.d.ts.map +1 -1
- package/tables/SimpleTable/Td.d.ts +6 -2
- package/tables/SimpleTable/Td.d.ts.map +1 -1
- package/tables/SimpleTable/index.d.ts +14 -9
- package/tables/SimpleTable/index.d.ts.map +1 -1
- package/tables/TableWithSelectableRows/index.d.ts +24 -12
- package/tables/TableWithSelectableRows/index.d.ts.map +1 -1
- package/types/commonTypes.d.ts +23 -0
- package/types/commonTypes.d.ts.map +1 -0
|
@@ -4,7 +4,7 @@ type StyledInputBoxProps = CommonFieldStyleProps & {
|
|
|
4
4
|
$hasIcon: boolean;
|
|
5
5
|
$size: Size;
|
|
6
6
|
};
|
|
7
|
-
export declare const inputStyle: import("styled-components").
|
|
8
|
-
export declare const StyledInputBox: import("styled-components").
|
|
7
|
+
export declare const inputStyle: import("styled-components").RuleSet<StyledInputBoxProps>;
|
|
8
|
+
export declare const StyledInputBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledInputBoxProps>> & string;
|
|
9
9
|
export {};
|
|
10
10
|
//# sourceMappingURL=StyledInputBox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StyledInputBox.d.ts","sourceRoot":"","sources":["../../../src/fields/shared/StyledInputBox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AASjC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEpD,KAAK,mBAAmB,GAAG,qBAAqB,GAAG;IACjD,QAAQ,EAAE,OAAO,CAAA;IACjB,KAAK,EAAE,IAAI,CAAA;CACZ,CAAA;AAaD,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"StyledInputBox.d.ts","sourceRoot":"","sources":["../../../src/fields/shared/StyledInputBox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AASjC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEpD,KAAK,mBAAmB,GAAG,qBAAqB,GAAG;IACjD,QAAQ,EAAE,OAAO,CAAA;IACjB,KAAK,EAAE,IAAI,CAAA;CACZ,CAAA;AAaD,eAAO,MAAM,UAAU,0DAoCtB,CAAA;AAED,eAAO,MAAM,cAAc,wPAuB1B,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const StyledRsuiteCalendarBox: import("styled-components").
|
|
1
|
+
export declare const StyledRsuiteCalendarBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
2
2
|
$isDoubleCalendar?: boolean;
|
|
3
3
|
$isRightAligned?: boolean;
|
|
4
|
-
}
|
|
4
|
+
}>> & string;
|
|
5
5
|
//# sourceMappingURL=StyledRsuiteCalendarBox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StyledRsuiteCalendarBox.d.ts","sourceRoot":"","sources":["../../../src/fields/shared/StyledRsuiteCalendarBox.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB;wBACd,OAAO;sBACT,OAAO;
|
|
1
|
+
{"version":3,"file":"StyledRsuiteCalendarBox.d.ts","sourceRoot":"","sources":["../../../src/fields/shared/StyledRsuiteCalendarBox.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB;wBACd,OAAO;sBACT,OAAO;YAmQ1B,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { CommonPickerFieldStyleProps } from './types';
|
|
2
|
-
export declare const StyledRsuitePickerBox: import("styled-components").
|
|
2
|
+
export declare const StyledRsuitePickerBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, CommonPickerFieldStyleProps>> & string;
|
|
3
3
|
//# sourceMappingURL=StyledRsuitePickerBox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StyledRsuitePickerBox.d.ts","sourceRoot":"","sources":["../../../src/fields/shared/StyledRsuitePickerBox.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAA;AAE1D,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"StyledRsuitePickerBox.d.ts","sourceRoot":"","sources":["../../../src/fields/shared/StyledRsuitePickerBox.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAA;AAE1D,eAAO,MAAM,qBAAqB,gQAoTjC,CAAA"}
|
package/index.js
CHANGED
|
@@ -54061,6 +54061,7 @@ const Box$c = styled.div`
|
|
|
54061
54061
|
function LinkButton({ children, className, Icon, size = Size.NORMAL, ...props }) {
|
|
54062
54062
|
const controlledClassName = classnames('Element-LinkButton', className);
|
|
54063
54063
|
return /*#__PURE__*/ jsx(StyledLinkButton$1, {
|
|
54064
|
+
$isDisabled: props.disabled,
|
|
54064
54065
|
$size: size,
|
|
54065
54066
|
className: controlledClassName,
|
|
54066
54067
|
...props,
|
|
@@ -54089,7 +54090,7 @@ const StyledLinkButton$1 = styled.button`
|
|
|
54089
54090
|
align-items: flex-end;
|
|
54090
54091
|
background: transparent;
|
|
54091
54092
|
color: ${(p)=>p.theme.color.slateGray};
|
|
54092
|
-
cursor: ${(p)=>p
|
|
54093
|
+
cursor: ${(p)=>p.$isDisabled ? 'none' : 'pointer'};
|
|
54093
54094
|
display: flex;
|
|
54094
54095
|
flex-direction: row;
|
|
54095
54096
|
font-size: ${(p)=>FONT_SIZE$1[p.$size]};
|
|
@@ -54552,7 +54553,7 @@ const FieldError = styled.p.attrs((props)=>({
|
|
|
54552
54553
|
className: classnames('Element-FieldError', props.className)
|
|
54553
54554
|
}))`
|
|
54554
54555
|
color: ${(p)=>p.theme.color.maximumRed};
|
|
54555
|
-
display: ${(p)=>p
|
|
54556
|
+
display: ${(p)=>p.$isDisabled ? 'none' : 'block'};
|
|
54556
54557
|
font-size: 13px;
|
|
54557
54558
|
font-style: italic;
|
|
54558
54559
|
line-height: 1.3846;
|
|
@@ -54569,7 +54570,7 @@ const Label = styled.label.attrs((props)=>({
|
|
|
54569
54570
|
className: classnames('Element-Label', props.className)
|
|
54570
54571
|
}))`
|
|
54571
54572
|
color: ${(p)=>// eslint-disable-next-line no-nested-ternary
|
|
54572
|
-
p.$
|
|
54573
|
+
p.$isDisabled ? p.theme.color.lightGray : p.$hasError ? p.theme.color.maximumRed : p.theme.color.slateGray};
|
|
54573
54574
|
display: ${(p)=>p.$isHidden ? 'none' : 'block'};
|
|
54574
54575
|
font-size: 13px;
|
|
54575
54576
|
line-height: 1.3846;
|
|
@@ -54983,7 +54984,7 @@ const StyledRsuiteCheckbox = styled(Checkbox$1)`
|
|
|
54983
54984
|
> label {
|
|
54984
54985
|
/* TODO Check that with Adeline. */
|
|
54985
54986
|
color: ${(p)=>// eslint-disable-next-line no-nested-ternary
|
|
54986
|
-
p.$isDisabled
|
|
54987
|
+
p.$isDisabled ?? p.$isReadOnly ? p.theme.color.lightGray : p.theme.color.gunMetal};
|
|
54987
54988
|
font-size: 13px;
|
|
54988
54989
|
font-weight: 500;
|
|
54989
54990
|
line-height: 1;
|
|
@@ -55009,7 +55010,7 @@ const StyledRsuiteCheckbox = styled(Checkbox$1)`
|
|
|
55009
55010
|
|
|
55010
55011
|
/* Checkmark */
|
|
55011
55012
|
&:after {
|
|
55012
|
-
border-color: ${(p)=>p.$isReadOnly
|
|
55013
|
+
border-color: ${(p)=>p.$isReadOnly ?? p.$isTransparent ? p.theme.color.charcoal : p.theme.color.cultured};
|
|
55013
55014
|
bottom: 0;
|
|
55014
55015
|
left: 0;
|
|
55015
55016
|
right: 0;
|
|
@@ -55513,7 +55514,7 @@ function CheckPicker({ className, customSearch, customSearchMinQueryLength = 1,
|
|
|
55513
55514
|
style: style,
|
|
55514
55515
|
children: [
|
|
55515
55516
|
/*#__PURE__*/ jsx(Label, {
|
|
55516
|
-
$
|
|
55517
|
+
$isDisabled: disabled,
|
|
55517
55518
|
$isHidden: isLabelHidden,
|
|
55518
55519
|
$isRequired: isRequired,
|
|
55519
55520
|
htmlFor: originalProps.name,
|
|
@@ -68079,7 +68080,7 @@ function MultiCascader({ className, disabled = false, error, isErrorMessageHidde
|
|
|
68079
68080
|
style: style,
|
|
68080
68081
|
children: [
|
|
68081
68082
|
/*#__PURE__*/ jsx(Label, {
|
|
68082
|
-
$
|
|
68083
|
+
$isDisabled: disabled,
|
|
68083
68084
|
$isHidden: isLabelHidden,
|
|
68084
68085
|
$isRequired: isRequired,
|
|
68085
68086
|
htmlFor: originalProps.name,
|
|
@@ -68212,7 +68213,7 @@ function MultiSelect({ className, customSearch, customSearchMinQueryLength = 1,
|
|
|
68212
68213
|
style: style,
|
|
68213
68214
|
children: [
|
|
68214
68215
|
/*#__PURE__*/ jsx(Label, {
|
|
68215
|
-
$
|
|
68216
|
+
$isDisabled: disabled,
|
|
68216
68217
|
$isHidden: isLabelHidden,
|
|
68217
68218
|
$isRequired: isRequired,
|
|
68218
68219
|
htmlFor: originalProps.name,
|
|
@@ -68360,7 +68361,7 @@ const StyledRsuiteRadio = styled(Radio$1)`
|
|
|
68360
68361
|
> label {
|
|
68361
68362
|
/* TODO Check that with Adeline. */
|
|
68362
68363
|
color: ${(p)=>// eslint-disable-next-line no-nested-ternary
|
|
68363
|
-
p.$isDisabled
|
|
68364
|
+
p.$isDisabled ?? p.$isReadOnly ? p.theme.color.lightGray : p.theme.color.gunMetal};
|
|
68364
68365
|
font-size: 13px;
|
|
68365
68366
|
font-weight: 500;
|
|
68366
68367
|
line-height: 1;
|
|
@@ -68468,11 +68469,11 @@ readOnly = false, renderMenuItem, style, value }) {
|
|
|
68468
68469
|
options,
|
|
68469
68470
|
optionValueKey
|
|
68470
68471
|
]);
|
|
68471
|
-
const handleChange = useCallback((nextRsuiteDataItemValue)=>{
|
|
68472
|
+
const handleChange = useCallback((nextRsuiteDataItemValue, _event)=>{
|
|
68472
68473
|
if (!onChange || readOnly) {
|
|
68473
68474
|
return;
|
|
68474
68475
|
}
|
|
68475
|
-
const nextOptionValue = getSelectedOptionValueFromSelectedRsuiteDataItemValue(rsuiteData, nextRsuiteDataItemValue);
|
|
68476
|
+
const nextOptionValue = getSelectedOptionValueFromSelectedRsuiteDataItemValue(rsuiteData, String(nextRsuiteDataItemValue));
|
|
68476
68477
|
onChange(nextOptionValue);
|
|
68477
68478
|
}, [
|
|
68478
68479
|
onChange,
|
|
@@ -68492,7 +68493,7 @@ readOnly = false, renderMenuItem, style, value }) {
|
|
|
68492
68493
|
$isInline: isInline,
|
|
68493
68494
|
name: name,
|
|
68494
68495
|
onChange: handleChange,
|
|
68495
|
-
value: selectedRsuiteValue,
|
|
68496
|
+
value: selectedRsuiteValue ?? '',
|
|
68496
68497
|
children: rsuiteData.map((rsuiteDataItem)=>/*#__PURE__*/ jsx(Radio, {
|
|
68497
68498
|
checked: value !== undefined && lodashExports.eq(rsuiteDataItem.optionValue, value),
|
|
68498
68499
|
disabled: !!rsuiteDataItem.isDisabled || disabled,
|
|
@@ -68768,7 +68769,7 @@ function NumberInput({ areArrowsHidden = false, className, disabled = false, err
|
|
|
68768
68769
|
style: style,
|
|
68769
68770
|
children: [
|
|
68770
68771
|
/*#__PURE__*/ jsx(Label, {
|
|
68771
|
-
$
|
|
68772
|
+
$isDisabled: disabled,
|
|
68772
68773
|
$isHidden: isLabelHidden,
|
|
68773
68774
|
$isRequired: isRequired,
|
|
68774
68775
|
htmlFor: name,
|
|
@@ -68879,78 +68880,6 @@ const InputWithUnit = styled(BaseInput)`
|
|
|
68879
68880
|
flex-grow: 1;
|
|
68880
68881
|
`;
|
|
68881
68882
|
|
|
68882
|
-
const PADDING = {
|
|
68883
|
-
[Size.LARGE]: '8px 16px 10px',
|
|
68884
|
-
[Size.NORMAL]: '3px 8px 7px',
|
|
68885
|
-
[Size.SMALL]: '3px 8px 6px'
|
|
68886
|
-
};
|
|
68887
|
-
const PADDING_WITH_ICON = {
|
|
68888
|
-
[Size.LARGE]: '8px 48px 10px 16px',
|
|
68889
|
-
[Size.NORMAL]: '3px 38px 6px 8px',
|
|
68890
|
-
[Size.SMALL]: '3px 38px 6px 8px'
|
|
68891
|
-
};
|
|
68892
|
-
const inputStyle = css`
|
|
68893
|
-
background-color: ${getFieldBackgroundColorFactory()};
|
|
68894
|
-
border: solid 1px ${getFieldBorderColorFactoryForState('default')};
|
|
68895
|
-
border-radius: 0;
|
|
68896
|
-
color: ${(p)=>p.theme.color.gunMetal};
|
|
68897
|
-
${(p)=>p.$isReadOnly && `cursor: default;`}
|
|
68898
|
-
font-size: 13px;
|
|
68899
|
-
font-weight: 500;
|
|
68900
|
-
line-height: 19px;
|
|
68901
|
-
padding: 3px 8px 6px;
|
|
68902
|
-
vertical-align: center;
|
|
68903
|
-
width: 100%;
|
|
68904
|
-
|
|
68905
|
-
&::placeholder {
|
|
68906
|
-
color: ${getFieldPlaceholderColorFactoryForState('default')};
|
|
68907
|
-
}
|
|
68908
|
-
|
|
68909
|
-
&:hover {
|
|
68910
|
-
background-color: ${getFieldBackgroundColorFactory()};
|
|
68911
|
-
border: solid 1px ${getFieldBorderColorFactoryForState('hover')} !important;
|
|
68912
|
-
|
|
68913
|
-
&::placeholder {
|
|
68914
|
-
color: ${getFieldPlaceholderColorFactoryForState('hover')};
|
|
68915
|
-
}
|
|
68916
|
-
}
|
|
68917
|
-
|
|
68918
|
-
&:active,
|
|
68919
|
-
&:focus {
|
|
68920
|
-
background-color: ${getFieldBackgroundColorFactory()};
|
|
68921
|
-
border: solid 1px ${getFieldBorderColorFactoryForState('focus')} !important;
|
|
68922
|
-
outline: 0;
|
|
68923
|
-
|
|
68924
|
-
&::placeholder {
|
|
68925
|
-
color: ${getFieldPlaceholderColorFactoryForState('focus')};
|
|
68926
|
-
}
|
|
68927
|
-
}
|
|
68928
|
-
`;
|
|
68929
|
-
const StyledInputBox = styled.div`
|
|
68930
|
-
display: flex;
|
|
68931
|
-
position: relative;
|
|
68932
|
-
width: 100%;
|
|
68933
|
-
|
|
68934
|
-
> .rs-auto-complete {
|
|
68935
|
-
display: flex;
|
|
68936
|
-
flex-grow: 1;
|
|
68937
|
-
}
|
|
68938
|
-
|
|
68939
|
-
> input,
|
|
68940
|
-
> .rs-auto-complete > input {
|
|
68941
|
-
${inputStyle}
|
|
68942
|
-
padding: ${(p)=>p.$hasIcon ? PADDING_WITH_ICON[p.$size] : PADDING[p.$size]};
|
|
68943
|
-
line-height: 1;
|
|
68944
|
-
flex-grow: 1;
|
|
68945
|
-
}
|
|
68946
|
-
|
|
68947
|
-
> .Element-IconBox {
|
|
68948
|
-
position: absolute;
|
|
68949
|
-
right: ${(p)=>p.$size === Size.LARGE ? '16px' : '8px'};
|
|
68950
|
-
top: ${(p)=>p.$size === Size.LARGE ? '10px' : '5px'};
|
|
68951
|
-
}
|
|
68952
|
-
`;
|
|
68953
|
-
|
|
68954
68883
|
const internationalFormat = {
|
|
68955
68884
|
definitions: {
|
|
68956
68885
|
'#': /[1-9]/,
|
|
@@ -68980,13 +68909,13 @@ const defaultFormat = {
|
|
|
68980
68909
|
};
|
|
68981
68910
|
/**
|
|
68982
68911
|
* FIXME (01/07/2024): This lib has probably a bug, I opened an issue : https://github.com/uNmAnNeR/imaskjs/issues/1053
|
|
68983
|
-
*/ const PhoneInput = /*#__PURE__*/ forwardRef(({ disabled = false, error, isErrorMessageHidden = false, isLabelHidden = false, isLight = false, isRequired = false, isTransparent = false, isUndefinedWhenDisabled = false, label, name, onChange, value, ...props }, ref)=>{
|
|
68912
|
+
*/ const PhoneInput = /*#__PURE__*/ forwardRef(({ disabled = false, error, isErrorMessageHidden = false, isLabelHidden = false, isLight = false, isRequired = false, isTransparent = false, isUndefinedWhenDisabled = false, label, name, onChange, readOnly = false, value, ...props }, ref)=>{
|
|
68984
68913
|
useFieldUndefineEffect(isUndefinedWhenDisabled && !!disabled, undefined, ()=>onChange(''));
|
|
68985
68914
|
return /*#__PURE__*/ jsxs(Field$2, {
|
|
68986
68915
|
className: "Field-PhoneInput",
|
|
68987
68916
|
children: [
|
|
68988
68917
|
/*#__PURE__*/ jsx(Label, {
|
|
68989
|
-
$
|
|
68918
|
+
$isDisabled: disabled,
|
|
68990
68919
|
$isHidden: isLabelHidden,
|
|
68991
68920
|
$isRequired: isRequired,
|
|
68992
68921
|
htmlFor: name,
|
|
@@ -68997,6 +68926,7 @@ const defaultFormat = {
|
|
|
68997
68926
|
$hasError: !!error,
|
|
68998
68927
|
$isDisabled: disabled,
|
|
68999
68928
|
$isLight: isLight,
|
|
68929
|
+
$isReadOnly: readOnly,
|
|
69000
68930
|
$isTransparent: isTransparent,
|
|
69001
68931
|
disabled: disabled,
|
|
69002
68932
|
dispatch: (appended, dynamicMasked)=>{
|
|
@@ -69035,7 +68965,41 @@ const defaultFormat = {
|
|
|
69035
68965
|
});
|
|
69036
68966
|
});
|
|
69037
68967
|
const StyledIMaskInput = styled(IMaskInput)`
|
|
69038
|
-
${
|
|
68968
|
+
background-color: ${getFieldBackgroundColorFactory()};
|
|
68969
|
+
border: solid 1px ${getFieldBorderColorFactoryForState('default')};
|
|
68970
|
+
border-radius: 0;
|
|
68971
|
+
color: ${(p)=>p.theme.color.gunMetal};
|
|
68972
|
+
cursor: default;
|
|
68973
|
+
font-size: 13px;
|
|
68974
|
+
font-weight: 500;
|
|
68975
|
+
line-height: 19px;
|
|
68976
|
+
padding: 3px 8px 6px;
|
|
68977
|
+
vertical-align: center;
|
|
68978
|
+
width: 100%;
|
|
68979
|
+
|
|
68980
|
+
&::placeholder {
|
|
68981
|
+
color: ${getFieldPlaceholderColorFactoryForState('default')};
|
|
68982
|
+
}
|
|
68983
|
+
|
|
68984
|
+
&:hover {
|
|
68985
|
+
background-color: ${getFieldBackgroundColorFactory()};
|
|
68986
|
+
border: solid 1px ${getFieldBorderColorFactoryForState('hover')} !important;
|
|
68987
|
+
|
|
68988
|
+
&::placeholder {
|
|
68989
|
+
color: ${getFieldPlaceholderColorFactoryForState('hover')};
|
|
68990
|
+
}
|
|
68991
|
+
}
|
|
68992
|
+
|
|
68993
|
+
&:active,
|
|
68994
|
+
&:focus {
|
|
68995
|
+
background-color: ${getFieldBackgroundColorFactory()};
|
|
68996
|
+
border: solid 1px ${getFieldBorderColorFactoryForState('focus')} !important;
|
|
68997
|
+
outline: 0;
|
|
68998
|
+
|
|
68999
|
+
&::placeholder {
|
|
69000
|
+
color: ${getFieldPlaceholderColorFactoryForState('focus')};
|
|
69001
|
+
}
|
|
69002
|
+
}
|
|
69039
69003
|
`;
|
|
69040
69004
|
|
|
69041
69005
|
function getRichBooleanFromRichBooleanOptionValues(optionValues) {
|
|
@@ -69152,6 +69116,78 @@ function RichBooleanCheckbox({ falseOptionLabel, onChange, trueOptionLabel, valu
|
|
|
69152
69116
|
return selectedOption;
|
|
69153
69117
|
}
|
|
69154
69118
|
|
|
69119
|
+
const PADDING = {
|
|
69120
|
+
[Size.LARGE]: '8px 16px 10px',
|
|
69121
|
+
[Size.NORMAL]: '3px 8px 7px',
|
|
69122
|
+
[Size.SMALL]: '3px 8px 6px'
|
|
69123
|
+
};
|
|
69124
|
+
const PADDING_WITH_ICON = {
|
|
69125
|
+
[Size.LARGE]: '8px 48px 10px 16px',
|
|
69126
|
+
[Size.NORMAL]: '3px 38px 6px 8px',
|
|
69127
|
+
[Size.SMALL]: '3px 38px 6px 8px'
|
|
69128
|
+
};
|
|
69129
|
+
const inputStyle = css`
|
|
69130
|
+
background-color: ${getFieldBackgroundColorFactory()};
|
|
69131
|
+
border: solid 1px ${getFieldBorderColorFactoryForState('default')};
|
|
69132
|
+
border-radius: 0;
|
|
69133
|
+
color: ${(p)=>p.theme.color.gunMetal};
|
|
69134
|
+
${(p)=>p.$isReadOnly && `cursor: default;`}
|
|
69135
|
+
font-size: 13px;
|
|
69136
|
+
font-weight: 500;
|
|
69137
|
+
line-height: 19px;
|
|
69138
|
+
padding: 3px 8px 6px;
|
|
69139
|
+
vertical-align: center;
|
|
69140
|
+
width: 100%;
|
|
69141
|
+
|
|
69142
|
+
&::placeholder {
|
|
69143
|
+
color: ${getFieldPlaceholderColorFactoryForState('default')};
|
|
69144
|
+
}
|
|
69145
|
+
|
|
69146
|
+
&:hover {
|
|
69147
|
+
background-color: ${getFieldBackgroundColorFactory()};
|
|
69148
|
+
border: solid 1px ${getFieldBorderColorFactoryForState('hover')} !important;
|
|
69149
|
+
|
|
69150
|
+
&::placeholder {
|
|
69151
|
+
color: ${getFieldPlaceholderColorFactoryForState('hover')};
|
|
69152
|
+
}
|
|
69153
|
+
}
|
|
69154
|
+
|
|
69155
|
+
&:active,
|
|
69156
|
+
&:focus {
|
|
69157
|
+
background-color: ${getFieldBackgroundColorFactory()};
|
|
69158
|
+
border: solid 1px ${getFieldBorderColorFactoryForState('focus')} !important;
|
|
69159
|
+
outline: 0;
|
|
69160
|
+
|
|
69161
|
+
&::placeholder {
|
|
69162
|
+
color: ${getFieldPlaceholderColorFactoryForState('focus')};
|
|
69163
|
+
}
|
|
69164
|
+
}
|
|
69165
|
+
`;
|
|
69166
|
+
const StyledInputBox = styled.div`
|
|
69167
|
+
display: flex;
|
|
69168
|
+
position: relative;
|
|
69169
|
+
width: 100%;
|
|
69170
|
+
|
|
69171
|
+
> .rs-auto-complete {
|
|
69172
|
+
display: flex;
|
|
69173
|
+
flex-grow: 1;
|
|
69174
|
+
}
|
|
69175
|
+
|
|
69176
|
+
> input,
|
|
69177
|
+
> .rs-auto-complete > input {
|
|
69178
|
+
${inputStyle}
|
|
69179
|
+
padding: ${(p)=>p.$hasIcon ? PADDING_WITH_ICON[p.$size] : PADDING[p.$size]};
|
|
69180
|
+
line-height: 1;
|
|
69181
|
+
flex-grow: 1;
|
|
69182
|
+
}
|
|
69183
|
+
|
|
69184
|
+
> .Element-IconBox {
|
|
69185
|
+
position: absolute;
|
|
69186
|
+
right: ${(p)=>p.$size === Size.LARGE ? '16px' : '8px'};
|
|
69187
|
+
top: ${(p)=>p.$size === Size.LARGE ? '10px' : '5px'};
|
|
69188
|
+
}
|
|
69189
|
+
`;
|
|
69190
|
+
|
|
69155
69191
|
function Search({ className, customSearch = undefined, customSearchMinQueryLength = 1, disabled = false, error, isErrorMessageHidden = false, isLabelHidden, isLight = false, isRequired = false, isSearchIconHidden = true, isTransparent = false, isUndefinedWhenDisabled = false, key, label, MenuItem, onChange, onQuery, options = [], optionValueKey, popupWidth, readOnly = false, size = Size.NORMAL, style, value, ...originalProps }) {
|
|
69156
69192
|
// eslint-disable-next-line no-null/no-null
|
|
69157
69193
|
const boxRef = useRef(null);
|
|
@@ -69254,7 +69290,7 @@ function Search({ className, customSearch = undefined, customSearchMinQueryLengt
|
|
|
69254
69290
|
style: style,
|
|
69255
69291
|
children: [
|
|
69256
69292
|
/*#__PURE__*/ jsx(Label, {
|
|
69257
|
-
$
|
|
69293
|
+
$isDisabled: disabled,
|
|
69258
69294
|
$isHidden: isLabelHidden,
|
|
69259
69295
|
$isRequired: isRequired,
|
|
69260
69296
|
htmlFor: originalProps.name,
|
|
@@ -69418,7 +69454,7 @@ function Select({ className, customSearch, customSearchMinQueryLength = 1, disab
|
|
|
69418
69454
|
style: style,
|
|
69419
69455
|
children: [
|
|
69420
69456
|
/*#__PURE__*/ jsx(Label, {
|
|
69421
|
-
$
|
|
69457
|
+
$isDisabled: disabled,
|
|
69422
69458
|
$isHidden: isLabelHidden,
|
|
69423
69459
|
$isRequired: isRequired,
|
|
69424
69460
|
htmlFor: originalProps.name,
|
|
@@ -69493,7 +69529,7 @@ function Textarea({ className, disabled = false, error, isErrorMessageHidden = f
|
|
|
69493
69529
|
style: style,
|
|
69494
69530
|
children: [
|
|
69495
69531
|
/*#__PURE__*/ jsx(Label, {
|
|
69496
|
-
$
|
|
69532
|
+
$isDisabled: disabled,
|
|
69497
69533
|
$isHidden: isLabelHidden,
|
|
69498
69534
|
$isRequired: isRequired,
|
|
69499
69535
|
htmlFor: originalProps.name,
|
|
@@ -69596,7 +69632,7 @@ function TextInput({ className, disabled = false, error, Icon, isErrorMessageHid
|
|
|
69596
69632
|
style: style,
|
|
69597
69633
|
children: [
|
|
69598
69634
|
/*#__PURE__*/ jsx(Label, {
|
|
69599
|
-
$
|
|
69635
|
+
$isDisabled: disabled,
|
|
69600
69636
|
$isHidden: isLabelHidden,
|
|
69601
69637
|
$isRequired: isRequired,
|
|
69602
69638
|
htmlFor: name,
|
|
@@ -69759,7 +69795,7 @@ function Toggle({ checked = false, className, dataCy, disabled = false, error, i
|
|
|
69759
69795
|
style: style,
|
|
69760
69796
|
children: [
|
|
69761
69797
|
/*#__PURE__*/ jsx(Label, {
|
|
69762
|
-
$
|
|
69798
|
+
$isDisabled: disabled,
|
|
69763
69799
|
$isHidden: isLabelHidden,
|
|
69764
69800
|
$isRequired: isRequired,
|
|
69765
69801
|
htmlFor: originalProps.name,
|
|
@@ -69775,7 +69811,7 @@ function Toggle({ checked = false, className, dataCy, disabled = false, error, i
|
|
|
69775
69811
|
checked: checked,
|
|
69776
69812
|
"data-cy": dataCy,
|
|
69777
69813
|
disabled: disabled,
|
|
69778
|
-
onChange: onChange,
|
|
69814
|
+
onChange: (isChecked)=>onChange?.(isChecked),
|
|
69779
69815
|
readOnly: readOnly,
|
|
69780
69816
|
...originalProps
|
|
69781
69817
|
}, key),
|
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": "24.11.
|
|
4
|
+
"version": "24.11.1",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@babel/runtime": "7.26.0",
|
|
12
|
-
"@tanstack/react-table": "8.20.
|
|
12
|
+
"@tanstack/react-table": "8.20.6",
|
|
13
13
|
"@tanstack/react-virtual": "beta",
|
|
14
14
|
"prop-types": "15.8.1",
|
|
15
15
|
"tslib": "2.8.1"
|
package/symbols/Dot.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ export type DotProps = {
|
|
|
3
3
|
$borderColor?: string;
|
|
4
4
|
$size?: number;
|
|
5
5
|
};
|
|
6
|
-
export declare const Dot: import("styled-components").
|
|
6
|
+
export declare const Dot: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, DotProps>> & string;
|
|
7
7
|
//# sourceMappingURL=Dot.d.ts.map
|
package/symbols/Dot.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dot.d.ts","sourceRoot":"","sources":["../../src/symbols/Dot.tsx"],"names":[],"mappings":"AAEA,MAAM,MAAM,QAAQ,GAAG;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AACD,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"Dot.d.ts","sourceRoot":"","sources":["../../src/symbols/Dot.tsx"],"names":[],"mappings":"AAEA,MAAM,MAAM,QAAQ,GAAG;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AACD,eAAO,MAAM,GAAG,+OAWf,CAAA"}
|
|
@@ -4,5 +4,5 @@ export type ExclamationPointProps = HTMLAttributes<HTMLSpanElement> & {
|
|
|
4
4
|
color?: string | undefined;
|
|
5
5
|
size?: number;
|
|
6
6
|
};
|
|
7
|
-
export declare const ExclamationPoint: import("styled-components").
|
|
7
|
+
export declare const ExclamationPoint: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, ExclamationPointProps>> & string;
|
|
8
8
|
//# sourceMappingURL=ExclamationPoint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExclamationPoint.d.ts","sourceRoot":"","sources":["../../src/symbols/ExclamationPoint.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAG3C,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,eAAe,CAAC,GAAG;IACpE,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAID,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ExclamationPoint.d.ts","sourceRoot":"","sources":["../../src/symbols/ExclamationPoint.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAG3C,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,eAAe,CAAC,GAAG;IACpE,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAID,eAAO,MAAM,gBAAgB,4OAgB5B,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SortingIcon: import("styled-components").
|
|
1
|
+
export declare const SortingIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<any, {
|
|
2
2
|
$isDescending?: boolean;
|
|
3
|
-
}
|
|
3
|
+
}>> & (string | (string & Omit<any, keyof import("react").Component<any, {}, any>>));
|
|
4
4
|
//# sourceMappingURL=SortingIcon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortingIcon.d.ts","sourceRoot":"","sources":["../../../src/tables/DataTable/SortingIcon.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW;oBACN,OAAO;
|
|
1
|
+
{"version":3,"file":"SortingIcon.d.ts","sourceRoot":"","sources":["../../../src/tables/DataTable/SortingIcon.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW;oBACN,OAAO;oFASxB,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const CellLoader: import("styled-components").
|
|
1
|
+
export declare const CellLoader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
2
|
//# sourceMappingURL=CellLoader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CellLoader.d.ts","sourceRoot":"","sources":["../../../src/tables/SimpleTable/CellLoader.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"CellLoader.d.ts","sourceRoot":"","sources":["../../../src/tables/SimpleTable/CellLoader.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,UAAU,6NAiBtB,CAAA"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { TdHTMLAttributes } from 'react';
|
|
2
|
-
|
|
2
|
+
type TdProps = TdHTMLAttributes<HTMLTableCellElement> & {
|
|
3
3
|
$isCenter?: boolean | undefined;
|
|
4
4
|
$isLoading?: boolean | undefined;
|
|
5
|
-
}
|
|
5
|
+
};
|
|
6
|
+
export declare const Td: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, Omit<import("react").DetailedHTMLProps<TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref"> & {
|
|
7
|
+
ref?: ((instance: HTMLTableDataCellElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLTableDataCellElement> | null | undefined;
|
|
8
|
+
}>, TdProps>, never>> & string;
|
|
9
|
+
export {};
|
|
6
10
|
//# sourceMappingURL=Td.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Td.d.ts","sourceRoot":"","sources":["../../../src/tables/SimpleTable/Td.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Td.d.ts","sourceRoot":"","sources":["../../../src/tables/SimpleTable/Td.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAA;AAE7C,KAAK,OAAO,GAAG,gBAAgB,CAAC,oBAAoB,CAAC,GAAG;IACtD,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC/B,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CACjC,CAAA;AACD,eAAO,MAAM,EAAE;;8BAuBd,CAAA"}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
+
import type { TableHTMLAttributes } from 'react';
|
|
1
2
|
export declare const SimpleTable: {
|
|
2
|
-
BodyTr: import("styled-components").
|
|
3
|
-
CellLoader: import("styled-components").
|
|
4
|
-
Head: import("styled-components").
|
|
5
|
-
SortContainer: import("styled-components").
|
|
6
|
-
Table: import("styled-components").
|
|
7
|
-
|
|
3
|
+
BodyTr: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, never>> & string;
|
|
4
|
+
CellLoader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
Head: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, never>> & string;
|
|
6
|
+
SortContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
+
Table: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, Omit<import("react").DetailedHTMLProps<TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & {
|
|
8
|
+
ref?: ((instance: HTMLTableElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLTableElement> | null | undefined;
|
|
9
|
+
}>, TableHTMLAttributes<HTMLTableElement>>, never>> & string;
|
|
10
|
+
Td: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, Omit<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref"> & {
|
|
11
|
+
ref?: ((instance: HTMLTableDataCellElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLTableDataCellElement> | null | undefined;
|
|
12
|
+
}>, import("react").TdHTMLAttributes<HTMLTableCellElement> & {
|
|
8
13
|
$isCenter?: boolean | undefined;
|
|
9
14
|
$isLoading?: boolean | undefined;
|
|
10
|
-
}
|
|
11
|
-
Th: import("styled-components").
|
|
15
|
+
}>, never>> & string;
|
|
16
|
+
Th: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, {
|
|
12
17
|
$width?: number | undefined;
|
|
13
|
-
}
|
|
18
|
+
}>> & string;
|
|
14
19
|
};
|
|
15
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tables/SimpleTable/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tables/SimpleTable/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAA;AAoEhD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;iBA/Cb,MAAM,GAAG,SAAS;;CAuD5B,CAAA"}
|
|
@@ -1,23 +1,35 @@
|
|
|
1
1
|
import { RowCheckbox } from './RowCheckbox';
|
|
2
2
|
export declare const TableWithSelectableRows: {
|
|
3
|
-
BodyTr: import("styled-components").
|
|
3
|
+
BodyTr: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, never>, "ref"> & {
|
|
4
|
+
ref?: ((instance: HTMLTableRowElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLTableRowElement> | null | undefined;
|
|
5
|
+
}, {
|
|
4
6
|
$isHighlighted?: boolean;
|
|
5
|
-
}
|
|
6
|
-
CellLoader: import("styled-components").
|
|
7
|
-
Head: import("styled-components").
|
|
7
|
+
}>> & string;
|
|
8
|
+
CellLoader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
|
+
Head: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, never>, "ref"> & {
|
|
10
|
+
ref?: ((instance: HTMLTableSectionElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLTableSectionElement> | null | undefined;
|
|
11
|
+
}, never>> & string;
|
|
8
12
|
RowCheckbox: typeof RowCheckbox;
|
|
9
|
-
SortContainer: import("styled-components").
|
|
10
|
-
|
|
13
|
+
SortContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
14
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
15
|
+
}, never>> & string;
|
|
16
|
+
Table: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, Omit<import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & {
|
|
17
|
+
ref?: ((instance: HTMLTableElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLTableElement> | null | undefined;
|
|
18
|
+
}>, import("react").TableHTMLAttributes<HTMLTableElement>>, never>, {
|
|
11
19
|
$withRowCheckbox?: boolean;
|
|
12
|
-
}
|
|
13
|
-
Td: import("styled-components").
|
|
20
|
+
}>> & string;
|
|
21
|
+
Td: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, Omit<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref"> & {
|
|
22
|
+
ref?: ((instance: HTMLTableDataCellElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLTableDataCellElement> | null | undefined;
|
|
23
|
+
}>, import("react").TdHTMLAttributes<HTMLTableCellElement> & {
|
|
14
24
|
$isCenter?: boolean | undefined;
|
|
15
25
|
$isLoading?: boolean | undefined;
|
|
16
|
-
}
|
|
26
|
+
}>, never>, {
|
|
17
27
|
$hasRightBorder?: boolean;
|
|
18
|
-
}
|
|
19
|
-
Th: import("styled-components").
|
|
28
|
+
}>> & string;
|
|
29
|
+
Th: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "$width"> & {
|
|
20
30
|
$width?: number | undefined;
|
|
21
|
-
},
|
|
31
|
+
}, "ref"> & {
|
|
32
|
+
ref?: ((instance: HTMLTableHeaderCellElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLTableHeaderCellElement> | null | undefined;
|
|
33
|
+
}, never>> & string;
|
|
22
34
|
};
|
|
23
35
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tables/TableWithSelectableRows/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAkG3C,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tables/TableWithSelectableRows/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAkG3C,eAAO,MAAM,uBAAuB;;;;yBAnCjB,OAAO;;;;;;;;;;;;;2BA3DL,OAAO;;;;;;;;0BAuFR,OAAO;;;;;;;CAgB1B,CAAA"}
|