@true-engineering/true-react-common-ui-kit 4.0.0-alpha70 → 4.0.0-alpha71
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/dist/components/DateInput/DateInput.d.ts +2 -2
- package/dist/components/DatePicker/DatePicker.d.ts +2 -2
- package/dist/components/DatePicker/components/DatePickerHeader/DatePickerHeader.d.ts +2 -2
- package/dist/components/Flag/Flag.d.ts +2 -2
- package/dist/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.d.ts +2 -2
- package/dist/components/FloatDocActions/components/DocActions/DocActions.d.ts +2 -2
- package/dist/components/IncrementInput/IncrementInput.d.ts +2 -2
- package/dist/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.d.ts +2 -2
- package/dist/components/PhoneInput/PhoneInput.d.ts +2 -2
- package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.d.ts +2 -2
- package/dist/components/SearchInput/SearchInput.d.ts +3 -3
- package/dist/components/Select/Select.d.ts +2 -2
- package/dist/components/Skeleton/Skeleton.d.ts +2 -2
- package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.d.ts +2 -2
- package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.d.ts +2 -2
- package/dist/components/WithTooltip/WithTooltip.d.ts +2 -2
- package/dist/true-react-common-ui-kit.js +56 -56
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/AccountInfo/AccountInfo.tsx +1 -1
- package/src/components/AddButton/AddButton.tsx +1 -1
- package/src/components/Button/Button.tsx +1 -1
- package/src/components/Checkbox/Checkbox.tsx +1 -1
- package/src/components/CloseButton/CloseButton.tsx +1 -1
- package/src/components/ControlWrapper/ControlWrapper.tsx +1 -1
- package/src/components/CssBaseline/CssBaseline.tsx +1 -1
- package/src/components/DateInput/DateInput.tsx +6 -4
- package/src/components/DatePicker/DatePicker.tsx +5 -3
- package/src/components/DatePicker/components/DatePickerHeader/DatePickerHeader.tsx +3 -3
- package/src/components/Description/Description.tsx +1 -1
- package/src/components/FileInput/FileInput.tsx +1 -1
- package/src/components/FileItem/FileItem.tsx +1 -1
- package/src/components/FiltersPane/FiltersPane.tsx +1 -1
- package/src/components/FiltersPane/components/FilterInterval/FilterInterval.tsx +1 -1
- package/src/components/FiltersPane/components/FilterSelect/FilterSelect.tsx +1 -1
- package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.tsx +1 -1
- package/src/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.tsx +1 -1
- package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.tsx +1 -1
- package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.tsx +1 -1
- package/src/components/Flag/Flag.tsx +3 -3
- package/src/components/FlexibleTable/FlexibleTable.tsx +1 -1
- package/src/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.tsx +3 -3
- package/src/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.tsx +1 -1
- package/src/components/FloatDocActions/components/DocActions/DocActions.tsx +3 -4
- package/src/components/Icon/Icon.tsx +1 -1
- package/src/components/IconButton/IconButton.tsx +1 -1
- package/src/components/IncrementInput/IncrementInput.tsx +6 -4
- package/src/components/Input/InputBase.tsx +1 -1
- package/src/components/List/List.tsx +1 -1
- package/src/components/List/components/ListItem/ListItem.tsx +1 -1
- package/src/components/Modal/Modal.tsx +1 -1
- package/src/components/MoreMenu/MoreMenu.tsx +1 -1
- package/src/components/MultiSelect/MultiSelect.tsx +1 -1
- package/src/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.tsx +3 -4
- package/src/components/MultiSelectList/MultiSelectList.tsx +1 -1
- package/src/components/NewMoreMenu/NewMoreMenu.tsx +1 -1
- package/src/components/Notification/Notification.tsx +1 -1
- package/src/components/PhoneInput/PhoneInput.tsx +5 -6
- package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.tsx +3 -3
- package/src/components/RadioButton/RadioButton.tsx +1 -1
- package/src/components/SearchInput/SearchInput.tsx +4 -5
- package/src/components/Select/Select.tsx +6 -4
- package/src/components/Select/components/SelectList/SelectList.tsx +1 -1
- package/src/components/Skeleton/Skeleton.tsx +3 -3
- package/src/components/Status/Status.tsx +1 -1
- package/src/components/Switch/Switch.tsx +1 -1
- package/src/components/TextArea/TextArea.tsx +1 -1
- package/src/components/TextButton/TextButton.tsx +1 -1
- package/src/components/TextWithInfo/TextWithInfo.tsx +1 -1
- package/src/components/TextWithTooltip/TextWithTooltip.tsx +1 -1
- package/src/components/ThemedPreloader/ThemedPreloader.tsx +1 -1
- package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.tsx +3 -3
- package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.tsx +3 -3
- package/src/components/Toaster/Toaster.tsx +1 -1
- package/src/components/Tooltip/Tooltip.tsx +1 -1
- package/src/components/WithMessages/WithMessages.tsx +1 -1
- package/src/components/WithTooltip/WithTooltip.tsx +4 -5
- package/src/types.ts +5 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IReplaceTweakStylesProps } from '../../types';
|
|
2
2
|
import { IChangeInputEvent, IInputProps } from '../Input';
|
|
3
3
|
import { IDateInputStyles } from './DateInput.styles';
|
|
4
|
-
export interface IDateInputProps extends Omit<IInputProps, 'value' | 'beforeMaskedStateChange' | 'onChange'
|
|
4
|
+
export interface IDateInputProps extends Omit<IReplaceTweakStylesProps<IInputProps, IDateInputStyles>, 'value' | 'beforeMaskedStateChange' | 'onChange'> {
|
|
5
5
|
date?: string;
|
|
6
6
|
/** @default '' */
|
|
7
7
|
startDate?: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FC, SyntheticEvent } from 'react';
|
|
2
2
|
import { default as ReactDatePicker } from 'react-datepicker';
|
|
3
|
-
import {
|
|
3
|
+
import { ITweakStylesProps } from '../../types';
|
|
4
4
|
import { IDateInputProps } from '../DateInput';
|
|
5
5
|
import { IDatePickerLocale } from './constants';
|
|
6
6
|
import { IDatePickerBaseProps, IRange } from './types';
|
|
7
7
|
import { IDatePickerStyles } from './DatePicker.styles';
|
|
8
|
-
export interface IDatePickerProps extends IDatePickerBaseProps,
|
|
8
|
+
export interface IDatePickerProps extends IDatePickerBaseProps, ITweakStylesProps<IDatePickerStyles> {
|
|
9
9
|
selectedDate?: Date | null;
|
|
10
10
|
locale: IDatePickerLocale;
|
|
11
11
|
months?: string[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ReactDatePickerCustomHeaderProps as BaseProps } from 'react-datepicker';
|
|
3
|
-
import {
|
|
3
|
+
import { ITweakStylesProps } from '../../../../types';
|
|
4
4
|
import { IDatePickerHeaderStyles } from './DatePickerHeader.styles';
|
|
5
|
-
export interface IDatePickerHeaderProps extends BaseProps,
|
|
5
|
+
export interface IDatePickerHeaderProps extends BaseProps, ITweakStylesProps<IDatePickerHeaderStyles> {
|
|
6
6
|
months?: string[];
|
|
7
7
|
}
|
|
8
8
|
export declare const DatePickerHeader: FC<IDatePickerHeaderProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ITweakStylesProps } from '../../types';
|
|
3
3
|
import { IFlagStyles } from './Flag.styles';
|
|
4
|
-
export interface IFlagProps extends
|
|
4
|
+
export interface IFlagProps extends ITweakStylesProps<IFlagStyles> {
|
|
5
5
|
/** @default '' */
|
|
6
6
|
countryCode?: string;
|
|
7
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ITweakStylesProps } from '../../../../types';
|
|
3
3
|
import { ITableRow, IValueComponentProps, IFlexibleTableConfigType, IFlexibleTableRenderMode, IHeaderContent } from '../../types';
|
|
4
4
|
import { IFlexibleTableCellStyles } from './FlexibleTableCell.styles';
|
|
5
|
-
export interface IFlexibleTableCellProps<Row extends ITableRow, HeaderContent extends IHeaderContent<Row>> extends
|
|
5
|
+
export interface IFlexibleTableCellProps<Row extends ITableRow, HeaderContent extends IHeaderContent<Row>> extends ITweakStylesProps<IFlexibleTableCellStyles>, Pick<IValueComponentProps<Row, unknown>, 'isFocusedRow' | 'isActiveRow' | 'isNestedComponentExpanded' | 'isRowNestedComponentExpanded'> {
|
|
6
6
|
row: Row;
|
|
7
7
|
columnName: keyof Row;
|
|
8
8
|
updateNestedComponent: (component: ReactNode, cellKey: keyof Row) => void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IReplaceTweakStylesProps } from '../../../../types';
|
|
3
3
|
import { ICheckboxProps } from '../../../Checkbox';
|
|
4
4
|
import { IDocActionsView } from './types';
|
|
5
5
|
import { IDocActionsStyles } from './DocActions.styles';
|
|
6
|
-
export interface IDocActionsProps extends
|
|
6
|
+
export interface IDocActionsProps extends IReplaceTweakStylesProps<ICheckboxProps<never>, IDocActionsStyles> {
|
|
7
7
|
title: string;
|
|
8
8
|
/** @default 'neutral' */
|
|
9
9
|
view?: IDocActionsView;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IReplaceTweakStylesProps } from '../../types';
|
|
3
3
|
import { INumberInputProps } from '../NumberInput';
|
|
4
4
|
import { IIncrementInputStyles } from './IncrementInput.styles';
|
|
5
|
-
export interface IIncrementInputProps extends Omit<INumberInputProps, 'canBeFloat' | 'precision'
|
|
5
|
+
export interface IIncrementInputProps extends Omit<IReplaceTweakStylesProps<INumberInputProps, IIncrementInputStyles>, 'canBeFloat' | 'precision'> {
|
|
6
6
|
/** @default 1 */
|
|
7
7
|
step?: number;
|
|
8
8
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ITweakStylesProps } from '../../../../types';
|
|
3
3
|
import { IMultiSelectListValues } from '../../../MultiSelectList';
|
|
4
4
|
import { IMultiSelectInputStyles } from './MultiSelectInput.styles';
|
|
5
|
-
export interface IMultiSelectInputProps<Value> extends
|
|
5
|
+
export interface IMultiSelectInputProps<Value> extends ITweakStylesProps<IMultiSelectInputStyles> {
|
|
6
6
|
value?: IMultiSelectListValues<Value>;
|
|
7
7
|
isOpen: boolean;
|
|
8
8
|
isDisabled: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IReplaceTweakStylesProps } from '../../types';
|
|
3
3
|
import { IInputProps } from '../Input';
|
|
4
4
|
import { IChangePhoneInputEvent, IPhoneValue } from './types';
|
|
5
5
|
import { IPhoneInputStyles } from './PhoneInput.styles';
|
|
6
|
-
export interface IPhoneInputProps extends Omit<IInputProps, 'value' | 'onChange' | 'type' | 'mask' | 'units' | 'placeholder'
|
|
6
|
+
export interface IPhoneInputProps extends Omit<IReplaceTweakStylesProps<IInputProps, IPhoneInputStyles>, 'value' | 'onChange' | 'type' | 'mask' | 'units' | 'placeholder'> {
|
|
7
7
|
/** @default 'ru' */
|
|
8
8
|
locale?: string;
|
|
9
9
|
/** @default 'Поиск' */
|
package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ITweakStylesProps } from '../../../../types';
|
|
3
3
|
import { IChangeInputEvent } from '../../../Input';
|
|
4
4
|
import { IPhoneInfo } from '../../types';
|
|
5
5
|
import { IPhoneInputCountryListStyles } from './PhoneInputCountryList.styles';
|
|
6
|
-
export interface IPhoneInputCountryListProps extends
|
|
6
|
+
export interface IPhoneInputCountryListProps extends ITweakStylesProps<IPhoneInputCountryListStyles> {
|
|
7
7
|
selectedCountryCode?: string;
|
|
8
8
|
locale: string;
|
|
9
9
|
placeholder: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IReplaceTweakStylesProps } from '../../types';
|
|
2
2
|
import { IInputProps } from '../Input';
|
|
3
3
|
import { ISearchInputStyles } from './SearchInput.styles';
|
|
4
|
-
export type ISearchInputProps = Omit<IInputProps, 'type' | 'label' | 'isInvalid' | 'errorMessage' | 'isActive' | '
|
|
5
|
-
export declare const SearchInput: import('react').ForwardRefExoticComponent<
|
|
4
|
+
export type ISearchInputProps = Omit<IReplaceTweakStylesProps<IInputProps, ISearchInputStyles>, 'type' | 'label' | 'isInvalid' | 'errorMessage' | 'isActive' | 'startIcon'>;
|
|
5
|
+
export declare const SearchInput: import('react').ForwardRefExoticComponent<ISearchInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ReactNode, Ref, SyntheticEvent } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IDropdownWithPopperOptions, IReplaceTweakStylesProps } from '../../types';
|
|
3
3
|
import { IIcon } from '../Icon';
|
|
4
4
|
import { IInputProps } from '../Input';
|
|
5
5
|
import { ISearchInputProps } from '../SearchInput';
|
|
6
6
|
import { IChangeSelectEvent, IMultipleSelectValue, ISelectFooter } from './types';
|
|
7
7
|
import { ISelectStyles } from './Select.styles';
|
|
8
|
-
export interface ISelectProps<Value> extends Omit<IInputProps, 'value' | 'onChange' | 'onBlur' | 'type'
|
|
8
|
+
export interface ISelectProps<Value> extends Omit<IReplaceTweakStylesProps<IInputProps, ISelectStyles>, 'value' | 'onChange' | 'onBlur' | 'type'> {
|
|
9
9
|
header?: ReactNode;
|
|
10
10
|
footer?: ISelectFooter<Value>;
|
|
11
11
|
defaultOptionLabel?: ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties, FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ITweakStylesProps } from '../../types';
|
|
3
3
|
import { ISkeletonStyles } from './Skeleton.styles';
|
|
4
|
-
export interface ISkeletonProps extends
|
|
4
|
+
export interface ISkeletonProps extends ITweakStylesProps<ISkeletonStyles> {
|
|
5
5
|
height?: CSSProperties['height'];
|
|
6
6
|
}
|
|
7
7
|
export declare const Skeleton: FC<ISkeletonProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ITweakStylesProps } from '../../../../types';
|
|
3
3
|
import { IDotsPreloaderStyles } from './DotsPreloader.styles';
|
|
4
|
-
export type IDotsPreloaderProps =
|
|
4
|
+
export type IDotsPreloaderProps = ITweakStylesProps<IDotsPreloaderStyles>;
|
|
5
5
|
export declare const DotsPreloader: FC<IDotsPreloaderProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ITweakStylesProps } from '../../../../types';
|
|
3
3
|
import { IPreloaderSvgType } from '../../types';
|
|
4
4
|
import { ISvgPreloaderStyles } from './SvgPreloader.styles';
|
|
5
|
-
export interface ISvgPreloaderProps extends
|
|
5
|
+
export interface ISvgPreloaderProps extends ITweakStylesProps<ISvgPreloaderStyles> {
|
|
6
6
|
type: IPreloaderSvgType;
|
|
7
7
|
}
|
|
8
8
|
export declare const SvgPreloader: FC<ISvgPreloaderProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IReplaceTweakStylesProps } from '../../types';
|
|
3
3
|
import { ITooltipProps } from '../Tooltip';
|
|
4
4
|
import { IWithPopupProps } from '../WithPopup';
|
|
5
5
|
import { IWithTooltipStyles } from './WithTooltip.styles';
|
|
6
|
-
export interface IWithTooltipProps extends Omit<IWithPopupProps, 'trigger' | 'children' | 'placement' | 'eventType' | 'isTriggerWrapped'
|
|
6
|
+
export interface IWithTooltipProps extends Omit<IReplaceTweakStylesProps<IWithPopupProps, IWithTooltipStyles>, 'trigger' | 'children' | 'placement' | 'eventType' | 'isTriggerWrapped'> {
|
|
7
7
|
children: IWithPopupProps['trigger'];
|
|
8
8
|
/** @default 'hover' */
|
|
9
9
|
eventType?: IWithPopupProps['eventType'];
|