Commit b13784e
committed
feat(chip): migrate Chip to MD3 tokens and Reanimated
- rework Chip around a dedicated tokens.ts (colors/sizes) and utils.ts
(was helpers.tsx), replacing legacy RN-core Animated with Surface's
Reanimated-driven elevation
- add trailingIcon prop independent of onClose, plus M3 assist/filter/
input/suggestion example variants
- wire up hover-driven elevation, focus rings (chip body + trailing
icon), and focus-outline darkening
- fix disabled+selected chips losing their filled background, and
trailing-icon-to-label spacing using the touch target instead of the
icon's own size1 parent 52b9bba commit b13784e
16 files changed
Lines changed: 3329 additions & 1133 deletions
File tree
- docs
- 6.x/docs/guides
- public
- gallery
- screenshots
- src/data
- example/src/Examples
- src/components
- Chip
- __tests__
- __snapshots__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
83 | 105 | | |
84 | 106 | | |
85 | 107 | | |
| |||
Loading
Loading
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 54 | + | |
58 | 55 | | |
59 | 56 | | |
60 | 57 | | |
| |||
0 commit comments