@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/dist/components/TextArea/TextArea.styles.d.ts +2 -2
- package/dist/components/TextArea/index.d.ts +1 -0
- package/dist/true-react-common-ui-kit.js +2 -2
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +2 -2
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/TextArea/TextArea.styles.ts +3 -2
- package/src/components/TextArea/TextArea.tsx +5 -2
- package/src/components/TextArea/index.ts +1 -0
package/package.json
CHANGED
|
@@ -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
|
|
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,
|
|
154
|
+
className={clsx(classes.wrapper, {
|
|
152
155
|
[classes.autoSized]: isAutoSized,
|
|
153
156
|
[classes.withLabel]: hasLabel,
|
|
154
157
|
})}
|