1919 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2020 * SOFTWARE.
2121 */
22- @file:Suppress(" ktlint:standard:max-line-length" )
22+ @file:Suppress(" DEPRECATION " , " ktlint:standard:max-line-length" )
2323
2424package com.composeunstyled.theme
2525
@@ -138,11 +138,17 @@ private val UnspecifiedTextSelectionColors = TextSelectionColors(
138138@DslMarker
139139annotation class ThemeBuilderMarker
140140
141+ @Deprecated(
142+ message = " This will be removed in 3.0. It is now up to you to implement this behavior if it is a requirement for your design system." ,
143+ )
141144data class ComponentInteractiveSize (
142145 val nonTouchInteractionSize : Dp = Dp .Unspecified ,
143146 val touchInteractionSize : Dp = Dp .Unspecified ,
144147)
145148
149+ @Deprecated(
150+ message = " This will be removed in 3.0. It is now up to you to implement this behavior if it is a requirement for your design system." ,
151+ )
146152fun ComponentInteractiveSize (size : Dp ): ComponentInteractiveSize {
147153 return ComponentInteractiveSize (size, size)
148154}
@@ -156,6 +162,9 @@ class ThemeBuilder internal constructor() {
156162 var defaultContentColor: Color by mutableStateOf(Color .Unspecified )
157163 var defaultTextSelectionColors: TextSelectionColors ? by mutableStateOf(null )
158164
165+ @Deprecated(
166+ message = " This will be removed in 3.0. It is now up to you to implement this behavior if it is a requirement for your design system." ,
167+ )
159168 var defaultComponentInteractiveSize: ComponentInteractiveSize by mutableStateOf(
160169 ComponentInteractiveSize (Dp .Unspecified , Dp .Unspecified ),
161170 )
0 commit comments