feat: AlertDialog / Drawer / Popover / Alert / Badge / Toast コンポーネントを追加#97
Merged
Conversation
info / success / warning / danger の各状態色に base / light / dark の3トークンを定義 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
タイトルと説明文を持つ静的表示コンポーネント。info / success / warning / danger の4バリアントに対応。動的通知を想定しないため role="alert" はデフォルト付与しない Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
role="alertdialog" を固定したダイアログ。既存の Modal / DialogTrigger と組み合わせて使用し、variant でタイトル色と上部アクセントを変更可能 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
ステータスやラベルを表示する span ベースのバッジ。primary / secondary と状態色4種の計6バリアント Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
画面端からスライドインするドロワー。placement で4方向を指定でき、dismissable で外側クリック時の挙動を制御可能 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
react-aria の Popover をラップし、非モーダル Dialog と矢印(OverlayArrow)を内蔵。placement と showArrow でカスタマイズ可能 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
react-aria の UNSTABLE_ Toast API をラップ。グローバルキューによる toast.show / info / success / warning / danger / close の関数 API と、4隅に配置可能な ToastRegion を提供 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
AlertDialog / Drawer / Popover / Alert / Badge / Toast のメタデータ・デモ・MDXページを追加し、コンポーネント総数の表記を25個に更新 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- 新コンポーネントの変更内容を plenty-moons-shake.md へ統合し、重複していた changeset を削除 - CHANGELOG.md に v0.12.0〜v0.13.3 の未記載バージョンを追記し、v0.14.0 に未リリースの CodeBlock 追加分を追加 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
| Name | Type |
|---|---|
| @ginga-ui/core | Minor |
| ginga-ui.com | Minor |
| @ginga-ui/utils | Minor |
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
react-aria-components をアクセシビリティ基盤として、オーバーレイ系3種(AlertDialog / Drawer / Popover)と通知・表示系3種(Alert / Badge / Toast)の計6コンポーネントを追加します。
変更内容
デザイントークン
variables.cssにセマンティックカラー変数を追加(--color-info/--color-success/--color-warning/--color-dangerとそれぞれの-light/-dark)新コンポーネント
role="alert"はデフォルト付与せず props で指定可能role="alertdialog"を固定。既存の Modal / DialogTrigger を再利用し、外側クリックで閉じない挙動を維持ModalOverlay > Modal > Dialogの3層構成。placement 4方向のスライドイン・アウトアニメーション付き。dismissableprop で外側クリック挙動を制御placement/showArrowでカスタマイズ可能toast.show / info / success / warning / danger / closeの関数 API、4隅に配置可能な ToastRegion を提供。UNSTABLE 接頭辞はラップ内に隠蔽済みで、stable 化時も利用者側は無変更ドキュメント
検証
npx tsc --noEmit && pnpm run lint && pnpm run format && pnpm run stylelint通過pnpm build(tsdown の d.ts 生成)成功🤖 Generated with Claude Code