Component: Button migration 1: TextButton (#7537)

## Summary

Setup the variants and migrate existing uses of
TextButton/TextIconButton/IconButton to a single Button component.

Still a work in progress.

## Changes

- **What**: Add a new Button
- **What**: Migrate old buttons
- **What**: Delete old buttons
- **Dependencies**: CVA, upgrade Storybook

## Review Focus

<!-- Critical design decisions or edge cases that need attention -->

<!-- If this PR fixes an issue, uncomment and update the line below -->
<!-- Fixes #ISSUE_NUMBER -->

## Screenshots (if applicable)

<!-- Add screenshots or video recording to help explain your changes -->

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-7537-WIP-Component-Button-migration-2cb6d73d36508156a81bfc7bbddb36e9)
by [Unito](https://www.unito.io)

---------

Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
Alexander Brown
2025-12-16 20:38:24 -08:00
committed by GitHub
parent ab76d02823
commit 8d7dd9ed67
19 changed files with 275 additions and 260 deletions

20
pnpm-lock.yaml generated
View File

@@ -138,6 +138,9 @@ catalogs:
cross-env:
specifier: ^10.1.0
version: 10.1.0
cva:
specifier: 1.0.0-beta.4
version: 1.0.0-beta.4
dotenv:
specifier: ^16.4.5
version: 16.6.1
@@ -419,6 +422,9 @@ importers:
chart.js:
specifier: ^4.5.0
version: 4.5.0
cva:
specifier: 'catalog:'
version: 1.0.0-beta.4(typescript@5.9.2)
dompurify:
specifier: ^3.2.5
version: 3.2.5
@@ -4669,6 +4675,14 @@ packages:
csstype@3.2.3:
resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==}
cva@1.0.0-beta.4:
resolution: {integrity: sha512-F/JS9hScapq4DBVQXcK85l9U91M6ePeXoBMSp7vypzShoefUBxjQTo3g3935PUHgQd+IW77DjbPRIxugy4/GCQ==}
peerDependencies:
typescript: '>= 4.5.5'
peerDependenciesMeta:
typescript:
optional: true
data-urls@5.0.0:
resolution: {integrity: sha512-ZYP5VBHshaDAiVZxjbRVcFJpc+4xGgT0bK3vzy1HLN8jTO975HEbuYzZJcHoQEY5K1a0z8YayJkyVETa08eNTg==}
engines: {node: '>=18'}
@@ -12808,6 +12822,12 @@ snapshots:
csstype@3.2.3: {}
cva@1.0.0-beta.4(typescript@5.9.2):
dependencies:
clsx: 2.1.1
optionalDependencies:
typescript: 5.9.2
data-urls@5.0.0:
dependencies:
whatwg-mimetype: 4.0.0