@true-engineering/true-react-common-ui-kit 4.0.0-alpha12 → 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.
@@ -1,7 +1,7 @@
1
1
  import { ITweakStyles } from '../../theme';
2
2
  import { IControlWrapperStyles } from '../ControlWrapper';
3
3
  import { IWithMessagesStyles } from '../WithMessages';
4
- export declare const useStyles: import("../../theme").IUseStyles<"textarea" | "autoSized" | "wrapper" | "symbolsCount" | "symbolsCountError", unknown>;
4
+ export declare const useStyles: import("../../theme").IUseStyles<"textarea" | "autoSized" | "withLabel" | "wrapper" | "symbolsCount" | "symbolsCountError", unknown>;
5
5
  export declare const controlWrapperStyles: IControlWrapperStyles;
6
6
  export type ITextAreaStyles = ITweakStyles<typeof useStyles, {
7
7
  tweakWithMessages: IWithMessagesStyles;
@@ -31272,7 +31272,8 @@ var useStyles$4 = createThemedStyles("TextArea", {
31272
31272
  },
31273
31273
  symbolsCountError: {
31274
31274
  color: "red"
31275
- }
31275
+ },
31276
+ withLabel: {}
31276
31277
  });
31277
31278
  var controlWrapperStyles = {
31278
31279
  label: {
@@ -31482,6 +31483,7 @@ var TextArea = /* @__PURE__ */ forwardRef(function(_param, ref) {
31482
31483
  setFocused(false);
31483
31484
  onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
31484
31485
  };
31486
+ var _obj2;
31485
31487
  return /* @__PURE__ */ jsxs(WithMessages, {
31486
31488
  errorMessage,
31487
31489
  infoMessage,
@@ -31499,10 +31501,10 @@ var TextArea = /* @__PURE__ */ forwardRef(function(_param, ref) {
31499
31501
  size: size2,
31500
31502
  isFullWidth: true,
31501
31503
  children: /* @__PURE__ */ jsx("div", _object_spread_props$5(_object_spread$5({
31502
- className: clsx(classes.wrapper, _define_property$5({}, classes.autoSized, isAutoSized))
31503
- }, isAutoSized && addDataAttributes$1({
31504
- value
31505
- })), {
31504
+ className: clsx(classes.wrapper, (_obj2 = {}, _define_property$5(_obj2, classes.autoSized, isAutoSized), _define_property$5(_obj2, classes.withLabel, hasLabel), _obj2))
31505
+ }, isAutoSized && {
31506
+ "data-value": value
31507
+ }), {
31506
31508
  children: /* @__PURE__ */ jsx("textarea", _object_spread$5({
31507
31509
  ref,
31508
31510
  className: classes.textarea,