@aircall/ds 0.17.1 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -14
- package/dist/globals.css +1 -1
- package/dist/index.d.ts +86 -22
- package/dist/index.js +80 -8
- package/dist/theme.css +2 -0
- package/package.json +4 -4
- package/skills/aircall-ds/migrate-icons/SKILL.md +319 -90
- package/skills/aircall-ds/setup/SKILL.md +75 -31
|
@@ -56,112 +56,325 @@ wrapper; when it was wrapped in Tractor's `<Icon>`, also remove that wrapper (se
|
|
|
56
56
|
| `20` | `size-5` | 20px |
|
|
57
57
|
| `24` | `size-6` | 24px |
|
|
58
58
|
|
|
59
|
-
## 4. Icon name mapping (
|
|
59
|
+
## 4. Icon name mapping (complete)
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
### Phone & Calls
|
|
64
|
-
|
|
65
|
-
| Old (`@aircall/icons`) | New (`@aircall/react-icons`) | Source |
|
|
66
|
-
| --- | --- | --- |
|
|
67
|
-
| `CallFilled`, `CallOutlined`, `CallCircleFilled` | `Phone` | lucide |
|
|
68
|
-
| `HangUpFilled` | `PhoneDecline` | custom |
|
|
69
|
-
| `HangUpOutlined` | `PhoneOff` | lucide |
|
|
70
|
-
| `MissedInboundFilled` | `PhoneMissed` | lucide |
|
|
71
|
-
| `TransferFilled`, `TransferredOutlined` | `Forward` | lucide |
|
|
72
|
-
| `VoicemailOutlined` | `Voicemail` | lucide |
|
|
73
|
-
| `VoicemailDrop` | `VoicemailDrop` | custom |
|
|
74
|
-
| `RingingFilled`, `CircledPhoneCallingFilled` | `PhoneCall` | lucide |
|
|
75
|
-
| `KeypadFilled`, `KeypadOutlined` | `Keypad` | custom |
|
|
76
|
-
| `ConferenceFilled`, `ConferenceOutlined` | `Conference` | custom |
|
|
77
|
-
|
|
78
|
-
### Actions
|
|
79
|
-
|
|
80
|
-
| Old (`@aircall/icons`) | New (`@aircall/react-icons`) | Source |
|
|
81
|
-
| --- | --- | --- |
|
|
82
|
-
| `CloseOutlined`, `CloseCircleFilled` | `X` | lucide |
|
|
83
|
-
| `CheckOutlined`, `TickOutlined` | `Check` | lucide |
|
|
84
|
-
| `SearchOutlined` | `Search` | lucide |
|
|
85
|
-
| `EditFilled`, `EditOutlined` | `Pencil` | lucide |
|
|
86
|
-
| `TrashFilled`, `TrashOutlined` | `Trash2` | lucide |
|
|
87
|
-
| `CopyFilled`, `CopyOutlined` | `Copy` | lucide |
|
|
88
|
-
| `FilterOutlined`, `FilterFilled` | `ListFilter` | lucide |
|
|
89
|
-
| `AddCircleFilled`, `PlusCircleFilled` | `Plus` | lucide |
|
|
61
|
+
Many old `*Filled` / `*Outlined` variants collapse into one new name — this is intentional consolidation. Rows marked ⚠️ need visual validation before the consumer migration is locked.
|
|
90
62
|
|
|
91
63
|
### Arrows & Navigation
|
|
92
64
|
|
|
93
|
-
| Old (`@aircall/icons`) | New (`@aircall/react-icons`) | Source |
|
|
94
|
-
| --- | --- | --- |
|
|
95
|
-
| `ChevronDownOutlined`, `ArrowDownFilled` | `ChevronDown` | lucide |
|
|
96
|
-
| `ChevronLeftOutlined` | `ChevronLeft` | lucide |
|
|
97
|
-
| `ChevronRightOutlined`, `ArrowRightFilled` | `ChevronRight` | lucide |
|
|
98
|
-
| `ChevronUpOutlined`, `ArrowUpFilled` | `ChevronUp` | lucide |
|
|
99
|
-
| `
|
|
100
|
-
| `
|
|
65
|
+
| Old (`@aircall/icons`) | New (`@aircall/react-icons`) | Source | Note |
|
|
66
|
+
| --- | --- | --- | --- |
|
|
67
|
+
| `ChevronDownOutlined`, `ChevronDownSmallRoundedFilled`, `ArrowDownFilled`, `CircledDownFilled`, `CircledDownOutlined` | `ChevronDown` | lucide | ⚠️ validate usage |
|
|
68
|
+
| `ChevronLeftOutlined`, `CircledLeftFilled`, `CircledLeftOutlined` | `ChevronLeft` | lucide | ⚠️ validate usage |
|
|
69
|
+
| `ChevronRightOutlined`, `ArrowRightFilled`, `ArrowRightOutlined`, `CircledRightFilled`, `CircledRightOutlined`, `CircledRightArrowFilled` | `ChevronRight` | lucide | ⚠️ validate usage |
|
|
70
|
+
| `ChevronUpOutlined`, `ArrowUpFilled`, `ArrowUpOutlined`, `ChevronUpSmallRoundedFilled`, `CircledUpFilled`, `CircledUpOutlined` | `ChevronUp` | lucide | ⚠️ validate usage |
|
|
71
|
+
| `ArrowLeftLine`, `ArrowBackOutlined`, `ArrowLeftFilled`, `ArrowLeftOutlined` | `ArrowLeft` | lucide | |
|
|
72
|
+
| `ArrowDownOutlined` | `ArrowDown` | lucide | |
|
|
73
|
+
| `DiagonalDownOutlined` | `ArrowDownLeft` | lucide | |
|
|
74
|
+
| `CircledDiagonalDownOutlinedFilled` | `ArrowDownRight` | lucide | |
|
|
75
|
+
| `DiagonalUpOutlined`, `CircledDiagonalUpOutlinedFilled` | `ArrowUpRight` | lucide | |
|
|
76
|
+
| `CircledArrowRightOutlined` | `ArrowRight` | lucide | |
|
|
77
|
+
| `ArrowSendOutlined`, `OutboundOutlined` | `ArrowRight` | lucide | |
|
|
78
|
+
| `SendFilled`, `SendOutlined`, `PaperPlaneFilled` | `Send` | lucide | |
|
|
79
|
+
| `ExpandOutlined` | `Maximize2` | lucide | |
|
|
80
|
+
| `FullscreenOutlined` | `Fullscreen` | lucide | |
|
|
81
|
+
| `MaximizeOutlined` | `Expand` | lucide | |
|
|
82
|
+
| `CollapseOutlined` | `Minimize2` | lucide | |
|
|
83
|
+
| `MinimizeOutlined` | `Shrink` | lucide | |
|
|
84
|
+
| `ExternalOutlined` | `ExternalLink` | lucide | |
|
|
85
|
+
| `ImportOutlined` | `ArrowDownToLine` | lucide | |
|
|
86
|
+
| `UndoOutlined` | `Undo2` | lucide | |
|
|
87
|
+
| `RedoOutlined` | `Redo2` | lucide | |
|
|
88
|
+
| `RefreshOutlined` | `RefreshCw` | lucide | |
|
|
89
|
+
| `ForwardFilled`, `ForwardOutlined` | `Forward` | lucide | message/email forwarding arrow |
|
|
90
|
+
| `ArrowsContractOutlined` | `Shrink` | lucide | compress / contract to smaller area |
|
|
91
|
+
| `AutoScrollOutlined` | `Autoscroll` | custom | |
|
|
92
|
+
| `SkipNextFilled`, `SkipNextOutlined` | `SkipForward` | lucide | |
|
|
93
|
+
|
|
94
|
+
### Audio & Video controls
|
|
95
|
+
|
|
96
|
+
| Old (`@aircall/icons`) | New (`@aircall/react-icons`) | Source | Note |
|
|
97
|
+
| --- | --- | --- | --- |
|
|
98
|
+
| `PlayFilled`, `PlayOutlined` | `Play` | lucide | |
|
|
99
|
+
| `PauseFilled`, `PauseOutlined`, `HoldFilled`, `HoldOutlined` | `Pause` | lucide | `Hold*` SVG is identical to Pause (two vertical bars) |
|
|
100
|
+
| `PlayPauseFilled`, `PlayPauseOutlined` | — | **No equivalent** — use `Play` / `Pause` contextually | ⚠️ validate usage |
|
|
101
|
+
| `ControlStopFilled`, `ControlStopOutlined` | `Stop` | custom | |
|
|
102
|
+
| `StopFilled`, `StopOutlined` | `XCircle` | lucide | Tractor `StopFilled` is a circled-X | ⚠️ validate usage |
|
|
103
|
+
| `ReplayFilled`, `ReplayOutlined` | `Replay` | custom | |
|
|
104
|
+
| `RecordingLiveOutlined` | `RecordFilled` | custom | |
|
|
105
|
+
| `RecordingPauseOutlined` | `RecordPauseFilled` | custom | |
|
|
106
|
+
| `RecordingResumeOutlined` | `RecordPlayFilled` | custom | |
|
|
107
|
+
| `FastForwardFilled`, `FastForwardOutlined` | `FastForward` | lucide | |
|
|
108
|
+
| `RewindFilled`, `RewindOutlined` | `Rewind` | lucide | |
|
|
109
|
+
| `SkipPreviousFilled`, `SkipPreviousOutlined` | `SkipBack` | lucide | |
|
|
110
|
+
| `Backward10Outlined` | `Backward10` | custom | |
|
|
111
|
+
| `Forward10Outlined` | `Forward10` | custom | |
|
|
112
|
+
| `ShareScreenFilled`, `ShareScreenOutlined` | `ScreenShare` | lucide | ⚠️ validate usage |
|
|
113
|
+
| `SoundHighFilled`, `SoundHighOutlined` | `Volume2` | lucide | |
|
|
114
|
+
| `SoundLowFilled`, `SoundLowOutlined` | `Volume1` | lucide | |
|
|
115
|
+
| `SoundOffFilled`, `SoundOffOutlined` | `VolumeX` | lucide | |
|
|
116
|
+
| `SoundWaveFilled` | `AudioLines` | lucide | |
|
|
117
|
+
| `SoundwaveOutlined` | `AudioWaveform` | lucide | |
|
|
118
|
+
| `MicOnFilled`, `MicOnOutlined` | `Mic` | lucide | |
|
|
119
|
+
| `MicOffFilled`, `MicOffOutlined` | `MicOff` | lucide | |
|
|
120
|
+
| `NoiseCancellationOutlined` | `NoiseCancellation` | custom | |
|
|
121
|
+
| `Speech` | `Speech` | lucide | |
|
|
122
|
+
| `SpeechOff` | `SpeechOff` | custom | |
|
|
123
|
+
| `RecordingOffOutlined` | `CircleOff` | lucide | recording-disabled indicator (circle with slash) |
|
|
124
|
+
| `Speed100XFilled`, `Speed125XFilled`, `Speed150XFilled`, `Speed200XFilled` | — | **No equivalent** — render as text or custom badge | ⚠️ validate usage |
|
|
125
|
+
| `HeadsetFilled`, `HeadsetOutlined` | `Headset` | lucide | |
|
|
126
|
+
| `MusicFilled`, `MusicOutlined` | `Music4` | lucide | |
|
|
127
|
+
| `VideoFilled`, `VideoOutlined` | `Video` | lucide | |
|
|
128
|
+
| `ListenOnOutlined` | `Ear` | lucide | ⚠️ validate usage |
|
|
129
|
+
| `ListenOffOutlined` | `EarOff` | lucide | ⚠️ validate usage |
|
|
130
|
+
| `PictureInPictureOutlined` | `PictureInPicture2` | lucide | |
|
|
101
131
|
|
|
102
|
-
###
|
|
132
|
+
### Phone & Calls
|
|
103
133
|
|
|
104
|
-
| Old (`@aircall/icons`) | New (`@aircall/react-icons`) | Source |
|
|
105
|
-
| --- | --- | --- |
|
|
106
|
-
| `
|
|
107
|
-
| `
|
|
108
|
-
| `
|
|
109
|
-
| `
|
|
110
|
-
| `
|
|
111
|
-
| `
|
|
112
|
-
| `
|
|
134
|
+
| Old (`@aircall/icons`) | New (`@aircall/react-icons`) | Source | Note |
|
|
135
|
+
| --- | --- | --- | --- |
|
|
136
|
+
| `CallFilled`, `CallOutlined`, `CallCircleFilled` | `Phone` | lucide | |
|
|
137
|
+
| `PhoneCallingFilled` | `PhoneCall` | lucide | |
|
|
138
|
+
| `ClickToContactFilled` | `PhoneMessageCircle` | custom | |
|
|
139
|
+
| `CallInboundFilled`, `InboundFilled`, `InboundOutlined` | `PhoneIncoming` | lucide | |
|
|
140
|
+
| `CallOutboundFilled`, `OutboundFilled`, `AnsweredOutboundFilled` | `PhoneOutgoing` | lucide | |
|
|
141
|
+
| `NumberExtensionFilled` | `PhoneForwarded` | lucide | SVG is a phone-with-arrow, not a "#" hash |
|
|
142
|
+
| `HangUpFilled` | `PhoneDecline` | custom | |
|
|
143
|
+
| `HangUpOutlined` | `PhoneOff` | lucide | |
|
|
144
|
+
| `MissedInboundFilled` | `PhoneMissed` | lucide | |
|
|
145
|
+
| `MissedOutboundFilled` | `PhoneOff` | lucide | |
|
|
146
|
+
| `RingingFilled`, `RingingOutlined`, `CircledPhoneCallingFilled`, `CircledPhoneCallingOutlined` | `PhoneCall` | lucide | |
|
|
147
|
+
| `TransferFilled`, `TransferredOutlined` | `Forward` | lucide | |
|
|
148
|
+
| `TransferOutlined`, `TransferredFilled`, `PhoneArrowRightFilled` | `PhoneForwarded` | lucide | |
|
|
149
|
+
| `CallbackFilled`, `CallbackOutlined` | `Callback` | custom | |
|
|
150
|
+
| `QueueTransferFilled` | `Assigned` | custom | |
|
|
151
|
+
| `PhoneStar` | `Star` | lucide | |
|
|
152
|
+
| `CallBoltFilled` | `PhoneFollowUp` | custom | |
|
|
153
|
+
| `FollowUpFilled` | `PhoneFollowUp` | custom | |
|
|
154
|
+
| `KeypadFilled`, `KeypadOutlined` | `Keypad` | custom | |
|
|
155
|
+
| `PowerDialerFilled` | `PowerDialer` | custom | |
|
|
156
|
+
| `ConferenceFilled`, `ConferenceOutlined` | `Conference` | custom | |
|
|
157
|
+
| `VoicemailOutlined`, `CircledVoicemailFilled` | `Voicemail` | lucide | |
|
|
158
|
+
| `VoicemailDrop`, `VoicemailDropOutlined`, `VoicemailSubmittedOutlined` | `VoicemailDrop` | custom | |
|
|
159
|
+
| `DialLowFilled`, `OverviewOutlined` | `Gauge` | lucide | |
|
|
160
|
+
| `DialLowOutlined` | `Gauge` | lucide | |
|
|
161
|
+
| `Network0Outlined` (from `@aircall/tractor-v1`) | `SignalZero` | lucide | |
|
|
162
|
+
| `Network1Outlined` (from `@aircall/tractor-v1`) | `SignalLow` | lucide | |
|
|
163
|
+
| `Network2Outlined` (from `@aircall/tractor-v1`) | `SignalMedium` | lucide | |
|
|
164
|
+
| `Network3Outlined` (from `@aircall/tractor-v1`) | `SignalHigh` | lucide | |
|
|
165
|
+
| `Network4Outlined` (from `@aircall/tractor-v1`) | `Signal` | lucide | |
|
|
113
166
|
|
|
114
|
-
###
|
|
167
|
+
### Messages & SMS
|
|
115
168
|
|
|
116
|
-
| Old (`@aircall/icons`) | New (`@aircall/react-icons`) | Source |
|
|
117
|
-
| --- | --- | --- |
|
|
118
|
-
| `
|
|
119
|
-
| `
|
|
120
|
-
| `
|
|
121
|
-
| `
|
|
122
|
-
| `
|
|
169
|
+
| Old (`@aircall/icons`) | New (`@aircall/react-icons`) | Source | Note |
|
|
170
|
+
| --- | --- | --- | --- |
|
|
171
|
+
| `MessageFilled`, `SmsMessageLineFilled`, `SmsInboundFilled`, `SmsInboundOutlined`, `SmsMessageLineLeftOutline`, `CircledMessageFilled`, `CircledMessageNewOutlined` | `MessageSquare` | lucide | |
|
|
172
|
+
| `MessageOutlined`, `SmsMessageLineOutline`, `SmsOutboundOutlined`, `SmsOutboundFilled` | `MessageSquareInverted` | custom | |
|
|
173
|
+
| `MessageCircleOutlined` | `MessageSquare` | lucide | |
|
|
174
|
+
| `ChatFilled`, `ChatOutlined`, `DoubleConversationFilled` | `MessagesSquare` | lucide | |
|
|
175
|
+
| `MessageDisabledOutlined` | `MessageSquareOff` | lucide | ⚠️ validate usage |
|
|
176
|
+
| `MessageReadOutlined`, `SmsMessageReadFilled` | `MessageSquareCheck` | custom | |
|
|
177
|
+
| `MessageUnreadOutlined`, `MessageUnreadFilled` | `MessageSquareDot` | lucide | ⚠️ validate usage |
|
|
178
|
+
| `SmsMessageDotOutline`, `MessageDotsOutlined`, `MessageDotsFilled` | `MessageSquareMore` | lucide | |
|
|
179
|
+
| `SmsMessageLineErrorOutline` | `MessageSquareX` | lucide | |
|
|
180
|
+
| `MmsMessageLineLeftFill` | `MessageSquareImage` | custom | |
|
|
181
|
+
| `AIMessageFilled` | — | **No equivalent** — AI message indicator | ⚠️ validate usage |
|
|
182
|
+
| `StartConversation` | `Plus` | lucide | SVG is literally a plus sign |
|
|
183
|
+
| `EmailFilled`, `MailOutlined` | `Mail` | lucide | |
|
|
184
|
+
| `GenerateEmailFilled` | `EmailSparkle` | custom | |
|
|
185
|
+
| `InboxFilled`, `InboxOutlined`, `InboxBoldOutlined` | `Inbox` | lucide | |
|
|
186
|
+
| `InboxArrowInOutlined` | `ArchiveRestore` | lucide | see pending design confirmation |
|
|
187
|
+
|
|
188
|
+
### Date & Time
|
|
189
|
+
|
|
190
|
+
| Old (`@aircall/icons`) | New (`@aircall/react-icons`) | Source | Note |
|
|
191
|
+
| --- | --- | --- | --- |
|
|
192
|
+
| `CalendarFilled`, `CalendarOutlined` | `Calendar` | lucide | |
|
|
193
|
+
| `ClockFilled`, `ClockOutlined` | `Clock` | lucide | |
|
|
194
|
+
| `TimerFilled` | `Timer` | lucide | ⚠️ validate usage |
|
|
195
|
+
| `SandclockFilled` | `Hourglass` | lucide | |
|
|
196
|
+
| `HistoryFilled`, `HistoryOutlined` | `History` | lucide | |
|
|
197
|
+
| `TimelineFilled` | `ArrowDownToDot` | lucide | |
|
|
123
198
|
|
|
124
|
-
###
|
|
199
|
+
### Actions
|
|
125
200
|
|
|
126
|
-
| Old (`@aircall/icons`) | New (`@aircall/react-icons`) | Source |
|
|
127
|
-
| --- | --- | --- |
|
|
128
|
-
| `
|
|
129
|
-
| `
|
|
130
|
-
| `
|
|
131
|
-
| `
|
|
132
|
-
| `
|
|
201
|
+
| Old (`@aircall/icons`) | New (`@aircall/react-icons`) | Source | Note |
|
|
202
|
+
| --- | --- | --- | --- |
|
|
203
|
+
| `AddCircleFilled`, `PlusCircleFilled`, `PlusCircleOutlined` | `Plus` | lucide | |
|
|
204
|
+
| `PlusOutlined` | `Plus` | lucide | |
|
|
205
|
+
| `MinusOutlined` | `Minus` | lucide | |
|
|
206
|
+
| `IndeterminateFilled` | `Minus` | lucide | indeterminate checkbox state (same minus shape) |
|
|
207
|
+
| `CloseOutline`, `CloseOutlined` | `X` | lucide | |
|
|
208
|
+
| `CloseCircleFilled`, `CloseCircleOutlined` | `X` | lucide | |
|
|
209
|
+
| `CheckOutlined`, `TickOutlined` | `Check` | lucide | |
|
|
210
|
+
| `TickCircleFilled`, `TickCircleOutlined`, `CheckedCircleFilled`, `CheckedCircleOutlined`, `CheckedCircleOutlinedFilled` | `CircleCheck` | lucide | |
|
|
211
|
+
| `CheckedOutlined` | `CircleCheck` | lucide | |
|
|
212
|
+
| `DoubleCheckOutlined`, `DoubleTickCircleFilled` | `CheckCheck` | lucide | |
|
|
213
|
+
| `ActionItemsFilled`, `ActionItemOutlined` | `SquareCheckBig` | lucide | |
|
|
214
|
+
| `ToDoFilled`, `ToDoOutlined` | `ListTodo` | lucide | |
|
|
215
|
+
| `DragOutlined` | `GripVertical` | lucide | |
|
|
216
|
+
| `OpenHandOutlined` | `Hand` | lucide | ⚠️ validate usage |
|
|
217
|
+
| `MinusCircleFilled`, `MinusCircleOutlined` | `Minus` | lucide | |
|
|
218
|
+
| `ImageFilled` | `Image` | lucide | |
|
|
219
|
+
| `ShareFilled`, `ShareOutlined` | `Share2` | lucide | |
|
|
220
|
+
| `CopyFilled`, `CopyOutlined` | `Copy` | lucide | |
|
|
221
|
+
| `EditFilled`, `EditOutlined`, `DraftCircleFilled` | `Pencil` | lucide | |
|
|
222
|
+
| `TrashFilled`, `TrashOutlined` | `Trash2` | lucide | |
|
|
223
|
+
| `DownloadFilled` | `ArrowDownToLine` | lucide | |
|
|
224
|
+
| `ArchiveOutlined`, `ArchiveFilled`, `ArchivesFilled` | `Archive` | lucide | |
|
|
225
|
+
| `UnarchiveFilled`, `UnarchiveOutlined` | `ArchiveRestore` | lucide | |
|
|
226
|
+
| `LinkOutlined` | `Link` | lucide | |
|
|
227
|
+
| `ClipOutlined` | `Paperclip` | lucide | |
|
|
228
|
+
| `FilterOutlined`, `FilterFilled` | `ListFilter` | lucide | |
|
|
229
|
+
| `SortOutlined` | `ArrowUpDown` | lucide | |
|
|
230
|
+
| `SearchOutlined` | `Search` | lucide | |
|
|
231
|
+
| `ScanOutlined` | `ScanLine` | lucide | |
|
|
232
|
+
| `LockedFilled`, `LockedOutlined` | `LockKeyhole` | lucide | |
|
|
233
|
+
| `BlockedFilled`, `BlockedOutlined` | `CircleMinus` | lucide | |
|
|
234
|
+
| `LogoutOutlined` | `LogOut` | lucide | |
|
|
235
|
+
| `FixIconFilled` | `Wrench` | lucide | wrench/repair tool icon | ⚠️ validate usage |
|
|
236
|
+
| `AddPhotoFilled`, `AddPhotoOutlined` | `Camera` | lucide | |
|
|
237
|
+
| `EmojiFilled` | `Smile` | lucide | emoji picker trigger icon |
|
|
238
|
+
| `BookmarkFilled`, `BookmarkOutlined` | `Bookmark` | lucide | |
|
|
239
|
+
| `BookmarkAddFilled`, `BookmarkAddOutlined` | `BookmarkPlus` | lucide | ⚠️ validate usage |
|
|
240
|
+
| `BookmarkAddedFilled`, `BookmarkAddedOutlined` | `BookmarkCheck` | lucide | ⚠️ validate usage |
|
|
241
|
+
| `BookmarkDeleteFilled`, `BookmarkDeleteOutlined` | `BookmarkMinus` | lucide | ⚠️ validate usage |
|
|
242
|
+
| `KeypadDeleteFilled`, `KeypadDeleteOutlined` | `Delete` | lucide | backspace key on keypad |
|
|
243
|
+
| `BulletListFilled` | `ListTodo` | lucide | |
|
|
244
|
+
| `PaletteFilled` | `Palette` | lucide | |
|
|
133
245
|
|
|
134
|
-
###
|
|
246
|
+
### Users & Contacts
|
|
135
247
|
|
|
136
|
-
| Old (`@aircall/icons`) | New (`@aircall/react-icons`) | Source |
|
|
137
|
-
| --- | --- | --- |
|
|
138
|
-
| `
|
|
139
|
-
| `
|
|
140
|
-
| `
|
|
141
|
-
| `
|
|
248
|
+
| Old (`@aircall/icons`) | New (`@aircall/react-icons`) | Source | Note |
|
|
249
|
+
| --- | --- | --- | --- |
|
|
250
|
+
| `UserFilled`, `UserOutlined` | `UserRound` | lucide | |
|
|
251
|
+
| `AddUserFilled`, `AddUserOutlined`, `UserAddFilled` | `UserRoundPlus` | lucide | |
|
|
252
|
+
| `UserArrowInFilled` | `Assigned` | custom | |
|
|
253
|
+
| `PeopleFilled`, `PeopleOutlined`, `CircledConferenceFilled` | `UsersRound` | lucide | |
|
|
254
|
+
| `BotFilled` | `Bot` | lucide | |
|
|
255
|
+
| `ContactsFilled`, `ContactsOutlined` | `ContactRound` | lucide | |
|
|
256
|
+
| `ContactOutlined` | `CircleUserRound` | lucide | |
|
|
257
|
+
| `ContactInfoFilled`, `ContactFilled` | `ContactRound` | lucide | |
|
|
258
|
+
| `AssignedFilled`, `AssignedOutlined` | `Assigned` | custom | |
|
|
259
|
+
| `CompanyFilled`, `CompanyOutlined` | `Building` | lucide | |
|
|
142
260
|
|
|
143
261
|
### System & Settings
|
|
144
262
|
|
|
145
|
-
| Old (`@aircall/icons`) | New (`@aircall/react-icons`) | Source |
|
|
146
|
-
| --- | --- | --- |
|
|
147
|
-
| `SettingsFilled`, `SettingsOutlined` | `Settings` | lucide |
|
|
148
|
-
| `
|
|
149
|
-
| `
|
|
150
|
-
| `
|
|
263
|
+
| Old (`@aircall/icons`) | New (`@aircall/react-icons`) | Source | Note |
|
|
264
|
+
| --- | --- | --- | --- |
|
|
265
|
+
| `SettingsFilled`, `SettingsOutlined`, `Settings1Outlined` | `Settings` | lucide | |
|
|
266
|
+
| `PreferencesFilled`, `PreferencesOutlined` | `Settings` | lucide | |
|
|
267
|
+
| `MenuVerticalFilled`, `MenuVerticalOutlined` | `MoreVertical` | lucide | |
|
|
268
|
+
| `MenuHorizontalFilled`, `MenuHorizontalOutlined` | `MoreHorizontal` | lucide | |
|
|
269
|
+
| `LanguageOutlined` | `Languages` | lucide | |
|
|
270
|
+
| `ContextualRoutingOutlined` | `CodeXml` | lucide | |
|
|
271
|
+
| `NumbersFilled` | `Hash` | lucide | ⚠️ validate usage |
|
|
272
|
+
| `ListOutlined`, `ListFilled` | `List` | lucide | ⚠️ validate usage |
|
|
273
|
+
| `BugFilled`, `BugOutlined` | `Bug` | lucide | ⚠️ validate usage |
|
|
274
|
+
| `IntegrationsOutlined`, `Integrations1Outlined` | `Puzzle` | lucide | ⚠️ validate usage — see Pending design confirmation |
|
|
275
|
+
| `WebhookOutlined` | `Webhook` | lucide | |
|
|
276
|
+
| `StructureOutlined` | `Network` | lucide | |
|
|
277
|
+
| `EsimOutlined`, `EsimBoldOutlined` | `ESim` | custom | |
|
|
278
|
+
| `BluetoothOutlined` | `Bluetooth` | lucide | |
|
|
279
|
+
| `PlugFilled`, `PlugOutlined` | `Plug` | lucide | ⚠️ validate usage |
|
|
280
|
+
| `PowerOutlined` | `Power` | lucide | ⚠️ validate usage |
|
|
281
|
+
| `KeyboardShortcutsFilled` | `Keyboard` | lucide | |
|
|
282
|
+
| `Switch` | `ArrowLeftRight` | lucide | ⚠️ validate usage |
|
|
283
|
+
| `ViewModeLeftBar` | `PanelLeft` | lucide | |
|
|
284
|
+
| `ViewModeLeftMenu` | `PanelLeftOpen` | lucide | |
|
|
285
|
+
| `StackViewOutlined` | `PanelTop` | lucide | |
|
|
286
|
+
| `SpinnerOutlined` | `Loader2` | lucide | spinning loader |
|
|
151
287
|
|
|
152
|
-
###
|
|
288
|
+
### Feedback & Status
|
|
153
289
|
|
|
154
|
-
| Old (`@aircall/icons`) | New (`@aircall/react-icons`) | Source |
|
|
155
|
-
| --- | --- | --- |
|
|
156
|
-
| `
|
|
157
|
-
| `
|
|
158
|
-
| `
|
|
159
|
-
| `
|
|
290
|
+
| Old (`@aircall/icons`) | New (`@aircall/react-icons`) | Source | Note |
|
|
291
|
+
| --- | --- | --- | --- |
|
|
292
|
+
| `InformationFilled`, `InformationOutlined` | `Info` | lucide | |
|
|
293
|
+
| `WarningFilled`, `WarningOutlined`, `WarningMarkOutlined` | `AlertTriangle` | lucide | |
|
|
294
|
+
| `WarningCircleFilled` | `AlertCircle` | lucide | |
|
|
295
|
+
| `QuestionFilled` | `HelpCircle` | lucide | |
|
|
296
|
+
| `SupportFilled`, `SupportOutlined`, `Support1Outlined` | `CircleHelp` | lucide | |
|
|
297
|
+
| `FeedbackFilled`, `FeedbackOutlined` | `Megaphone` | lucide | |
|
|
298
|
+
| `ThumbsUpOutlined` | `ThumbsUp` | lucide | |
|
|
299
|
+
| `ThumbsUpFilled` | `ThumbsUpFilled` | custom | |
|
|
300
|
+
| `ThumbsDownOutlined` | `ThumbsDown` | lucide | |
|
|
301
|
+
| `ThumbsDownFilled` | `ThumbsDownFilled` | custom | |
|
|
302
|
+
| `StarFilled` | `StarFilled` | custom | |
|
|
303
|
+
| `StarOutlined` | `Star` | lucide | |
|
|
304
|
+
| `NotificationBellStrokeFilled` | `BellOff` | lucide | |
|
|
305
|
+
| `BannerOutlined` | `Flag` | lucide | ⚠️ validate usage |
|
|
306
|
+
| `NotificationOnFilled`, `NotificationOnOutlined` | `Bell` | lucide | |
|
|
307
|
+
| `SentimentPositiveFilled`, `SentimentPositiveOutlined` | `Smile` | lucide | |
|
|
308
|
+
| `SentimentNeutralFilled`, `SentimentNeutralOutlined` | `Meh` | lucide | |
|
|
309
|
+
| `SentimentNegativeFilled`, `SentimentNegativeOutlined` | `Frown` | lucide | |
|
|
310
|
+
|
|
311
|
+
### Analytics & Activity
|
|
312
|
+
|
|
313
|
+
| Old (`@aircall/icons`) | New (`@aircall/react-icons`) | Source | Note |
|
|
314
|
+
| --- | --- | --- | --- |
|
|
315
|
+
| `ActivityFilled`, `ActivityOutlined`, `BoltFilled` | `Zap` | lucide | |
|
|
316
|
+
| `ActivityFeedFilled` | `Activity` | lucide | ⚠️ validate usage |
|
|
317
|
+
| `MonitoringFilled`, `AnalyticsFilled`, `AnalyticsPlusOutlined`, `GraphFilled` | `BarChartBig` | lucide | |
|
|
318
|
+
| `MonitoringOutlined`, `LivefeedOutlined` | `LiveMonitoring` | custom | |
|
|
319
|
+
| `AnalyticsOutlined`, `StatsOutlined` | `BarChart3` | lucide | ⚠️ validate usage |
|
|
320
|
+
| `SparklesFilled`, `LivePromptFilled` | `AiAssist` | custom | |
|
|
321
|
+
| `MagicFilled` | `AiAssist` | custom | |
|
|
322
|
+
| `AiAssistProFilled` | `AiAssistPro` | custom | |
|
|
323
|
+
| `AIAgent`, `VirtualAgentFilled` | `AiAgents` | custom | |
|
|
324
|
+
|
|
325
|
+
### Context (Notes, Tags, Files)
|
|
326
|
+
|
|
327
|
+
| Old (`@aircall/icons`) | New (`@aircall/react-icons`) | Source | Note |
|
|
328
|
+
| --- | --- | --- | --- |
|
|
329
|
+
| `NotesFilled`, `NotesOutlined` | `StickyNote` | lucide | |
|
|
330
|
+
| `TagsFilled`, `TagsOutlined` | `Tag` | lucide | |
|
|
331
|
+
| `TagsAndNotesFilled`, `TagsNotesFilled` | `TagsNotes` | custom | `TagsNotesFilled` is an identical SVG under a different name |
|
|
332
|
+
| `TemplateFilled` | `Template` | custom | |
|
|
333
|
+
| `TemplateAdd` | `TemplateAdd` | custom | |
|
|
334
|
+
| `PlaybookFilled`, `BantSummaryFilled` | `BookSparkle` | custom | |
|
|
335
|
+
| `CustomSummaryFilled` | `TranscriptSparkle` | custom | |
|
|
336
|
+
| `FileFilled` | `File` | lucide | |
|
|
337
|
+
| `DocumentationFilled` | `BookOpen` | lucide | ⚠️ validate usage |
|
|
338
|
+
| `InvoiceOutlined` | `Receipt` | lucide | ⚠️ validate usage |
|
|
339
|
+
| `PdfFilled` | `Pdf` | custom | |
|
|
340
|
+
| `FolderFilled` | `Folder` | lucide | |
|
|
341
|
+
| `FolderOpen`, `FolderOpenFilled` | `FolderOpen` | lucide | |
|
|
342
|
+
| `FolderCheckedOutlined` | `FolderCheck` | lucide | ⚠️ validate usage |
|
|
343
|
+
| `LocationPinFilled` | `MapPin` | lucide | |
|
|
344
|
+
|
|
345
|
+
### Visibility & Misc
|
|
346
|
+
|
|
347
|
+
| Old (`@aircall/icons`) | New (`@aircall/react-icons`) | Source | Note |
|
|
348
|
+
| --- | --- | --- | --- |
|
|
349
|
+
| `VisibleOnFilled`, `VisibleOnOutlined` | `Eye` | lucide | |
|
|
350
|
+
| `VisibleOffFilled`, `VisibleOffOutlined` | `EyeOff` | lucide | |
|
|
351
|
+
| `CircleFilled` | `Circle` | lucide | ⚠️ validate usage |
|
|
352
|
+
| `MoonFilled`, `MoonOutlined` | `Moon` | lucide | |
|
|
353
|
+
| `ContrastFilled` | `Palette` | lucide | ⚠️ validate usage |
|
|
354
|
+
| `SunFilled` | `Sun` | lucide | |
|
|
355
|
+
| `CrownFilled`, `CrownOutlined` | `Crown` | lucide | ⚠️ validate usage |
|
|
356
|
+
| `GiftOutlined`, `PresentFilled`, `PresentOutlined` | `Gift` | lucide | ⚠️ validate usage |
|
|
357
|
+
| `BatterySafeFilled` | `BatteryCharging` | lucide | |
|
|
358
|
+
| `PowerDialerAddFilled` | `PowerDialerPlus` | custom | |
|
|
359
|
+
| `TranscriptionOkOutlined` | `Transcript` | custom | |
|
|
360
|
+
| `TranscriptionNokOutlined`, `TranscriptionErrorOutlined` | `TranscriptOff` | custom | |
|
|
361
|
+
| `TranscriptionReadOutlined` | `Transcript` | custom | |
|
|
362
|
+
| `Utensils` | `Utensils` | lucide | |
|
|
363
|
+
| `Mug` | `Coffee` | lucide | |
|
|
364
|
+
|
|
365
|
+
### Education & Onboarding
|
|
366
|
+
|
|
367
|
+
| Old (`@aircall/icons`) | New (`@aircall/react-icons`) | Source | Note |
|
|
368
|
+
| --- | --- | --- | --- |
|
|
369
|
+
| `SchoolFilled` | `GraduationCap` | lucide | |
|
|
370
|
+
| `OnboardingFilled` | — | **No equivalent** — use `Flag` or `Rocket` as placeholder; confirm with design | ⚠️ validate usage |
|
|
371
|
+
|
|
372
|
+
### Flags
|
|
373
|
+
|
|
374
|
+
Colored country flags ship as `Flag*` exports (`FlagFr`, `FlagUs`, …). A `FLAGS` map is exported for dynamic ISO-code lookup.
|
|
160
375
|
|
|
161
376
|
## 5. Icons with no equivalent
|
|
162
377
|
|
|
163
|
-
A small number of old icons have no direct mapping. Handle them as noted:
|
|
164
|
-
|
|
165
378
|
| Old icon | Action |
|
|
166
379
|
| --- | --- |
|
|
167
380
|
| `PlayPauseFilled`, `PlayPauseOutlined` | Use `Play` or `Pause` contextually — no combined equivalent |
|
|
@@ -169,6 +382,14 @@ A small number of old icons have no direct mapping. Handle them as noted:
|
|
|
169
382
|
| `AIMessageFilled` | No equivalent — treat as custom SVG until a replacement ships |
|
|
170
383
|
| `OnboardingFilled` | Use `Flag` or `Rocket` as a placeholder; confirm with design |
|
|
171
384
|
|
|
385
|
+
## 5a. Pending design confirmation
|
|
386
|
+
|
|
387
|
+
Pairs where the placeholder mapping doesn't convincingly match the old icon. Confirm with design before locking the consumer-side migration.
|
|
388
|
+
|
|
389
|
+
| Old | Placeholder | Reason |
|
|
390
|
+
| --- | --- | --- |
|
|
391
|
+
| `IntegrationsOutlined`, `Integrations1Outlined` | `Puzzle` (lucide) | Old is a flower/multi-petal hub, not a puzzle piece. |
|
|
392
|
+
|
|
172
393
|
## 6. Brand / platform icons (not in @aircall/react-icons)
|
|
173
394
|
|
|
174
395
|
Keep these as separate inline SVGs or local wrappers — they are not in `@aircall/react-icons`:
|
|
@@ -334,13 +555,21 @@ import { Phone } from '@aircall/react-icons';
|
|
|
334
555
|
|
|
335
556
|
Source: `@aircall/react-icons` re-exports lucide + Aircall icons as the canonical icon surface for Aircall apps.
|
|
336
557
|
|
|
337
|
-
## 9.
|
|
558
|
+
## 9. Gotchas
|
|
559
|
+
|
|
560
|
+
- **Filled-vs-outlined drift is expected.** Most lucide icons are stroke-outlined; only a small set in `react-icons/src/generated/custom` end in `Filled`. Looking "lighter" is not a bug.
|
|
561
|
+
- **Circle variants drop.** When lucide has no circled equivalent, the circle goes (`CallCircleFilled` → `Phone`).
|
|
562
|
+
- **Trust the visual, not the Tractor name.** Some Tractor names misdescribe their SVG: `StopFilled` is a circled-X, `ArrowDownFilled` is a chevron, `StartConversation` is just a plus. Look at the rendered shape before locking a mapping.
|
|
563
|
+
- **`@aircall/tractor-v1`** has its own icon family; same approach — map to lucide `Signal*` etc.
|
|
564
|
+
- **Missing row?** Look up the old name in `packages/icons/src/components/` for context, find the closest lucide/custom match, and add the row to the migration guide.
|
|
565
|
+
|
|
566
|
+
## 10. Migration checklist
|
|
338
567
|
|
|
339
568
|
- [ ] Swap `@aircall/icons` → `@aircall/react-icons` in `package.json`
|
|
340
569
|
- [ ] Remove `import { Icon } from '@aircall/tractor'` — no wrapper needed
|
|
341
570
|
- [ ] Rename icons per the tables above (many `*Filled`/`*Outlined` pairs merge into one name)
|
|
342
571
|
- [ ] Replace `color="…"` with `className="text-*"` using the color table
|
|
343
572
|
- [ ] Replace `size={N}` with `className="size-N"` (or omit when inside a DS `Button`)
|
|
344
|
-
- [ ] Run `pnpm tsc --noEmit` —
|
|
345
|
-
- [ ] Keep brand/platform icons (Aircall logo, OS, browser, WhatsApp) as separate assets
|
|
346
|
-
- [ ] For icons marked
|
|
573
|
+
- [ ] Run `pnpm tsc --noEmit` — unknown imports surface as missing exports
|
|
574
|
+
- [ ] Keep brand/platform icons (Aircall logo, OS, browser, WhatsApp) as separate assets — not in `@aircall/react-icons`
|
|
575
|
+
- [ ] For icons marked ⚠️ validate usage, confirm the new shape is visually correct in context before locking the migration
|
|
@@ -115,9 +115,8 @@ The precompiled `@aircall/ds/globals.css` contains **only the utilities DS's own
|
|
|
115
115
|
use** — not arbitrary Tailwind classes. Any utility *your* code authors that DS doesn't
|
|
116
116
|
itself ship (e.g. `px-0`, a one-off `max-w-3xl`, a custom `gap`) produces **no CSS** unless
|
|
117
117
|
you run your own Tailwind build — the class sits in your JSX, the element renders unstyled,
|
|
118
|
-
and nothing errors. A Tractor → DS migration almost always authors such classes
|
|
119
|
-
|
|
120
|
-
utilities), so this is effectively **required**, not optional.
|
|
118
|
+
and nothing errors. A Tractor → DS migration almost always authors such classes, so this is
|
|
119
|
+
effectively **required**, not optional.
|
|
121
120
|
|
|
122
121
|
Set up Tailwind v4 for *your* sources and point `@source` at your files, not at DS:
|
|
123
122
|
|
|
@@ -126,26 +125,66 @@ pnpm add -D tailwindcss @tailwindcss/postcss
|
|
|
126
125
|
```
|
|
127
126
|
|
|
128
127
|
```js
|
|
129
|
-
// postcss.config.mjs
|
|
128
|
+
// postcss.config.mjs
|
|
130
129
|
export default { plugins: { '@tailwindcss/postcss': {} } };
|
|
131
130
|
```
|
|
132
131
|
|
|
132
|
+
The CSS setup differs depending on whether your app is **standalone** or a
|
|
133
|
+
**module-federation consumer** (a remote whose host already loads DS globals).
|
|
134
|
+
|
|
135
|
+
#### Standalone app
|
|
136
|
+
|
|
137
|
+
**Using DS only:**
|
|
138
|
+
|
|
139
|
+
```css
|
|
140
|
+
/* style.css */
|
|
141
|
+
/* Lock layer order — required. Without this, @layer base from DS globals
|
|
142
|
+
lands after @layer utilities and gains higher cascade priority, breaking
|
|
143
|
+
border, p-*, and hidden utility classes. */
|
|
144
|
+
@layer theme, base, components, utilities;
|
|
145
|
+
|
|
146
|
+
/* Split import: activates Tailwind for @source scanning without a second
|
|
147
|
+
Preflight. DS globals below owns the single base reset.
|
|
148
|
+
IMPORTANT: the .css extension is required — bare specifiers
|
|
149
|
+
(tailwindcss/theme, tailwindcss/utilities) silently produce no output
|
|
150
|
+
in Rsbuild/webpack PostCSS. */
|
|
151
|
+
@import 'tailwindcss/theme.css' layer(theme);
|
|
152
|
+
@import 'tailwindcss/utilities.css' layer(utilities);
|
|
153
|
+
|
|
154
|
+
@import '@aircall/ds/globals.css';
|
|
155
|
+
|
|
156
|
+
@source "./src/**/*.{ts,tsx}";
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
**Using DS + `@aircall/blocks`:** import both — DS globals first, then blocks globals.
|
|
160
|
+
`@aircall/blocks/globals.css` is a delta build (blocks-specific tokens and utilities only;
|
|
161
|
+
no DS bundled inside), so both imports are required and there is no duplication:
|
|
162
|
+
|
|
163
|
+
```css
|
|
164
|
+
/* style.css */
|
|
165
|
+
@layer theme, base, components, utilities;
|
|
166
|
+
@import 'tailwindcss/theme.css' layer(theme);
|
|
167
|
+
@import 'tailwindcss/utilities.css' layer(utilities);
|
|
168
|
+
@import '@aircall/ds/globals.css';
|
|
169
|
+
@import '@aircall/blocks/globals.css';
|
|
170
|
+
@source "./src/**/*.{ts,tsx}";
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
#### Module-federation consumer
|
|
174
|
+
|
|
175
|
+
When your app runs as a remote inside a host that already imports DS globals (e.g.
|
|
176
|
+
`dashboard-v4`), **do not import DS or blocks globals** — the host's Preflight applies to the
|
|
177
|
+
whole document. A duplicate emitted by the remote's injected `<style>` tag wins in
|
|
178
|
+
`@layer base` and breaks DS component borders and padding.
|
|
179
|
+
|
|
133
180
|
```css
|
|
134
|
-
/* style.css
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
@import 'tailwindcss/
|
|
138
|
-
@
|
|
139
|
-
@import '@aircall/ds/globals.css'; /* DS bundle: the single Preflight + tokens + DS utilities */
|
|
140
|
-
@import '@aircall/blocks/globals.css'; /* if you use @aircall/blocks */
|
|
141
|
-
@source "src"; /* scan YOUR code so its classes are generated */
|
|
181
|
+
/* style.css */
|
|
182
|
+
@layer theme, base, components, utilities;
|
|
183
|
+
@import 'tailwindcss/theme.css' layer(theme);
|
|
184
|
+
@import 'tailwindcss/utilities.css' layer(utilities);
|
|
185
|
+
@source "./**/*.{ts,tsx}";
|
|
142
186
|
```
|
|
143
187
|
|
|
144
|
-
DS **design-token** utilities (`text-muted-foreground`, `bg-card`, …) come from the
|
|
145
|
-
precompiled DS bundle; your build adds only the **core** utilities (`px-0`, `max-w-2xl`,
|
|
146
|
-
layout, spacing) DS doesn't ship. Splitting into `tailwindcss/theme` + `tailwindcss/utilities`
|
|
147
|
-
(rather than the full `tailwindcss`) is what keeps the **single** Preflight — the theme gives
|
|
148
|
-
your utilities their scale, `@source` scans your code, and no base reset is duplicated.
|
|
149
188
|
|
|
150
189
|
### Peers you provide
|
|
151
190
|
|
|
@@ -159,13 +198,12 @@ automatically with ds; nothing to add. The only peers YOU must provide:
|
|
|
159
198
|
|
|
160
199
|
## Common Mistakes
|
|
161
200
|
|
|
162
|
-
### HIGH — Full `@import 'tailwindcss'` on top of the DS bundle (
|
|
201
|
+
### HIGH — Full `@import 'tailwindcss'` on top of the DS bundle (harmful duplicate Preflight)
|
|
163
202
|
|
|
164
|
-
Wrong — the full import re-applies Tailwind's Preflight
|
|
165
|
-
DS bundle already ships:
|
|
203
|
+
Wrong — the full import re-applies Tailwind's Preflight on top of the one DS already ships:
|
|
166
204
|
|
|
167
205
|
```css
|
|
168
|
-
@import 'tailwindcss'; /* ←
|
|
206
|
+
@import 'tailwindcss'; /* ← pulls in Preflight = a SECOND base reset */
|
|
169
207
|
@import '@aircall/ds/globals.css';
|
|
170
208
|
```
|
|
171
209
|
|
|
@@ -175,21 +213,27 @@ Correct — **not authoring your own classes:** just import the self-contained b
|
|
|
175
213
|
import '@aircall/ds/globals.css';
|
|
176
214
|
```
|
|
177
215
|
|
|
178
|
-
Correct — **authoring your own classes** (the migration case): import
|
|
179
|
-
utilities layers, never the full `tailwindcss`:
|
|
216
|
+
Correct — **authoring your own classes** (the migration case): split import, no full `tailwindcss`:
|
|
180
217
|
|
|
181
218
|
```css
|
|
182
|
-
@
|
|
183
|
-
@import 'tailwindcss/
|
|
219
|
+
@layer theme, base, components, utilities;
|
|
220
|
+
@import 'tailwindcss/theme.css' layer(theme);
|
|
221
|
+
@import 'tailwindcss/utilities.css' layer(utilities);
|
|
184
222
|
@import '@aircall/ds/globals.css';
|
|
185
|
-
@source "src";
|
|
223
|
+
@source "./src/**/*.{ts,tsx}";
|
|
186
224
|
```
|
|
187
225
|
|
|
188
|
-
`@aircall/ds/globals.css` is a precompiled
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
`theme` + `utilities` split
|
|
226
|
+
`@aircall/ds/globals.css` is a precompiled bundle that already includes Preflight in
|
|
227
|
+
`@layer base`. The full `@import 'tailwindcss'` adds a second Preflight. Which one wins
|
|
228
|
+
depends on load order — in module federation the remote's CSS lands after the host's, so the
|
|
229
|
+
remote's `border-color: currentColor` beats the DS token and card/component borders
|
|
230
|
+
disappear. The `theme.css` + `utilities.css` split activates Tailwind for `@source` scanning
|
|
231
|
+
with no Preflight emitted.
|
|
232
|
+
|
|
233
|
+
**Note on `@import 'tailwindcss/theme'` vs `@import 'tailwindcss/theme.css'`**: the bare
|
|
234
|
+
form (no `.css` extension) silently produces no output in Rsbuild/webpack PostCSS pipelines —
|
|
235
|
+
utility classes like `flex`, `gap-4`, `text-sm` are never generated. Always use the `.css`
|
|
236
|
+
extension.
|
|
193
237
|
|
|
194
238
|
Source: aircall/hydra:docs/migration-guides/tractor-to-ds/00-setup.md (§3)
|
|
195
239
|
|