@aircall/ds 0.17.0 → 0.18.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
@@ -1418,44 +1418,110 @@ declare namespace FieldContent {
1418
1418
  type Props = FieldContentProps;
1419
1419
  }
1420
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.
1421
+ * Label for a field. Renders an `@aircall/ds` Label with field-layout styling, plus an optional
1422
+ * necessity marker — `(required)` or `(optional)` text — after the label content.
1423
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.
1424
+ * Per Aircall form conventions, **mark the exceptions, not the rule**: in a mostly-mandatory form
1425
+ * tag the few optional fields with `necessityIndicator="optional"`; in a mostly-optional form tag
1426
+ * the few mandatory fields with `necessityIndicator="required"`. Leave it unset when every field
1427
+ * shares the same necessity (the common case). Never mix the two markers in one form. The marker
1428
+ * is readable text — the asterisk (`*`) is intentionally **not** a necessity marker.
1429
+ *
1430
+ * The marker is presentational — set the control's own `required`/`aria-required` for semantics.
1427
1431
  *
1428
1432
  * @example
1429
1433
  * ```tsx
1430
- * <FieldLabel required>Name</FieldLabel>
1431
- * <FieldLabel required necessityIndicator="label">Email</FieldLabel>
1434
+ * <FieldLabel>Name</FieldLabel>
1435
+ * <FieldLabel necessityIndicator="optional">Nickname</FieldLabel>
1432
1436
  * ```
1433
1437
  */
1434
1438
  declare const FieldLabel: React.ForwardRefExoticComponent<Omit<FieldLabelProps, "ref"> & React.RefAttributes<HTMLLabelElement>>;
1435
1439
  interface FieldLabelProps extends React.ComponentProps<typeof Label> {
1436
1440
  /**
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'
1441
+ * Necessity marker shown after the label: `'required'` renders `(required)`, `'optional'`
1442
+ * renders `(optional)`. Omit for no marker (the default, and the common case).
1443
+ *
1444
+ * Follow "mark the exceptions": tag only the minority necessity in a form (e.g. the lone
1445
+ * optional field in an otherwise-mandatory form), and never mix `'required'` and `'optional'`
1446
+ * in the same form. Presentational only — set the control's own `required`/`aria-required`.
1447
+ * @default undefined
1446
1448
  */
1447
- necessityIndicator?: 'icon' | 'label';
1449
+ necessityIndicator?: 'required' | 'optional';
1448
1450
  }
1449
1451
  declare namespace FieldLabel {
1450
1452
  type Props = FieldLabelProps;
1451
1453
  }
1454
+ /**
1455
+ * Row layout container that groups a `FieldLabel` with optional label add-ons on one line.
1456
+ * Renders a `<div data-slot="field-label-row">` with `flex w-full items-center gap-1`.
1457
+ * Any child carrying `data-slot="field-label-aside"` (e.g. `FieldLabelAside`) is pushed to the
1458
+ * right edge via `ml-auto`.
1459
+ *
1460
+ * @example
1461
+ * ```tsx
1462
+ * <FieldLabelRow>
1463
+ * <FieldLabel htmlFor="taxid">Tax ID Number</FieldLabel>
1464
+ * <FieldLabelAside render={<a href="/help/tax-id" />}>Where do I find this?</FieldLabelAside>
1465
+ * </FieldLabelRow>
1466
+ * ```
1467
+ */
1468
+ declare const FieldLabelRow: React.ForwardRefExoticComponent<Omit<FieldLabelRowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
1469
+ interface FieldLabelRowProps extends React.ComponentProps<'div'> {}
1470
+ declare namespace FieldLabelRow {
1471
+ type Props = FieldLabelRowProps;
1472
+ }
1473
+ /**
1474
+ * An info `(i)` icon shown beside a `FieldLabel` (inside a `FieldLabelRow`, never inside the
1475
+ * `<label>` itself). Click/tap opens a Popover with purely additive context — use only when ~90% of
1476
+ * users can complete the field without reading it. `children` is the popover content.
1477
+ */
1478
+ declare const FieldLabelInfo: React.ForwardRefExoticComponent<Omit<FieldLabelInfoProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
1479
+ interface FieldLabelInfoProps extends React.ComponentProps<typeof PopoverTrigger> {
1480
+ /** Additive context shown inside the popover when the icon is activated. */
1481
+ children?: React.ReactNode;
1482
+ }
1483
+ declare namespace FieldLabelInfo {
1484
+ type Props = FieldLabelInfoProps;
1485
+ }
1486
+ /**
1487
+ * Wrapper for content shown at the **right end** of a `FieldLabelRow` — a "look-it-up" link
1488
+ * ("Where do I find this?"), a popover trigger, or plain helper text. It enforces only placement
1489
+ * (`data-slot="field-label-aside"`, right-aligned by `FieldLabelRow`) and the label-row typography
1490
+ * (`text-sm leading-normal font-normal`); it imposes **no** link styling. Put whatever you want
1491
+ * inside — an `Anchor`, a `PopoverTrigger`, text — and it carries its own appearance.
1492
+ *
1493
+ * @example
1494
+ * ```tsx
1495
+ * <FieldLabelAside>
1496
+ * <Anchor href="/help/tax-id">Where do I find this?</Anchor>
1497
+ * </FieldLabelAside>
1498
+ * ```
1499
+ */
1500
+ declare const FieldLabelAside: React.ForwardRefExoticComponent<Omit<FieldLabelAsideProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
1501
+ interface FieldLabelAsideProps extends React.ComponentProps<'span'> {}
1502
+ declare namespace FieldLabelAside {
1503
+ type Props = FieldLabelAsideProps;
1504
+ }
1452
1505
  declare const FieldTitle: React.ForwardRefExoticComponent<Omit<FieldTitleProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
1453
1506
  interface FieldTitleProps extends React.ComponentProps<'div'> {}
1454
1507
  declare namespace FieldTitle {
1455
1508
  type Props = FieldTitleProps;
1456
1509
  }
1457
1510
  declare const FieldDescription: React.ForwardRefExoticComponent<Omit<FieldDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
1458
- interface FieldDescriptionProps extends React.ComponentProps<'p'> {}
1511
+ interface FieldDescriptionProps extends React.ComponentProps<'p'> {
1512
+ /**
1513
+ * Semantic kind of the description (drives placement intent + error behavior):
1514
+ * - `'contextual'` (default): downstream consequence / reassurance / safety net. Place it below
1515
+ * the input. Hidden when the field is invalid (the `FieldError` takes its slot). The hide is
1516
+ * pure CSS and **requires `data-invalid` to be set on the wrapping `<Field>`** — `@aircall/blocks`
1517
+ * `FormField` does this automatically; raw-ds consumers must set it themselves.
1518
+ * - `'instructional'`: execution guidance the user needs to fill the field correctly. Place it
1519
+ * directly under the label. Stays visible alongside the error.
1520
+ * Never use both kinds on one field.
1521
+ * @default 'contextual'
1522
+ */
1523
+ variant?: 'contextual' | 'instructional';
1524
+ }
1459
1525
  declare namespace FieldDescription {
1460
1526
  type Props = FieldDescriptionProps;
1461
1527
  }
@@ -2566,7 +2632,7 @@ declare function useDsTranslation(ns: 'ds' | 'blocks'): (key: string, opts?: Rec
2566
2632
  //#endregion
2567
2633
  //#region src/i18n/keys.d.ts
2568
2634
  /** All translation keys owned by the `ds` namespace. Flat dotted keys (keySeparator: false). */
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';
2635
+ 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' | 'fieldLabel.moreInfo';
2570
2636
  /** A complete set of translations for one language. Missing a key is a compile error. */
2571
2637
  type DsLocale = Record<DsI18nKey, string>;
2572
2638
  //#endregion
@@ -2628,4 +2694,4 @@ declare function useAudioGauge(options?: UseAudioGaugeOptions): UseAudioGaugeRes
2628
2694
  //#region src/lib/utils.d.ts
2629
2695
  declare function cn(...inputs: ClassValue[]): string;
2630
2696
  //#endregion
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 };
2697
+ 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, FieldLabelAside, FieldLabelInfo, FieldLabelRow, 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
@@ -236,7 +236,8 @@ const de = {
236
236
  "actionBar.clearSelection": "Auswahl aufheben",
237
237
  "actionBar.itemsSelected": "{{count}} Elemente ausgewählt.",
238
238
  "fieldLabel.required": "(erforderlich)",
239
- "fieldLabel.optional": "(optional)"
239
+ "fieldLabel.optional": "(optional)",
240
+ "fieldLabel.moreInfo": "Weitere Informationen"
240
241
  };
241
242
  var de_default = de;
242
243
 
@@ -263,7 +264,8 @@ const en = {
263
264
  "actionBar.clearSelection": "Clear selection",
264
265
  "actionBar.itemsSelected": "{{count}} items selected.",
265
266
  "fieldLabel.required": "(required)",
266
- "fieldLabel.optional": "(optional)"
267
+ "fieldLabel.optional": "(optional)",
268
+ "fieldLabel.moreInfo": "More information"
267
269
  };
268
270
  var en_default = en;
269
271
 
@@ -290,7 +292,8 @@ const es = {
290
292
  "actionBar.clearSelection": "Borrar selección",
291
293
  "actionBar.itemsSelected": "{{count}} elementos seleccionados.",
292
294
  "fieldLabel.required": "(obligatorio)",
293
- "fieldLabel.optional": "(opcional)"
295
+ "fieldLabel.optional": "(opcional)",
296
+ "fieldLabel.moreInfo": "Más información"
294
297
  };
295
298
  var es_default = es;
296
299
 
@@ -317,7 +320,8 @@ const fr = {
317
320
  "actionBar.clearSelection": "Effacer la sélection",
318
321
  "actionBar.itemsSelected": "{{count}} éléments sélectionnés.",
319
322
  "fieldLabel.required": "(obligatoire)",
320
- "fieldLabel.optional": "(facultatif)"
323
+ "fieldLabel.optional": "(facultatif)",
324
+ "fieldLabel.moreInfo": "Plus d'informations"
321
325
  };
322
326
  var fr_default = fr;
323
327
 
@@ -344,7 +348,8 @@ const it = {
344
348
  "actionBar.clearSelection": "Cancella selezione",
345
349
  "actionBar.itemsSelected": "{{count}} elementi selezionati.",
346
350
  "fieldLabel.required": "(obbligatorio)",
347
- "fieldLabel.optional": "(facoltativo)"
351
+ "fieldLabel.optional": "(facoltativo)",
352
+ "fieldLabel.moreInfo": "Maggiori informazioni"
348
353
  };
349
354
  var it_default = it;
350
355
 
@@ -4156,7 +4161,7 @@ const FieldGroup = React.forwardRef((componentProps, forwardRef) => {
4156
4161
  });
4157
4162
  });
4158
4163
  FieldGroup.displayName = "FieldGroup";
4159
- const fieldVariants = cva("group/field flex w-full gap-2 data-[invalid=true]:text-destructive", {
4164
+ const fieldVariants = cva("group/field flex w-full gap-2", {
4160
4165
  variants: { orientation: {
4161
4166
  vertical: "flex-col *:w-full [&>.sr-only]:w-auto",
4162
4167
  horizontal: "flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
@@ -4187,44 +4192,106 @@ const FieldContent = React.forwardRef((componentProps, forwardRef) => {
4187
4192
  });
4188
4193
  FieldContent.displayName = "FieldContent";
4189
4194
  /**
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.
4195
+ * Label for a field. Renders an `@aircall/ds` Label with field-layout styling, plus an optional
4196
+ * necessity marker — `(required)` or `(optional)` text — after the label content.
4192
4197
  *
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.
4198
+ * Per Aircall form conventions, **mark the exceptions, not the rule**: in a mostly-mandatory form
4199
+ * tag the few optional fields with `necessityIndicator="optional"`; in a mostly-optional form tag
4200
+ * the few mandatory fields with `necessityIndicator="required"`. Leave it unset when every field
4201
+ * shares the same necessity (the common case). Never mix the two markers in one form. The marker
4202
+ * is readable text — the asterisk (`*`) is intentionally **not** a necessity marker.
4203
+ *
4204
+ * The marker is presentational — set the control's own `required`/`aria-required` for semantics.
4196
4205
  *
4197
4206
  * @example
4198
4207
  * ```tsx
4199
- * <FieldLabel required>Name</FieldLabel>
4200
- * <FieldLabel required necessityIndicator="label">Email</FieldLabel>
4208
+ * <FieldLabel>Name</FieldLabel>
4209
+ * <FieldLabel necessityIndicator="optional">Nickname</FieldLabel>
4201
4210
  * ```
4202
4211
  */
4203
4212
  const FieldLabel = React.forwardRef((componentProps, forwardRef) => {
4204
- const { className, children, required = false, necessityIndicator = "icon", ...props } = componentProps;
4213
+ const { className, children, necessityIndicator, ...props } = componentProps;
4205
4214
  const t = useDsTranslation("ds");
4206
4215
  return /* @__PURE__ */ jsxs(Label, {
4207
4216
  ref: forwardRef,
4208
4217
  "data-slot": "field-label",
4209
- "data-required": required || void 0,
4218
+ "data-necessity": necessityIndicator,
4210
4219
  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
4220
  ...props,
4212
- children: [children, necessityIndicator === "label" ? /* @__PURE__ */ jsx("span", {
4221
+ children: [children, necessityIndicator && /* @__PURE__ */ jsx("span", {
4213
4222
  "data-slot": "field-necessity",
4214
4223
  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
- })] })]
4224
+ children: necessityIndicator === "required" ? t("fieldLabel.required") : t("fieldLabel.optional")
4225
+ })]
4225
4226
  });
4226
4227
  });
4227
4228
  FieldLabel.displayName = "FieldLabel";
4229
+ /**
4230
+ * Row layout container that groups a `FieldLabel` with optional label add-ons on one line.
4231
+ * Renders a `<div data-slot="field-label-row">` with `flex w-full items-center gap-1`.
4232
+ * Any child carrying `data-slot="field-label-aside"` (e.g. `FieldLabelAside`) is pushed to the
4233
+ * right edge via `ml-auto`.
4234
+ *
4235
+ * @example
4236
+ * ```tsx
4237
+ * <FieldLabelRow>
4238
+ * <FieldLabel htmlFor="taxid">Tax ID Number</FieldLabel>
4239
+ * <FieldLabelAside render={<a href="/help/tax-id" />}>Where do I find this?</FieldLabelAside>
4240
+ * </FieldLabelRow>
4241
+ * ```
4242
+ */
4243
+ const FieldLabelRow = React.forwardRef((componentProps, forwardRef) => {
4244
+ const { className, ...props } = componentProps;
4245
+ return /* @__PURE__ */ jsx("div", {
4246
+ ref: forwardRef,
4247
+ "data-slot": "field-label-row",
4248
+ className: cn("flex w-full items-center gap-1 [&>[data-slot=field-label-aside]]:ml-auto", className),
4249
+ ...props
4250
+ });
4251
+ });
4252
+ FieldLabelRow.displayName = "FieldLabelRow";
4253
+ /**
4254
+ * An info `(i)` icon shown beside a `FieldLabel` (inside a `FieldLabelRow`, never inside the
4255
+ * `<label>` itself). Click/tap opens a Popover with purely additive context — use only when ~90% of
4256
+ * users can complete the field without reading it. `children` is the popover content.
4257
+ */
4258
+ const FieldLabelInfo = React.forwardRef((componentProps, forwardRef) => {
4259
+ const { className, children, "aria-label": ariaLabel, ...props } = componentProps;
4260
+ const t = useDsTranslation("ds");
4261
+ return /* @__PURE__ */ jsxs(Popover, { children: [/* @__PURE__ */ jsx(PopoverTrigger, {
4262
+ ref: forwardRef,
4263
+ "data-slot": "field-label-info",
4264
+ "aria-label": ariaLabel ?? t("fieldLabel.moreInfo"),
4265
+ className: cn("inline-flex items-center text-muted-foreground hover:text-foreground", className),
4266
+ ...props,
4267
+ children: /* @__PURE__ */ jsx(Info, { className: "size-4" })
4268
+ }), /* @__PURE__ */ jsx(PopoverContent, { children })] });
4269
+ });
4270
+ FieldLabelInfo.displayName = "FieldLabelInfo";
4271
+ /**
4272
+ * Wrapper for content shown at the **right end** of a `FieldLabelRow` — a "look-it-up" link
4273
+ * ("Where do I find this?"), a popover trigger, or plain helper text. It enforces only placement
4274
+ * (`data-slot="field-label-aside"`, right-aligned by `FieldLabelRow`) and the label-row typography
4275
+ * (`text-sm leading-normal font-normal`); it imposes **no** link styling. Put whatever you want
4276
+ * inside — an `Anchor`, a `PopoverTrigger`, text — and it carries its own appearance.
4277
+ *
4278
+ * @example
4279
+ * ```tsx
4280
+ * <FieldLabelAside>
4281
+ * <Anchor href="/help/tax-id">Where do I find this?</Anchor>
4282
+ * </FieldLabelAside>
4283
+ * ```
4284
+ */
4285
+ const FieldLabelAside = React.forwardRef((componentProps, forwardRef) => {
4286
+ const { className, ...props } = componentProps;
4287
+ return /* @__PURE__ */ jsx("span", {
4288
+ ref: forwardRef,
4289
+ "data-slot": "field-label-aside",
4290
+ className: cn("text-sm leading-normal font-normal", className),
4291
+ ...props
4292
+ });
4293
+ });
4294
+ FieldLabelAside.displayName = "FieldLabelAside";
4228
4295
  const FieldTitle = React.forwardRef((componentProps, forwardRef) => {
4229
4296
  const { className, ...props } = componentProps;
4230
4297
  return /* @__PURE__ */ jsx("div", {
@@ -4236,11 +4303,12 @@ const FieldTitle = React.forwardRef((componentProps, forwardRef) => {
4236
4303
  });
4237
4304
  FieldTitle.displayName = "FieldTitle";
4238
4305
  const FieldDescription = React.forwardRef((componentProps, forwardRef) => {
4239
- const { className, ...props } = componentProps;
4306
+ const { className, variant = "contextual", ...props } = componentProps;
4240
4307
  return /* @__PURE__ */ jsx("p", {
4241
4308
  ref: forwardRef,
4242
4309
  "data-slot": "field-description",
4243
- className: cn("text-left text-sm leading-normal font-normal text-muted-foreground group-has-[[data-orientation=horizontal]]/field:text-balance [[data-variant=legend]+&]:-mt-1.5", "last:mt-0 nth-last-2:-mt-1", "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", className),
4310
+ "data-variant": variant,
4311
+ className: cn("text-left text-sm leading-normal font-normal text-muted-foreground group-has-[[data-orientation=horizontal]]/field:text-balance [[data-variant=legend]+&]:-mt-1.5", "last:mt-0 nth-last-2:-mt-1", "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", variant === "contextual" && "group-data-[invalid=true]/field:hidden", className),
4244
4312
  ...props
4245
4313
  });
4246
4314
  });
@@ -6272,4 +6340,4 @@ function useAudioGauge(options = {}) {
6272
6340
  }
6273
6341
 
6274
6342
  //#endregion
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 };
6343
+ 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, FieldLabelAside, FieldLabelInfo, FieldLabelRow, 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/dist/theme.css ADDED
@@ -0,0 +1,2 @@
1
+ /*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
2
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root,:host{--color-charcoal-50:#f6fafc;--color-charcoal-300:#b0c4d1;--color-charcoal-700:#3a5362;--color-charcoal-900:#132c3b;--color-neutral-50:#f8f9fc;--color-neutral-100:#f0f2f6;--color-neutral-200:#e4e6ea;--color-neutral-400:#a4a6aa;--color-neutral-500:#7e8084;--color-neutral-600:#64666a;--color-neutral-700:#4b4d51;--color-neutral-800:#36383c;--color-neutral-900:#24262a;--color-neutral-950:#0b0d11;--color-red-50:#fff7f5;--color-red-400:#ff7256;--color-red-600:#db391a;--color-red-950:#420b00;--color-yellow-50:#fffcf3;--color-yellow-400:#f3ad26;--color-yellow-500:#d68100;--color-yellow-700:#8f5600;--color-yellow-950:#2f1c00;--color-green-50:#f4fffb;--color-green-400:#37cd8e;--color-green-500:#13a96a;--color-green-600:#00884f;--color-green-700:#006a3d;--color-green-950:#002817;--color-blue-50:#f5faff;--color-blue-400:#70b1ff;--color-blue-500:#388ef6;--color-blue-600:#1e74dc;--color-blue-700:#055bc3;--color-blue-950:#001f45;--color-purple-600:#6551d6;--color-purple-700:#4c38bd;--color-pink-500:#eb5e7c;--color-pink-600:#cf4260;--font-sans:"Fellix",sans-serif}.ds-emoji-picker .EmojiPickerReact,.ds-emoji-picker .EmojiPickerReact.epr-dark-theme{--epr-emoji-size:24px;--epr-category-navigation-button-size:24px;--epr-header-padding:calc(var(--spacing)*2)calc(var(--spacing)*2);--epr-category-label-height:calc(var(--spacing)*8);--epr-bg-color:var(--popover);--epr-category-label-bg-color:var(--popover);--epr-picker-border-color:var(--border);--epr-search-input-bg-color:var(--muted);--epr-search-input-bg-color-active:var(--muted);--epr-search-border-color:var(--ring);--epr-category-icon-active-color:var(--primary);font-family:var(--font-sans)}.ds-emoji-picker .EmojiPickerReact *{font-family:inherit}.ds-emoji-picker .EmojiPickerReact .epr-emoji-category>.epr-emoji-category-label{font-weight:400}.ds-emoji-picker .EmojiPickerReact .epr-category-nav>button.epr-cat-btn:focus:before{content:none}@keyframes caret-blink{0%,70%,to{opacity:1}20%,50%{opacity:0}}@keyframes badge-glow{0%,to{filter:drop-shadow(0 0 2px var(--badge-glow))}50%{filter:drop-shadow(0 0 5px var(--badge-glow))}}@layer theme{:root,:host{--background:#fff;--foreground:var(--color-neutral-950);--card:#fff;--card-foreground:var(--color-neutral-950);--popover:#fff;--popover-foreground:var(--color-neutral-950);--primary:var(--color-green-600);--primary-foreground:#fff;--secondary:var(--color-charcoal-700);--secondary-foreground:var(--color-charcoal-50);--info:var(--color-blue-500);--info-foreground:var(--color-blue-700);--info-background:var(--color-blue-50);--success:var(--color-green-500);--success-foreground:var(--color-green-700);--success-background:var(--color-green-50);--warning:var(--color-yellow-500);--warning-foreground:var(--color-yellow-700);--warning-background:var(--color-yellow-50);--muted:var(--color-neutral-100);--muted-foreground:var(--color-neutral-600);--accent:var(--color-neutral-100);--accent-foreground:var(--color-neutral-900);--destructive:var(--color-red-600);--destructive-foreground:var(--color-red-50);--destructive-background:var(--color-red-50);--border:var(--color-neutral-200);--input:var(--color-neutral-200);--ring:var(--color-neutral-400);--chart-1:var(--color-green-600);--chart-2:var(--color-blue-600);--chart-3:var(--color-purple-700);--chart-4:var(--color-yellow-400);--chart-5:var(--color-pink-500);--radius:.625rem;--sidebar:#fff;--sidebar-foreground:var(--color-neutral-800);--sidebar-primary:var(--color-green-600);--sidebar-primary-foreground:#fff;--sidebar-accent:var(--color-neutral-100);--sidebar-accent-foreground:var(--color-neutral-900);--sidebar-border:var(--color-neutral-200);--sidebar-ring:var(--color-neutral-400);--badge-film-10:#ffffff1a;--badge-film-40:#fff6;--badge-film-60:#fff9;--badge-film-80:#fffc}[data-theme=dark],[data-theme=dark] *{--background:var(--color-neutral-950);--foreground:var(--color-neutral-50);--card:var(--color-neutral-900);--card-foreground:var(--color-neutral-50);--popover:var(--color-neutral-800);--popover-foreground:var(--color-neutral-50);--primary:var(--color-green-500);--primary-foreground:var(--color-neutral-950);--secondary:var(--color-charcoal-300);--secondary-foreground:var(--color-charcoal-900);--info:var(--color-blue-500);--info-foreground:var(--color-blue-400);--info-background:var(--color-blue-950);--success:var(--color-green-500);--success-foreground:var(--color-green-400);--success-background:var(--color-green-950);--warning:var(--color-yellow-500);--warning-foreground:var(--color-yellow-400);--warning-background:var(--color-yellow-950);--muted:var(--color-neutral-800);--muted-foreground:var(--color-neutral-400);--accent:var(--color-neutral-700);--accent-foreground:var(--color-neutral-50);--destructive:var(--color-red-400);--destructive-foreground:var(--color-red-50);--destructive-background:var(--color-red-950);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:var(--color-neutral-500);--chart-1:var(--color-green-500);--chart-2:var(--color-blue-500);--chart-3:var(--color-purple-600);--chart-4:var(--color-yellow-500);--chart-5:var(--color-pink-600);--sidebar:var(--color-neutral-900);--sidebar-foreground:var(--color-neutral-50);--sidebar-primary:var(--color-green-500);--sidebar-primary-foreground:#fff;--sidebar-accent:var(--color-neutral-800);--sidebar-accent-foreground:var(--color-neutral-50);--sidebar-border:oklch(100% 0 0/.1);--sidebar-ring:var(--color-neutral-600);--badge-film-10:#0a0a0a1a;--badge-film-40:#0a0a0a66;--badge-film-60:#0a0a0a99;--badge-film-80:#0a0a0acc}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aircall/ds",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "sideEffects": [
@@ -26,6 +26,7 @@
26
26
  "default": "./dist/index.js"
27
27
  },
28
28
  "./globals.css": "./dist/globals.css",
29
+ "./theme.css": "./dist/theme.css",
29
30
  "./fonts/*": "./src/fonts/*.woff2"
30
31
  },
31
32
  "peerDependencies": {
@@ -63,8 +64,7 @@
63
64
  "next-themes": "0.4.6",
64
65
  "sonner": "2.0.3",
65
66
  "tailwind-merge": "3.4.0",
66
- "tw-animate-css": "1.4.0",
67
- "zod": "3.24.2"
67
+ "tw-animate-css": "1.4.0"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@aircall/numbers": "*",
@@ -118,7 +118,7 @@
118
118
  "scripts": {
119
119
  "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
120
120
  "build:js": "tsdown --config ./tsdown.config.ts",
121
- "build:css": "tailwindcss -i ./src/styles/globals.css -o ./dist/globals.css --minify",
121
+ "build:css": "tailwindcss -i ./src/styles/globals.css -o ./dist/globals.css --minify && tailwindcss -i ./src/styles/theme.css -o ./dist/theme.css --minify",
122
122
  "build:package": "pnpm run build:js && pnpm run build:css",
123
123
  "lint": "eslint . --max-warnings 0",
124
124
  "shadcn:add": "pnpx shadcn@latest add",