packages/anvil2-kotlin/CHANGELOG.md.
0.0.4
Patch Changes
-
#3290
14c9b27Thanks @andrewking1235! - [Anvil2Icon, Anvil2Status] Replace the icon’sstatusparameter withcolor: Color?, and addProvideAnvil2IconColorto set the color of every tintableAnvil2Iconin its content. A tintable glyph now draws incolor, thenProvideAnvil2IconColor, thensemantic.foreground.color.standard; it no longer reads Material 3LocalContentColor. RemoveAnvil2StatusandProvideAnvil2Status. To migrate, replacestatus = Anvil2Status.Dangerwithcolor = theme.semantic.foreground.color.critical.current()(or the color you need), replaceProvideAnvil2StatuswithProvideAnvil2IconColor, and replaceLocalContentColorused to tint icons withProvideAnvil2IconColor -
#3224
44d88f1Thanks @AdamLantz! - [Anvil2TokensNext] Add the:tokens-nextmodule (com.servicetitan:anvil2-android-tokens-next, packagecom.servicetitan.anvil2.tokensnext) as a preview: its token values are placeholders and may change in any release. It is generated from@servicetitan/anvil2-tokens, so apps can adopt the new tokens before:tokensswitches to them in a later breaking release. It keepsAnvil2Theme,LocalAnvil2ThemeandAnvil2Appearance, adds theAnvil2Theme.Classic,Anvil2Theme.CartoandAnvil2Theme.CartoMobilethemes, and renames tokens (e.g.foreground.color.standard→foreground.color.base). Components still read:tokens -
#3161
8cf10ccThanks @jpex! - [Anvil2Icons] Update the Atlas logo icon to the new Atlas brand mark -
#3287
5c81ed8Thanks @AdamLantz! - [Anvil2TokensNext] Add border and inverse colors to every category hue -
#3287
5c81ed8Thanks @AdamLantz! - [Anvil2TokensNext] FixAnvil2Theme.CartoandAnvil2Theme.CartoMobiledark colors that Carto gives no dark value of its own: they now match classic dark instead of Carto light -
#3287
5c81ed8Thanks @AdamLantz! - [Anvil2TokensNext] Add component tokens underAnvil2Theme.component -
Updated dependencies [
5c81ed8,5c81ed8,5c81ed8]:- @servicetitan/anvil2-tokens@0.1.1
0.0.3
Patch Changes
-
#3177
90a5582Thanks @andrewking1235! - [Anvil2Icon] AddAnvil2Icon, a composable that draws anAnvil2IconAsset(or a caller-suppliedPainter) atAnvil2IconSize.Small/Medium/Large(16/24/32 dp). Tintable glyphs take Material 3LocalContentColorunless a status is set. AddsAnvil2Status(Info/Success/Warning/Danger), shared by status-aware components: passstatus, or provide it to a subtree withProvideAnvil2Status.contentDescriptionis required (nullfor decorative), andProvideAnvil2IconStyle(size)sets a default size for a subtree.anvil2-android-componentsnow depends on Compose Material 3 (androidx.compose.material3:material3, version from the Compose BOM) as animplementationdependency -
#3178
b57b018Thanks @andrewking1235! - [Anvil2IconAsset] Rename theAnvil2Iconenum toAnvil2IconAsset. ReplaceAnvil2IconwithAnvil2IconAssetat each use site (e.g.Anvil2Icon.ArrowLeft.drawableRes→Anvil2IconAsset.ArrowLeft.drawableRes); entries are unchanged -
#3150
70ad407Thanks @tounsoo! - [Anvil2Illustration] Restore the missing leaf in theEmptyStateCommercialPropertyCareUserCleareddrawable -
#3170
38263d0Thanks @ericag1985! - [Anvil2Theme] Addmotion.duration.cycleas a 1000ms repeating-motion duration -
#3189
0f9b0bfThanks @andrewking1235! - [Anvil2Button] AddAnvil2Button, a composable pill button in six appearances (Anvil2ButtonAppearance.Primary/Secondary/Ghost/Danger/DangerSecondary/DangerGhost) atAnvil2ButtonSize.Medium/Large(48/64 dp minimum height, growing with the font scale). It takes an optionaliconplaced byAnvil2ButtonIconPlacement.Leading/Trailing,enabled, andloading, which keeps the button’s width, shows a spinner in place of the content, ignores clicks and adds indeterminate progress semantics. TheiconOnlyoverload draws a circular icon-only button whosecontentDescriptionis required.ProvideAnvil2ButtonStyle(appearance, size)sets a default appearance and size for a subtree;Modifier.fillMaxWidth()fills the width -
#3187
a734331Thanks @andrewking1235! - [Anvil2Spinner] AddAnvil2Spinner, a composable that shows an indeterminate loading arc atAnvil2SpinnerSize.Small/Medium/Large(16/40/80 dp). The arc issemantic.border.color.accentby default;Anvil2SpinnerTint.Inheritedtakes Material 3LocalContentColorinstead, for a spinner on a filled background.contentDescriptionis required (nullfor decorative; a label adds progress semantics), andProvideAnvil2SpinnerStyle(size, tint)sets a default size and tint for a subtree. With the system “Remove animations” setting on, the arc stops at rest -
#3196
e073fb0Thanks @andrewking1235! - [Anvil2Checkbox] AddAnvil2Checkbox, a composable checkbox whose whole row (box,labeland optionaldescription) is one control and one semantics node withRole.Checkbox. The two-state overloads takecheckedandonCheckedChange; the mixable overloads take anAnvil2CheckboxMixableState(Unchecked/Checked/Indeterminate) and callonClick, leaving the next state to the caller. Anullcallback makes it read-only.isErrorcolors the box critical, andenabled = falsedisables it. ThecontentDescriptionoverloads draw a box with no visible label whosecontentDescriptionis required -
Updated dependencies [
38263d0]:- @servicetitan/carto-tokens@0.4.8
0.0.2
Patch Changes
-
#3074
9ea5560Thanks @andrewking1235! - [Anvil2Icon, Anvil2Illustration] Add theanvil2-android-iconsandanvil2-android-illustrationsartifacts, generated from@servicetitan/anvil2-iconsand@servicetitan/anvil2-illustrationsAnvil2Iconhas one entry per webIcon*export, with adrawableResandisTintable; tint tintable icons and draw multicolour ones untintedAnvil2Illustrationhas one entry per illustration; eachdrawableResresolves to its light or dark variant through thenightresource qualifieranvil2-android-componentsexposes both throughapi
0.0.1
Patch Changes
-
#3011
1b48f54Thanks @andrewking1235! - [Anvil2Theme] Add initial prerelease of the injectable native theme, replacing the staticAnvil2Tokensnamespace- Components read tokens from
LocalAnvil2Theme.current; the default isAnvil2Theme.Carto LocalAnvil2Darkoverrides the system appearance- A theme built from a modified lower tier re-derives every tier above it
- Font-family and breakpoint tokens are no longer emitted
- Components read tokens from
-
#3064
3e36538Thanks @rollsroyc3! - [Tokens] Addtext.highlight.backgroundFallback, a solid stand-in fortext.highlight.background(web’s gradient) on React Native, Swift, and Kotlin, which cannot render it. [Text] ConsumebackgroundFallbackfor thehighlightedprop’s background instead of a hardcodedrgba(188, 226, 234, 0.4)literal. -
Updated dependencies [
3e36538]:- @servicetitan/carto-tokens@0.4.7