@aircall/ds 0.26.0 → 0.28.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/dist/globals.css +1 -1
- package/dist/index.d.ts +2488 -54
- package/dist/index.js +2274 -35
- package/dist/theme.css +30 -0
- package/package.json +1 -1
- package/skills/aircall-ds/adopt-attachment/SKILL.md +5 -6
- package/skills/aircall-ds/migrate-audio-player/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-icons/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/SKILL.md +2 -1
- package/skills/aircall-ds/migrate-tractor/accordion/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/alert/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/avatar/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/badge/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/button/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/card/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/combobox/SKILL.md +42 -4
- package/skills/aircall-ds/migrate-tractor/data-table/SKILL.md +2 -1
- package/skills/aircall-ds/migrate-tractor/dialog/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/divider/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/dropdown-menu/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/dropzone/SKILL.md +30 -1
- package/skills/aircall-ds/migrate-tractor/form-and-field/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/gauge/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/input/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/item/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/link/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/popover/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/select/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/sheet-vs-drawer/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/skeleton/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/styling/SKILL.md +138 -3
- package/skills/aircall-ds/migrate-tractor/tabs/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/toast/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/tooltip/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/tree/SKILL.md +0 -1
- package/skills/aircall-ds/setup/SKILL.md +33 -1
|
@@ -8,7 +8,6 @@ description: >
|
|
|
8
8
|
side by side during a progressive migration.
|
|
9
9
|
type: core
|
|
10
10
|
library: aircall-ds
|
|
11
|
-
library_version: "0.13.0"
|
|
12
11
|
sources:
|
|
13
12
|
- "aircall/hydra:docs/migration-guides/tractor-to-ds/00-setup.md"
|
|
14
13
|
- "aircall/hydra:packages/ds/package.json"
|
|
@@ -170,6 +169,39 @@ no DS bundled inside), so both imports are required and there is no duplication:
|
|
|
170
169
|
@source "./src/**/*.{ts,tsx}";
|
|
171
170
|
```
|
|
172
171
|
|
|
172
|
+
> **Known limitation of the two-bundle approach:** `ds/globals.css` and `blocks/globals.css`
|
|
173
|
+
> each precompile the *same* Tailwind utility classes (e.g. `.text-base`) into `@layer
|
|
174
|
+
> utilities`. At equal specificity source order wins, so whichever bundle loads last can
|
|
175
|
+
> clobber the other's responsive variants (e.g. blocks' plain `.text-base` beating DS's
|
|
176
|
+
> `md:text-sm` on `Textarea`). **No import order fixes this** — it only moves the bug. If you
|
|
177
|
+
> hit it, use the single-compilation `theme.css` path below.
|
|
178
|
+
|
|
179
|
+
#### Single-compilation via `theme.css` (recommended for standalone DS + blocks)
|
|
180
|
+
|
|
181
|
+
Compile the CSS **once** so each utility is emitted exactly once — nothing to clobber, import
|
|
182
|
+
order irrelevant. This is the standard utility-first-library pattern. Instead of the two
|
|
183
|
+
precompiled `globals.css` bundles, import the directive-preserving `theme.css` artifacts (DS
|
|
184
|
+
tokens + dark variant + base reset + tw-animate; blocks tokens + keyframes — **no** Preflight
|
|
185
|
+
or utilities) and let your own single Tailwind pass generate the utilities by `@source`-scanning
|
|
186
|
+
the library dist:
|
|
187
|
+
|
|
188
|
+
```css
|
|
189
|
+
/* style.css */
|
|
190
|
+
@import 'tailwindcss'; /* Preflight + utility engine — consumer owns it */
|
|
191
|
+
@import '@aircall/ds/theme.css'; /* tokens + dark variant + base reset + tw-animate */
|
|
192
|
+
@import '@aircall/blocks/theme.css'; /* blocks tokens + keyframes */
|
|
193
|
+
@source '../node_modules/@aircall/ds/dist/index.js';
|
|
194
|
+
@source '../node_modules/@aircall/blocks/dist/index.js';
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
Note the deliberate contrast with the `globals.css` setup: here the full `@import 'tailwindcss'`
|
|
198
|
+
is **correct** — `theme.css` intentionally ships no Preflight and no utilities, so the consumer's
|
|
199
|
+
single pass owns the one Preflight and generates every utility once. (Do **not** mix the two:
|
|
200
|
+
never import a `globals.css` bundle *and* run a full `tailwindcss` pass — see the Common Mistakes
|
|
201
|
+
below.) `globals.css` still ships and is unchanged for precompiled-bundle consumers
|
|
202
|
+
(hubspot-cti, cross-browser-extension). Full rationale:
|
|
203
|
+
`packages/ds/docs/single-compilation-theme-css.md`.
|
|
204
|
+
|
|
173
205
|
#### Module-federation consumer
|
|
174
206
|
|
|
175
207
|
When your app runs as a remote inside a host that already imports DS globals (e.g.
|