@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
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { 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
|
export declare const useStyles: import("../../theme").IUseStyles<"root" | "textarea" | "autoSized" | "withLabel" | "wrapper" | "symbolsCount" | "symbolsCountError" | "symbolsCountActive" | "counter-default", unknown>;
|
|
7
7
|
export type ITextAreaStyles = ITweakStyles<typeof useStyles, {
|
|
8
8
|
tweakWithMessages: IWithMessagesStyles;
|
|
9
9
|
tweakControlWrapper: IControlWrapperStyles;
|
|
10
|
-
} & IWithPrefix<ITextAreaCounterPositions, 'counter-'
|
|
10
|
+
} & IWithPrefix<ITextAreaCounterPositions, 'counter-'> & IControlWrapperSizes>;
|
|
@@ -31600,7 +31600,7 @@ var TextArea = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
31600
31600
|
};
|
|
31601
31601
|
var _obj2, _obj1;
|
|
31602
31602
|
return /* @__PURE__ */ jsx("div", {
|
|
31603
|
-
className: classes.root,
|
|
31603
|
+
className: clsx(classes.root, isNotEmpty(size2) && classes[size2]),
|
|
31604
31604
|
style: {
|
|
31605
31605
|
"--counter-length": counterString.length
|
|
31606
31606
|
},
|
|
@@ -31621,7 +31621,7 @@ var TextArea = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
31621
31621
|
size: size2,
|
|
31622
31622
|
isFullWidth: true,
|
|
31623
31623
|
children: /* @__PURE__ */ jsxs("div", _object_spread_props$5(_object_spread$5({
|
|
31624
|
-
className: clsx(classes.wrapper,
|
|
31624
|
+
className: clsx(classes.wrapper, (_obj2 = {}, _define_property$5(_obj2, classes.autoSized, isAutoSized), _define_property$5(_obj2, classes.withLabel, hasLabel), _obj2))
|
|
31625
31625
|
}, isAutoSized && {
|
|
31626
31626
|
"data-value": value
|
|
31627
31627
|
}), {
|