@true-engineering/true-react-common-ui-kit 4.0.0-alpha22 → 4.0.0-alpha23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@true-engineering/true-react-common-ui-kit",
3
- "version": "4.0.0-alpha22",
3
+ "version": "4.0.0-alpha23",
4
4
  "description": "True Engineering React UI Kit with theming support",
5
5
  "author": "True Engineering (https://trueengineering.ru)",
6
6
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  import { animations, createThemedStyles, helpers, ITweakStyles } from '../../theme';
2
2
  import { IWithPrefix } from '../../types';
3
- import { IControlWrapperStyles } from '../ControlWrapper';
3
+ import { IControlWrapperSizes, IControlWrapperStyles } from '../ControlWrapper';
4
4
  import { IWithMessagesStyles } from '../WithMessages';
5
5
  import { ITextAreaCounterPositions } from './types';
6
6
 
@@ -84,5 +84,6 @@ export type ITextAreaStyles = ITweakStyles<
84
84
  {
85
85
  tweakWithMessages: IWithMessagesStyles;
86
86
  tweakControlWrapper: IControlWrapperStyles;
87
- } & IWithPrefix<ITextAreaCounterPositions, 'counter-'>
87
+ } & IWithPrefix<ITextAreaCounterPositions, 'counter-'> &
88
+ IControlWrapperSizes
88
89
  >;
@@ -128,7 +128,10 @@ export const TextArea = forwardRef<HTMLTextAreaElement, ITextAreaProps>(
128
128
  };
129
129
 
130
130
  return (
131
- <div className={classes.root} style={{ '--counter-length': counterString.length } as Styles}>
131
+ <div
132
+ className={clsx(classes.root, isNotEmpty(size) && classes[size])}
133
+ style={{ '--counter-length': counterString.length } as Styles}
134
+ >
132
135
  <WithMessages
133
136
  errorMessage={errorMessage}
134
137
  infoMessage={infoMessage}
@@ -148,7 +151,7 @@ export const TextArea = forwardRef<HTMLTextAreaElement, ITextAreaProps>(
148
151
  isFullWidth
149
152
  >
150
153
  <div
151
- className={clsx(classes.wrapper, isNotEmpty(size) && classes[size], {
154
+ className={clsx(classes.wrapper, {
152
155
  [classes.autoSized]: isAutoSized,
153
156
  [classes.withLabel]: hasLabel,
154
157
  })}
@@ -1,2 +1,3 @@
1
1
  export * from './TextArea';
2
2
  export type { ITextAreaStyles } from './TextArea.styles';
3
+ export * from './types';