@true-engineering/true-react-common-ui-kit 4.0.0-alpha44 → 4.0.0-alpha45
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 +2 -2
- package/dist/components/ControlWrapper/constants.d.ts +1 -0
- package/dist/components/ControlWrapper/index.d.ts +1 -0
- package/dist/components/ControlWrapper/types.d.ts +2 -0
- package/dist/components/index.d.ts +0 -1
- package/dist/helpers/misc.d.ts +1 -0
- package/dist/true-react-common-ui-kit.js +169 -259
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +169 -259
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +3 -6
- package/src/components/AccountInfo/AccountInfo.stories.tsx +19 -27
- package/src/components/AddButton/AddButton.stories.tsx +14 -17
- package/src/components/Button/Button.stories.tsx +7 -24
- package/src/components/Checkbox/Checkbox.stories.tsx +24 -26
- package/src/components/CloseButton/CloseButton.stories.tsx +5 -6
- package/src/components/Colors/Colors.stories.tsx +63 -3
- package/src/components/ControlWrapper/ControlWrapper.stories.tsx +43 -38
- package/src/components/ControlWrapper/ControlWrapper.tsx +2 -11
- package/src/components/ControlWrapper/constants.ts +11 -0
- package/src/components/ControlWrapper/index.ts +1 -0
- package/src/components/ControlWrapper/types.ts +3 -0
- package/src/components/DateInput/DateInput.stories.tsx +13 -30
- package/src/components/DatePicker/DatePicker.stories.tsx +15 -52
- package/src/components/Description/Description.stories.tsx +11 -16
- package/src/components/FileInput/FileInput.stories.tsx +59 -63
- package/src/components/FileItem/FileItem.stories.tsx +46 -45
- package/src/components/FiltersPane/FiltersPane.stories.tsx +27 -30
- package/src/components/Flag/Flag.stories.tsx +15 -20
- package/src/components/FlexibleTable/FlexibleTable.stories.tsx +47 -50
- package/src/components/FloatDocActions/FloatDocActions.stories.tsx +18 -24
- package/src/components/Icon/Icon.stories.tsx +9 -5
- package/src/components/IconButton/IconButton.stories.tsx +7 -11
- package/src/components/IncrementInput/IncrementInput.stories.tsx +25 -25
- package/src/components/Input/Input.stories.tsx +35 -61
- package/src/components/List/List.stories.tsx +22 -17
- package/src/components/List/List.styles.ts +2 -1
- package/src/components/Modal/Modal.stories.tsx +50 -59
- package/src/components/MoreMenu/MoreMenu.stories.tsx +24 -15
- package/src/components/MultiSelect/MultiSelect.stories.tsx +23 -20
- package/src/components/NewMoreMenu/NewMoreMenu.stories.tsx +42 -40
- package/src/components/Notification/Notification.stories.tsx +34 -32
- package/src/components/NumberInput/NumberInput.stories.tsx +27 -27
- package/src/components/PhoneInput/PhoneInput.stories.tsx +28 -54
- package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.stories.tsx +5 -11
- package/src/components/RadioButton/RadioButton.stories.tsx +27 -30
- package/src/components/SearchInput/SearchInput.stories.tsx +14 -14
- package/src/components/Select/CustomSelect.stories.tsx +29 -33
- package/src/components/Select/MultiSelect.stories.tsx +40 -45
- package/src/components/Select/Select.stories.tsx +40 -45
- package/src/components/Selector/Selector.stories.tsx +25 -27
- package/src/components/Skeleton/Skeleton.stories.tsx +13 -12
- package/src/components/SmartInput/SmartInput.stories.tsx +23 -23
- package/src/components/Status/Status.stories.tsx +28 -29
- package/src/components/Switch/Switch.stories.tsx +19 -26
- package/src/components/TextArea/TextArea.stories.tsx +31 -34
- package/src/components/TextButton/TextButton.stories.tsx +6 -16
- package/src/components/TextWithInfo/TextWithInfo.stories.tsx +13 -21
- package/src/components/TextWithTooltip/TextWithTooltip.stories.tsx +26 -25
- package/src/components/ThemedPreloader/ThemedPreloader.stories.tsx +12 -23
- package/src/components/Toaster/Toaster.stories.tsx +16 -14
- package/src/components/Tooltip/Tooltip.stories.tsx +5 -4
- package/src/components/WithMessages/WithMessages.stories.tsx +16 -20
- package/src/components/WithPopup/WithPopup.stories.tsx +27 -26
- package/src/components/WithTooltip/WithTooltip.stories.tsx +28 -28
- package/src/components/index.ts +0 -1
- package/src/helpers/misc.ts +3 -0
- package/dist/components/Colors/Colors.d.ts +0 -2
- package/dist/components/Colors/Colors.styles.d.ts +0 -1
- package/dist/components/Colors/index.d.ts +0 -1
- package/src/components/Colors/Colors.styles.ts +0 -36
- package/src/components/Colors/Colors.tsx +0 -26
- package/src/components/Colors/index.ts +0 -1
|
@@ -2,14 +2,14 @@ import { FC, ReactNode } from 'react';
|
|
|
2
2
|
import { IMaybeArray } from '../../theme';
|
|
3
3
|
import { IClickHandlerEvent, ICommonProps } from '../../types';
|
|
4
4
|
import { IIcon } from '../Icon';
|
|
5
|
-
import { IControlWrapperIcon, IControlWrapperSize } from './types';
|
|
5
|
+
import { IControlWrapperIcon, IControlWrapperSize, IGroupPlacement } from './types';
|
|
6
6
|
import { IControlWrapperStyles } from './ControlWrapper.styles';
|
|
7
7
|
export interface IControlWrapperProps extends ICommonProps<IControlWrapperStyles> {
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
label?: ReactNode;
|
|
10
10
|
icon?: IMaybeArray<IIcon | IControlWrapperIcon>;
|
|
11
11
|
size?: IControlWrapperSize;
|
|
12
|
-
groupPlacement?:
|
|
12
|
+
groupPlacement?: IGroupPlacement;
|
|
13
13
|
/** @default false */
|
|
14
14
|
isInvalid?: boolean;
|
|
15
15
|
/** @default false */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GROUP_PLACEMENTS: readonly ["left", "right", "middle", "top", "bottom", "top-left", "top-right", "bottom-left", "bottom-right"];
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { type Key } from 'react';
|
|
2
2
|
import { IClickHandlerEvent } from '../../types';
|
|
3
3
|
import { IIcon } from '../Icon';
|
|
4
|
+
import { GROUP_PLACEMENTS } from './constants';
|
|
4
5
|
export interface IControlWrapperSizes {
|
|
5
6
|
}
|
|
6
7
|
export type IControlWrapperSize = keyof IControlWrapperSizes;
|
|
8
|
+
export type IGroupPlacement = (typeof GROUP_PLACEMENTS)[number];
|
|
7
9
|
export interface IControlWrapperIcon {
|
|
8
10
|
key?: Key;
|
|
9
11
|
iconComponent: IIcon;
|
package/dist/helpers/misc.d.ts
CHANGED
|
@@ -18,3 +18,4 @@ export declare const getNumberLength: (n?: number) => number;
|
|
|
18
18
|
export declare const trimStringToMaxLength: (val: string, maxLength: number) => string;
|
|
19
19
|
/** @deprecated Используйте `addDataAttributes` из `true-react-platform-helpers` */
|
|
20
20
|
export declare const addDataAttributes: (data?: IDataAttributes) => IDataAttributes;
|
|
21
|
+
export declare const excludeStorybookParams: (params: string[]) => RegExp;
|