@aircall/ds 0.43.0 → 0.44.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/index.d.ts CHANGED
@@ -645,7 +645,7 @@ declare namespace AlertDialogCancel {
645
645
  * the icon level with the first line when the title wraps.
646
646
  */
647
647
  declare const alertVariants: (props?: ({
648
- variant?: "default" | "info" | "success" | "warning" | "error" | null | undefined;
648
+ variant?: "default" | "error" | "info" | "success" | "warning" | null | undefined;
649
649
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
650
650
  /**
651
651
  * Callout that draws attention to an important, contextual message.
@@ -1049,7 +1049,7 @@ declare namespace BadgeGroupCount {
1049
1049
  * edge gets the accent border.
1050
1050
  */
1051
1051
  declare const bannerVariants: (props?: ({
1052
- variant?: "default" | "info" | "success" | "warning" | "error" | null | undefined;
1052
+ variant?: "default" | "error" | "info" | "success" | "warning" | null | undefined;
1053
1053
  borderDirection?: "bottom" | "top" | null | undefined;
1054
1054
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
1055
1055
  /**
@@ -1863,8 +1863,11 @@ declare namespace ColorPicker {
1863
1863
  * Trigger that opens the `ColorPicker`. Renders a Base UI `PopoverTrigger` as a
1864
1864
  * `<button>` - by default a 32px outline icon `Button` showing the current colour
1865
1865
  * as a rounded swatch. Override the element via `render` and the inner content via
1866
- * `children`. Forwards `className`, `aria-invalid` and `disabled`, so it can join a
1867
- * `ButtonGroup` and share an error border with a neighbouring `Input`.
1866
+ * `children`. Forwards `className`, `aria-invalid` and `disabled`, so it can join an
1867
+ * `InputGroup` and share an error border with a neighbouring `InputGroupInput` -
1868
+ * the recommended composition for a colour trigger beside a text field, since the
1869
+ * input stretches to fill the remaining width and the group's 40px shell already
1870
+ * matches this trigger's default height.
1868
1871
  *
1869
1872
  * @example
1870
1873
  * ```tsx
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as Button, D as _objectWithoutProperties, E as _objectSpread2, O as cn, S as registerI18nNamespace, T as linkStyle, _ as ActionBarHeight, a as TableFooter, b as detectInitialLanguage, c as TableRow, d as Checkbox, f as Spinner, g as ActionBarContext, h as ActionBarButton, i as TableCell, l as useFetchMoreSentinel, m as ActionBar, n as Table, o as TableHead, p as spinnerVariants, r as TableBody, s as TableHeader, t as DataTable, u as Skeleton, v as useDsTranslation, w as buttonVariants, x as dsI18n, y as SUPPORTED_LANGUAGES } from "./data-table-BsiUfZ3s.js";
1
+ import { C as Button, D as _objectWithoutProperties, E as _objectSpread2, O as cn, S as registerI18nNamespace, T as linkStyle, _ as ActionBarHeight, a as TableFooter, b as detectInitialLanguage, c as TableRow, d as Checkbox, f as Spinner, g as ActionBarContext, h as ActionBarButton, i as TableCell, l as useFetchMoreSentinel, m as ActionBar, n as Table, o as TableHead, p as spinnerVariants, r as TableBody, s as TableHeader, t as DataTable, u as Skeleton, v as useDsTranslation, w as buttonVariants, x as dsI18n, y as SUPPORTED_LANGUAGES } from "./data-table-sGfJhRvB.js";
2
2
  import * as React from "react";
3
3
  import { createContext, useContext, useSyncExternalStore } from "react";
4
4
  import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
@@ -3830,8 +3830,11 @@ function ColorPicker(componentProps) {
3830
3830
  * Trigger that opens the `ColorPicker`. Renders a Base UI `PopoverTrigger` as a
3831
3831
  * `<button>` - by default a 32px outline icon `Button` showing the current colour
3832
3832
  * as a rounded swatch. Override the element via `render` and the inner content via
3833
- * `children`. Forwards `className`, `aria-invalid` and `disabled`, so it can join a
3834
- * `ButtonGroup` and share an error border with a neighbouring `Input`.
3833
+ * `children`. Forwards `className`, `aria-invalid` and `disabled`, so it can join an
3834
+ * `InputGroup` and share an error border with a neighbouring `InputGroupInput` -
3835
+ * the recommended composition for a colour trigger beside a text field, since the
3836
+ * input stretches to fill the remaining width and the group's 40px shell already
3837
+ * matches this trigger's default height.
3835
3838
  *
3836
3839
  * @example
3837
3840
  * ```tsx
package/dist/theme.css CHANGED
@@ -348,8 +348,17 @@
348
348
  counterpart. Opacity = tone: Dark 10% → Medium Dark 40% → Medium Light
349
349
  60% → Light 80%. */
350
350
  --badge-film-10: rgba(255, 255, 255, 0.1);
351
+ /* Not a Badge tone either - Badge uses 10/40/60/80. 30 exists because Figma's
352
+ Bubble Hover state (`27904:8247`) lays a 30% white film over the bubble
353
+ surface; see `specs/bubbles.spec.md` section 14. Same family, one film scale. */
354
+ --badge-film-30: rgba(255, 255, 255, 0.3);
351
355
  --badge-film-40: rgba(255, 255, 255, 0.4);
352
356
  --badge-film-60: rgba(255, 255, 255, 0.6);
357
+ /* Not a Badge tone - Badge uses 10/40/60/80. 70 exists because Figma's
358
+ Bubble frames declare a 70% film on one icon disc (`alpha/30` on node
359
+ 27904:7588); see `specs/bubbles.spec.md` section 12. Kept in this family
360
+ rather than duplicated so there is one film scale, not two. */
361
+ --badge-film-70: rgba(255, 255, 255, 0.7);
353
362
  --badge-film-80: rgba(255, 255, 255, 0.8);
354
363
  }
355
364
 
@@ -467,8 +476,10 @@
467
476
  /* Dark theme: the film flips to near-black (#0a0a0a) so the same base
468
477
  shade darkens into its four tones instead of lightening. */
469
478
  --badge-film-10: rgba(10, 10, 10, 0.1);
479
+ --badge-film-30: rgba(10, 10, 10, 0.3);
470
480
  --badge-film-40: rgba(10, 10, 10, 0.4);
471
481
  --badge-film-60: rgba(10, 10, 10, 0.6);
482
+ --badge-film-70: rgba(10, 10, 10, 0.7);
472
483
  --badge-film-80: rgba(10, 10, 10, 0.8);
473
484
  }
474
485
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aircall/ds",
3
- "version": "0.43.0",
3
+ "version": "0.44.0",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "sideEffects": [