@true-engineering/true-react-common-ui-kit 4.0.0-alpha51 → 4.0.0-alpha53
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/ControlWrapper/ControlWrapper.d.ts +3 -0
- package/dist/components/ControlWrapper/ControlWrapper.styles.d.ts +1 -1
- package/dist/components/Input/InputBase.d.ts +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +2 -2
- package/dist/components/Select/components/SelectList/SelectList.d.ts +3 -1
- package/dist/true-react-common-ui-kit.js +1 -1
- 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/package.json +1 -1
- package/src/components/ControlWrapper/ControlWrapper.stories.tsx +3 -2
- package/src/components/ControlWrapper/ControlWrapper.styles.ts +8 -0
- package/src/components/ControlWrapper/ControlWrapper.tsx +57 -31
- package/src/components/IncrementInput/IncrementInput.stories.tsx +1 -1
- package/src/components/Input/Input.stories.tsx +2 -1
- package/src/components/Input/Input.styles.ts +2 -3
- package/src/components/Input/InputBase.tsx +7 -2
- package/src/components/PhoneInput/PhoneInput.stories.tsx +2 -2
- package/src/components/SearchInput/SearchInput.stories.tsx +5 -0
- package/src/components/SearchInput/SearchInput.styles.ts +6 -12
- package/src/components/SearchInput/SearchInput.tsx +2 -2
- package/src/components/Select/MultiSelect.stories.tsx +2 -2
- package/src/components/Select/Select.stories.tsx +2 -2
- package/src/components/Select/Select.tsx +6 -1
- package/src/components/Select/components/SelectList/SelectList.tsx +5 -1
|
@@ -7,7 +7,10 @@ import { IControlWrapperStyles } from './ControlWrapper.styles';
|
|
|
7
7
|
export interface IControlWrapperProps extends ICommonProps<IControlWrapperStyles> {
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
label?: ReactNode;
|
|
10
|
+
/** @deprecated */
|
|
10
11
|
icon?: IMaybeArray<IIcon | IControlWrapperIcon>;
|
|
12
|
+
startIcon?: IMaybeArray<IIcon | IControlWrapperIcon>;
|
|
13
|
+
endIcon?: IMaybeArray<IIcon | IControlWrapperIcon>;
|
|
11
14
|
size?: IControlWrapperSize;
|
|
12
15
|
groupPlacement?: IGroupPlacement;
|
|
13
16
|
/** @default false */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ITweakStyles } from '../../theme';
|
|
2
2
|
import { IThemedPreloaderStyles } from '../ThemedPreloader';
|
|
3
3
|
import { IControlWrapperSizes } from './types';
|
|
4
|
-
export declare const useStyles: import('../../theme').IUseStyles<"invalid" | "icon" | "disabled" | "loader" | "loading" | "label" | "requiredLabel" | "withValue" | "clearIcon" | "focused" | "wrapper" | "controlWrapper" | "minContent" | "activeLabel" | "disabledLabel" | "controls" | "iconInner" | "customIcon" | "endIcon" | "activeIcon" | "placement-top" | "placement-bottom" | "placement-top-left" | "placement-top-right" | "placement-bottom-left" | "placement-bottom-right" | "placement-left" | "placement-right" | "placement-middle">;
|
|
4
|
+
export declare const useStyles: import('../../theme').IUseStyles<"invalid" | "icon" | "disabled" | "loader" | "loading" | "label" | "requiredLabel" | "withValue" | "clearIcon" | "focused" | "wrapper" | "controlWrapper" | "minContent" | "activeLabel" | "disabledLabel" | "controls" | "startControls" | "iconInner" | "customIcon" | "startIcon" | "endIcon" | "activeIcon" | "withStartControls" | "placement-top" | "placement-bottom" | "placement-top-left" | "placement-top-right" | "placement-bottom-left" | "placement-bottom-right" | "placement-left" | "placement-right" | "placement-middle">;
|
|
5
5
|
export type IControlWrapperStyles = ITweakStyles<typeof useStyles, {
|
|
6
6
|
tweakPreloader: IThemedPreloaderStyles;
|
|
7
7
|
} & IControlWrapperSizes>;
|
|
@@ -4,7 +4,7 @@ import { ICommonProps } from '../../types';
|
|
|
4
4
|
import { IControlWrapperProps } from '../ControlWrapper';
|
|
5
5
|
import { IChangeInputEvent } from './types';
|
|
6
6
|
import { IInputStyles } from './Input.styles';
|
|
7
|
-
export interface IInputBaseProps extends ICommonProps<IInputStyles>, Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'size' | 'className'>, Pick<IControlWrapperProps, 'label' | 'icon' | 'size' | 'groupPlacement' | 'isInvalid' | 'isRequired' | 'isLoading' | 'isDisabled'>, Pick<Partial<ReactInputMaskBaseProps>, 'mask' | 'maskPlaceholder' | 'alwaysShowMask' | 'beforeMaskedStateChange'> {
|
|
7
|
+
export interface IInputBaseProps extends ICommonProps<IInputStyles>, Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'size' | 'className'>, Pick<IControlWrapperProps, 'label' | 'icon' | 'endIcon' | 'startIcon' | 'size' | 'groupPlacement' | 'isInvalid' | 'isRequired' | 'isLoading' | 'isDisabled'>, Pick<Partial<ReactInputMaskBaseProps>, 'mask' | 'maskPlaceholder' | 'alwaysShowMask' | 'beforeMaskedStateChange'> {
|
|
8
8
|
value?: string;
|
|
9
9
|
units?: ReactNode;
|
|
10
10
|
/** @default false */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ICommonProps } 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' | 'tweakStyles'> & ICommonProps<ISearchInputStyles>;
|
|
5
|
-
export declare const SearchInput: import('react').ForwardRefExoticComponent<Omit<IInputProps, "tweakStyles" | "label" | "isInvalid" | "type" | "isActive" | "errorMessage"> & import('../../types').IDataAttributesProps & import('../../types').ITweakStylesProps<ISearchInputStyles> & import('react').RefAttributes<HTMLInputElement>>;
|
|
4
|
+
export type ISearchInputProps = Omit<IInputProps, 'type' | 'label' | 'isInvalid' | 'errorMessage' | 'isActive' | 'tweakStyles' | 'startIcon'> & ICommonProps<ISearchInputStyles>;
|
|
5
|
+
export declare const SearchInput: import('react').ForwardRefExoticComponent<Omit<IInputProps, "tweakStyles" | "label" | "isInvalid" | "startIcon" | "type" | "isActive" | "errorMessage"> & import('../../types').IDataAttributesProps & import('../../types').ITweakStylesProps<ISearchInputStyles> & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ICommonProps } from '../../../../types';
|
|
3
|
+
import { ISelectProps } from '../../Select';
|
|
3
4
|
import { ISelectListItemProps } from '../SelectListItem';
|
|
4
5
|
import { ISelectListStyles } from './SelectList.styles';
|
|
5
6
|
export interface ISelectListProps<Value> extends ICommonProps<ISelectListStyles>, Pick<ISelectListItemProps, 'onToggleCheckbox' | 'onOptionSelect' | 'isMultiSelect'> {
|
|
6
7
|
options: Value[] | readonly Value[];
|
|
8
|
+
size?: ISelectProps<Value>['size'];
|
|
7
9
|
focusedIndex?: number;
|
|
8
10
|
activeValue?: Value | Value[];
|
|
9
11
|
noMatchesLabel?: string;
|
|
@@ -20,4 +22,4 @@ export interface ISelectListProps<Value> extends ICommonProps<ISelectListStyles>
|
|
|
20
22
|
convertValueToReactNode?: (value: Value, isDisabled: boolean) => ReactNode;
|
|
21
23
|
convertValueToId: (value: Value) => string | undefined;
|
|
22
24
|
}
|
|
23
|
-
export declare function SelectList<Value>({ options, focusedIndex, activeValue, defaultOptionLabel, noMatchesLabel, isLoading, loadingLabel, tweakStyles, testId, shouldScrollToList, areAllOptionsSelected, customListHeader, customListFooter, isMultiSelect, isOptionDisabled, allOptionsLabel, onOptionSelect, onToggleCheckbox, convertValueToString, convertValueToReactNode, convertValueToId, }: ISelectListProps<Value>): JSX.Element;
|
|
25
|
+
export declare function SelectList<Value>({ options, focusedIndex, size, activeValue, defaultOptionLabel, noMatchesLabel, isLoading, loadingLabel, tweakStyles, testId, shouldScrollToList, areAllOptionsSelected, customListHeader, customListFooter, isMultiSelect, isOptionDisabled, allOptionsLabel, onOptionSelect, onToggleCheckbox, convertValueToString, convertValueToReactNode, convertValueToId, }: ISelectListProps<Value>): JSX.Element;
|