@true-engineering/true-react-common-ui-kit 4.0.0-alpha11 → 4.0.0-alpha13

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-alpha11",
3
+ "version": "4.0.0-alpha13",
4
4
  "description": "True Engineering React UI Kit with theming support",
5
5
  "author": "True Engineering (https://trueengineering.ru)",
6
6
  "keywords": [
@@ -1,3 +1,3 @@
1
1
  export * from './Status';
2
-
2
+ export * from './types';
3
3
  export type { IStatusStyles } from './Status.styles';
@@ -65,6 +65,8 @@ export const useStyles = createThemedStyles('TextArea', {
65
65
  symbolsCountError: {
66
66
  color: 'red',
67
67
  },
68
+
69
+ withLabel: {},
68
70
  });
69
71
 
70
72
  export const controlWrapperStyles: IControlWrapperStyles = {
@@ -140,8 +140,11 @@ export const TextArea = forwardRef<HTMLTextAreaElement, ITextAreaProps>(
140
140
  isFullWidth
141
141
  >
142
142
  <div
143
- className={clsx(classes.wrapper, { [classes.autoSized]: isAutoSized })}
144
- {...(isAutoSized && addDataAttributes({ value }))}
143
+ className={clsx(classes.wrapper, {
144
+ [classes.autoSized]: isAutoSized,
145
+ [classes.withLabel]: hasLabel,
146
+ })}
147
+ {...(isAutoSized && { 'data-value': value })}
145
148
  >
146
149
  <textarea
147
150
  ref={ref}