@true-engineering/true-react-common-ui-kit 4.0.0-alpha0 → 4.0.0-alpha1

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.
Files changed (46) hide show
  1. package/dist/components/ControlWrapper/ControlWrapper.styles.d.ts +1 -1
  2. package/dist/components/Input/Input.d.ts +3 -3
  3. package/dist/components/Input/Input.stories.d.ts +2 -2
  4. package/dist/components/Input/Input.styles.d.ts +3 -3
  5. package/dist/components/SearchInput/SearchInput.stories.d.ts +3 -3
  6. package/dist/components/Select/Select.styles.d.ts +8 -8
  7. package/dist/components/TextArea/TextArea.d.ts +2 -2
  8. package/dist/components/TextArea/TextArea.styles.d.ts +3 -3
  9. package/dist/components/WithMessages/WithMessages.d.ts +10 -0
  10. package/dist/components/{ControlGroup/ControlGroup.stories.d.ts → WithMessages/WithMessages.stories.d.ts} +2 -2
  11. package/dist/components/WithMessages/WithMessages.styles.d.ts +3 -0
  12. package/dist/components/WithMessages/index.d.ts +2 -0
  13. package/dist/components/index.d.ts +1 -1
  14. package/dist/theme/types.d.ts +2 -2
  15. package/dist/true-react-common-ui-kit.js +47 -54
  16. package/dist/true-react-common-ui-kit.js.map +1 -1
  17. package/dist/true-react-common-ui-kit.umd.cjs +47 -54
  18. package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
  19. package/package.json +1 -1
  20. package/src/components/ControlWrapper/ControlWrapper.styles.ts +1 -1
  21. package/src/components/ControlWrapper/ControlWrapper.tsx +1 -1
  22. package/src/components/DatePicker/components/DatePickerHeader/DatePickerHeader.styles.ts +1 -1
  23. package/src/components/FiltersPane/components/FilterSelect/FilterSelect.styles.ts +2 -2
  24. package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.ts +8 -2
  25. package/src/components/Input/Input.styles.ts +5 -2
  26. package/src/components/Input/Input.tsx +7 -7
  27. package/src/components/Input/InputBase.tsx +1 -0
  28. package/src/components/MultiSelectList/MultiSelectList.styles.ts +1 -1
  29. package/src/components/PhoneInput/PhoneInput.styles.ts +2 -2
  30. package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.styles.ts +1 -1
  31. package/src/components/SearchInput/SearchInput.styles.ts +1 -1
  32. package/src/components/Select/CustomSelect.stories.tsx +2 -2
  33. package/src/components/Select/Select.styles.ts +8 -2
  34. package/src/components/Select/Select.tsx +7 -29
  35. package/src/components/TextArea/TextArea.styles.ts +7 -3
  36. package/src/components/TextArea/TextArea.tsx +13 -9
  37. package/src/components/{ControlGroup/ControlGroup.stories.tsx → WithMessages/WithMessages.stories.tsx} +10 -10
  38. package/src/components/{ControlGroup/ControlGroup.styles.ts → WithMessages/WithMessages.styles.ts} +4 -3
  39. package/src/components/{ControlGroup/ControlGroup.tsx → WithMessages/WithMessages.tsx} +13 -9
  40. package/src/components/WithMessages/index.ts +2 -0
  41. package/src/components/index.ts +1 -1
  42. package/src/theme/types.ts +2 -2
  43. package/dist/components/ControlGroup/ControlGroup.d.ts +0 -10
  44. package/dist/components/ControlGroup/ControlGroup.styles.d.ts +0 -3
  45. package/dist/components/ControlGroup/index.d.ts +0 -2
  46. package/src/components/ControlGroup/index.ts +0 -2
@@ -1,6 +1,6 @@
1
1
  import { ITweakStyles } from '../../theme';
2
2
  import { IThemedPreloaderStyles } from '../ThemedPreloader';
3
- export declare const useStyles: import("../../theme").IUseStyles<"invalid" | "root" | "icon" | "disabled" | "loader" | "loading" | "label" | "requiredLabel" | "withValue" | "clearIcon" | "focused" | "minContent" | "activeLabel" | "disabledLabel" | "wrapper" | "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", unknown>;
3
+ 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", unknown>;
4
4
  export type IControlWrapperStyles = ITweakStyles<typeof useStyles, {
5
5
  tweakPreloader: IThemedPreloaderStyles;
6
6
  }>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { IControlGroupProps } from '../ControlGroup';
2
+ import { IWithMessagesProps } from '../WithMessages';
3
3
  import { IInputBaseProps } from './InputBase';
4
- export type IInputProps = IInputBaseProps & Pick<IControlGroupProps, 'infoMessage' | 'errorMessage'>;
5
- export declare const Input: import("react").ForwardRefExoticComponent<IInputBaseProps & Pick<IControlGroupProps, "infoMessage" | "errorMessage"> & import("react").RefAttributes<HTMLInputElement>>;
4
+ export type IInputProps = IInputBaseProps & Pick<IWithMessagesProps, 'infoMessage' | 'errorMessage'>;
5
+ export declare const Input: import("react").ForwardRefExoticComponent<IInputBaseProps & Pick<IWithMessagesProps, "infoMessage" | "errorMessage"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
3
  title: string;
4
- component: import("react").ForwardRefExoticComponent<import("./InputBase").IInputBaseProps & Pick<import("..").IControlGroupProps, "infoMessage" | "errorMessage"> & import("react").RefAttributes<HTMLInputElement>>;
4
+ component: import("react").ForwardRefExoticComponent<import("./InputBase").IInputBaseProps & Pick<import("..").IWithMessagesProps, "infoMessage" | "errorMessage"> & import("react").RefAttributes<HTMLInputElement>>;
5
5
  argTypes: {
6
6
  type: {
7
7
  control: string;
@@ -22,4 +22,4 @@ declare const _default: {
22
22
  };
23
23
  };
24
24
  export default _default;
25
- export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("./InputBase").IInputBaseProps & Pick<import("..").IControlGroupProps, "infoMessage" | "errorMessage"> & import("react").RefAttributes<HTMLInputElement>>;
25
+ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("./InputBase").IInputBaseProps & Pick<import("..").IWithMessagesProps, "infoMessage" | "errorMessage"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -1,8 +1,8 @@
1
1
  import { ITweakStyles } from '../../theme';
2
- import { IControlGroupStyles } from '../ControlGroup';
3
2
  import { IControlWrapperStyles } from '../ControlWrapper';
4
- export declare const useStyles: import("../../theme").IUseStyles<"input" | "inputContent" | "autoSizeWrapper" | "autoSized" | "withUnits" | "withLabel" | "fakeValue" | "units" | "focusedInput" | "disabledInput" | "invalidInput", unknown>;
3
+ import { IWithMessagesStyles } from '../WithMessages';
4
+ export declare const useStyles: import("../../theme").IUseStyles<"input" | "withValue" | "inputContent" | "autoSizeWrapper" | "autoSized" | "withUnits" | "withLabel" | "fakeValue" | "units" | "focusedInput" | "disabledInput" | "invalidInput", unknown>;
5
5
  export type IInputStyles = ITweakStyles<typeof useStyles, {
6
6
  tweakControlWrapper: IControlWrapperStyles;
7
- tweakControlGroup: IControlGroupStyles;
7
+ tweakWithMessages: IWithMessagesStyles;
8
8
  }>;
@@ -4,13 +4,13 @@ declare const _default: {
4
4
  };
5
5
  export default _default;
6
6
  export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, Omit<import("..").IInputProps, "tweakStyles" | "label" | "isInvalid" | "type" | "isActive" | "errorMessage"> & import("../..").IDataAttributesProps & import("../..").ITweakStylesProps<Partial<import("jss").Styles<"root" | "icon", unknown, undefined>> & Partial<{
7
- tweakInput: Partial<import("jss").Styles<"input" | "inputContent" | "autoSizeWrapper" | "autoSized" | "withUnits" | "withLabel" | "fakeValue" | "units" | "focusedInput" | "disabledInput" | "invalidInput", unknown, undefined>> & Partial<{
8
- tweakControlWrapper: Partial<import("jss").Styles<"invalid" | "root" | "icon" | "disabled" | "loader" | "loading" | "label" | "requiredLabel" | "withValue" | "clearIcon" | "focused" | "minContent" | "activeLabel" | "disabledLabel" | "wrapper" | "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", unknown, undefined>> & Partial<{
7
+ tweakInput: Partial<import("jss").Styles<"input" | "withValue" | "inputContent" | "autoSizeWrapper" | "autoSized" | "withUnits" | "withLabel" | "fakeValue" | "units" | "focusedInput" | "disabledInput" | "invalidInput", unknown, undefined>> & Partial<{
8
+ tweakControlWrapper: Partial<import("jss").Styles<"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", unknown, undefined>> & Partial<{
9
9
  tweakPreloader: Partial<import("jss").Styles<"root" | "default" | "currentColor" | "dots" | "logo", unknown, undefined>> & Partial<{
10
10
  tweakDotsPreloader: Partial<import("jss").Styles<"root" | "dot" | "fadedDot" | "@keyframes FadedDots", unknown, undefined>> & Partial<unknown>;
11
11
  tweakSvgPreloader: Partial<import("jss").Styles<"root", unknown, undefined>> & Partial<unknown>;
12
12
  }>;
13
13
  }>;
14
- tweakControlGroup: Partial<import("jss").Styles<"error" | "root" | "horizontal" | "vertical" | "children" | "info" | "message", unknown, undefined>> & Partial<unknown>;
14
+ tweakWithMessages: Partial<import("jss").Styles<"error" | "horizontal" | "vertical" | "children" | "info" | "withMessages" | "message", unknown, undefined>> & Partial<unknown>;
15
15
  }>;
16
16
  }>>>;
@@ -1,33 +1,33 @@
1
1
  import { type ITweakStyles } from '../../theme';
2
- import { IControlGroupStyles } from '../ControlGroup';
3
2
  import { type IInputStyles } from '../Input';
4
3
  import { type ISearchInputStyles } from '../SearchInput';
4
+ import { IWithMessagesStyles } from '../WithMessages';
5
5
  import { type ISelectListStyles } from './components';
6
6
  export declare const useStyles: import("../../theme").IUseStyles<"root" | "icon" | "disabled" | "inputWrapper" | "arrow" | "listWrapper" | "withoutPopper" | "listWrapperInBody" | "activeArrow" | "counter" | "iconWrapper", unknown>;
7
- export declare const readonlyInputStyles: Partial<import("jss").Styles<"input" | "inputContent" | "autoSizeWrapper" | "autoSized" | "withUnits" | "withLabel" | "fakeValue" | "units" | "focusedInput" | "disabledInput" | "invalidInput", unknown, undefined>> & Partial<{
8
- tweakControlWrapper: Partial<import("jss").Styles<"invalid" | "root" | "icon" | "disabled" | "loader" | "loading" | "label" | "requiredLabel" | "withValue" | "clearIcon" | "focused" | "minContent" | "activeLabel" | "disabledLabel" | "wrapper" | "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", unknown, undefined>> & Partial<{
7
+ export declare const readonlyInputStyles: Partial<import("jss").Styles<"input" | "withValue" | "inputContent" | "autoSizeWrapper" | "autoSized" | "withUnits" | "withLabel" | "fakeValue" | "units" | "focusedInput" | "disabledInput" | "invalidInput", unknown, undefined>> & Partial<{
8
+ tweakControlWrapper: Partial<import("jss").Styles<"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", unknown, undefined>> & Partial<{
9
9
  tweakPreloader: Partial<import("jss").Styles<"root" | "default" | "currentColor" | "dots" | "logo", unknown, undefined>> & Partial<{
10
10
  tweakDotsPreloader: Partial<import("jss").Styles<"root" | "dot" | "fadedDot" | "@keyframes FadedDots", unknown, undefined>> & Partial<unknown>;
11
11
  tweakSvgPreloader: Partial<import("jss").Styles<"root", unknown, undefined>> & Partial<unknown>;
12
12
  }>;
13
13
  }>;
14
- tweakControlGroup: Partial<import("jss").Styles<"error" | "root" | "horizontal" | "vertical" | "children" | "info" | "message", unknown, undefined>> & Partial<unknown>;
14
+ tweakWithMessages: Partial<import("jss").Styles<"error" | "horizontal" | "vertical" | "children" | "info" | "withMessages" | "message", unknown, undefined>> & Partial<unknown>;
15
15
  }>;
16
- export declare const readonlyMultiSelectStyles: Partial<import("jss").Styles<"input" | "inputContent" | "autoSizeWrapper" | "autoSized" | "withUnits" | "withLabel" | "fakeValue" | "units" | "focusedInput" | "disabledInput" | "invalidInput", unknown, undefined>> & Partial<{
17
- tweakControlWrapper: Partial<import("jss").Styles<"invalid" | "root" | "icon" | "disabled" | "loader" | "loading" | "label" | "requiredLabel" | "withValue" | "clearIcon" | "focused" | "minContent" | "activeLabel" | "disabledLabel" | "wrapper" | "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", unknown, undefined>> & Partial<{
16
+ export declare const readonlyMultiSelectStyles: Partial<import("jss").Styles<"input" | "withValue" | "inputContent" | "autoSizeWrapper" | "autoSized" | "withUnits" | "withLabel" | "fakeValue" | "units" | "focusedInput" | "disabledInput" | "invalidInput", unknown, undefined>> & Partial<{
17
+ tweakControlWrapper: Partial<import("jss").Styles<"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", unknown, undefined>> & Partial<{
18
18
  tweakPreloader: Partial<import("jss").Styles<"root" | "default" | "currentColor" | "dots" | "logo", unknown, undefined>> & Partial<{
19
19
  tweakDotsPreloader: Partial<import("jss").Styles<"root" | "dot" | "fadedDot" | "@keyframes FadedDots", unknown, undefined>> & Partial<unknown>;
20
20
  tweakSvgPreloader: Partial<import("jss").Styles<"root", unknown, undefined>> & Partial<unknown>;
21
21
  }>;
22
22
  }>;
23
- tweakControlGroup: Partial<import("jss").Styles<"error" | "root" | "horizontal" | "vertical" | "children" | "info" | "message", unknown, undefined>> & Partial<unknown>;
23
+ tweakWithMessages: Partial<import("jss").Styles<"error" | "horizontal" | "vertical" | "children" | "info" | "withMessages" | "message", unknown, undefined>> & Partial<unknown>;
24
24
  }>;
25
25
  export declare const getInputStyles: ({ hasReadonlyInput, isMultiSelect, }: {
26
26
  hasReadonlyInput: boolean;
27
27
  isMultiSelect?: boolean | undefined;
28
28
  }) => IInputStyles;
29
29
  export type ISelectStyles = ITweakStyles<typeof useStyles, {
30
- tweakControlGroup: IControlGroupStyles;
30
+ tweakWithMessages: IWithMessagesStyles;
31
31
  tweakInput: IInputStyles;
32
32
  tweakSelectList: ISelectListStyles;
33
33
  tweakSearchInput: ISearchInputStyles;
@@ -1,10 +1,10 @@
1
1
  import { FormEvent } from 'react';
2
2
  import { ICommonProps } from '../../types';
3
- import { IControlGroupProps } from '../ControlGroup';
4
3
  import { IControlWrapperProps } from '../ControlWrapper';
4
+ import { IWithMessagesProps } from '../WithMessages';
5
5
  import { ITextAreaHTMLBaseProps } from './types';
6
6
  import { ITextAreaStyles } from './TextArea.styles';
7
- export interface ITextAreaProps extends ICommonProps<ITextAreaStyles>, Pick<IControlWrapperProps, 'label' | 'isInvalid' | 'isRequired' | 'isDisabled'>, Pick<IControlGroupProps, 'infoMessage' | 'errorMessage'>, Pick<ITextAreaHTMLBaseProps, 'name' | 'maxLength' | 'rows' | 'onPaste' | 'onFocus' | 'onBlur'> {
7
+ export interface ITextAreaProps extends ICommonProps<ITextAreaStyles>, Pick<IControlWrapperProps, 'label' | 'isInvalid' | 'isRequired' | 'isDisabled'>, Pick<IWithMessagesProps, 'infoMessage' | 'errorMessage'>, Pick<ITextAreaHTMLBaseProps, 'name' | 'maxLength' | 'rows' | 'onPaste' | 'onFocus' | 'onBlur'> {
8
8
  value?: string;
9
9
  placeholder?: string;
10
10
  /** @default false */
@@ -1,9 +1,9 @@
1
1
  import { ITweakStyles } from '../../theme';
2
- import { IControlGroupStyles } from '../ControlGroup';
3
2
  import { IControlWrapperStyles } from '../ControlWrapper';
4
- export declare const useStyles: import("../../theme").IUseStyles<"textarea" | "autoSized" | "symbolsCount" | "symbolsCountError", unknown>;
3
+ import { IWithMessagesStyles } from '../WithMessages';
4
+ export declare const useStyles: import("../../theme").IUseStyles<"textarea" | "autoSized" | "wrapper" | "symbolsCount" | "symbolsCountError", unknown>;
5
5
  export declare const controlWrapperStyles: IControlWrapperStyles;
6
6
  export type ITextAreaStyles = ITweakStyles<typeof useStyles, {
7
- tweakControlGroup: IControlGroupStyles;
7
+ tweakWithMessages: IWithMessagesStyles;
8
8
  tweakControlWrapper: IControlWrapperStyles;
9
9
  }>;
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ import { ICommonProps } from '../../types';
3
+ import { IWithMessagesStyles } from './WithMessages.styles';
4
+ export interface IWithMessagesProps extends ICommonProps<IWithMessagesStyles> {
5
+ children: ReactNode;
6
+ infoMessage?: ReactNode;
7
+ errorMessage?: ReactNode;
8
+ controlsDirection?: 'horizontal' | 'vertical';
9
+ }
10
+ export declare const WithMessages: import("react").ForwardRefExoticComponent<IWithMessagesProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
3
  title: string;
4
- component: import("react").ForwardRefExoticComponent<import("./ControlGroup").IControlGroupProps & import("react").RefAttributes<HTMLDivElement>>;
4
+ component: import("react").ForwardRefExoticComponent<import("./WithMessages").IWithMessagesProps & import("react").RefAttributes<HTMLDivElement>>;
5
5
  };
6
6
  export default _default;
7
- export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("./ControlGroup").IControlGroupProps & import("react").RefAttributes<HTMLDivElement>>;
7
+ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("./WithMessages").IWithMessagesProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,3 @@
1
+ import { ITweakStyles } from '../../theme';
2
+ export declare const useStyles: import("../../theme").IUseStyles<"error" | "horizontal" | "vertical" | "children" | "info" | "withMessages" | "message", unknown>;
3
+ export type IWithMessagesStyles = ITweakStyles<typeof useStyles>;
@@ -0,0 +1,2 @@
1
+ export * from './WithMessages';
2
+ export type { IWithMessagesStyles } from './WithMessages.styles';
@@ -44,5 +44,5 @@ export * from './Tooltip';
44
44
  export * from './NewMoreMenu';
45
45
  export * from './WithPopup';
46
46
  export * from './WithTooltip';
47
- export * from './ControlGroup';
47
+ export * from './WithMessages';
48
48
  export * from './ControlWrapper';
@@ -1,6 +1,6 @@
1
1
  import { Styles } from 'react-jss';
2
2
  import { Classes, JssValue } from 'jss';
3
- import type { IAccountInfoStyles, IAddButtonStyles, IButtonStyles, ICheckboxStyles, ICloseButtonStyles, ICommonIcon, IComplexIcon, IControlGroupStyles, IControlWrapperStyles, ICssBaselineStyles, IDateInputStyles, IDatePickerHeaderStyles, IDatePickerStyles, IDescriptionStyles, IDotsPreloaderStyles, IFileInputStyles, IFileItemStyles, IFilterIntervalStyles, IFilterSelectStyles, IFiltersPaneSearchStyles, IFiltersPaneStyles, IFilterValueViewStyles, IFilterWithDatesStyles, IFilterWithPeriodStyles, IFilterWrapperStyles, IFlagStyles, IFlexibleTableCellStyles, IFlexibleTableRowStyles, IFlexibleTableStyles, IIconButtonStyles, IIconStyles, IIncrementInputStyles, IInputStyles, IListItemStyles, IListStyles, IModalStyles, IMoreMenuStyles, IMultiSelectInputStyles, IMultiSelectListStyles, IMultiSelectStyles, INewMoreMenuStyles, INotificationStyles, IPhoneInputCountryListStyles, IPhoneInputStyles, IPreloaderSvgType, IRadioButtonStyles, ISearchInputStyles, ISelectListStyles, ISelectorStyles, ISelectStyles, ISkeletonStyles, IStatusStyles, ISvgIcon, ISvgPreloaderStyles, ISwitchStyles, ITextAreaStyles, ITextButtonStyles, ITextWithInfoStyles, ITextWithTooltipStyles, IThemedPreloaderStyles, IToasterStyles, ITooltipStyles, IWithPopupStyles, IWithTooltipStyles } from '../components';
3
+ import type { IAccountInfoStyles, IAddButtonStyles, IButtonStyles, ICheckboxStyles, ICloseButtonStyles, ICommonIcon, IComplexIcon, IWithMessagesStyles, IControlWrapperStyles, ICssBaselineStyles, IDateInputStyles, IDatePickerHeaderStyles, IDatePickerStyles, IDescriptionStyles, IDotsPreloaderStyles, IFileInputStyles, IFileItemStyles, IFilterIntervalStyles, IFilterSelectStyles, IFiltersPaneSearchStyles, IFiltersPaneStyles, IFilterValueViewStyles, IFilterWithDatesStyles, IFilterWithPeriodStyles, IFilterWrapperStyles, IFlagStyles, IFlexibleTableCellStyles, IFlexibleTableRowStyles, IFlexibleTableStyles, IIconButtonStyles, IIconStyles, IIncrementInputStyles, IInputStyles, IListItemStyles, IListStyles, IModalStyles, IMoreMenuStyles, IMultiSelectInputStyles, IMultiSelectListStyles, IMultiSelectStyles, INewMoreMenuStyles, INotificationStyles, IPhoneInputCountryListStyles, IPhoneInputStyles, IPreloaderSvgType, IRadioButtonStyles, ISearchInputStyles, ISelectListStyles, ISelectorStyles, ISelectStyles, ISkeletonStyles, IStatusStyles, ISvgIcon, ISvgPreloaderStyles, ISwitchStyles, ITextAreaStyles, ITextButtonStyles, ITextWithInfoStyles, ITextWithTooltipStyles, IThemedPreloaderStyles, IToasterStyles, ITooltipStyles, IWithPopupStyles, IWithTooltipStyles } from '../components';
4
4
  export type IStyles<C extends string, P> = Styles<C, P, Partial<Styles<C, P>>>;
5
5
  export type IUseStyles<C extends string, P = unknown> = (data?: P & {
6
6
  theme?: Partial<Styles<C, P>>;
@@ -64,7 +64,7 @@ export interface IComponentStyles {
64
64
  Toaster: IToasterStyles;
65
65
  WithPopup: IWithPopupStyles;
66
66
  NewMoreMenu: INewMoreMenuStyles;
67
- ControlGroup: IControlGroupStyles;
67
+ WithMessages: IWithMessagesStyles;
68
68
  ControlWrapper: IControlWrapperStyles;
69
69
  WithTooltip: IWithTooltipStyles;
70
70
  }
@@ -9626,11 +9626,12 @@ var CssBaseline = function(param) {
9626
9626
  className: classes.root
9627
9627
  }, addDataTestId(testId), addDataAttributes(data)));
9628
9628
  };
9629
- var useStyles$J = createThemedStyles("ControlGroup", {
9630
- root: {
9629
+ var useStyles$J = createThemedStyles("WithMessages", {
9630
+ withMessages: {
9631
9631
  display: "flex",
9632
9632
  flexDirection: "column",
9633
- width: "100%"
9633
+ width: "100%",
9634
+ position: "relative"
9634
9635
  },
9635
9636
  error: {
9636
9637
  color: "red"
@@ -9711,8 +9712,8 @@ function _object_spread_props$L(target, source) {
9711
9712
  }
9712
9713
  return target;
9713
9714
  }
9714
- var ControlGroup = /* @__PURE__ */ forwardRef(function(param, ref) {
9715
- var children = param.children, infoMessage = param.infoMessage, errorMessage = param.errorMessage, direction = param.direction, tweakStyles = param.tweakStyles, testId = param.testId, data = param.data;
9715
+ var WithMessages = /* @__PURE__ */ forwardRef(function(param, ref) {
9716
+ var children = param.children, infoMessage = param.infoMessage, errorMessage = param.errorMessage, controlsDirection = param.controlsDirection, tweakStyles = param.tweakStyles, testId = param.testId, data = param.data;
9716
9717
  var classes = useStyles$J({
9717
9718
  theme: tweakStyles
9718
9719
  });
@@ -9721,12 +9722,12 @@ var ControlGroup = /* @__PURE__ */ forwardRef(function(param, ref) {
9721
9722
  var _obj2;
9722
9723
  return /* @__PURE__ */ jsxs("div", _object_spread_props$L(_object_spread$S({
9723
9724
  ref,
9724
- className: classes.root,
9725
+ className: classes.withMessages,
9725
9726
  "data-invalid": shouldShowError ? true : void 0
9726
9727
  }, addDataAttributes$1(data, testId)), {
9727
9728
  children: [
9728
9729
  isReactNodeNotEmpty(children) && /* @__PURE__ */ jsx("div", {
9729
- className: clsx(classes.children, (_obj2 = {}, _define_property$U(_obj2, classes.horizontal, direction === "horizontal"), _define_property$U(_obj2, classes.vertical, direction === "vertical"), _obj2)),
9730
+ className: clsx(classes.children, (_obj2 = {}, _define_property$U(_obj2, classes.horizontal, controlsDirection === "horizontal"), _define_property$U(_obj2, classes.vertical, controlsDirection === "vertical"), _obj2)),
9730
9731
  children
9731
9732
  }),
9732
9733
  (shouldShowError || shouldShowInfo) && /* @__PURE__ */ jsxs("div", {
@@ -9749,7 +9750,7 @@ var ControlGroup = /* @__PURE__ */ forwardRef(function(param, ref) {
9749
9750
  });
9750
9751
  var CONTROL$1 = dimensions.CONTROL, Z_INDEX$2 = dimensions.Z_INDEX;
9751
9752
  var useStyles$I = createThemedStyles("ControlWrapper", {
9752
- root: {
9753
+ controlWrapper: {
9753
9754
  "--control-height": "".concat(CONTROL$1.HEIGHT - 2, "px"),
9754
9755
  // borders
9755
9756
  "--control-padding": "".concat(CONTROL$1.PADDING, "px"),
@@ -9966,7 +9967,7 @@ var ControlWrapper = function(param) {
9966
9967
  });
9967
9968
  var _obj2, _obj1, _obj22;
9968
9969
  return /* @__PURE__ */ jsxs("div", _object_spread_props$K(_object_spread$R({
9969
- className: clsx(classes.root, isNotEmpty(groupPlacement) && [
9970
+ className: clsx(classes.controlWrapper, isNotEmpty(groupPlacement) && [
9970
9971
  classes["placement-".concat(groupPlacement)]
9971
9972
  ], (_obj2 = {}, _define_property$T(_obj2, classes.invalid, isInvalid), _define_property$T(_obj2, classes.focused, isFocused), _define_property$T(_obj2, classes.withValue, hasValue), _define_property$T(_obj2, classes.disabled, isDisabled), _define_property$T(_obj2, classes.loading, isLoading), _define_property$T(_obj2, classes.minContent, !isFullWidth), _obj2))
9972
9973
  }, addDataAttributes$1(data, testId)), {
@@ -10074,12 +10075,14 @@ var useStyles$H = createThemedStyles("Input", {
10074
10075
  }
10075
10076
  },
10076
10077
  withLabel: {},
10078
+ withValue: {},
10077
10079
  fakeValue: {
10078
10080
  extend: "inputContent",
10079
10081
  visibility: "hidden",
10080
10082
  maxWidth: "100%",
10081
10083
  overflow: "hidden",
10082
- minWidth: 8
10084
+ minWidth: 8,
10085
+ whiteSpace: "nowrap"
10083
10086
  },
10084
10087
  units: {
10085
10088
  alignSelf: "center",
@@ -10459,7 +10462,7 @@ var InputBase = /* @__PURE__ */ forwardRef(function(_param, ref) {
10459
10462
  ]);
10460
10463
  var _obj2;
10461
10464
  var props = _object_spread$Q({
10462
- className: clsx(classes.input, (_obj2 = {}, _define_property$S(_obj2, classes.withUnits, hasUnits), _define_property$S(_obj2, classes.withLabel, isReactNodeNotEmpty(label)), _define_property$S(_obj2, classes.autoSized, isAutoSized), _define_property$S(_obj2, classes.focusedInput, isFocused), _define_property$S(_obj2, classes.disabledInput, isDisabled), _define_property$S(_obj2, classes.invalidInput, isInvalid), _obj2)),
10465
+ className: clsx(classes.input, (_obj2 = {}, _define_property$S(_obj2, classes.withUnits, hasUnits), _define_property$S(_obj2, classes.withValue, hasValue), _define_property$S(_obj2, classes.withLabel, isReactNodeNotEmpty(label)), _define_property$S(_obj2, classes.autoSized, isAutoSized), _define_property$S(_obj2, classes.focusedInput, isFocused), _define_property$S(_obj2, classes.disabledInput, isDisabled), _define_property$S(_obj2, classes.invalidInput, isInvalid), _obj2)),
10463
10466
  style: hasUnits && hasValue ? {
10464
10467
  "--units-width": "".concat(unitsWidth, "px")
10465
10468
  } : void 0,
@@ -10615,15 +10618,15 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
10615
10618
  "testId",
10616
10619
  "tweakStyles"
10617
10620
  ]);
10618
- var tweakControlGroupStyles = useTweakStyles({
10621
+ var tweakWithMessagesStyles = useTweakStyles({
10619
10622
  tweakStyles,
10620
- className: "tweakControlGroup"
10623
+ className: "tweakWithMessages"
10621
10624
  });
10622
- return /* @__PURE__ */ jsx(ControlGroup, {
10625
+ return /* @__PURE__ */ jsx(WithMessages, {
10623
10626
  errorMessage,
10624
10627
  infoMessage,
10625
10628
  testId,
10626
- tweakStyles: tweakControlGroupStyles,
10629
+ tweakStyles: tweakWithMessagesStyles,
10627
10630
  children: /* @__PURE__ */ jsx(InputBase, _object_spread_props$I(_object_spread$P({}, inputProps), {
10628
10631
  ref,
10629
10632
  testId,
@@ -10801,7 +10804,7 @@ var useStyles$F = createThemedStyles("SearchInput", {
10801
10804
  });
10802
10805
  var inputStyles$4 = {
10803
10806
  tweakControlWrapper: {
10804
- root: {
10807
+ controlWrapper: {
10805
10808
  borderColor: "transparent",
10806
10809
  borderRadius: 18,
10807
10810
  paddingLeft: 0,
@@ -11573,6 +11576,11 @@ var baseInputStyles = {
11573
11576
  inputContent: {
11574
11577
  paddingRight: 32
11575
11578
  },
11579
+ input: {
11580
+ "&[readonly]": {
11581
+ cursor: "pointer"
11582
+ }
11583
+ },
11576
11584
  tweakControlWrapper: {
11577
11585
  controls: {
11578
11586
  paddingRight: 40
@@ -11935,9 +11943,9 @@ function Select(props) {
11935
11943
  ]);
11936
11944
  var hasSearchInputInList = optionsMode !== "normal" && shouldRenderSearchInputInList;
11937
11945
  var hasReadonlyInput = isReadonly || optionsMode === "normal" || shouldRenderSearchInputInList;
11938
- var tweakControlGroupStyles = useTweakStyles({
11946
+ var tweakWithMessagesStyles = useTweakStyles({
11939
11947
  tweakStyles,
11940
- className: "tweakControlGroup",
11948
+ className: "tweakWithMessages",
11941
11949
  currentComponentName: "Select"
11942
11950
  });
11943
11951
  var tweakInputStyles = useTweakStyles({
@@ -12029,22 +12037,10 @@ function Select(props) {
12029
12037
  convertValueToId,
12030
12038
  convertValueToString
12031
12039
  ]);
12032
- var getDropdownOffset = function() {
12033
- var _input_current_parentElement2;
12034
- if (isEmpty(input.current)) {
12035
- return 0;
12036
- }
12037
- var _input_current_parentElement_offsetHeight;
12038
- return (_input_current_parentElement_offsetHeight = (_input_current_parentElement2 = input.current.parentElement) === null || _input_current_parentElement2 === void 0 ? void 0 : _input_current_parentElement2.offsetHeight) !== null && _input_current_parentElement_offsetHeight !== void 0 ? _input_current_parentElement_offsetHeight : 0;
12039
- };
12040
12040
  var closeList = useCallback(function() {
12041
12041
  setIsListOpen(false);
12042
12042
  setSearchValue("");
12043
12043
  setShouldShowDefaultOption(true);
12044
- if (!(dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper)) {
12045
- var _root_current;
12046
- (_root_current = root2.current) === null || _root_current === void 0 ? void 0 : _root_current.style.removeProperty("--dropdown-offset");
12047
- }
12048
12044
  }, [
12049
12045
  dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper
12050
12046
  ]);
@@ -12056,15 +12052,8 @@ function Select(props) {
12056
12052
  onBlur
12057
12053
  ]);
12058
12054
  var handleListOpen = function() {
12059
- if (isReadonly) {
12060
- return;
12061
- }
12062
- if (!isListOpen) {
12055
+ if (!isReadonly && !isListOpen) {
12063
12056
  setIsListOpen(true);
12064
- if (!(dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper)) {
12065
- var _root_current;
12066
- (_root_current = root2.current) === null || _root_current === void 0 ? void 0 : _root_current.style.setProperty("--dropdown-offset", "".concat(getDropdownOffset(), "px"));
12067
- }
12068
12057
  }
12069
12058
  };
12070
12059
  var handleFocus = function(event) {
@@ -12360,10 +12349,10 @@ function Select(props) {
12360
12349
  })
12361
12350
  ]
12362
12351
  }) : void 0;
12363
- return /* @__PURE__ */ jsx(ControlGroup, {
12352
+ return /* @__PURE__ */ jsx(WithMessages, {
12364
12353
  errorMessage,
12365
12354
  infoMessage,
12366
- tweakStyles: tweakControlGroupStyles,
12355
+ tweakStyles: tweakWithMessagesStyles,
12367
12356
  children: /* @__PURE__ */ jsxs("div", {
12368
12357
  className: classes.root,
12369
12358
  onKeyDown: handleKeyDown,
@@ -12440,7 +12429,7 @@ var selectStyles$1 = {
12440
12429
  },
12441
12430
  tweakInput: {
12442
12431
  tweakControlWrapper: {
12443
- root: {
12432
+ controlWrapper: {
12444
12433
  "--control-height": "35px",
12445
12434
  border: "none"
12446
12435
  }
@@ -15434,7 +15423,7 @@ var useStyles$s = createThemedStyles("MultiSelectList", {
15434
15423
  var searchInputStyles$2 = {
15435
15424
  tweakInput: {
15436
15425
  tweakControlWrapper: {
15437
- root: {
15426
+ controlWrapper: {
15438
15427
  "--control-height": "40px",
15439
15428
  backgroundColor: "transparent",
15440
15429
  border: "none"
@@ -16394,7 +16383,7 @@ var useStyles$r = createThemedStyles("FilterSelect", {
16394
16383
  var searchInputStyles$1 = {
16395
16384
  tweakInput: {
16396
16385
  tweakControlWrapper: {
16397
- root: {
16386
+ controlWrapper: {
16398
16387
  "--control-height": "40px",
16399
16388
  backgroundColor: "transparent",
16400
16389
  border: "none"
@@ -18981,7 +18970,7 @@ var useStyles$o = createThemedStyles("FiltersPaneSearch", {
18981
18970
  var searchInputStyles = {
18982
18971
  tweakInput: {
18983
18972
  tweakControlWrapper: {
18984
- root: {
18973
+ controlWrapper: {
18985
18974
  "--control-height": "".concat(FILTER_HEIGHT - 2, "px"),
18986
18975
  backgroundColor: "transparent",
18987
18976
  border: "none",
@@ -28463,7 +28452,7 @@ var useStyles$a = createThemedStyles("PhoneInputCountryList", {
28463
28452
  });
28464
28453
  var inputStyles$1 = {
28465
28454
  tweakControlWrapper: {
28466
- root: {
28455
+ controlWrapper: {
28467
28456
  border: "none",
28468
28457
  height: "calc(var(--control-height) - 2px)"
28469
28458
  }
@@ -28738,7 +28727,7 @@ var useStyles$9 = createThemedStyles("PhoneInput", {
28738
28727
  });
28739
28728
  var inputStyles = {
28740
28729
  tweakControlWrapper: {
28741
- root: {
28730
+ controlWrapper: {
28742
28731
  paddingLeft: COUNTRY_SELECT_WIDTH
28743
28732
  },
28744
28733
  label: {
@@ -30389,11 +30378,14 @@ var useStyles$4 = createThemedStyles("TextArea", {
30389
30378
  margin: 0
30390
30379
  }
30391
30380
  }),
30381
+ wrapper: {
30382
+ width: "100%"
30383
+ },
30392
30384
  autoSized: {
30393
30385
  display: "grid",
30394
30386
  gridTemplateRows: "minmax(0, 100%)",
30395
30387
  "& > $textarea, &::after": {
30396
- gridArea: "1 / 2"
30388
+ gridArea: "1 / 1"
30397
30389
  },
30398
30390
  "&::after": {
30399
30391
  extend: "textarea",
@@ -30594,9 +30586,9 @@ var TextArea = /* @__PURE__ */ forwardRef(function(_param, ref) {
30594
30586
  var classes = useStyles$4({
30595
30587
  theme: tweakStyles
30596
30588
  });
30597
- var tweakControlGroupStyles = useTweakStyles({
30589
+ var tweakWithMessagesStyles = useTweakStyles({
30598
30590
  tweakStyles,
30599
- className: "tweakControlGroup",
30591
+ className: "tweakWithMessages",
30600
30592
  currentComponentName: "TextArea"
30601
30593
  });
30602
30594
  var tweakControlWrapperStyles = useTweakStyles({
@@ -30621,10 +30613,10 @@ var TextArea = /* @__PURE__ */ forwardRef(function(_param, ref) {
30621
30613
  setFocused(false);
30622
30614
  onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
30623
30615
  };
30624
- return /* @__PURE__ */ jsxs(ControlGroup, {
30616
+ return /* @__PURE__ */ jsxs(WithMessages, {
30625
30617
  errorMessage,
30626
30618
  infoMessage,
30627
- tweakStyles: tweakControlGroupStyles,
30619
+ tweakStyles: tweakWithMessagesStyles,
30628
30620
  children: [
30629
30621
  /* @__PURE__ */ jsx(ControlWrapper, _object_spread_props$5(_object_spread$5({
30630
30622
  label,
@@ -30635,8 +30627,9 @@ var TextArea = /* @__PURE__ */ forwardRef(function(_param, ref) {
30635
30627
  isFullWidth: true,
30636
30628
  testId
30637
30629
  }, controlProps), {
30638
- children: /* @__PURE__ */ jsx("div", _object_spread_props$5(_object_spread$5({}, isAutoSized && {
30639
- className: classes.autoSized,
30630
+ children: /* @__PURE__ */ jsx("div", _object_spread_props$5(_object_spread$5({
30631
+ className: clsx(classes.wrapper, _define_property$5({}, classes.autoSized, isAutoSized))
30632
+ }, isAutoSized && {
30640
30633
  "data-value": value
30641
30634
  }), {
30642
30635
  children: /* @__PURE__ */ jsx("textarea", _object_spread$5({
@@ -31500,7 +31493,6 @@ export {
31500
31493
  Checkbox,
31501
31494
  CloseButton,
31502
31495
  Colors,
31503
- ControlGroup,
31504
31496
  ControlWrapper,
31505
31497
  CssBaseline,
31506
31498
  DEFAULT_PHONE_MASK,
@@ -31557,6 +31549,7 @@ export {
31557
31549
  ThemedPreloader,
31558
31550
  Toaster,
31559
31551
  Tooltip,
31552
+ WithMessages,
31560
31553
  WithPopup,
31561
31554
  WithTooltip,
31562
31555
  addDataAttributes,