Skip to content

Commit 391cddb

Browse files
authored
Merge branch 'main' into fix/showkase-missing-icons-and-tests
2 parents 083d2cd + 3d583fc commit 391cddb

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

core/api/core.api

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@ public final class com/trendyol/design/core/inputfield/KPOutlinedTextFieldStyle$
13861386
}
13871387

13881388
public final class com/trendyol/design/core/inputfield/MultiLineOutlinedTextFieldKt {
1389-
public static final fun KPMultiLineOutlineTextField (Lcom/trendyol/design/core/inputfield/OutlinedTextFieldStyle;Ljava/lang/String;Landroidx/compose/ui/Modifier;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZLandroidx/compose/material/TextFieldColors;Lkotlin/jvm/functions/Function1;Landroidx/compose/runtime/Composer;III)V
1389+
public static final fun KPMultiLineOutlineTextField (Lcom/trendyol/design/core/inputfield/OutlinedTextFieldStyle;Ljava/lang/String;Landroidx/compose/ui/Modifier;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZLandroidx/compose/material/TextFieldColors;Landroidx/compose/ui/text/input/VisualTransformation;Landroidx/compose/foundation/text/KeyboardActions;Lkotlin/jvm/functions/Function1;Landroidx/compose/runtime/Composer;III)V
13901390
}
13911391

13921392
public abstract interface class com/trendyol/design/core/inputfield/OutlinedTextFieldStyle {

core/src/main/java/com/trendyol/design/core/inputfield/MultiLineOutlinedTextField.kt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ import androidx.compose.foundation.layout.Spacer
1010
import androidx.compose.foundation.layout.fillMaxWidth
1111
import androidx.compose.foundation.layout.padding
1212
import androidx.compose.foundation.layout.width
13+
import androidx.compose.foundation.text.KeyboardActions
1314
import androidx.compose.material.TextFieldColors
1415
import androidx.compose.runtime.Composable
1516
import androidx.compose.ui.Modifier
17+
import androidx.compose.ui.text.input.VisualTransformation
1618
import androidx.compose.ui.text.style.TextOverflow
1719
import androidx.compose.ui.tooling.preview.Preview
1820
import androidx.compose.ui.unit.dp
@@ -36,6 +38,11 @@ import com.trendyol.theme.KPDesign
3638
* @param colors The colors configuration for the TextField. This parameter allows configuring
3739
* the colors of the TextField component, including the text color, background color,
3840
* and colors for different states (such as selected, focused, disabled, etc.).
41+
* @param visualTransformation Transforms the visual representation of the input value.
42+
* For example, you can use it to add unit suffixes like "cm" or "kg".
43+
* @param keyboardActions Configuration of keyboard actions to be triggered when the input
44+
* service emits an IME action. Actions specified here will be triggered
45+
* in addition to the default actions performed by TextField.
3946
* @param onValueChange Callback for when the value of the TextField changes.
4047
*/
4148
@ExperimentalKompostoApi
@@ -51,6 +58,8 @@ public fun KPMultiLineOutlineTextField(
5158
isError: Boolean = false,
5259
enabled: Boolean = true,
5360
colors: TextFieldColors = style.outlinedTextFieldColors,
61+
visualTransformation: VisualTransformation = VisualTransformation.None,
62+
keyboardActions: KeyboardActions = KeyboardActions.Default,
5463
onValueChange: (String) -> Unit,
5564
) {
5665
Column(modifier = modifier.width(IntrinsicSize.Max)) {
@@ -76,6 +85,8 @@ public fun KPMultiLineOutlineTextField(
7685
isFilled = style is KPOutlinedTextFieldStyle.Filled,
7786
enabled = enabled,
7887
singleLine = false,
88+
visualTransformation = visualTransformation,
89+
keyboardActions = keyboardActions,
7990
maxLines = 4,
8091
minLines = 4,
8192
contentPadding = PaddingValues(

0 commit comments

Comments
 (0)