odaptos_design_system 2.0.29 → 2.0.30
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/Organisms/TextInput/TextInput.d.ts +3 -0
- package/dist/Organisms/Textarea/Textarea.d.ts +4 -1
- package/dist/odaptos_design_system.cjs.development.js +15 -3
- package/dist/odaptos_design_system.cjs.development.js.map +1 -1
- package/dist/odaptos_design_system.cjs.production.min.js +1 -1
- package/dist/odaptos_design_system.cjs.production.min.js.map +1 -1
- package/dist/odaptos_design_system.esm.js +15 -3
- package/dist/odaptos_design_system.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Molecules/ToggleTab/ToggleTab.module.scss +0 -1
- package/src/Organisms/TextInput/TextInput.tsx +9 -0
- package/src/Organisms/Textarea/Textarea.tsx +9 -0
|
@@ -23,6 +23,9 @@ interface InputProps {
|
|
|
23
23
|
error?: boolean;
|
|
24
24
|
multiline?: boolean;
|
|
25
25
|
inputProps?: any;
|
|
26
|
+
rows?: number;
|
|
27
|
+
maxRows?: number;
|
|
28
|
+
minRows?: number;
|
|
26
29
|
}
|
|
27
30
|
/** Figma link : https://www.figma.com/file/fjnhhbL12HvKccPmJchVnr/Atomic-Library?type=design&node-id=738-5899&mode=dev */
|
|
28
31
|
export declare const TextInput: (props: InputProps) => React.JSX.Element;
|
|
@@ -18,7 +18,10 @@ interface TextareaProps {
|
|
|
18
18
|
errorText?: string;
|
|
19
19
|
helperText?: string;
|
|
20
20
|
disabled?: boolean;
|
|
21
|
+
maxRows?: number;
|
|
22
|
+
minRows?: number;
|
|
23
|
+
rows?: number;
|
|
21
24
|
}
|
|
22
25
|
/** Figma link : https://www.figma.com/file/fjnhhbL12HvKccPmJchVnr/Atomic-Library?type=design&node-id=738-6407&mode=dev */
|
|
23
|
-
export declare const Textarea: ({ name, label, className, id, onChange, onBlur, placeholder, value, maxCharacters, topLabel, topLabelWeight, topLabelSize, errorText, helperText, error, disabled, required, onKeyDown, }: TextareaProps) => React.JSX.Element;
|
|
26
|
+
export declare const Textarea: ({ name, label, className, id, onChange, onBlur, placeholder, value, maxCharacters, topLabel, topLabelWeight, topLabelSize, errorText, helperText, error, disabled, required, onKeyDown, rows, maxRows, minRows, }: TextareaProps) => React.JSX.Element;
|
|
24
27
|
export {};
|
|
@@ -15362,7 +15362,10 @@ const TextInput = props => {
|
|
|
15362
15362
|
errorText,
|
|
15363
15363
|
multiline,
|
|
15364
15364
|
inputProps,
|
|
15365
|
-
onKeyDown
|
|
15365
|
+
onKeyDown,
|
|
15366
|
+
rows,
|
|
15367
|
+
maxRows,
|
|
15368
|
+
minRows
|
|
15366
15369
|
} = props;
|
|
15367
15370
|
const endAdornment = rightIcon ? /*#__PURE__*/React__default.createElement(material.InputAdornment, {
|
|
15368
15371
|
position: "end"
|
|
@@ -15413,6 +15416,9 @@ const TextInput = props => {
|
|
|
15413
15416
|
error: error,
|
|
15414
15417
|
onBlur: onBlur,
|
|
15415
15418
|
multiline: multiline,
|
|
15419
|
+
rows: rows,
|
|
15420
|
+
maxRows: maxRows,
|
|
15421
|
+
minRows: minRows,
|
|
15416
15422
|
onKeyUp: e => {
|
|
15417
15423
|
if (e.key === 'Enter' && onKeyDown) {
|
|
15418
15424
|
onKeyDown();
|
|
@@ -15455,7 +15461,10 @@ const Textarea = ({
|
|
|
15455
15461
|
error,
|
|
15456
15462
|
disabled,
|
|
15457
15463
|
required = false,
|
|
15458
|
-
onKeyDown
|
|
15464
|
+
onKeyDown,
|
|
15465
|
+
rows,
|
|
15466
|
+
maxRows,
|
|
15467
|
+
minRows
|
|
15459
15468
|
}) => {
|
|
15460
15469
|
const [charCount, setCharCount] = React.useState(0);
|
|
15461
15470
|
const handleChange = e => {
|
|
@@ -15490,7 +15499,10 @@ const Textarea = ({
|
|
|
15490
15499
|
required: required,
|
|
15491
15500
|
disabled: disabled,
|
|
15492
15501
|
topLabelWeight: topLabelWeight,
|
|
15493
|
-
topLabelSize: topLabelSize
|
|
15502
|
+
topLabelSize: topLabelSize,
|
|
15503
|
+
rows: rows,
|
|
15504
|
+
maxRows: maxRows,
|
|
15505
|
+
minRows: minRows
|
|
15494
15506
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
15495
15507
|
className: styles$Q.helperTexts
|
|
15496
15508
|
}, helperText && /*#__PURE__*/React__default.createElement(Text, {
|