@aircall/ds 0.46.0 → 0.46.2

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
@@ -96,7 +96,7 @@ declare namespace AccordionContent {
96
96
  //#region src/components/button.d.ts
97
97
  /** `cva` variant definitions for {@link Button} — resolves `variant`, `size`, and `block` into class names. */
98
98
  declare const buttonVariants: (props?: ({
99
- variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
99
+ variant?: "link" | "default" | "ghost" | "secondary" | "destructive" | "outline" | null | undefined;
100
100
  size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
101
101
  block?: boolean | null | undefined;
102
102
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -658,7 +658,7 @@ declare namespace AlertDialogCancel {
658
658
  * the icon level with the first line when the title wraps.
659
659
  */
660
660
  declare const alertVariants: (props?: ({
661
- variant?: "default" | "error" | "info" | "success" | "warning" | null | undefined;
661
+ variant?: "default" | "info" | "success" | "warning" | "error" | null | undefined;
662
662
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
663
663
  /**
664
664
  * Callout that draws attention to an important, contextual message.
@@ -742,7 +742,7 @@ declare namespace AlertAction {
742
742
  */
743
743
  type AttachmentState = 'idle' | 'uploading' | 'processing' | 'error' | 'done';
744
744
  declare const attachmentVariants: (props?: ({
745
- size?: "default" | "sm" | "xs" | null | undefined;
745
+ size?: "default" | "xs" | "sm" | null | undefined;
746
746
  orientation?: "horizontal" | "vertical" | null | undefined;
747
747
  block?: boolean | null | undefined;
748
748
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -884,7 +884,7 @@ declare namespace AttachmentGroup {
884
884
  * (`xs` | `sm` | `default` | `lg` | `xl`, default `default`) sets the avatar's diameter.
885
885
  */
886
886
  declare const avatarVariants: (props?: ({
887
- size?: "default" | "sm" | "lg" | "xs" | "xl" | null | undefined;
887
+ size?: "default" | "xs" | "sm" | "lg" | "xl" | null | undefined;
888
888
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
889
889
  /**
890
890
  * Circular container that displays a user or entity image with a text/icon fallback.
@@ -967,7 +967,7 @@ declare namespace AvatarGroupCount {
967
967
  * (`default` | `secondary` | `ghost`, default `default`) sets the colour scheme.
968
968
  */
969
969
  declare const counterBadgeVariants: (props?: ({
970
- variant?: "default" | "secondary" | "ghost" | null | undefined;
970
+ variant?: "default" | "ghost" | "secondary" | null | undefined;
971
971
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
972
972
  /**
973
973
  * Small pill for surfacing a count or short status, e.g. an unread indicator.
@@ -990,8 +990,8 @@ declare namespace CounterBadge {
990
990
  /** `cva` recipe for the Badge/Chip container — drives the `size`, `color`, and `tone` classes. */
991
991
  declare const badgeVariants: (props?: ({
992
992
  size?: "default" | "lg" | null | undefined;
993
- color?: "charcoal" | "red" | "green" | "blue" | "purple" | "yellow" | "pink" | null | undefined;
994
- tone?: "dark" | "medium-dark" | "medium-light" | "light" | null | undefined;
993
+ color?: "blue" | "green" | "pink" | "purple" | "red" | "yellow" | "charcoal" | null | undefined;
994
+ tone?: "dark" | "light" | "medium-dark" | "medium-light" | null | undefined;
995
995
  overflowMode?: "none" | "truncate" | null | undefined;
996
996
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
997
997
  type BadgeVariants = VariantProps<typeof badgeVariants>;
@@ -1069,7 +1069,7 @@ declare namespace BadgeGroupCount {
1069
1069
  * edge gets the accent border.
1070
1070
  */
1071
1071
  declare const bannerVariants: (props?: ({
1072
- variant?: "default" | "error" | "info" | "success" | "warning" | null | undefined;
1072
+ variant?: "default" | "info" | "success" | "warning" | "error" | null | undefined;
1073
1073
  borderDirection?: "bottom" | "top" | null | undefined;
1074
1074
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
1075
1075
  /**
@@ -5105,8 +5105,8 @@ declare namespace ItemSeparator {
5105
5105
  type Props = ItemSeparatorProps;
5106
5106
  }
5107
5107
  declare const itemVariants: (props?: ({
5108
- variant?: "default" | "outline" | "muted" | null | undefined;
5109
- size?: "default" | "sm" | "xs" | null | undefined;
5108
+ variant?: "default" | "muted" | "outline" | null | undefined;
5109
+ size?: "default" | "xs" | "sm" | null | undefined;
5110
5110
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5111
5111
  /**
5112
5112
  * Flexible list-item container laying out media, content, and actions on one row. Renders a `<div>`
@@ -5813,7 +5813,12 @@ interface ScrollAreaProps extends ScrollAreaPrimitive.Root.Props {
5813
5813
  */
5814
5814
  scrollFade?: boolean;
5815
5815
  /**
5816
- * Reserve inline padding for the scrollbar so content does not sit under it.
5816
+ * Shrinks the viewport's content box (via padding-inline-end for vertical overflow,
5817
+ * padding-bottom for horizontal overflow) so the overlaid scrollbar has dedicated empty space
5818
+ * to sit in, instead of floating on top of the last row/column of content. The root's overall
5819
+ * size is unchanged - this trades a bit of the existing content area for the gutter, it does
5820
+ * not add space. Reach for this whenever a fixed-height/width `ScrollArea` (e.g. a 40px chip
5821
+ * row) would otherwise have its scrollbar overlapping content.
5817
5822
  * @default false
5818
5823
  */
5819
5824
  scrollbarGutter?: boolean;
package/dist/index.js CHANGED
@@ -3137,7 +3137,7 @@ const _excluded$46 = [
3137
3137
  "type",
3138
3138
  "block"
3139
3139
  ];
3140
- const inputVariants = cva("text-foreground file:text-foreground placeholder:text-muted-foreground dark:bg-input/30 border-input flex h-10 w-full min-w-0 rounded-md border bg-background px-3 py-2 text-sm transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 dark:disabled:bg-input/80 md:text-sm focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3 aria-invalid:border-destructive focus-visible:aria-invalid:ring-destructive/20 focus-visible:aria-invalid:ring-3 dark:focus-visible:aria-invalid:ring-destructive/40", { variants: { block: { true: "w-full" } } });
3140
+ const inputVariants = cva("text-foreground file:text-foreground placeholder:text-muted-foreground dark:bg-input/30 border-input flex h-10 w-full min-w-0 rounded-md border bg-background px-3 py-2 text-sm transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 dark:disabled:bg-input/80 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3 aria-invalid:border-destructive focus-visible:aria-invalid:ring-destructive/20 focus-visible:aria-invalid:ring-3 dark:focus-visible:aria-invalid:ring-destructive/40", { variants: { block: { true: "w-full" } } });
3141
3141
  /**
3142
3142
  * Single-line text field styled to the design system.
3143
3143
  *
@@ -4233,7 +4233,7 @@ const Textarea = React.forwardRef((componentProps, forwardRef) => {
4233
4233
  return /* @__PURE__ */ jsx("textarea", _objectSpread2({
4234
4234
  ref: forwardRef,
4235
4235
  "data-slot": "textarea",
4236
- className: cn("border-input text-foreground placeholder:text-muted-foreground hover:aria-invalid:border-destructive focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3 aria-invalid:border-destructive focus-visible:aria-invalid:ring-destructive/20 focus-visible:aria-invalid:ring-3 dark:focus-visible:aria-invalid:ring-destructive/40 dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-background px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 dark:disabled:bg-input/80 md:text-sm", className)
4236
+ className: cn("border-input text-foreground placeholder:text-muted-foreground hover:aria-invalid:border-destructive focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3 aria-invalid:border-destructive focus-visible:aria-invalid:ring-destructive/20 focus-visible:aria-invalid:ring-3 dark:focus-visible:aria-invalid:ring-destructive/40 dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-background px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] outline-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 dark:disabled:bg-input/80", className)
4237
4237
  }, props));
4238
4238
  });
4239
4239
  Textarea.displayName = "Textarea";
@@ -10785,7 +10785,7 @@ const NumericInputControl = React.forwardRef((componentProps, forwardRef) => {
10785
10785
  return /* @__PURE__ */ jsx(NumberField.Input, _objectSpread2({
10786
10786
  ref: forwardRef,
10787
10787
  "data-slot": "input-group-control",
10788
- className: cn("text-foreground placeholder:text-muted-foreground min-w-0 flex-1 rounded-none border-0 bg-transparent px-3 py-2 text-base shadow-none outline-none disabled:opacity-100 md:text-sm", className),
10788
+ className: cn("text-foreground placeholder:text-muted-foreground min-w-0 flex-1 rounded-none border-0 bg-transparent px-3 py-2 text-sm shadow-none outline-none disabled:opacity-100", className),
10789
10789
  onChange: handleChange
10790
10790
  }, props));
10791
10791
  });
@@ -12775,7 +12775,7 @@ const RichTextareaContent = React.forwardRef((componentProps, forwardRef) => {
12775
12775
  "data-slot": "rich-textarea",
12776
12776
  "data-test": dataTest,
12777
12777
  "data-multiline": bare ? "true" : void 0,
12778
- className: cn("flex max-h-60 min-h-20 w-full flex-col overflow-y-auto px-3 py-2 text-base transition-[color,box-shadow] md:text-sm", bare ? "flex-1 border-0 bg-transparent shadow-none" : "border-input focus-within:border-ring focus-within:ring-ring/50 dark:bg-input/30 rounded-md border bg-background shadow-xs focus-within:ring-3", disabled && "cursor-not-allowed", disabled && !bare && "opacity-50 bg-input/50 dark:bg-input/80", className),
12778
+ className: cn("flex max-h-60 min-h-20 w-full flex-col overflow-y-auto px-3 py-2 text-sm transition-[color,box-shadow]", bare ? "flex-1 border-0 bg-transparent shadow-none" : "border-input focus-within:border-ring focus-within:ring-ring/50 dark:bg-input/30 rounded-md border bg-background shadow-xs focus-within:ring-3", disabled && "cursor-not-allowed", disabled && !bare && "opacity-50 bg-input/50 dark:bg-input/80", className),
12779
12779
  children: /* @__PURE__ */ jsx(PlateContent, {
12780
12780
  ref: forwardRef,
12781
12781
  "data-slot": bare ? "input-group-control" : void 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aircall/ds",
3
- "version": "0.46.0",
3
+ "version": "0.46.2",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "sideEffects": [
@@ -99,18 +99,18 @@
99
99
  "@tanstack/intent": "0.1.1",
100
100
  "@turbo/gen": "2.4.2",
101
101
  "@types/node": "24",
102
- "@types/react": "19.2.18",
103
- "@types/react-dom": "19.2.5",
102
+ "@types/react": "19.3.0",
103
+ "@types/react-dom": "19.3.0",
104
104
  "@vitest/browser-playwright": "4.0.17",
105
105
  "@vitest/coverage-v8": "4.0.17",
106
106
  "chromatic": "18.5.0",
107
107
  "date-fns": "4.1.0",
108
108
  "i18next": "23.11.5",
109
109
  "playwright": "1.57.0",
110
- "react": "19.2.8",
110
+ "react": "19.3.0",
111
111
  "react-compiler-runtime": "1.0.0",
112
112
  "react-day-picker": "9.14.0",
113
- "react-dom": "19.2.8",
113
+ "react-dom": "19.3.0",
114
114
  "storybook": "10.3.3",
115
115
  "storybook-addon-pseudo-states": "10.3.3",
116
116
  "tailwindcss": "4.1.18",