Skip to content

Commit

Permalink
Merge pull request #54 from warp-ds/android-update-v0.0.36
Browse files Browse the repository at this point in the history
Update android whats new for v0.0.36
  • Loading branch information
julbar authored Dec 17, 2024
2 parents c64d2b7 + 7116cab commit af29acc
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/api-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -2012,6 +2012,12 @@ export const android = {
'WarpBadgeAlignment.None',
'Sets the alignment style for the badge',
],
[
'icon',
'WarpIconResource?',
'null',
'Sets the icon for the badge',
],
],
},
Alert: {
Expand Down
49 changes: 49 additions & 0 deletions docs/blog/posts/2024/android-0.0.36.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
title: 'WARP Android release v.0.0.36'
date: 2024-12-13
---

Bugfixes & token updates
---

# Warp Android release 0.0.36

## 2024-12-13

#### WarpBadge enhancements
- Added WarpBadge tests and generated paparazzi screenshots.
- Introduced icon support for WarpBadge.
```kotlin
WarpBadge(
text = "Icon",
style = WarpBadgeStyle.Sponsored,
alignment = Alignment.CenterEnd,
icon = icons.awardMedal
)
```

#### Checkbox update
- Introduced checkbox with no label support.

#### WarpTab improvements
- Truncated long text to prevent overflow.

#### Style dictionary tokens
- Updated style dictionary tokens for consistent theming.
- Updated Finn gray tokens.

#### WarpCallout
- Made the popover WarpCallout component non-blocking.

#### Checkbox component
- Fixed checkbox click area when there is no label.
- Updated screenshots for the checkbox with no label.

#### WarpTheme
- Added an optional `forceDarkmode` parameter to all themes.

#### WarpButton
- Changed the default modifier for the small button modifier.

### Miscellaneous
- Updated paparazzi screenshots for changed tokens.
3 changes: 2 additions & 1 deletion docs/components/badge/android.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ fun WarpBadge(
modifier: Modifier = Modifier,
text: String,
style: WarpBadgeStyle = WarpBadgeStyle.Neutral,
alignmentStyle: WarpBadgeAlignment = WarpBadgeAlignment.None
alignmentStyle: WarpBadgeAlignment = WarpBadgeAlignment.None,
icon: WarpIconResource? = null
)
```

Expand Down

0 comments on commit af29acc

Please sign in to comment.