@aircall/ds 0.16.1 → 0.17.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
@@ -28,6 +28,7 @@ import { Categories, SuggestionMode } from "emoji-picker-react";
28
28
  import { Popover as Popover$1 } from "@base-ui/react/popover";
29
29
  import { ThemeProviderProps, useTheme } from "next-themes";
30
30
  import { PreviewCard } from "@base-ui/react/preview-card";
31
+ import { NumberField } from "@base-ui/react/number-field";
31
32
  import * as input_otp0 from "input-otp";
32
33
  import { OTPInput } from "input-otp";
33
34
  import { Progress as Progress$1 } from "@base-ui/react/progress";
@@ -67,7 +68,7 @@ declare namespace AccordionContent {
67
68
  //#region src/components/button.d.ts
68
69
  declare const buttonVariants: (props?: ({
69
70
  variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
70
- size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
71
+ size?: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
71
72
  block?: boolean | null | undefined;
72
73
  } & class_variance_authority_types5.ClassProp) | undefined) => string;
73
74
  declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -1416,8 +1417,35 @@ interface FieldContentProps extends React.ComponentProps<'div'> {}
1416
1417
  declare namespace FieldContent {
1417
1418
  type Props = FieldContentProps;
1418
1419
  }
1420
+ /**
1421
+ * Label for a field. Renders an `@aircall/ds` Label with field-layout styling, and optionally a
1422
+ * necessity indicator (a required `*` or `(optional)`/`(required)` text) after the label content.
1423
+ *
1424
+ * The visual `*` is `aria-hidden` with a paired `sr-only` "(required)" for screen readers; still
1425
+ * mark the control itself `required`/`aria-required`. With `necessityIndicator="label"` the marker
1426
+ * is readable text. Pick one indicator style per form to avoid clutter.
1427
+ *
1428
+ * @example
1429
+ * ```tsx
1430
+ * <FieldLabel required>Name</FieldLabel>
1431
+ * <FieldLabel required necessityIndicator="label">Email</FieldLabel>
1432
+ * ```
1433
+ */
1419
1434
  declare const FieldLabel: React.ForwardRefExoticComponent<Omit<FieldLabelProps, "ref"> & React.RefAttributes<HTMLLabelElement>>;
1420
- interface FieldLabelProps extends React.ComponentProps<typeof Label> {}
1435
+ interface FieldLabelProps extends React.ComponentProps<typeof Label> {
1436
+ /**
1437
+ * Whether the field is required. Controls the necessity indicator only (the `*` or the
1438
+ * `(required)`/`(optional)` text); enforce the rule on the control's own validation.
1439
+ * @default false
1440
+ */
1441
+ required?: boolean;
1442
+ /**
1443
+ * How necessity is shown: `icon` renders a `*` on required fields (nothing on optional);
1444
+ * `label` renders `(required)` or `(optional)` text on every field.
1445
+ * @default 'icon'
1446
+ */
1447
+ necessityIndicator?: 'icon' | 'label';
1448
+ }
1421
1449
  declare namespace FieldLabel {
1422
1450
  type Props = FieldLabelProps;
1423
1451
  }
@@ -1595,8 +1623,94 @@ declare namespace InputGroupTextarea {
1595
1623
  type Props = InputGroupTextareaProps;
1596
1624
  }
1597
1625
  //#endregion
1626
+ //#region src/components/numeric-input.d.ts
1627
+ /**
1628
+ * Locale-aware numeric input. Renders a bordered group `<div>` styled like
1629
+ * `InputGroup` (it IS the group — do not nest it inside an `InputGroup`).
1630
+ *
1631
+ * Two modes:
1632
+ * - **Convenience** (no children): renders `prefix`/`suffix` affixes, the input,
1633
+ * and `−`/`+` steppers (steppers shown unless `hideStepper`).
1634
+ * - **Compound** (children): caller composes `NumericInputControl`,
1635
+ * `NumericInputIncrement`, `NumericInputDecrement`, and `InputGroupAddon`.
1636
+ * In compound mode, the visual invalid halo (red border/ring) follows the inner control's
1637
+ * `aria-invalid` (or DS `Field` state), NOT the `aria-invalid` on `NumericInput` itself.
1638
+ *
1639
+ * Formatting is delegated to Base UI's `format` (`Intl.NumberFormatOptions`) and
1640
+ * `locale` props. `locale` defaults to the DS i18n active language.
1641
+ *
1642
+ * @example
1643
+ * ```tsx
1644
+ * <NumericInput aria-label="Amount" defaultValue={10}
1645
+ * format={{ style: 'currency', currency: 'EUR' }} prefix="€" suffix="EUR" />
1646
+ * ```
1647
+ */
1648
+ declare const NumericInput: React.ForwardRefExoticComponent<Omit<NumericInputProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
1649
+ type NumericInputProps = Omit<NumberField.Root.Props, 'prefix'> & {
1650
+ /** Element rendered before the input (inline-start affix). Convenience mode only. @default undefined */prefix?: React.ReactNode; /** Element rendered after the input (inline-end affix). Convenience mode only. @default undefined */
1651
+ suffix?: React.ReactNode;
1652
+ /**
1653
+ * Hide the −/+ stepper buttons. Convenience mode only — in compound mode the
1654
+ * caller owns the stepper layout by composing `NumericInputDecrement`/`NumericInputIncrement`.
1655
+ * @default false
1656
+ */
1657
+ hideStepper?: boolean;
1658
+ /**
1659
+ * Locale used by `Intl.NumberFormat` for formatting and parsing. Defaults to
1660
+ * the DS i18n active language (driven by `DsI18nProvider`).
1661
+ * @default DS i18n active language
1662
+ */
1663
+ locale?: Intl.LocalesArgument;
1664
+ };
1665
+ declare namespace NumericInput {
1666
+ type Props = NumericInputProps;
1667
+ }
1668
+ /**
1669
+ * The text input part. Renders a bare `<input>` (direct child of `NumericInput`)
1670
+ * carrying `data-slot="input-group-control"` so the shell's focus halo applies.
1671
+ * The input's `aria-label` deliberately overrides the group's label for the input control.
1672
+ *
1673
+ * @example
1674
+ * ```tsx
1675
+ * <NumericInput aria-label="Quantity" defaultValue={1}>
1676
+ * <NumericInputControl aria-label="Quantity value" />
1677
+ * </NumericInput>
1678
+ * ```
1679
+ */
1680
+ declare const NumericInputControl: React.ForwardRefExoticComponent<Omit<NumericInputControlProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
1681
+ interface NumericInputControlProps extends NumberField.Input.Props {}
1682
+ declare namespace NumericInputControl {
1683
+ type Props = NumericInputControlProps;
1684
+ }
1685
+ /**
1686
+ * Increment button. Defaults to a plus icon; pass children to override.
1687
+ *
1688
+ * @example
1689
+ * ```tsx
1690
+ * <NumericInputIncrement />
1691
+ * ```
1692
+ */
1693
+ declare const NumericInputIncrement: React.ForwardRefExoticComponent<Omit<NumericInputIncrementProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
1694
+ interface NumericInputIncrementProps extends NumberField.Increment.Props {}
1695
+ declare namespace NumericInputIncrement {
1696
+ type Props = NumericInputIncrementProps;
1697
+ }
1698
+ /**
1699
+ * Decrement button. Defaults to a minus icon; pass children to override.
1700
+ *
1701
+ * @example
1702
+ * ```tsx
1703
+ * <NumericInputDecrement />
1704
+ * ```
1705
+ */
1706
+ declare const NumericInputDecrement: React.ForwardRefExoticComponent<Omit<NumericInputDecrementProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
1707
+ interface NumericInputDecrementProps extends NumberField.Decrement.Props {}
1708
+ declare namespace NumericInputDecrement {
1709
+ type Props = NumericInputDecrementProps;
1710
+ }
1711
+ //#endregion
1598
1712
  //#region src/components/input-otp.d.ts
1599
- declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
1713
+ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
1600
1714
  value?: string;
1601
1715
  onChange?: (newValue: string) => unknown;
1602
1716
  maxLength: number;
@@ -1611,7 +1725,7 @@ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHT
1611
1725
  children?: never;
1612
1726
  } & React.RefAttributes<HTMLInputElement> & {
1613
1727
  containerClassName?: string;
1614
- }, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
1728
+ }, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
1615
1729
  value?: string;
1616
1730
  onChange?: (newValue: string) => unknown;
1617
1731
  maxLength: number;
@@ -2452,7 +2566,7 @@ declare function useDsTranslation(ns: 'ds' | 'blocks'): (key: string, opts?: Rec
2452
2566
  //#endregion
2453
2567
  //#region src/i18n/keys.d.ts
2454
2568
  /** All translation keys owned by the `ds` namespace. Flat dotted keys (keySeparator: false). */
2455
- type DsI18nKey = 'spinner.loading' | 'pagination.label' | 'pagination.previousPage' | 'pagination.nextPage' | 'dataTable.selectAllRows' | 'dataTable.selectRow' | 'tree.collapse' | 'tree.expand' | 'multiselect.remove' | 'multiselect.clearAll' | 'sidebar.toggle' | 'drawer.close' | 'emojiPicker.emoji' | 'emojiPicker.choose' | 'actionBar.selectionActions' | 'pagination.previous' | 'pagination.next' | 'actionBar.clearSelection' | 'actionBar.itemsSelected';
2569
+ type DsI18nKey = 'spinner.loading' | 'pagination.label' | 'pagination.previousPage' | 'pagination.nextPage' | 'dataTable.selectAllRows' | 'dataTable.selectRow' | 'tree.collapse' | 'tree.expand' | 'multiselect.remove' | 'multiselect.clearAll' | 'sidebar.toggle' | 'drawer.close' | 'emojiPicker.emoji' | 'emojiPicker.choose' | 'actionBar.selectionActions' | 'pagination.previous' | 'pagination.next' | 'actionBar.clearSelection' | 'actionBar.itemsSelected' | 'fieldLabel.required' | 'fieldLabel.optional';
2456
2570
  /** A complete set of translations for one language. Missing a key is a compile error. */
2457
2571
  type DsLocale = Record<DsI18nKey, string>;
2458
2572
  //#endregion
@@ -2514,4 +2628,4 @@ declare function useAudioGauge(options?: UseAudioGaugeOptions): UseAudioGaugeRes
2514
2628
  //#region src/lib/utils.d.ts
2515
2629
  declare function cn(...inputs: ClassValue[]): string;
2516
2630
  //#endregion
2517
- 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, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BadgeGroup, BadgeGroupCount, Banner, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Chip, ChipRemove, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColumnDef, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, type ComboboxClear, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CounterBadge, CountryFlag, DataTable, type DataTableLoadingState, DataTree, 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, FieldLegend, FieldSeparator, FieldSet, FieldTitle, type FileError, type FileRejection, Filter, FilterClearAllButton, FilterGroup, Gauge, HoverCard, HoverCardContent, HoverCardTrigger, type I18nLanguageSource, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Label, List, ListCol, ListRow, type NotificationHandle, type NotificationOptions, type NotificationPriority, type NotificationQueueControls, NotificationQueueProvider, type NotificationRenderProps, NotificationSlot, type OnChangeFn, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, type RowSelectionState, 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, Slider, type SortingState, Spinner, type StepDefinition, Stepper, StepperContent, StepperCounter, StepperPanel, StepperProgress, Switch, Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, 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, registerI18nNamespace, selectTriggerVariants, spinnerVariants, syncDsLanguage, toast, toggleVariants, useAudioGauge, useComboboxAnchor, useDsTranslation, useNotification, useNotificationQueue, useSidebar, useStepper, useTheme };
2631
+ 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, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BadgeGroup, BadgeGroupCount, Banner, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Chip, ChipRemove, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColumnDef, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, type ComboboxClear, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CounterBadge, CountryFlag, DataTable, type DataTableLoadingState, DataTree, 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, FieldLegend, FieldSeparator, FieldSet, FieldTitle, type FileError, type FileRejection, Filter, FilterClearAllButton, FilterGroup, Gauge, HoverCard, HoverCardContent, HoverCardTrigger, type I18nLanguageSource, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Label, List, ListCol, ListRow, 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, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, type RowSelectionState, 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, Slider, type SortingState, Spinner, type StepDefinition, Stepper, StepperContent, StepperCounter, StepperPanel, StepperProgress, Switch, Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, 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, registerI18nNamespace, selectTriggerVariants, spinnerVariants, syncDsLanguage, toast, toggleVariants, useAudioGauge, useComboboxAnchor, useDsTranslation, useNotification, useNotificationQueue, useSidebar, useStepper, useTheme };
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import { createContext, useCallback, useContext, useSyncExternalStore } from "re
3
3
  import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
4
4
  import { clsx } from "clsx";
5
5
  import { extendTailwindMerge } from "tailwind-merge";
6
- import { ArrowDownToLine, ArrowLeft, ArrowRight, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsUpDownIcon, CircleAlert, CircleAlertIcon, CircleCheck, FLAGS, FlagUs, Info, Loader2Icon, MinusIcon, MoreHorizontalIcon, PanelLeftIcon, Search, Smile, TriangleAlertIcon, XIcon } from "@aircall/react-icons";
6
+ import { ArrowDownToLine, ArrowLeft, ArrowRight, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsUpDownIcon, CircleAlert, CircleAlertIcon, CircleCheck, FLAGS, FlagUs, Info, Loader2Icon, Minus, MinusIcon, MoreHorizontalIcon, PanelLeftIcon, Plus, Search, Smile, TriangleAlertIcon, XIcon } from "@aircall/react-icons";
7
7
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
8
  import { Button as Button$1 } from "@base-ui/react/button";
9
9
  import { cva } from "class-variance-authority";
@@ -33,6 +33,7 @@ import EmojiReactPicker, { Categories, EmojiStyle, SuggestionMode, Theme } from
33
33
  import { Popover as Popover$1 } from "@base-ui/react/popover";
34
34
  import { ThemeProvider as ThemeProvider$1, useTheme, useTheme as useTheme$1 } from "next-themes";
35
35
  import { PreviewCard } from "@base-ui/react/preview-card";
36
+ import { NumberField } from "@base-ui/react/number-field";
36
37
  import { OTPInput, OTPInputContext } from "input-otp";
37
38
  import { Progress as Progress$1 } from "@base-ui/react/progress";
38
39
  import { Select as Select$1 } from "@base-ui/react/select";
@@ -233,7 +234,9 @@ const de = {
233
234
  "pagination.previous": "Zurück",
234
235
  "pagination.next": "Weiter",
235
236
  "actionBar.clearSelection": "Auswahl aufheben",
236
- "actionBar.itemsSelected": "{{count}} Elemente ausgewählt."
237
+ "actionBar.itemsSelected": "{{count}} Elemente ausgewählt.",
238
+ "fieldLabel.required": "(erforderlich)",
239
+ "fieldLabel.optional": "(optional)"
237
240
  };
238
241
  var de_default = de;
239
242
 
@@ -258,7 +261,9 @@ const en = {
258
261
  "pagination.previous": "Previous",
259
262
  "pagination.next": "Next",
260
263
  "actionBar.clearSelection": "Clear selection",
261
- "actionBar.itemsSelected": "{{count}} items selected."
264
+ "actionBar.itemsSelected": "{{count}} items selected.",
265
+ "fieldLabel.required": "(required)",
266
+ "fieldLabel.optional": "(optional)"
262
267
  };
263
268
  var en_default = en;
264
269
 
@@ -283,7 +288,9 @@ const es = {
283
288
  "pagination.previous": "Anterior",
284
289
  "pagination.next": "Siguiente",
285
290
  "actionBar.clearSelection": "Borrar selección",
286
- "actionBar.itemsSelected": "{{count}} elementos seleccionados."
291
+ "actionBar.itemsSelected": "{{count}} elementos seleccionados.",
292
+ "fieldLabel.required": "(obligatorio)",
293
+ "fieldLabel.optional": "(opcional)"
287
294
  };
288
295
  var es_default = es;
289
296
 
@@ -308,7 +315,9 @@ const fr = {
308
315
  "pagination.previous": "Précédent",
309
316
  "pagination.next": "Suivant",
310
317
  "actionBar.clearSelection": "Effacer la sélection",
311
- "actionBar.itemsSelected": "{{count}} éléments sélectionnés."
318
+ "actionBar.itemsSelected": "{{count}} éléments sélectionnés.",
319
+ "fieldLabel.required": "(obligatoire)",
320
+ "fieldLabel.optional": "(facultatif)"
312
321
  };
313
322
  var fr_default = fr;
314
323
 
@@ -333,7 +342,9 @@ const it = {
333
342
  "pagination.previous": "Precedente",
334
343
  "pagination.next": "Successivo",
335
344
  "actionBar.clearSelection": "Cancella selezione",
336
- "actionBar.itemsSelected": "{{count}} elementi selezionati."
345
+ "actionBar.itemsSelected": "{{count}} elementi selezionati.",
346
+ "fieldLabel.required": "(obbligatorio)",
347
+ "fieldLabel.optional": "(facoltativo)"
337
348
  };
338
349
  var it_default = it;
339
350
 
@@ -1891,13 +1902,20 @@ Textarea.displayName = "Textarea";
1891
1902
 
1892
1903
  //#endregion
1893
1904
  //#region src/components/input-group.tsx
1905
+ /**
1906
+ * The bordered flex-row shell shared by `InputGroup` and `NumericInput`.
1907
+ * Owns the border, height, hover/focus ring, disabled fade, error halo, and the
1908
+ * affix-driven input padding adjustments. Exported so `NumericInput` renders an
1909
+ * identical container without nesting inside `InputGroup`.
1910
+ */
1911
+ const inputGroupShellClassName = cn("group/input-group bg-background border-input dark:bg-input/30 relative flex h-10 w-full items-center rounded-md border transition-[color,box-shadow] outline-none has-[>textarea]:h-auto", "not-has-[input:disabled]:not-has-[textarea:disabled]:not-has-[[data-slot][aria-invalid=true]]:hover:border-ring", "has-[input:disabled]:bg-input/50 has-[textarea:disabled]:bg-input/50 has-[input:disabled]:opacity-50 has-[textarea:disabled]:opacity-50 dark:has-[input:disabled]:bg-input/80 dark:has-[textarea:disabled]:bg-input/80", "has-[>[data-align=inline-start]]:[&>input]:pl-2", "has-[>[data-align=inline-end]]:[&>input]:pr-2", "has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3", "has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3", "has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-3", "has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]:focus-visible]:ring-destructive/20 dark:has-[[data-slot][aria-invalid=true]:focus-visible]:ring-destructive/40");
1894
1912
  const InputGroup = React.forwardRef((componentProps, forwardRef) => {
1895
1913
  const { className, ...props } = componentProps;
1896
1914
  return /* @__PURE__ */ jsx("div", {
1897
1915
  ref: forwardRef,
1898
1916
  "data-slot": "input-group",
1899
1917
  role: "group",
1900
- className: cn("group/input-group bg-background border-input dark:bg-input/30 relative flex h-10 w-full items-center rounded-md border transition-[color,box-shadow] outline-none has-[>textarea]:h-auto", "not-has-[input:disabled]:not-has-[textarea:disabled]:not-has-[[data-slot][aria-invalid=true]]:hover:border-ring", "has-[input:disabled]:bg-input/50 has-[textarea:disabled]:bg-input/50 has-[input:disabled]:opacity-50 has-[textarea:disabled]:opacity-50 dark:has-[input:disabled]:bg-input/80 dark:has-[textarea:disabled]:bg-input/80", "has-[>[data-align=inline-start]]:[&>input]:pl-2", "has-[>[data-align=inline-end]]:[&>input]:pr-2", "has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3", "has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3", "has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-3", "has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]:focus-visible]:ring-destructive/20 dark:has-[[data-slot][aria-invalid=true]:focus-visible]:ring-destructive/40", className),
1918
+ className: cn(inputGroupShellClassName, className),
1901
1919
  ...props
1902
1920
  });
1903
1921
  });
@@ -4168,13 +4186,42 @@ const FieldContent = React.forwardRef((componentProps, forwardRef) => {
4168
4186
  });
4169
4187
  });
4170
4188
  FieldContent.displayName = "FieldContent";
4189
+ /**
4190
+ * Label for a field. Renders an `@aircall/ds` Label with field-layout styling, and optionally a
4191
+ * necessity indicator (a required `*` or `(optional)`/`(required)` text) after the label content.
4192
+ *
4193
+ * The visual `*` is `aria-hidden` with a paired `sr-only` "(required)" for screen readers; still
4194
+ * mark the control itself `required`/`aria-required`. With `necessityIndicator="label"` the marker
4195
+ * is readable text. Pick one indicator style per form to avoid clutter.
4196
+ *
4197
+ * @example
4198
+ * ```tsx
4199
+ * <FieldLabel required>Name</FieldLabel>
4200
+ * <FieldLabel required necessityIndicator="label">Email</FieldLabel>
4201
+ * ```
4202
+ */
4171
4203
  const FieldLabel = React.forwardRef((componentProps, forwardRef) => {
4172
- const { className, ...props } = componentProps;
4173
- return /* @__PURE__ */ jsx(Label, {
4204
+ const { className, children, required = false, necessityIndicator = "icon", ...props } = componentProps;
4205
+ const t = useDsTranslation("ds");
4206
+ return /* @__PURE__ */ jsxs(Label, {
4174
4207
  ref: forwardRef,
4175
4208
  "data-slot": "field-label",
4176
- className: cn("group/field-label peer/field-label flex w-fit gap-2 leading-normal group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-4 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", className),
4177
- ...props
4209
+ "data-required": required || void 0,
4210
+ className: cn("group/field-label peer/field-label flex w-fit gap-1 leading-normal group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-4 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", className),
4211
+ ...props,
4212
+ children: [children, necessityIndicator === "label" ? /* @__PURE__ */ jsx("span", {
4213
+ "data-slot": "field-necessity",
4214
+ className: "font-normal text-muted-foreground",
4215
+ children: required ? t("fieldLabel.required") : t("fieldLabel.optional")
4216
+ }) : required && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
4217
+ "data-slot": "field-necessity",
4218
+ "aria-hidden": "true",
4219
+ className: "text-muted-foreground",
4220
+ children: "*"
4221
+ }), /* @__PURE__ */ jsx("span", {
4222
+ className: "sr-only",
4223
+ children: t("fieldLabel.required")
4224
+ })] })]
4178
4225
  });
4179
4226
  });
4180
4227
  FieldLabel.displayName = "FieldLabel";
@@ -4373,6 +4420,202 @@ const HoverCardContent = React.forwardRef((componentProps, forwardRef) => {
4373
4420
  });
4374
4421
  HoverCardContent.displayName = "HoverCardContent";
4375
4422
 
4423
+ //#endregion
4424
+ //#region src/i18n/number-format.ts
4425
+ /**
4426
+ * @internal
4427
+ * Safe `Intl` locale/format resolution shared by `@aircall/ds` number-formatting
4428
+ * components. Ensures a malformed `locale` or `format` never throws a `RangeError`
4429
+ * from `Intl` mid-render: invalid values degrade to a usable default. Not part of the
4430
+ * consumer contract.
4431
+ */
4432
+ /** True when `loc` is a locale that `Intl` accepts (string, list, or `Intl.Locale`). */
4433
+ function isUsableLocale(loc) {
4434
+ if (loc == null || loc === "") return false;
4435
+ try {
4436
+ return Intl.getCanonicalLocales(loc).length > 0;
4437
+ } catch {
4438
+ return false;
4439
+ }
4440
+ }
4441
+ /**
4442
+ * Resolves the locale to a value `Intl.NumberFormat` will accept, so a malformed
4443
+ * `locale` (e.g. a half-typed value) never throws a `RangeError` mid-render.
4444
+ * Prefers the explicit prop, then the DS i18n language, then `en-US`.
4445
+ */
4446
+ function resolveLocale(localeProp, dsLocale) {
4447
+ if (isUsableLocale(localeProp)) return localeProp;
4448
+ if (isUsableLocale(dsLocale)) return dsLocale;
4449
+ return "en-US";
4450
+ }
4451
+ /**
4452
+ * Returns `format` only if `Intl` can build a formatter from it (with the resolved
4453
+ * locale); otherwise `undefined`, so an invalid option (e.g. a bad `currency` or
4454
+ * `unit`) degrades to default number formatting instead of throwing a `RangeError`.
4455
+ */
4456
+ function resolveFormat(locale, format) {
4457
+ if (format == null) return;
4458
+ try {
4459
+ new Intl.NumberFormat(locale, format).format(0);
4460
+ return format;
4461
+ } catch {
4462
+ return;
4463
+ }
4464
+ }
4465
+
4466
+ //#endregion
4467
+ //#region src/i18n/use-ds-locale.ts
4468
+ function subscribeToLanguage(onChange) {
4469
+ dsI18n.on("languageChanged", onChange);
4470
+ return () => dsI18n.off("languageChanged", onChange);
4471
+ }
4472
+ /**
4473
+ * @internal
4474
+ * Reads the DS i18n active language and re-renders on change. Used by `@aircall/ds`
4475
+ * components as the default `locale` for `Intl`-based formatting (e.g. `NumericInput`).
4476
+ * Not part of the consumer contract.
4477
+ */
4478
+ function useDsLocale() {
4479
+ return useSyncExternalStore(subscribeToLanguage, () => dsI18n.language, () => dsI18n.language);
4480
+ }
4481
+
4482
+ //#endregion
4483
+ //#region src/components/numeric-input.tsx
4484
+ /**
4485
+ * Locale-aware numeric input. Renders a bordered group `<div>` styled like
4486
+ * `InputGroup` (it IS the group — do not nest it inside an `InputGroup`).
4487
+ *
4488
+ * Two modes:
4489
+ * - **Convenience** (no children): renders `prefix`/`suffix` affixes, the input,
4490
+ * and `−`/`+` steppers (steppers shown unless `hideStepper`).
4491
+ * - **Compound** (children): caller composes `NumericInputControl`,
4492
+ * `NumericInputIncrement`, `NumericInputDecrement`, and `InputGroupAddon`.
4493
+ * In compound mode, the visual invalid halo (red border/ring) follows the inner control's
4494
+ * `aria-invalid` (or DS `Field` state), NOT the `aria-invalid` on `NumericInput` itself.
4495
+ *
4496
+ * Formatting is delegated to Base UI's `format` (`Intl.NumberFormatOptions`) and
4497
+ * `locale` props. `locale` defaults to the DS i18n active language.
4498
+ *
4499
+ * @example
4500
+ * ```tsx
4501
+ * <NumericInput aria-label="Amount" defaultValue={10}
4502
+ * format={{ style: 'currency', currency: 'EUR' }} prefix="€" suffix="EUR" />
4503
+ * ```
4504
+ */
4505
+ const NumericInput = React.forwardRef((componentProps, forwardRef) => {
4506
+ const { className, children, prefix, suffix, hideStepper = false, locale, format, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, "aria-invalid": ariaInvalid, ...rootProps } = componentProps;
4507
+ const resolvedLocale = resolveLocale(locale, useDsLocale());
4508
+ const resolvedFormat = resolveFormat(resolvedLocale, format);
4509
+ const ariaForRoot = children != null ? {
4510
+ "aria-label": ariaLabel,
4511
+ "aria-labelledby": ariaLabelledby,
4512
+ "aria-describedby": ariaDescribedby,
4513
+ "aria-invalid": ariaInvalid
4514
+ } : void 0;
4515
+ const content = children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
4516
+ prefix != null && /* @__PURE__ */ jsx(InputGroupAddon, {
4517
+ align: "inline-start",
4518
+ children: /* @__PURE__ */ jsx(InputGroupText, { children: prefix })
4519
+ }),
4520
+ /* @__PURE__ */ jsx(NumericInputControl, {
4521
+ "aria-label": ariaLabel,
4522
+ "aria-labelledby": ariaLabelledby,
4523
+ "aria-describedby": ariaDescribedby,
4524
+ "aria-invalid": ariaInvalid
4525
+ }),
4526
+ suffix != null && /* @__PURE__ */ jsx(InputGroupAddon, {
4527
+ align: "inline-end",
4528
+ children: /* @__PURE__ */ jsx(InputGroupText, { children: suffix })
4529
+ }),
4530
+ !hideStepper && /* @__PURE__ */ jsxs(InputGroupAddon, {
4531
+ align: "inline-end",
4532
+ className: "gap-0.5",
4533
+ children: [/* @__PURE__ */ jsx(NumericInputDecrement, {}), /* @__PURE__ */ jsx(NumericInputIncrement, {})]
4534
+ })
4535
+ ] });
4536
+ return /* @__PURE__ */ jsx(NumberField.Root, {
4537
+ ref: forwardRef,
4538
+ "data-slot": "numeric-input",
4539
+ locale: resolvedLocale,
4540
+ format: resolvedFormat,
4541
+ className: cn(inputGroupShellClassName, className),
4542
+ ...ariaForRoot,
4543
+ ...rootProps,
4544
+ children: content
4545
+ });
4546
+ });
4547
+ NumericInput.displayName = "NumericInput";
4548
+ /**
4549
+ * The text input part. Renders a bare `<input>` (direct child of `NumericInput`)
4550
+ * carrying `data-slot="input-group-control"` so the shell's focus halo applies.
4551
+ * The input's `aria-label` deliberately overrides the group's label for the input control.
4552
+ *
4553
+ * @example
4554
+ * ```tsx
4555
+ * <NumericInput aria-label="Quantity" defaultValue={1}>
4556
+ * <NumericInputControl aria-label="Quantity value" />
4557
+ * </NumericInput>
4558
+ * ```
4559
+ */
4560
+ const NumericInputControl = React.forwardRef((componentProps, forwardRef) => {
4561
+ const { className, ...props } = componentProps;
4562
+ return /* @__PURE__ */ jsx(NumberField.Input, {
4563
+ ref: forwardRef,
4564
+ "data-slot": "input-group-control",
4565
+ className: cn("text-foreground placeholder:text-muted-foreground 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),
4566
+ ...props
4567
+ });
4568
+ });
4569
+ NumericInputControl.displayName = "NumericInputControl";
4570
+ /**
4571
+ * Increment button. Defaults to a plus icon; pass children to override.
4572
+ *
4573
+ * @example
4574
+ * ```tsx
4575
+ * <NumericInputIncrement />
4576
+ * ```
4577
+ */
4578
+ const NumericInputIncrement = React.forwardRef((componentProps, forwardRef) => {
4579
+ const { className, children, ...props } = componentProps;
4580
+ return /* @__PURE__ */ jsx(NumberField.Increment, {
4581
+ ref: forwardRef,
4582
+ "data-slot": "numeric-input-increment",
4583
+ className,
4584
+ render: /* @__PURE__ */ jsx(Button, {
4585
+ type: "button",
4586
+ variant: "ghost",
4587
+ size: "icon-sm"
4588
+ }),
4589
+ ...props,
4590
+ children: children ?? /* @__PURE__ */ jsx(Plus, { className: "size-4" })
4591
+ });
4592
+ });
4593
+ NumericInputIncrement.displayName = "NumericInputIncrement";
4594
+ /**
4595
+ * Decrement button. Defaults to a minus icon; pass children to override.
4596
+ *
4597
+ * @example
4598
+ * ```tsx
4599
+ * <NumericInputDecrement />
4600
+ * ```
4601
+ */
4602
+ const NumericInputDecrement = React.forwardRef((componentProps, forwardRef) => {
4603
+ const { className, children, ...props } = componentProps;
4604
+ return /* @__PURE__ */ jsx(NumberField.Decrement, {
4605
+ ref: forwardRef,
4606
+ "data-slot": "numeric-input-decrement",
4607
+ className,
4608
+ render: /* @__PURE__ */ jsx(Button, {
4609
+ type: "button",
4610
+ variant: "ghost",
4611
+ size: "icon-sm"
4612
+ }),
4613
+ ...props,
4614
+ children: children ?? /* @__PURE__ */ jsx(Minus, { className: "size-4" })
4615
+ });
4616
+ });
4617
+ NumericInputDecrement.displayName = "NumericInputDecrement";
4618
+
4376
4619
  //#endregion
4377
4620
  //#region src/components/input-otp.tsx
4378
4621
  const InputOTP = React.forwardRef((componentProps, forwardRef) => {
@@ -6029,4 +6272,4 @@ function useAudioGauge(options = {}) {
6029
6272
  }
6030
6273
 
6031
6274
  //#endregion
6032
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionBar, ActionBarButton, ActionBarContext, 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, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BadgeGroup, BadgeGroupCount, Banner, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Chip, ChipRemove, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CounterBadge, CountryFlag, DataTable, DataTree, 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, DropzoneIcon, DropzoneTitle, DropzoneTrigger, DsI18nProvider, EmojiPicker, EmojiPickerCategories, EmojiPickerContent, EmojiPickerTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FAB, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Filter, FilterClearAllButton, FilterGroup, Gauge, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Label, List, ListCol, ListRow, NotificationQueueProvider, NotificationSlot, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, SUPPORTED_LANGUAGES, ScrollArea, ScrollAreaPrimitive, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, 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, Slider, Spinner, Stepper, StepperContent, StepperCounter, StepperPanel, StepperProgress, Switch, Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Tree, TreeDragLine, TreeItem, TreeItemLabel, alertVariants, anchorVariants, bannerVariants, buttonGroupVariants, buttonVariants, cn, counterBadgeVariants, detectInitialLanguage, fabVariants, registerI18nNamespace, selectTriggerVariants, spinnerVariants, syncDsLanguage, toast, toggleVariants, useAudioGauge, useComboboxAnchor, useDsTranslation, useNotification, useNotificationQueue, useSidebar, useStepper, useTheme };
6275
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionBar, ActionBarButton, ActionBarContext, 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, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BadgeGroup, BadgeGroupCount, Banner, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Chip, ChipRemove, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CounterBadge, CountryFlag, DataTable, DataTree, 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, DropzoneIcon, DropzoneTitle, DropzoneTrigger, DsI18nProvider, EmojiPicker, EmojiPickerCategories, EmojiPickerContent, EmojiPickerTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FAB, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Filter, FilterClearAllButton, FilterGroup, Gauge, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Label, List, ListCol, ListRow, NotificationQueueProvider, NotificationSlot, NumericInput, NumericInputControl, NumericInputDecrement, NumericInputIncrement, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, SUPPORTED_LANGUAGES, ScrollArea, ScrollAreaPrimitive, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, 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, Slider, Spinner, Stepper, StepperContent, StepperCounter, StepperPanel, StepperProgress, Switch, Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Tree, TreeDragLine, TreeItem, TreeItemLabel, alertVariants, anchorVariants, bannerVariants, buttonGroupVariants, buttonVariants, cn, counterBadgeVariants, detectInitialLanguage, fabVariants, registerI18nNamespace, selectTriggerVariants, spinnerVariants, syncDsLanguage, toast, toggleVariants, useAudioGauge, useComboboxAnchor, useDsTranslation, useNotification, useNotificationQueue, useSidebar, useStepper, useTheme };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aircall/ds",
3
- "version": "0.16.1",
3
+ "version": "0.17.0",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "sideEffects": [