@true-engineering/true-react-common-ui-kit 3.56.0 → 3.56.2

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.
@@ -1,6 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  import { ICommonProps } from '../../../../types';
3
- import { IFilterLocaleKey, IPartialFilterLocale } from '../../types';
3
+ import { IFilterLocaleKey, IFilterNumberInputProps, IPartialFilterLocale } from '../../types';
4
4
  import { IFilterIntervalStyles } from './FilterInterval.styles';
5
5
  export interface IFilterIntervalProps extends ICommonProps<IFilterIntervalStyles> {
6
6
  value?: Array<number | undefined>;
@@ -10,15 +10,7 @@ export interface IFilterIntervalProps extends ICommonProps<IFilterIntervalStyles
10
10
  locale?: IPartialFilterLocale;
11
11
  withFieldNameInLabel?: boolean;
12
12
  canBeFloat?: boolean;
13
- fromInput?: {
14
- min?: number;
15
- max?: number;
16
- maxLength?: number;
17
- };
18
- toInput?: {
19
- min?: number;
20
- max?: number;
21
- maxLength?: number;
22
- };
13
+ fromInput?: IFilterNumberInputProps;
14
+ toInput?: IFilterNumberInputProps;
23
15
  }
24
16
  export declare const FilterInterval: FC<IFilterIntervalProps>;
@@ -1,6 +1,7 @@
1
1
  import { FC, ReactNode } from 'react';
2
2
  import { IDatePickerProps } from '../DatePicker';
3
3
  import { IMultiSelectListValues } from '../MultiSelectList';
4
+ import { INumberInputProps } from '../NumberInput';
4
5
  import type { IFilterIntervalProps, IFilterMultiSelectProps, IFilterSelectProps, IFilterWithDatesProps, IFilterWithPeriodProps } from './components';
5
6
  import { FilterLocales, PERIODS, SelectLocales } from './constants';
6
7
  export type IPeriodType = (typeof PERIODS)[number];
@@ -116,3 +117,4 @@ export interface ISelectLocale {
116
117
  }
117
118
  export type ISelectLocaleKey = keyof typeof SelectLocales;
118
119
  export type IFilterWithDateDatePickerProps = Omit<IDatePickerProps, 'onChange' | 'value' | 'locale' | 'months' | 'selectedDate' | 'tweakStyles'>;
120
+ export type IFilterNumberInputProps = Omit<INumberInputProps, 'onChange' | 'value' | 'label' | 'testId' | 'tweakStyles'>;
@@ -1,7 +1,7 @@
1
1
  import { ITweakStyles } from '../../theme';
2
2
  import type { IFlexibleTableRowStyles } from './components';
3
3
  export declare const STICKY_SHADOW_PADDING = 12;
4
- export declare const useStyles: import("../../theme").IUseStyles<"scroll" | "root" | "loader" | "header" | "nothingFound" | "head" | "body" | "loaderRow" | "loaderCell" | "headerRow" | "headerSticky" | "headerSecond" | "nothingFoundRow", unknown>;
4
+ export declare const useStyles: import("../../theme").IUseStyles<"scroll" | "root" | "loader" | "header" | "nothingFound" | "flexibleTableWrapper" | "head" | "body" | "loaderRow" | "loaderCell" | "headerRow" | "headerSticky" | "headerSecond" | "nothingFoundRow", unknown>;
5
5
  export type IFlexibleTableStyles = ITweakStyles<typeof useStyles, {
6
6
  tweakTableRow: IFlexibleTableRowStyles;
7
7
  }>;