Commit 6822001
authored
chore: upgrade @metamask/design-system-react-native to v0.8.0 (#26611)
## **Description**
Upgrades \`@metamask/design-system-react-native\` from \`^0.7.0\` to
\`^0.8.0\` (design system monorepo
[v21.0.0](https://github.com/MetaMask/metamask-design-system/releases/tag/v21.0.0))
and marks the legacy \`RadioButton\` component as deprecated.
This also updates the transitive dependency
\`@metamask/design-system-shared\` from \`0.1.3\` → \`0.2.0\`.
**What's new in 0.8.0:**
- Added \`RadioButton\` component (checked, disabled, read-only, and
danger states; full accessibility support)
- \`BadgeStatus\` migrated from TypeScript enums to string union types —
no migration required, enum constants still work
- \`BottomSheetFooter\` refactored to top-level location — no import
changes needed for package entry point consumers
**Deprecation:**
- Added \`@deprecated\` JSDoc tag to the legacy
\`app/component-library\` \`RadioButton\` component, pointing consumers
to \`RadioButton\` from \`@metamask/design-system-react-native\`
## **Changelog**
CHANGELOG entry: null
## **Related issues**
Fixes:
## **Manual testing steps**
\`\`\`gherkin
Feature: design system upgrade
Scenario: app builds and runs normally after upgrade
Given the app is built with the updated dependency
When user navigates through the app
Then existing components render correctly with no regressions
\`\`\`
## **Screenshots/Recordings**
### **After**
General smoke test to make sure mobile loads
https://github.com/user-attachments/assets/7e2f0181-a01a-4775-9a2d-cb290f5e24ab
## **Pre-merge author checklist**
- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I've included tests if applicable
- [x] I've documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I've applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.
## **Pre-merge reviewer checklist**
- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Dependency bump plus a doc-only deprecation annotation; no functional
code paths are changed in this repo beyond updated package resolution.
>
> **Overview**
> Upgrades `@metamask/design-system-react-native` from `^0.7.0` to
`^0.8.0` (and updates the lockfile, including
`@metamask/design-system-shared` to `^0.2.0`).
>
> Marks the legacy `app/component-library` `RadioButton` component as
**deprecated** via JSDoc, directing consumers to migrate to the
design-system `RadioButton` and linking to its docs.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
f79730b. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent ffc7e29 commit 6822001
3 files changed
Lines changed: 17 additions & 11 deletions
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8179 | 8179 | | |
8180 | 8180 | | |
8181 | 8181 | | |
8182 | | - | |
8183 | | - | |
8184 | | - | |
| 8182 | + | |
| 8183 | + | |
| 8184 | + | |
8185 | 8185 | | |
8186 | | - | |
| 8186 | + | |
8187 | 8187 | | |
8188 | 8188 | | |
8189 | 8189 | | |
| |||
8196 | 8196 | | |
8197 | 8197 | | |
8198 | 8198 | | |
8199 | | - | |
| 8199 | + | |
8200 | 8200 | | |
8201 | 8201 | | |
8202 | 8202 | | |
8203 | | - | |
8204 | | - | |
8205 | | - | |
| 8203 | + | |
| 8204 | + | |
| 8205 | + | |
8206 | 8206 | | |
8207 | 8207 | | |
8208 | | - | |
| 8208 | + | |
8209 | 8209 | | |
8210 | 8210 | | |
8211 | 8211 | | |
| |||
35385 | 35385 | | |
35386 | 35386 | | |
35387 | 35387 | | |
35388 | | - | |
| 35388 | + | |
35389 | 35389 | | |
35390 | 35390 | | |
35391 | 35391 | | |
| |||
0 commit comments