Skip to content

Commit

Permalink
Introduce QuackTextArea (#816)
Browse files Browse the repository at this point in the history
* Introduce QuackTextArea

* Regenerate snapshots

* Rebuilds
  • Loading branch information
jisungbin authored Jul 25, 2023
1 parent 610fa8c commit 7e8eae8
Show file tree
Hide file tree
Showing 30 changed files with 784 additions and 89 deletions.
36 changes: 18 additions & 18 deletions ui/report/compose-metrics/ui_debug-module.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"skippableComposables": 8,
"restartableComposables": 14,
"skippableComposables": 10,
"restartableComposables": 18,
"readonlyComposables": 1,
"totalComposables": 53,
"restartGroups": 14,
"totalGroups": 67,
"staticArguments": 55,
"certainArguments": 273,
"knownStableArguments": 624,
"knownUnstableArguments": 32,
"totalComposables": 59,
"restartGroups": 18,
"totalGroups": 73,
"staticArguments": 60,
"certainArguments": 318,
"knownStableArguments": 735,
"knownUnstableArguments": 35,
"unknownStableArguments": 0,
"totalArguments": 656,
"markedStableClasses": 18,
"inferredStableClasses": 11,
"totalArguments": 770,
"markedStableClasses": 19,
"inferredStableClasses": 12,
"inferredUnstableClasses": 0,
"inferredUncertainClasses": 0,
"effectivelyStableClasses": 29,
"totalClasses": 29,
"memoizedLambdas": 23,
"singletonLambdas": 5,
"effectivelyStableClasses": 31,
"totalClasses": 31,
"memoizedLambdas": 31,
"singletonLambdas": 7,
"singletonComposableLambdas": 0,
"composableLambdas": 3,
"totalLambdas": 35
"composableLambdas": 4,
"totalLambdas": 45
}
36 changes: 18 additions & 18 deletions ui/report/compose-metrics/ui_debugUnitTest-module.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"skippableComposables": 139,
"restartableComposables": 140,
"skippableComposables": 8,
"restartableComposables": 8,
"readonlyComposables": 0,
"totalComposables": 140,
"restartGroups": 140,
"totalGroups": 140,
"staticArguments": 460,
"totalComposables": 8,
"restartGroups": 8,
"totalGroups": 8,
"staticArguments": 14,
"certainArguments": 0,
"knownStableArguments": 1773,
"knownStableArguments": 64,
"knownUnstableArguments": 0,
"unknownStableArguments": 0,
"totalArguments": 1773,
"totalArguments": 64,
"markedStableClasses": 0,
"inferredStableClasses": 2,
"inferredUnstableClasses": 1,
"inferredUncertainClasses": 10,
"effectivelyStableClasses": 2,
"totalClasses": 13,
"memoizedLambdas": 221,
"singletonLambdas": 78,
"singletonComposableLambdas": 102,
"composableLambdas": 139,
"totalLambdas": 226
"inferredStableClasses": 0,
"inferredUnstableClasses": 0,
"inferredUncertainClasses": 1,
"effectivelyStableClasses": 0,
"totalClasses": 1,
"memoizedLambdas": 12,
"singletonLambdas": 4,
"singletonComposableLambdas": 8,
"composableLambdas": 8,
"totalLambdas": 12
}
15 changes: 15 additions & 0 deletions ui/report/compose-reports/ui_debug-classes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,21 @@ stable class QuackGrayscaleOutlinedTagDefaults {
stable var typography: QuackTypography
stable var unselectedTypography: QuackTypography
}
stable class TextAreaColors {
stable val backgroundColor: QuackColor
stable val contentColor: QuackColor
stable val placeholderColor: QuackColor
<runtime stability> = Stable
}
stable class QuackTextAreaDefaultStyle {
stable var radius: Dp
stable var minHeight: Dp
stable var colors: TextAreaColors
stable var border: QuackBorder
stable var contentPadding: QuackPadding
stable var placeholderTypography: QuackTypography
stable var typography: QuackTypography
}
stable class Success {
stable val label: String?
<runtime stability> = Stable
Expand Down
3 changes: 3 additions & 0 deletions ui/report/compose-reports/ui_debug-composables.csv
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ team.duckie.quackquack.ui.QuackBaseTag,QuackBaseTag,1,1,1,0,0,0,0,0,1,2,
team.duckie.quackquack.ui.QuackText,QuackText,1,1,1,0,0,0,0,0,4,11,
team.duckie.quackquack.ui.ClickableText,ClickableText,1,1,1,0,0,0,0,0,1,4,
team.duckie.quackquack.ui.rememberSpanAnnotatedString,rememberSpanAnnotatedString,1,0,0,0,0,0,0,0,1,1,
team.duckie.quackquack.ui.QuackTextArea,QuackTextArea,1,0,0,0,0,0,0,0,1,7,
team.duckie.quackquack.ui.QuackTextArea,QuackTextArea,1,0,0,0,0,0,0,0,1,6,
team.duckie.quackquack.ui.QuackBaseTextArea,QuackBaseTextArea,1,1,1,0,0,0,0,0,1,19,
team.duckie.quackquack.ui.QuackDefaultTextField,QuackDefaultTextField,1,0,0,0,0,0,0,0,1,7,
team.duckie.quackquack.ui.QuackDefaultTextField,QuackDefaultTextField,1,0,0,0,0,0,0,0,1,10,
team.duckie.quackquack.ui.QuackFilledTextField,QuackFilledTextField,1,0,0,0,0,0,0,0,1,7,
Expand Down
72 changes: 72 additions & 0 deletions ui/report/compose-reports/ui_debug-composables.txt
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,78 @@ fun rememberSpanAnnotatedString(
stable spanStyle: SpanStyle
unstable annotationTexts: List<String>
): AnnotatedString
scheme("[androidx.compose.ui.UiComposable]") fun QuackTextArea(
stable value: String
stable onValueChange: Function1<@[ParameterName(name = 'value')] String, Unit>
stable style: QuackTextAreaStyle? = @static Companion.Default
stable modifier: Modifier? = @static Companion
stable enabled: Boolean = @static true
stable readOnly: Boolean = @static false
stable placeholderText: String? = @static null
stable keyboardOptions: KeyboardOptions? = @static Companion.Default
stable keyboardActions: KeyboardActions? = @static Companion.Default
stable minLines: Int = @static 1
stable maxLines: Int = @static Companion.MAX_VALUE
stable visualTransformation: VisualTransformation? = @static Companion.None
stable onTextLayout: Function1<@[ParameterName(name = 'layoutResult')] TextLayoutResult, Unit>? = @static { it: TextLayoutResult ->

}

stable interactionSource: MutableInteractionSource? = @static remember({
MutableInteractionSource ( )
}
, $composer, 0)
)
scheme("[androidx.compose.ui.UiComposable]") fun QuackTextArea(
stable value: TextFieldValue
stable onValueChange: Function1<@[ParameterName(name = 'value')] TextFieldValue, Unit>
stable style: QuackTextAreaStyle? = @static Companion.Default
stable modifier: Modifier? = @static Companion
stable enabled: Boolean = @static true
stable readOnly: Boolean = @static false
stable placeholderText: String? = @static null
stable keyboardOptions: KeyboardOptions? = @static Companion.Default
stable keyboardActions: KeyboardActions? = @static Companion.Default
stable minLines: Int = @static 1
stable maxLines: Int = @static Companion.MAX_VALUE
stable visualTransformation: VisualTransformation? = @static Companion.None
stable onTextLayout: Function1<@[ParameterName(name = 'layoutResult')] TextLayoutResult, Unit>? = @static { it: TextLayoutResult ->

}

stable interactionSource: MutableInteractionSource? = @static remember({
MutableInteractionSource ( )
}
, $composer, 0)
)
restartable skippable scheme("[androidx.compose.ui.UiComposable]") fun QuackBaseTextArea(
stable value: TextFieldValue
stable onValueChange: Function1<@[ParameterName(name = 'value')] TextFieldValue, Unit>
stable modifier: Modifier
stable radius: Dp
stable minHeight: Dp
stable border: QuackBorder
stable enabled: Boolean
stable readOnly: Boolean
stable placeholderText: String?
stable keyboardOptions: KeyboardOptions
stable keyboardActions: KeyboardActions
stable minLines: Int
stable maxLines: Int
stable visualTransformation: VisualTransformation
stable onTextLayout: Function1<@[ParameterName(name = 'layoutResult')] TextLayoutResult, Unit>
stable interactionSource: MutableInteractionSource
stable backgroundColor: QuackColor
stable contentPadding: PaddingValues
stable typography: QuackTypography
stable placeholderTypography: QuackTypography
stable counterBaseColor: QuackColor?
stable counterHighlightColor: QuackColor?
stable counterTypography: QuackTypography?
stable counterBaseAndHighlightGap: Dp?
stable counterMaxLength: Int?
stable counterContentGap: Dp?
)
fun QuackDefaultTextField(
stable value: String
stable onValueChange: Function1<@[ParameterName(name = 'value')] String, Unit>
Expand Down
50 changes: 1 addition & 49 deletions ui/report/compose-reports/ui_debugUnitTest-classes.txt
Original file line number Diff line number Diff line change
@@ -1,52 +1,4 @@
runtime class ImageSnapshot {
runtime class TextAreaSnapshot {
runtime val snapshotPath: SnapshotPathGeneratorRule
<runtime stability> = Runtime(SnapshotPathGeneratorRule)
}
runtime class SwitchSnapshot {
runtime val snapshotPath: SnapshotPathGeneratorRule
<runtime stability> = Runtime(SnapshotPathGeneratorRule)
}
runtime class TabSnapshot {
runtime val snapshotPath: SnapshotPathGeneratorRule
<runtime stability> = Runtime(SnapshotPathGeneratorRule)
}
unstable class TagSnapshot {
unstable val testNameToSelectState: MutableMap<String, Boolean>
runtime val compose: AndroidComposeTestRule<ActivityScenarioRule<ComponentActivity>, ComponentActivity>
unstable val roborazzi: RoborazziRule
<runtime stability> = Unstable
}
runtime class TextFieldSnapshot {
runtime val snapshotPath: SnapshotPathGeneratorRule
<runtime stability> = Runtime(SnapshotPathGeneratorRule)
}
runtime class TextSnapshot {
runtime val snapshotPath: SnapshotPathGeneratorRule
<runtime stability> = Runtime(SnapshotPathGeneratorRule)
}
runtime class ButtonTest {
runtime val compose: AndroidComposeTestRule<ActivityScenarioRule<ComponentActivity>, ComponentActivity>
<runtime stability> = Runtime(AndroidComposeTestRule)
}
runtime class TabTest {
runtime val compose: AndroidComposeTestRule<ActivityScenarioRule<ComponentActivity>, ComponentActivity>
<runtime stability> = Runtime(AndroidComposeTestRule)
}
runtime class TagTest {
runtime val compose: AndroidComposeTestRule<ActivityScenarioRule<ComponentActivity>, ComponentActivity>
<runtime stability> = Runtime(AndroidComposeTestRule)
}
runtime class TextFieldTest {
runtime val compose: AndroidComposeTestRule<ActivityScenarioRule<ComponentActivity>, ComponentActivity>
<runtime stability> = Runtime(AndroidComposeTestRule)
}
runtime class TextTest {
runtime val compose: AndroidComposeTestRule<ActivityScenarioRule<ComponentActivity>, ComponentActivity>
<runtime stability> = Runtime(AndroidComposeTestRule)
}
stable class HashCodeTest {
<runtime stability> = Stable
}
stable class NumberBuilderTest {
<runtime stability> = Stable
}
Loading

0 comments on commit 7e8eae8

Please sign in to comment.