@aircall/ds 0.38.0 → 0.39.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
@@ -1,4 +1,4 @@
1
- import { a as OnChangeFn, i as DataTableLoadingState, n as ColumnPinningState, o as SortingState, r as DataTable, s as VisibilityState, t as ColumnDef } from "./data-table-DdK-5YI9.js";
1
+ import { a as OnChangeFn, i as DataTableLoadingState, n as ColumnPinningState, o as SortingState, r as DataTable, s as VisibilityState, t as ColumnDef } from "./data-table-AHgs5bxe.js";
2
2
  import * as React from "react";
3
3
  import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
4
4
  import { ClassValue } from "clsx";
@@ -639,7 +639,7 @@ declare namespace AlertDialogCancel {
639
639
  * default `default`) sets the background, border, and icon colour scheme.
640
640
  */
641
641
  declare const alertVariants: (props?: ({
642
- variant?: "default" | "error" | "info" | "success" | "warning" | null | undefined;
642
+ variant?: "default" | "info" | "success" | "warning" | "error" | null | undefined;
643
643
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
644
644
  /**
645
645
  * Callout that draws attention to an important, contextual message.
@@ -1025,7 +1025,7 @@ declare namespace BadgeGroupCount {
1025
1025
  * edge gets the accent border.
1026
1026
  */
1027
1027
  declare const bannerVariants: (props?: ({
1028
- variant?: "default" | "error" | "info" | "success" | "warning" | null | undefined;
1028
+ variant?: "default" | "info" | "success" | "warning" | "error" | null | undefined;
1029
1029
  borderDirection?: "bottom" | "top" | null | undefined;
1030
1030
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
1031
1031
  /**
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-fPncHG6B.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-DD7m3puW.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";
@@ -2283,6 +2283,7 @@ SelectTrigger.displayName = "SelectTrigger";
2283
2283
  const SelectContent = React.forwardRef((componentProps, forwardRef) => {
2284
2284
  const { className, children, side = "bottom", sideOffset = 4, align = "start", alignOffset = 0, alignItemWithTrigger = false } = componentProps, props = _objectWithoutProperties(componentProps, _excluded4$24);
2285
2285
  return /* @__PURE__ */ jsx(Select$1.Portal, { children: /* @__PURE__ */ jsx(Select$1.Positioner, {
2286
+ positionMethod: "fixed",
2286
2287
  side,
2287
2288
  sideOffset,
2288
2289
  align,
@@ -3371,6 +3372,7 @@ const ComboboxContent = React.forwardRef((componentProps, forwardRef) => {
3371
3372
  align,
3372
3373
  alignOffset,
3373
3374
  anchor,
3375
+ positionMethod: "fixed",
3374
3376
  "data-slot": "combobox-positioner",
3375
3377
  className: "isolate z-popup",
3376
3378
  children: /* @__PURE__ */ jsx(Combobox$1.Popup, _objectSpread2({
@@ -3490,7 +3492,7 @@ const ComboboxChips = React.forwardRef((componentProps, forwardRef) => {
3490
3492
  return /* @__PURE__ */ jsxs(Combobox$1.Chips, _objectSpread2(_objectSpread2({
3491
3493
  ref: forwardRef,
3492
3494
  "data-slot": "combobox-chips",
3493
- className: cn("flex min-h-10 flex-wrap items-center gap-1 rounded-md border border-input bg-background bg-clip-padding py-2 pl-3 pr-1 text-sm transition-colors focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50 has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 dark:bg-input/30 dark:has-aria-invalid:border-destructive/50 dark:has-aria-invalid:ring-destructive/40", className)
3495
+ className: cn("relative flex min-h-10 flex-wrap items-center gap-1 rounded-md border border-input bg-background bg-clip-padding py-2 pl-3 pr-1 text-sm transition-colors focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50 has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 dark:bg-input/30 dark:has-aria-invalid:border-destructive/50 dark:has-aria-invalid:ring-destructive/40", className)
3494
3496
  }, props), {}, { children: [children, showTrigger && /* @__PURE__ */ jsx(ComboboxTrigger, {
3495
3497
  "data-slot": "combobox-chips-trigger",
3496
3498
  "aria-label": t("combobox.showOptions"),
@@ -4838,6 +4840,7 @@ PopoverClose.displayName = "PopoverClose";
4838
4840
  const PopoverContent = React.forwardRef((componentProps, forwardRef) => {
4839
4841
  const { className, align = "center", alignOffset = 0, side = "bottom", sideOffset = 4, anchor } = componentProps, props = _objectWithoutProperties(componentProps, _excluded$36);
4840
4842
  return /* @__PURE__ */ jsx(Popover$1.Portal, { children: /* @__PURE__ */ jsx(Popover$1.Positioner, {
4843
+ positionMethod: "fixed",
4841
4844
  align,
4842
4845
  alignOffset,
4843
4846
  side,
@@ -7888,6 +7891,7 @@ const DropdownMenuContent = React.forwardRef((componentProps, forwardRef) => {
7888
7891
  return /* @__PURE__ */ jsx(Menu.Portal, {
7889
7892
  container,
7890
7893
  children: /* @__PURE__ */ jsx(Menu.Positioner, {
7894
+ positionMethod: "fixed",
7891
7895
  "data-slot": "dropdown-menu-positioner",
7892
7896
  className: "isolate z-popup outline-none",
7893
7897
  align,
@@ -8836,6 +8840,7 @@ HoverCardTrigger.displayName = "HoverCardTrigger";
8836
8840
  const HoverCardContent = React.forwardRef((componentProps, forwardRef) => {
8837
8841
  const { className, side = "bottom", sideOffset = 8, align = "center", alignOffset = 0 } = componentProps, props = _objectWithoutProperties(componentProps, _excluded2$16);
8838
8842
  return /* @__PURE__ */ jsx(PreviewCard.Portal, { children: /* @__PURE__ */ jsx(PreviewCard.Positioner, {
8843
+ positionMethod: "fixed",
8839
8844
  side,
8840
8845
  sideOffset,
8841
8846
  align,
@@ -9435,6 +9440,7 @@ function InlineEditSelectValue(componentProps) {
9435
9440
  const InlineEditSelectContent = React.forwardRef((componentProps, forwardRef) => {
9436
9441
  const { className, children, side = "bottom", sideOffset = 12, align = "start", alignOffset = 0, alignItemWithTrigger = false } = componentProps, props = _objectWithoutProperties(componentProps, _excluded2$14);
9437
9442
  return /* @__PURE__ */ jsx(Select$1.Portal, { children: /* @__PURE__ */ jsx(Select$1.Positioner, {
9443
+ positionMethod: "fixed",
9438
9444
  side,
9439
9445
  sideOffset,
9440
9446
  align,
@@ -12121,6 +12127,7 @@ const TooltipContent = React.forwardRef((componentProps, forwardRef) => {
12121
12127
  return /* @__PURE__ */ jsx(Tooltip$1.Portal, {
12122
12128
  container,
12123
12129
  children: /* @__PURE__ */ jsx(Tooltip$1.Positioner, {
12130
+ positionMethod: "fixed",
12124
12131
  align,
12125
12132
  alignOffset,
12126
12133
  side,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aircall/ds",
3
- "version": "0.38.0",
3
+ "version": "0.39.0",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "sideEffects": [