@aircall/ds 0.35.5 → 0.36.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.
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { ColumnDef, OnChangeFn, RowData, SortingState } from "@tanstack/react-table";
2
+ import { ColumnDef, OnChangeFn, RowData, SortingState, VisibilityState } from "@tanstack/react-table";
3
3
  //#region src/components/data-table.d.ts
4
4
  declare module '@tanstack/react-table' {
5
5
  interface ColumnMeta<TData extends RowData, TValue> {
@@ -23,6 +23,8 @@ type ColumnDef$1<TData extends RowData, TValue = unknown> = ColumnDef<TData, TVa
23
23
  type SortingState$1 = SortingState;
24
24
  /** Change handler used by `DataTable`'s controlled props (e.g. `onSortingChange`). Bound alias of TanStack Table's `OnChangeFn`. */
25
25
  type OnChangeFn$1<TState> = OnChangeFn<TState>;
26
+ /** Column visibility state for `DataTable`'s `columnVisibility` prop. Bound alias of TanStack Table's `VisibilityState` — a record of column id to `boolean`, `false` hides it. */
27
+ type VisibilityState$1 = VisibilityState;
26
28
  /** Async states a `DataTable` can be in (mirrors React Spectrum's `loadingState`). */
27
29
  type DataTableLoadingState = 'idle' | 'loading' | 'sorting' | 'filtering' | 'loadingMore';
28
30
  interface DataTableProps<TData> {
@@ -68,6 +70,17 @@ interface DataTableProps<TData> {
68
70
  * column def to pin it (e.g. an actions column).
69
71
  */
70
72
  enableColumnResizing?: boolean;
73
+ /**
74
+ * Controlled column visibility state — a record of column id to `boolean`,
75
+ * `false` hides it (columns default to visible when absent). Intended to be
76
+ * driven by a column picker built outside `DataTable`, using the same
77
+ * column ids passed via `columns`.
78
+ *
79
+ * A column def's `enableHiding: false` (as set internally on the selection
80
+ * column) is only a signal for what a column picker should offer toggling
81
+ * for — `DataTable` does not itself enforce it against `columnVisibility`.
82
+ */
83
+ columnVisibility?: VisibilityState$1;
71
84
  /**
72
85
  * The type of selection allowed (mirrors React Spectrum's `selectionMode`):
73
86
  * - `'none'` — selection off; no checkbox column (default).
@@ -176,4 +189,4 @@ declare namespace DataTable {
176
189
  type Props<TData> = DataTableProps<TData>;
177
190
  }
178
191
  //#endregion
179
- export { SortingState$1 as a, OnChangeFn$1 as i, DataTable as n, DataTableLoadingState as r, ColumnDef$1 as t };
192
+ export { SortingState$1 as a, OnChangeFn$1 as i, DataTable as n, VisibilityState$1 as o, DataTableLoadingState as r, ColumnDef$1 as t };
@@ -838,7 +838,7 @@ const EMPTY_COLUMN_PINNING = {
838
838
  * ```
839
839
  */
840
840
  function DataTable(componentProps) {
841
- const { columns, data, getRowId, loadingState = "idle", skeletonCount = DEFAULT_SKELETON_COUNT, emptyState, sorting, onSortingChange, selectionMode = "none", selectedKeys, defaultSelectedKeys, onSelectionChange, disabledKeys, disabledBehavior = "all", actionBar, onFetchMore, hasMore = false, enableColumnResizing = false, fillHeight = false, fixedLayout = false, onRowClick, className } = componentProps;
841
+ const { columns, data, getRowId, loadingState = "idle", skeletonCount = DEFAULT_SKELETON_COUNT, emptyState, sorting, onSortingChange, columnVisibility, selectionMode = "none", selectedKeys, defaultSelectedKeys, onSelectionChange, disabledKeys, disabledBehavior = "all", actionBar, onFetchMore, hasMore = false, enableColumnResizing = false, fillHeight = false, fixedLayout = false, onRowClick, className } = componentProps;
842
842
  const sortingEnabled = !!onSortingChange;
843
843
  const selectionEnabled = selectionMode !== "none";
844
844
  const multiSelect = selectionMode === "multiple";
@@ -888,13 +888,14 @@ function DataTable(componentProps) {
888
888
  state: {
889
889
  ...sorting !== void 0 && { sorting },
890
890
  rowSelection,
891
- ...hasPinnedColumns && { columnPinning }
891
+ ...hasPinnedColumns && { columnPinning },
892
+ ...columnVisibility !== void 0 && { columnVisibility }
892
893
  }
893
894
  });
894
895
  const rows = table.getRowModel().rows;
895
896
  const selectedCount = table.getSelectedRowModel().rows.length;
896
897
  const hasSelection = selectedCount > 0;
897
- const hasFooter = finalColumns.some((col) => col.footer != null);
898
+ const hasFooter = table.getVisibleLeafColumns().some((col) => col.columnDef.footer != null);
898
899
  const isInitialLoading = loadingState === "loading";
899
900
  const isRefreshing = loadingState === "sorting" || loadingState === "filtering";
900
901
  const isLoadingMore = loadingState === "loadingMore";
@@ -932,7 +933,7 @@ function DataTable(componentProps) {
932
933
  const showActionBar = !!actionBar && hasSelection;
933
934
  const reservedBottom = showActionBar ? 64 : void 0;
934
935
  const sentinelRef = useFetchMoreSentinel(onFetchMore, (node) => fillHeight ? node.closest("[data-slot=\"table-container\"]") : null, data.length);
935
- const leafColumnCount = table.getVisibleLeafColumns().length;
936
+ const leafColumnCount = Math.max(table.getVisibleLeafColumns().length, 1);
936
937
  return /* @__PURE__ */ jsxs("div", {
937
938
  className: cn("relative w-full", fillHeight && "flex min-h-0 flex-1 flex-col", className),
938
939
  "aria-busy": isInitialLoading || isRefreshing || void 0,
@@ -1,2 +1,2 @@
1
- import { a as SortingState, i as OnChangeFn, n as DataTable, r as DataTableLoadingState, t as ColumnDef } from "./data-table-C9eD8va8.js";
2
- export { type ColumnDef, DataTable, type DataTableLoadingState, type OnChangeFn, type SortingState };
1
+ import { a as SortingState, i as OnChangeFn, n as DataTable, o as VisibilityState, r as DataTableLoadingState, t as ColumnDef } from "./data-table-CKJNxqjI.js";
2
+ export { type ColumnDef, DataTable, type DataTableLoadingState, type OnChangeFn, type SortingState, type VisibilityState };
@@ -1,2 +1,2 @@
1
- import { t as DataTable } from "./data-table-C_8IrmFW.js";
1
+ import { t as DataTable } from "./data-table-DhQHgJbc.js";
2
2
  export { DataTable };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as SortingState, i as OnChangeFn, n as DataTable, r as DataTableLoadingState, t as ColumnDef } from "./data-table-C9eD8va8.js";
1
+ import { a as SortingState, i as OnChangeFn, n as DataTable, o as VisibilityState, r as DataTableLoadingState, t as ColumnDef } from "./data-table-CKJNxqjI.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";
@@ -96,7 +96,7 @@ declare namespace AccordionContent {
96
96
  /** `cva` variant definitions for {@link Button} — resolves `variant`, `size`, and `block` into class names. */
97
97
  declare const buttonVariants: (props?: ({
98
98
  variant?: "link" | "default" | "ghost" | "secondary" | "destructive" | "outline" | null | undefined;
99
- size?: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
99
+ size?: "default" | "icon" | "lg" | "sm" | "icon-sm" | "icon-lg" | null | undefined;
100
100
  block?: boolean | null | undefined;
101
101
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
102
102
  /**
@@ -720,7 +720,7 @@ declare namespace AlertAction {
720
720
  */
721
721
  type AttachmentState = 'idle' | 'uploading' | 'processing' | 'error' | 'done';
722
722
  declare const attachmentVariants: (props?: ({
723
- size?: "default" | "xs" | "sm" | null | undefined;
723
+ size?: "default" | "sm" | "xs" | null | undefined;
724
724
  orientation?: "horizontal" | "vertical" | null | undefined;
725
725
  block?: boolean | null | undefined;
726
726
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -4767,7 +4767,7 @@ declare namespace ItemSeparator {
4767
4767
  }
4768
4768
  declare const itemVariants: (props?: ({
4769
4769
  variant?: "default" | "muted" | "outline" | null | undefined;
4770
- size?: "default" | "xs" | "sm" | null | undefined;
4770
+ size?: "default" | "sm" | "xs" | null | undefined;
4771
4771
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
4772
4772
  /**
4773
4773
  * Flexible list-item container laying out media, content, and actions on one row. Renders a `<div>`
@@ -5978,7 +5978,7 @@ declare namespace SidebarMenuItem {
5978
5978
  }
5979
5979
  declare const sidebarMenuButtonVariants: (props?: ({
5980
5980
  variant?: "default" | "outline" | null | undefined;
5981
- size?: "default" | "sm" | "lg" | null | undefined;
5981
+ size?: "default" | "lg" | "sm" | null | undefined;
5982
5982
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5983
5983
  /**
5984
5984
  * Primary clickable row inside a menu item, with variant/size styles and an
@@ -6135,7 +6135,7 @@ declare namespace Toaster {
6135
6135
  //#region src/components/spinner.d.ts
6136
6136
  /** Class variants for `Spinner`, controlling its `size` (`default`, `sm`, `lg`, `xl`). */
6137
6137
  declare const spinnerVariants: (props?: ({
6138
- size?: "default" | "sm" | "lg" | "xl" | null | undefined;
6138
+ size?: "default" | "lg" | "sm" | "xl" | null | undefined;
6139
6139
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6140
6140
  /**
6141
6141
  * Animated loading indicator. Renders a spinning `<svg>` (Loader icon) with
@@ -6452,7 +6452,7 @@ declare namespace ThemeProvider {
6452
6452
  */
6453
6453
  declare const toggleVariants: (props?: ({
6454
6454
  variant?: "default" | "outline" | null | undefined;
6455
- size?: "default" | "sm" | "lg" | null | undefined;
6455
+ size?: "default" | "lg" | "sm" | null | undefined;
6456
6456
  pressedColor?: "highContrast" | "lowContrast" | null | undefined;
6457
6457
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6458
6458
  /**
@@ -6708,4 +6708,4 @@ declare function useAudioGauge(options?: UseAudioGaugeOptions): UseAudioGaugeRes
6708
6708
  //#region src/lib/utils.d.ts
6709
6709
  declare function cn(...inputs: ClassValue[]): string;
6710
6710
  //#endregion
6711
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionBar, ActionBarButton, ActionBarContext, type ActionBarContextValue, ActionBarHeight, Alert, AlertAction, AlertAction as BannerAction, AlertDescription, AlertDescription as BannerDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AlertTitle as BannerTitle, Anchor, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, type AttachmentState, AttachmentTitle, AttachmentTrigger, Audio, AudioPlayerBar, type AudioPlayerBarProps, AudioPlayerButton, type AudioPlayerButtonProps, AudioPlayerCurrentTime, type AudioPlayerCurrentTimeProps, AudioPlayerDuration, type AudioPlayerDurationProps, type AudioPlayerItem, AudioPlayerManager, type AudioPlayerManagerProps, AudioPlayerRow, type AudioPlayerRowProps, AudioPlayerSkip, type AudioPlayerSkipProps, AudioPlayerSpeed, type AudioPlayerSpeedProps, AudioPlayerTime, type AudioPlayerTimeProps, type AudioProps, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BadgeGroup, BadgeGroupCount, Banner, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, COMBOBOX_AUTO_VIRTUALIZE_THRESHOLD, Calendar, CalendarDayButton, CalendarDropdown, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Chip, ChipRemove, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColumnDef, Combobox, ComboboxBody, ComboboxChip, ComboboxChips, ComboboxChipsInput, type ComboboxClear, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, type ComboboxLoadingState, type ComboboxSelectionChangeDetails, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CounterBadge, CountryFlag, DataCombobox, type DataComboboxLoadingState, DataTable, type DataTableLoadingState, DataTree, DatePicker, type DatePickerPredefinedRange, type DateRange, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBackdrop, DrawerBar, DrawerClose, DrawerContent, DrawerCreateHandle, DrawerDescription, DrawerFooter, DrawerHeader, DrawerMenu, DrawerMenuCheckboxItem, DrawerMenuGroup, DrawerMenuGroupLabel, DrawerMenuItem, DrawerMenuRadioGroup, DrawerMenuRadioItem, DrawerMenuSeparator, DrawerMenuTrigger, DrawerPanel, DrawerPopup, DrawerPortal, DrawerPrimitive, DrawerSwipeArea, DrawerTitle, DrawerTrigger, DrawerViewport, DropdownMenu, DropdownMenuAddon, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, DropzoneActions, DropzoneContent, DropzoneDescription, type DropzoneErrorCode, DropzoneIcon, DropzoneTitle, DropzoneTrigger, type DsI18nKey, DsI18nProvider, type DsLocale, EmojiPicker, EmojiPickerCategories, type EmojiPickerCategory, EmojiPickerContent, EmojiPickerTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FAB, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLabelAside, FieldLabelInfo, FieldLabelRow, FieldLegend, FieldSeparator, FieldSet, FieldTitle, type FileError, type FileRejection, Gauge, HoverCard, HoverCardContent, HoverCardTrigger, type I18nLanguageSource, InlineEditInput, InlineEditMultiselect, InlineEditMultiselectChip, InlineEditMultiselectChips, InlineEditMultiselectContent, InlineEditMultiselectItem, InlineEditMultiselectTrigger, InlineEditMultiselectValue, InlineEditSelect, InlineEditSelectContent, InlineEditSelectItem, InlineEditSelectTrigger, InlineEditSelectValue, InlineEditTextarea, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupRichTextarea, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Label, List, ListCol, ListRow, type MentionOption, type NotificationHandle, type NotificationOptions, type NotificationPriority, type NotificationQueueControls, NotificationQueueProvider, type NotificationRenderProps, NotificationSlot, NumericInput, NumericInputControl, NumericInputDecrement, NumericInputIncrement, type OnChangeFn, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverClose, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, RichTextarea, type RichTextareaAsyncList, RichTextareaContent, RichTextareaRoot, RichTextareaToolbar, SUPPORTED_LANGUAGES, ScrollArea, ScrollAreaPrimitive, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, type SheetOverlay, type SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SlashCommandOption, Slider, type SortingState, Spinner, type StepDefinition, Stepper, StepperContent, StepperCounter, StepperPanel, StepperProgress, Switch, Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type TagOption, Textarea, ThemeProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Tree, TreeDragLine, TreeItem, TreeItemLabel, UseAudioGaugeOptions, UseAudioGaugeResult, alertVariants, anchorVariants, bannerVariants, buttonGroupVariants, buttonVariants, cn, counterBadgeVariants, detectInitialLanguage, fabVariants, isInsideCalendarDropdown, registerI18nNamespace, selectTriggerVariants, spinnerVariants, syncDsLanguage, toast, toggleVariants, useAudioGauge, useAudioPlayer, useAudioPlayerTime, useComboboxAnchor, useDsLocale, useDsTranslation, useNotification, useNotificationQueue, useSidebar, useStepper, useTheme };
6711
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionBar, ActionBarButton, ActionBarContext, type ActionBarContextValue, ActionBarHeight, Alert, AlertAction, AlertAction as BannerAction, AlertDescription, AlertDescription as BannerDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AlertTitle as BannerTitle, Anchor, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, type AttachmentState, AttachmentTitle, AttachmentTrigger, Audio, AudioPlayerBar, type AudioPlayerBarProps, AudioPlayerButton, type AudioPlayerButtonProps, AudioPlayerCurrentTime, type AudioPlayerCurrentTimeProps, AudioPlayerDuration, type AudioPlayerDurationProps, type AudioPlayerItem, AudioPlayerManager, type AudioPlayerManagerProps, AudioPlayerRow, type AudioPlayerRowProps, AudioPlayerSkip, type AudioPlayerSkipProps, AudioPlayerSpeed, type AudioPlayerSpeedProps, AudioPlayerTime, type AudioPlayerTimeProps, type AudioProps, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BadgeGroup, BadgeGroupCount, Banner, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, COMBOBOX_AUTO_VIRTUALIZE_THRESHOLD, Calendar, CalendarDayButton, CalendarDropdown, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Chip, ChipRemove, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColumnDef, Combobox, ComboboxBody, ComboboxChip, ComboboxChips, ComboboxChipsInput, type ComboboxClear, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, type ComboboxLoadingState, type ComboboxSelectionChangeDetails, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CounterBadge, CountryFlag, DataCombobox, type DataComboboxLoadingState, DataTable, type DataTableLoadingState, DataTree, DatePicker, type DatePickerPredefinedRange, type DateRange, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBackdrop, DrawerBar, DrawerClose, DrawerContent, DrawerCreateHandle, DrawerDescription, DrawerFooter, DrawerHeader, DrawerMenu, DrawerMenuCheckboxItem, DrawerMenuGroup, DrawerMenuGroupLabel, DrawerMenuItem, DrawerMenuRadioGroup, DrawerMenuRadioItem, DrawerMenuSeparator, DrawerMenuTrigger, DrawerPanel, DrawerPopup, DrawerPortal, DrawerPrimitive, DrawerSwipeArea, DrawerTitle, DrawerTrigger, DrawerViewport, DropdownMenu, DropdownMenuAddon, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, DropzoneActions, DropzoneContent, DropzoneDescription, type DropzoneErrorCode, DropzoneIcon, DropzoneTitle, DropzoneTrigger, type DsI18nKey, DsI18nProvider, type DsLocale, EmojiPicker, EmojiPickerCategories, type EmojiPickerCategory, EmojiPickerContent, EmojiPickerTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FAB, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLabelAside, FieldLabelInfo, FieldLabelRow, FieldLegend, FieldSeparator, FieldSet, FieldTitle, type FileError, type FileRejection, Gauge, HoverCard, HoverCardContent, HoverCardTrigger, type I18nLanguageSource, InlineEditInput, InlineEditMultiselect, InlineEditMultiselectChip, InlineEditMultiselectChips, InlineEditMultiselectContent, InlineEditMultiselectItem, InlineEditMultiselectTrigger, InlineEditMultiselectValue, InlineEditSelect, InlineEditSelectContent, InlineEditSelectItem, InlineEditSelectTrigger, InlineEditSelectValue, InlineEditTextarea, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupRichTextarea, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Label, List, ListCol, ListRow, type MentionOption, type NotificationHandle, type NotificationOptions, type NotificationPriority, type NotificationQueueControls, NotificationQueueProvider, type NotificationRenderProps, NotificationSlot, NumericInput, NumericInputControl, NumericInputDecrement, NumericInputIncrement, type OnChangeFn, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverClose, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, RichTextarea, type RichTextareaAsyncList, RichTextareaContent, RichTextareaRoot, RichTextareaToolbar, SUPPORTED_LANGUAGES, ScrollArea, ScrollAreaPrimitive, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, type SheetOverlay, type SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SlashCommandOption, Slider, type SortingState, Spinner, type StepDefinition, Stepper, StepperContent, StepperCounter, StepperPanel, StepperProgress, Switch, Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type TagOption, Textarea, ThemeProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Tree, TreeDragLine, TreeItem, TreeItemLabel, UseAudioGaugeOptions, UseAudioGaugeResult, type VisibilityState, alertVariants, anchorVariants, bannerVariants, buttonGroupVariants, buttonVariants, cn, counterBadgeVariants, detectInitialLanguage, fabVariants, isInsideCalendarDropdown, registerI18nNamespace, selectTriggerVariants, spinnerVariants, syncDsLanguage, toast, toggleVariants, useAudioGauge, useAudioPlayer, useAudioPlayerTime, useComboboxAnchor, useDsLocale, useDsTranslation, useNotification, useNotificationQueue, useSidebar, useStepper, useTheme };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as Button, E 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-C_8IrmFW.js";
1
+ import { C as Button, E 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-DhQHgJbc.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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aircall/ds",
3
- "version": "0.35.5",
3
+ "version": "0.36.0",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "sideEffects": [