Repository navigation
Commit 06ee7c2
feat(core): alias --destructive to the danger roles and move components off destructive utilities (#583)
* feat(core): alias --destructive to the danger solid role
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* feat(core): Button destructive uses the danger roles
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* refactor(core): text-destructive utilities use text-danger-text
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* refactor(core): invalid borders and focus rings use the danger roles
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* refactor(core): destructive tints use bg-danger-surface
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* refactor(core): themes inherit --destructive from the danger roles
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* test(core): cover destructive aliases and Button danger utilities, update snapshots
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* docs: document --destructive as the danger solid alias
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* chore: add changeset for the destructive danger alias
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* docs(core): mark destructive tokens and utilities as deprecated
--destructive, --destructive-foreground and their utilities will be
removed in the next major (tailor-inc/platform-planning#2084), the same
as --status-* and --alert-*. Button variant="destructive" stays
undeprecated until a danger variant exists.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(core): list the destructive migration under 1.17.0 and fix the border replacement
The destructive change ships in the same release as the colour roles, so
the migration entry is 1.17.0. In the changeset, border-destructive maps
to border-danger-solid for invalid states; border-danger-border is 1.67:1
on the card and is for decorative borders only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(core): move the destructive migration to 1.18.0 and use the danger role in the selection bar
1.17.0 shipped without this change, so the migration entry now lists it under 1.18.0.
The DataTable selection bar (added in 1.17.0) used `text-destructive` for destructive overflow actions. It now uses `text-danger-text`, the same as ActionPanel.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Hiroki Uemura <hiroki_uemurapartners.tailor.tech@Hirokis-MacBook-Pro.local>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: Seiya IZUMI <IzumiSy@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: IzumiSy <982850+IzumiSy@users.noreply.github.com>1 parent 406e5f6 commit 06ee7c2
41 files changed
Lines changed: 246 additions & 125 deletions
File tree
- .changeset
- decisions
- docs-src
- concepts
- guides
- docs
- concepts
- packages/core
- __snapshots__
- src
- assets
- themes
- components
- action-panel
- ai-chat
- appshell
- button
- checkbox
- csv-importer
- data-table
- date-field
- field
- input
- internals/default-error-boundary
- textarea
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| |||
677 | 677 | | |
678 | 678 | | |
679 | 679 | | |
680 | | - | |
| 680 | + | |
681 | 681 | | |
682 | 682 | | |
683 | 683 | | |
| |||
694 | 694 | | |
695 | 695 | | |
696 | 696 | | |
697 | | - | |
| 697 | + | |
698 | 698 | | |
699 | 699 | | |
700 | 700 | | |
| |||
915 | 915 | | |
916 | 916 | | |
917 | 917 | | |
918 | | - | |
| 918 | + | |
919 | 919 | | |
920 | 920 | | |
921 | 921 | | |
| |||
1067 | 1067 | | |
1068 | 1068 | | |
1069 | 1069 | | |
1070 | | - | |
| 1070 | + | |
1071 | 1071 | | |
1072 | | - | |
| 1072 | + | |
1073 | 1073 | | |
1074 | 1074 | | |
1075 | 1075 | | |
| |||
1322 | 1322 | | |
1323 | 1323 | | |
1324 | 1324 | | |
1325 | | - | |
| 1325 | + | |
1326 | 1326 | | |
1327 | | - | |
| 1327 | + | |
1328 | 1328 | | |
1329 | 1329 | | |
1330 | 1330 | | |
| |||
1374 | 1374 | | |
1375 | 1375 | | |
1376 | 1376 | | |
1377 | | - | |
| 1377 | + | |
1378 | 1378 | | |
1379 | 1379 | | |
1380 | 1380 | | |
| |||
1425 | 1425 | | |
1426 | 1426 | | |
1427 | 1427 | | |
1428 | | - | |
| 1428 | + | |
1429 | 1429 | | |
1430 | 1430 | | |
1431 | 1431 | | |
| |||
1694 | 1694 | | |
1695 | 1695 | | |
1696 | 1696 | | |
1697 | | - | |
| 1697 | + | |
1698 | 1698 | | |
1699 | 1699 | | |
1700 | 1700 | | |
| |||
1775 | 1775 | | |
1776 | 1776 | | |
1777 | 1777 | | |
1778 | | - | |
| 1778 | + | |
1779 | 1779 | | |
1780 | 1780 | | |
1781 | 1781 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
156 | 160 | | |
157 | 161 | | |
158 | 162 | | |
| |||
195 | 199 | | |
196 | 200 | | |
197 | 201 | | |
198 | | - | |
| 202 | + | |
199 | 203 | | |
200 | 204 | | |
201 | 205 | | |
| |||
654 | 658 | | |
655 | 659 | | |
656 | 660 | | |
657 | | - | |
| 661 | + | |
658 | 662 | | |
659 | 663 | | |
660 | 664 | | |
| |||
0 commit comments