@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.
Files changed (36) hide show
  1. package/dist/globals.css +1 -1
  2. package/dist/index.d.ts +2488 -54
  3. package/dist/index.js +2274 -35
  4. package/dist/theme.css +30 -0
  5. package/package.json +1 -1
  6. package/skills/aircall-ds/adopt-attachment/SKILL.md +5 -6
  7. package/skills/aircall-ds/migrate-audio-player/SKILL.md +0 -1
  8. package/skills/aircall-ds/migrate-icons/SKILL.md +0 -1
  9. package/skills/aircall-ds/migrate-tractor/SKILL.md +2 -1
  10. package/skills/aircall-ds/migrate-tractor/accordion/SKILL.md +0 -1
  11. package/skills/aircall-ds/migrate-tractor/alert/SKILL.md +0 -1
  12. package/skills/aircall-ds/migrate-tractor/avatar/SKILL.md +0 -1
  13. package/skills/aircall-ds/migrate-tractor/badge/SKILL.md +0 -1
  14. package/skills/aircall-ds/migrate-tractor/button/SKILL.md +0 -1
  15. package/skills/aircall-ds/migrate-tractor/card/SKILL.md +0 -1
  16. package/skills/aircall-ds/migrate-tractor/combobox/SKILL.md +42 -4
  17. package/skills/aircall-ds/migrate-tractor/data-table/SKILL.md +2 -1
  18. package/skills/aircall-ds/migrate-tractor/dialog/SKILL.md +0 -1
  19. package/skills/aircall-ds/migrate-tractor/divider/SKILL.md +0 -1
  20. package/skills/aircall-ds/migrate-tractor/dropdown-menu/SKILL.md +0 -1
  21. package/skills/aircall-ds/migrate-tractor/dropzone/SKILL.md +30 -1
  22. package/skills/aircall-ds/migrate-tractor/form-and-field/SKILL.md +0 -1
  23. package/skills/aircall-ds/migrate-tractor/gauge/SKILL.md +0 -1
  24. package/skills/aircall-ds/migrate-tractor/input/SKILL.md +0 -1
  25. package/skills/aircall-ds/migrate-tractor/item/SKILL.md +0 -1
  26. package/skills/aircall-ds/migrate-tractor/link/SKILL.md +0 -1
  27. package/skills/aircall-ds/migrate-tractor/popover/SKILL.md +0 -1
  28. package/skills/aircall-ds/migrate-tractor/select/SKILL.md +0 -1
  29. package/skills/aircall-ds/migrate-tractor/sheet-vs-drawer/SKILL.md +0 -1
  30. package/skills/aircall-ds/migrate-tractor/skeleton/SKILL.md +0 -1
  31. package/skills/aircall-ds/migrate-tractor/styling/SKILL.md +138 -3
  32. package/skills/aircall-ds/migrate-tractor/tabs/SKILL.md +0 -1
  33. package/skills/aircall-ds/migrate-tractor/toast/SKILL.md +0 -1
  34. package/skills/aircall-ds/migrate-tractor/tooltip/SKILL.md +0 -1
  35. package/skills/aircall-ds/migrate-tractor/tree/SKILL.md +0 -1
  36. package/skills/aircall-ds/setup/SKILL.md +33 -1
@@ -6,7 +6,6 @@ description: >
6
6
  imports Tree or TreeSelect from @aircall/tractor.
7
7
  type: sub-skill
8
8
  library: aircall-ds
9
- library_version: "0.13.0"
10
9
  requires:
11
10
  - aircall-ds/setup
12
11
  - aircall-ds/migrate-tractor
@@ -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.