@aircall/ds 0.49.0 → 0.50.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
@@ -995,8 +995,8 @@ declare namespace CounterBadge {
995
995
  /** `cva` recipe for the Badge/Chip container — drives the `size`, `color`, and `tone` classes. */
996
996
  declare const badgeVariants: (props?: ({
997
997
  size?: "default" | "lg" | null | undefined;
998
- color?: "blue" | "green" | "pink" | "purple" | "red" | "yellow" | "charcoal" | null | undefined;
999
- tone?: "dark" | "light" | "medium-dark" | "medium-light" | null | undefined;
998
+ color?: "charcoal" | "red" | "green" | "blue" | "purple" | "yellow" | "pink" | null | undefined;
999
+ tone?: "dark" | "medium-dark" | "medium-light" | "light" | null | undefined;
1000
1000
  overflowMode?: "none" | "truncate" | null | undefined;
1001
1001
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
1002
1002
  type BadgeVariants = VariantProps<typeof badgeVariants>;
@@ -1075,7 +1075,7 @@ declare namespace BadgeGroupCount {
1075
1075
  */
1076
1076
  declare const bannerVariants: (props?: ({
1077
1077
  variant?: "default" | "error" | "info" | "success" | "warning" | null | undefined;
1078
- borderDirection?: "bottom" | "top" | null | undefined;
1078
+ borderDirection?: "top" | "bottom" | null | undefined;
1079
1079
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
1080
1080
  /**
1081
1081
  * Full-width contextual message, typically pinned to the top or bottom of a
@@ -5676,10 +5676,10 @@ interface RichTextareaProps {
5676
5676
  */
5677
5677
  tags?: TagOption[] | RichTextareaAsyncList<TagOption>;
5678
5678
  /**
5679
- * Enables marks (bold/italic/underline/strikethrough/code), lists, links, and
5680
- * Markdown interchange. Links recognize typed/pasted URLs (autolink) and expose a
5679
+ * Enables marks (bold/italic/underline/strikethrough/code), lists, quotes, links,
5680
+ * and Markdown interchange. Links recognize typed/pasted URLs (autolink) and expose a
5681
5681
  * floating edit/remove card on click; Cmd/Ctrl+K opens the insert form. Compose a
5682
- * {@link RichTextareaToolbar} to expose the mark/list/link controls. Autolink and
5682
+ * {@link RichTextareaToolbar} to expose the mark/list/quote/link controls. Autolink and
5683
5683
  * the floating link card only exist when this is on.
5684
5684
  * @default false
5685
5685
  */
@@ -5814,6 +5814,40 @@ interface InputGroupRichTextareaProps extends Omit<RichTextareaProps, 'bare'> {}
5814
5814
  declare namespace InputGroupRichTextarea {
5815
5815
  type Props = InputGroupRichTextareaProps;
5816
5816
  }
5817
+ /** Props for {@link MarkdownView}. */
5818
+ interface MarkdownViewProps {
5819
+ /**
5820
+ * The Markdown to render, as a `formatting` RichTextarea writes it (the `markdown` of
5821
+ * `onValueChange`). Plain text with no Markdown syntax renders as is, line breaks kept. Raw
5822
+ * HTML shows as text.
5823
+ */
5824
+ value: string;
5825
+ /** Extra classes for the rendered content. */
5826
+ className?: string;
5827
+ /**
5828
+ * Test id applied to the rendered content.
5829
+ * @default 'markdown-view'
5830
+ */
5831
+ 'data-test'?: string;
5832
+ }
5833
+ /**
5834
+ * Read-only render of the Markdown a `formatting` {@link RichTextarea} writes. It uses the
5835
+ * same plugins and elements, so quotes, lists, marks and links look as they do in the editor.
5836
+ * No border, padding or toolbar: it takes the surrounding text size and color. Links open in a
5837
+ * new tab, and a new `value` renders again.
5838
+ *
5839
+ * It renders what the editor can write: marks, lists, quotes and links. Other Markdown is not
5840
+ * styled: headings and tables show as plain text, and images do not show.
5841
+ *
5842
+ * @example
5843
+ * ```tsx
5844
+ * <MarkdownView value={script} />
5845
+ * ```
5846
+ */
5847
+ declare const MarkdownView: React.ForwardRefExoticComponent<MarkdownViewProps & React.RefAttributes<HTMLDivElement>>;
5848
+ declare namespace MarkdownView {
5849
+ type Props = MarkdownViewProps;
5850
+ }
5817
5851
  //#endregion
5818
5852
  //#region src/components/rich-textarea-toolbar.d.ts
5819
5853
  /** Props for {@link RichTextareaToolbar}. */
@@ -5821,7 +5855,7 @@ interface RichTextareaToolbarProps extends React.ComponentProps<'div'> {}
5821
5855
  /**
5822
5856
  * Formatting toolbar for a {@link RichTextareaRoot} with `formatting`. Renders DS
5823
5857
  * `Toggle`s wired to the editor: bold / italic / underline / strikethrough / inline
5824
- * code, bulleted / numbered lists, and a link button that opens the floating link
5858
+ * code, bulleted / numbered lists, quote, and a link button that opens the floating link
5825
5859
  * card (the same card shown on click / Cmd+K). Must render inside a
5826
5860
  * `RichTextareaRoot` (it reads the editor from the Plate provider) — typically in an
5827
5861
  * `InputGroupAddon align="block-start"`.
@@ -7005,7 +7039,7 @@ declare function useDsLocale(): string;
7005
7039
  //#endregion
7006
7040
  //#region src/i18n/keys.d.ts
7007
7041
  /** All translation keys owned by the `ds` namespace. Flat dotted keys (keySeparator: false). */
7008
- type DsI18nKey = 'spinner.loading' | 'pagination.label' | 'pagination.previousPage' | 'pagination.nextPage' | 'dataTable.selectAllRows' | 'dataTable.selectRow' | 'dataCombobox.noResults' | 'combobox.showOptions' | 'tree.collapse' | 'tree.expand' | 'multiselect.remove' | 'multiselect.clearAll' | 'multiselect.addItem' | 'multiselect.search' | 'combobox.toggleOptions' | 'combobox.clear' | 'sidebar.toggle' | 'drawer.close' | 'emojiPicker.emoji' | 'emojiPicker.choose' | 'actionBar.selectionActions' | 'pagination.previous' | 'pagination.next' | 'actionBar.clearSelection' | 'actionBar.itemsSelected' | 'actionBar.itemsSelected_plural' | 'fieldLabel.required' | 'fieldLabel.optional' | 'fieldLabel.moreInfo' | 'datePicker.beforeMin' | 'datePicker.afterMax' | 'datePicker.unavailable' | 'datePicker.rangeOrder' | 'richTextarea.noResults' | 'richTextarea.slashNoCommands' | 'richTextarea.bold' | 'richTextarea.italic' | 'richTextarea.underline' | 'richTextarea.strikethrough' | 'richTextarea.inlineCode' | 'richTextarea.bulletedList' | 'richTextarea.numberedList' | 'richTextarea.link' | 'richTextarea.linkPlaceholder' | 'richTextarea.linkText' | 'richTextarea.linkEdit' | 'richTextarea.linkOpen' | 'richTextarea.linkRemove' | 'colorPicker.trigger' | 'colorPicker.choose' | 'colorPicker.presets' | 'colorPicker.mode' | 'colorPicker.modePresets' | 'colorPicker.modeCustom' | 'colorPicker.charcoal' | 'colorPicker.green' | 'colorPicker.blue' | 'colorPicker.purple' | 'colorPicker.pink' | 'colorPicker.red' | 'colorPicker.yellow' | 'colorPicker.toneDark' | 'colorPicker.toneMediumDark' | 'colorPicker.toneMediumLight' | 'colorPicker.toneLight' | 'colorPicker.saturation' | 'colorPicker.hue' | 'colorPicker.hex' | 'colorPicker.areaValue' | 'stepper.counter';
7042
+ type DsI18nKey = 'spinner.loading' | 'pagination.label' | 'pagination.previousPage' | 'pagination.nextPage' | 'dataTable.selectAllRows' | 'dataTable.selectRow' | 'dataCombobox.noResults' | 'combobox.showOptions' | 'tree.collapse' | 'tree.expand' | 'multiselect.remove' | 'multiselect.clearAll' | 'multiselect.addItem' | 'multiselect.search' | 'combobox.toggleOptions' | 'combobox.clear' | 'sidebar.toggle' | 'drawer.close' | 'emojiPicker.emoji' | 'emojiPicker.choose' | 'actionBar.selectionActions' | 'pagination.previous' | 'pagination.next' | 'actionBar.clearSelection' | 'actionBar.itemsSelected' | 'actionBar.itemsSelected_plural' | 'fieldLabel.required' | 'fieldLabel.optional' | 'fieldLabel.moreInfo' | 'datePicker.beforeMin' | 'datePicker.afterMax' | 'datePicker.unavailable' | 'datePicker.rangeOrder' | 'richTextarea.noResults' | 'richTextarea.slashNoCommands' | 'richTextarea.bold' | 'richTextarea.italic' | 'richTextarea.underline' | 'richTextarea.strikethrough' | 'richTextarea.inlineCode' | 'richTextarea.bulletedList' | 'richTextarea.numberedList' | 'richTextarea.quote' | 'richTextarea.link' | 'richTextarea.linkPlaceholder' | 'richTextarea.linkText' | 'richTextarea.linkEdit' | 'richTextarea.linkOpen' | 'richTextarea.linkRemove' | 'colorPicker.trigger' | 'colorPicker.choose' | 'colorPicker.presets' | 'colorPicker.mode' | 'colorPicker.modePresets' | 'colorPicker.modeCustom' | 'colorPicker.charcoal' | 'colorPicker.green' | 'colorPicker.blue' | 'colorPicker.purple' | 'colorPicker.pink' | 'colorPicker.red' | 'colorPicker.yellow' | 'colorPicker.toneDark' | 'colorPicker.toneMediumDark' | 'colorPicker.toneMediumLight' | 'colorPicker.toneLight' | 'colorPicker.saturation' | 'colorPicker.hue' | 'colorPicker.hex' | 'colorPicker.areaValue' | 'stepper.counter';
7009
7043
  /** A complete set of translations for one language. Missing a key is a compile error. */
7010
7044
  type DsLocale = Record<DsI18nKey, string>;
7011
7045
  //#endregion
@@ -7067,4 +7101,4 @@ declare function useAudioGauge(options?: UseAudioGaugeOptions): UseAudioGaugeRes
7067
7101
  //#region src/lib/utils.d.ts
7068
7102
  declare function cn(...inputs: ClassValue[]): string;
7069
7103
  //#endregion
7070
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionBar, ActionBarButton, ActionBarContext, type ActionBarContextValue, ActionBarHeight, Alert, AlertAction, AlertAction as BannerAction, AlertDescription, AlertDescription as BannerDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AlertTitle as BannerTitle, Anchor, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, type AttachmentState, AttachmentTitle, AttachmentTrigger, Audio, AudioPlayerBar, type AudioPlayerBarProps, AudioPlayerButton, type AudioPlayerButtonProps, AudioPlayerCurrentTime, type AudioPlayerCurrentTimeProps, AudioPlayerDuration, type AudioPlayerDurationProps, type AudioPlayerItem, AudioPlayerManager, type AudioPlayerManagerProps, AudioPlayerRow, type AudioPlayerRowProps, AudioPlayerSkip, type AudioPlayerSkipProps, AudioPlayerSpeed, type AudioPlayerSpeedProps, AudioPlayerTime, type AudioPlayerTimeProps, type AudioProps, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BadgeGroup, BadgeGroupCount, Banner, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, COMBOBOX_AUTO_SEARCH_THRESHOLD, COMBOBOX_AUTO_VIRTUALIZE_THRESHOLD, Calendar, CalendarDayButton, CalendarDropdown, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Chip, ChipRemove, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, ColorPickerArea, ColorPickerContent, ColorPickerHexField, ColorPickerHue, type ColorPickerMode, ColorPickerModeToggle, ColorPickerPanel, type ColorPickerPreset, ColorPickerPresets, ColorPickerTrigger, type ColumnDef, type ColumnPinningState, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, type ComboboxClear, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, type ComboboxLoadingState, type ComboboxSelectionChangeDetails, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CounterBadge, CountryFlag, DataCombobox, type DataComboboxLoadingState, DataTable, type DataTableLoadingState, DataTree, DatePicker, type DatePickerPredefinedRange, type DateRange, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBackdrop, DrawerBar, DrawerClose, DrawerContent, DrawerCreateHandle, DrawerDescription, DrawerFooter, DrawerHeader, DrawerMenu, DrawerMenuCheckboxItem, DrawerMenuGroup, DrawerMenuGroupLabel, DrawerMenuItem, DrawerMenuRadioGroup, DrawerMenuRadioItem, DrawerMenuSeparator, DrawerMenuTrigger, DrawerPanel, DrawerPopup, DrawerPortal, DrawerPrimitive, DrawerSwipeArea, DrawerTitle, DrawerTrigger, DrawerViewport, DropdownMenu, DropdownMenuAddon, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, DropzoneActions, DropzoneContent, DropzoneDescription, type DropzoneErrorCode, DropzoneIcon, DropzoneTitle, DropzoneTrigger, type DsI18nKey, DsI18nProvider, type DsLocale, EmojiPicker, EmojiPickerCategories, type EmojiPickerCategory, EmojiPickerContent, EmojiPickerTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FAB, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLabelAside, FieldLabelInfo, FieldLabelRow, FieldLegend, FieldSeparator, FieldSet, FieldTitle, type FileError, type FileRejection, Gauge, HoverCard, HoverCardContent, HoverCardTrigger, type I18nLanguageSource, InlineEditInput, InlineEditMultiCombobox, InlineEditMultiComboboxChip, InlineEditMultiComboboxChips, InlineEditMultiComboboxContent, InlineEditMultiComboboxItem, InlineEditMultiComboboxTrigger, InlineEditMultiComboboxValue, InlineEditSelect, InlineEditSelectContent, InlineEditSelectItem, InlineEditSelectTrigger, InlineEditSelectValue, InlineEditTextarea, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupRichTextarea, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, LEGACY_COLOR_PRESETS, Label, List, ListCol, ListRow, type MentionOption, type NotificationHandle, type NotificationOptions, type NotificationPriority, type NotificationQueueControls, NotificationQueueProvider, type NotificationRenderProps, NotificationSlot, NumericInput, NumericInputControl, NumericInputDecrement, NumericInputIncrement, type OnChangeFn, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverClose, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, RichTextarea, type RichTextareaAsyncList, RichTextareaContent, RichTextareaRoot, RichTextareaToolbar, SUPPORTED_LANGUAGES, ScrollArea, ScrollAreaPrimitive, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, type SheetOverlay, type SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SlashCommandOption, Slider, type SortingState, Spinner, type StepDefinition, Stepper, StepperContent, StepperCounter, StepperPanel, StepperProgress, StepperTitles, Switch, Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type TagOption, Textarea, ThemeProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Tree, TreeDragLine, TreeItem, TreeItemLabel, UseAudioGaugeOptions, UseAudioGaugeResult, type VisibilityState, alertVariants, anchorVariants, bannerVariants, buttonGroupVariants, buttonVariants, cardVariants, cn, counterBadgeVariants, detectInitialLanguage, fabVariants, isInsideCalendarDropdown, registerI18nNamespace, selectTriggerVariants, spinnerVariants, syncDsLanguage, toast, toggleVariants, useAudioGauge, useAudioPlayer, useAudioPlayerTime, useComboboxAnchor, useDsLocale, useDsTranslation, useNotification, useNotificationQueue, useSidebar, useStepper, useTheme };
7104
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionBar, ActionBarButton, ActionBarContext, type ActionBarContextValue, ActionBarHeight, Alert, AlertAction, AlertAction as BannerAction, AlertDescription, AlertDescription as BannerDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AlertTitle as BannerTitle, Anchor, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, type AttachmentState, AttachmentTitle, AttachmentTrigger, Audio, AudioPlayerBar, type AudioPlayerBarProps, AudioPlayerButton, type AudioPlayerButtonProps, AudioPlayerCurrentTime, type AudioPlayerCurrentTimeProps, AudioPlayerDuration, type AudioPlayerDurationProps, type AudioPlayerItem, AudioPlayerManager, type AudioPlayerManagerProps, AudioPlayerRow, type AudioPlayerRowProps, AudioPlayerSkip, type AudioPlayerSkipProps, AudioPlayerSpeed, type AudioPlayerSpeedProps, AudioPlayerTime, type AudioPlayerTimeProps, type AudioProps, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BadgeGroup, BadgeGroupCount, Banner, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, COMBOBOX_AUTO_SEARCH_THRESHOLD, COMBOBOX_AUTO_VIRTUALIZE_THRESHOLD, Calendar, CalendarDayButton, CalendarDropdown, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Chip, ChipRemove, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, ColorPickerArea, ColorPickerContent, ColorPickerHexField, ColorPickerHue, type ColorPickerMode, ColorPickerModeToggle, ColorPickerPanel, type ColorPickerPreset, ColorPickerPresets, ColorPickerTrigger, type ColumnDef, type ColumnPinningState, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, type ComboboxClear, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, type ComboboxLoadingState, type ComboboxSelectionChangeDetails, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CounterBadge, CountryFlag, DataCombobox, type DataComboboxLoadingState, DataTable, type DataTableLoadingState, DataTree, DatePicker, type DatePickerPredefinedRange, type DateRange, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBackdrop, DrawerBar, DrawerClose, DrawerContent, DrawerCreateHandle, DrawerDescription, DrawerFooter, DrawerHeader, DrawerMenu, DrawerMenuCheckboxItem, DrawerMenuGroup, DrawerMenuGroupLabel, DrawerMenuItem, DrawerMenuRadioGroup, DrawerMenuRadioItem, DrawerMenuSeparator, DrawerMenuTrigger, DrawerPanel, DrawerPopup, DrawerPortal, DrawerPrimitive, DrawerSwipeArea, DrawerTitle, DrawerTrigger, DrawerViewport, DropdownMenu, DropdownMenuAddon, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, DropzoneActions, DropzoneContent, DropzoneDescription, type DropzoneErrorCode, DropzoneIcon, DropzoneTitle, DropzoneTrigger, type DsI18nKey, DsI18nProvider, type DsLocale, EmojiPicker, EmojiPickerCategories, type EmojiPickerCategory, EmojiPickerContent, EmojiPickerTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FAB, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLabelAside, FieldLabelInfo, FieldLabelRow, FieldLegend, FieldSeparator, FieldSet, FieldTitle, type FileError, type FileRejection, Gauge, HoverCard, HoverCardContent, HoverCardTrigger, type I18nLanguageSource, InlineEditInput, InlineEditMultiCombobox, InlineEditMultiComboboxChip, InlineEditMultiComboboxChips, InlineEditMultiComboboxContent, InlineEditMultiComboboxItem, InlineEditMultiComboboxTrigger, InlineEditMultiComboboxValue, InlineEditSelect, InlineEditSelectContent, InlineEditSelectItem, InlineEditSelectTrigger, InlineEditSelectValue, InlineEditTextarea, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupRichTextarea, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, LEGACY_COLOR_PRESETS, Label, List, ListCol, ListRow, MarkdownView, type MentionOption, type NotificationHandle, type NotificationOptions, type NotificationPriority, type NotificationQueueControls, NotificationQueueProvider, type NotificationRenderProps, NotificationSlot, NumericInput, NumericInputControl, NumericInputDecrement, NumericInputIncrement, type OnChangeFn, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverClose, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, RichTextarea, type RichTextareaAsyncList, RichTextareaContent, RichTextareaRoot, RichTextareaToolbar, SUPPORTED_LANGUAGES, ScrollArea, ScrollAreaPrimitive, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, type SheetOverlay, type SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SlashCommandOption, Slider, type SortingState, Spinner, type StepDefinition, Stepper, StepperContent, StepperCounter, StepperPanel, StepperProgress, StepperTitles, Switch, Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type TagOption, Textarea, ThemeProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Tree, TreeDragLine, TreeItem, TreeItemLabel, UseAudioGaugeOptions, UseAudioGaugeResult, type VisibilityState, alertVariants, anchorVariants, bannerVariants, buttonGroupVariants, buttonVariants, cardVariants, cn, counterBadgeVariants, detectInitialLanguage, fabVariants, isInsideCalendarDropdown, registerI18nNamespace, selectTriggerVariants, spinnerVariants, syncDsLanguage, toast, toggleVariants, useAudioGauge, useAudioPlayer, useAudioPlayerTime, useComboboxAnchor, useDsLocale, useDsTranslation, useNotification, useNotificationQueue, useSidebar, useStepper, useTheme };
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import { C as Button, D as _objectWithoutProperties, E as _objectSpread2, O as cn, S as registerI18nNamespace, T as linkStyle, _ as ActionBarHeight, a as TableFooter, b as detectInitialLanguage, c as TableRow, d as Checkbox, f as Spinner, g as ActionBarContext, h as ActionBarButton, i as TableCell, l as useFetchMoreSentinel, m as ActionBar, n as Table, o as TableHead, p as spinnerVariants, r as TableBody, s as TableHeader, t as DataTable, u as Skeleton, v as useDsTranslation, w as buttonVariants, x as dsI18n, y as SUPPORTED_LANGUAGES } from "./data-table-B3ahtFLP.js";
1
+ import { C as Button, D as _objectWithoutProperties, E as _objectSpread2, O as cn, S as registerI18nNamespace, T as linkStyle, _ as ActionBarHeight, a as TableFooter, b as detectInitialLanguage, c as TableRow, d as Checkbox, f as Spinner, g as ActionBarContext, h as ActionBarButton, i as TableCell, l as useFetchMoreSentinel, m as ActionBar, n as Table, o as TableHead, p as spinnerVariants, r as TableBody, s as TableHeader, t as DataTable, u as Skeleton, v as useDsTranslation, w as buttonVariants, x as dsI18n, y as SUPPORTED_LANGUAGES } from "./data-table-AX0Mgu6K.js";
2
2
  import * as React from "react";
3
3
  import { createContext, useContext, useSyncExternalStore } from "react";
4
4
  import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
5
- import { ArrowDownToLine, ArrowLeft, ArrowRight, Backward10, Bold, CalendarDaysIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleAlert, CircleAlertIcon, CircleCheck, Code, ExternalLink, FLAGS, FastForward, FlagUs, Forward10, Info, Italic, Link, List as List$1, ListOrdered, Loader2Icon, Minus, MinusIcon, MoreHorizontalIcon, PanelLeftIcon, Pause, PencilIcon, Play, Plus, PlusIcon, Rewind, RotateCcw, Search, Smile, Strikethrough, Text, TriangleAlertIcon, Underline, Unlink, XIcon } from "@aircall/react-icons";
5
+ import { ArrowDownToLine, ArrowLeft, ArrowRight, Backward10, Bold, CalendarDaysIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleAlert, CircleAlertIcon, CircleCheck, Code, ExternalLink, FLAGS, FastForward, FlagUs, Forward10, Info, Italic, Link, List as List$1, ListOrdered, Loader2Icon, Minus, MinusIcon, MoreHorizontalIcon, PanelLeftIcon, Pause, PencilIcon, Play, Plus, PlusIcon, Quote, Rewind, RotateCcw, Search, Smile, Strikethrough, Text, TriangleAlertIcon, Underline, Unlink, XIcon } from "@aircall/react-icons";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
7
  import { Button as Button$1 } from "@base-ui/react/button";
8
8
  import { cva } from "class-variance-authority";
@@ -40,8 +40,8 @@ import { PreviewCard } from "@base-ui/react/preview-card";
40
40
  import { NumberField } from "@base-ui/react/number-field";
41
41
  import { OTPInput, OTPInputContext } from "input-otp";
42
42
  import { Progress as Progress$1 } from "@base-ui/react/progress";
43
- import { BoldRules, CodeRules, ItalicRules, StrikethroughRules } from "@platejs/basic-nodes";
44
- import { BasicMarksPlugin, BoldPlugin, CodePlugin, ItalicPlugin, StrikethroughPlugin } from "@platejs/basic-nodes/react";
43
+ import { BlockquoteRules, BoldRules, CodeRules, ItalicRules, StrikethroughRules } from "@platejs/basic-nodes";
44
+ import { BasicMarksPlugin, BlockquotePlugin, BoldPlugin, CodePlugin, ItalicPlugin, StrikethroughPlugin } from "@platejs/basic-nodes/react";
45
45
  import { filterWords, withTriggerCombobox } from "@platejs/combobox";
46
46
  import { IndentPlugin } from "@platejs/indent/react";
47
47
  import { LinkRules, getLinkAttributes, upsertLink, validateUrl } from "@platejs/link";
@@ -52,7 +52,7 @@ import { getMentionOnSelectItem } from "@platejs/mention";
52
52
  import { MentionInputPlugin, MentionPlugin } from "@platejs/mention/react";
53
53
  import { SlashInputPlugin, SlashPlugin } from "@platejs/slash-command/react";
54
54
  import { KEYS, createSlatePlugin, createTSlatePlugin } from "platejs";
55
- import { Plate, PlateContent, PlateElement, createPlatePlugin, toPlatePlugin, useComposedRef, useEditorId, useEditorReadOnly, useEditorRef, useEditorSelection, useEventEditorValue, useFocused, useMarkToolbarButton, useMarkToolbarButtonState, usePlateEditor, usePluginOption, useReadOnly, useSelected } from "platejs/react";
55
+ import { Plate, PlateContent, PlateElement, createPlatePlugin, toPlatePlugin, useComposedRef, useEditorId, useEditorReadOnly, useEditorRef, useEditorSelection, useEditorSelector, useEventEditorValue, useFocused, useMarkToolbarButton, useMarkToolbarButtonState, usePlateEditor, usePluginOption, useReadOnly, useSelected } from "platejs/react";
56
56
  import remarkGfm from "remark-gfm";
57
57
  import { Combobox as Combobox$2, ComboboxGroup as ComboboxGroup$1, ComboboxItem as ComboboxItem$1, ComboboxPopover, ComboboxProvider, Portal, useComboboxContext, useComboboxStore, useStoreState } from "@ariakit/react";
58
58
  import { useComboboxInput, useHTMLInputCursorState } from "@platejs/combobox/react";
@@ -11881,6 +11881,25 @@ function ListToggle({ listStyleType, label, children }) {
11881
11881
  });
11882
11882
  }
11883
11883
  /**
11884
+ * Quote toggle: wraps the selected lines in a quote, or lifts them out of the one they are in.
11885
+ * Pressed while the caret is inside a quote. Plate ships no toolbar hook for blocks, so this
11886
+ * mirrors what the mark/list hooks return.
11887
+ */
11888
+ function QuoteToggle({ label }) {
11889
+ const editor = useEditorRef();
11890
+ const pressed = useEditorSelector((current) => current.api.some({ match: { type: current.getType(BlockquotePlugin.key) } }), []);
11891
+ return /* @__PURE__ */ jsx(ToolbarToggle, {
11892
+ label,
11893
+ pressed,
11894
+ onMouseDown: (event) => event.preventDefault(),
11895
+ onClick: () => {
11896
+ editor.getTransforms(BlockquotePlugin).blockquote.toggle();
11897
+ editor.tf.focus();
11898
+ },
11899
+ children: /* @__PURE__ */ jsx(Quote, {})
11900
+ });
11901
+ }
11902
+ /**
11884
11903
  * Link control. Opens the same floating link card shown on click / Cmd+K (insert form
11885
11904
  * when the caret is not on a link, edit card when it is) rather than a bespoke popover,
11886
11905
  * so link editing is consistent everywhere. Wired via Plate's link toolbar hooks.
@@ -11943,6 +11962,7 @@ function RichTextareaToolbarControls() {
11943
11962
  label: t("richTextarea.numberedList"),
11944
11963
  children: /* @__PURE__ */ jsx(ListOrdered, {})
11945
11964
  }),
11965
+ /* @__PURE__ */ jsx(QuoteToggle, { label: t("richTextarea.quote") }),
11946
11966
  /* @__PURE__ */ jsx(Separator, {
11947
11967
  orientation: "vertical",
11948
11968
  className: "mx-1 h-5"
@@ -11954,7 +11974,7 @@ RichTextareaToolbarControls.displayName = "RichTextareaToolbarControls";
11954
11974
  /**
11955
11975
  * Formatting toolbar for a {@link RichTextareaRoot} with `formatting`. Renders DS
11956
11976
  * `Toggle`s wired to the editor: bold / italic / underline / strikethrough / inline
11957
- * code, bulleted / numbered lists, and a link button that opens the floating link
11977
+ * code, bulleted / numbered lists, quote, and a link button that opens the floating link
11958
11978
  * card (the same card shown on click / Cmd+K). Must render inside a
11959
11979
  * `RichTextareaRoot` (it reads the editor from the Plate provider) — typically in an
11960
11980
  * `InputGroupAddon align="block-start"`.
@@ -12252,18 +12272,21 @@ function toInitialValue(value, mentions, tags) {
12252
12272
  * Plain-text of one node, including mention/tag labels. `editor.api.string` only walks
12253
12273
  * text children, but mention and tag nodes are void with empty text and keep their label
12254
12274
  * on `value`, so it would drop the `@mention`/`#tag` text the user sees.
12275
+ * Block children, like the paragraphs a quote wraps, go on separate lines.
12255
12276
  */
12256
- function nodeToPlainText(node) {
12277
+ function nodeToPlainText(editor, node) {
12257
12278
  var _node$value, _node$value2, _node$children;
12258
12279
  if (typeof node.text === "string") return node.text;
12259
12280
  if (node.type === "mention") return `@${(_node$value = node.value) !== null && _node$value !== void 0 ? _node$value : ""}`;
12260
12281
  if (node.type === "tag") return `#${(_node$value2 = node.value) !== null && _node$value2 !== void 0 ? _node$value2 : ""}`;
12261
- return ((_node$children = node.children) !== null && _node$children !== void 0 ? _node$children : []).map(nodeToPlainText).join("");
12282
+ const children = (_node$children = node.children) !== null && _node$children !== void 0 ? _node$children : [];
12283
+ const separator = children.some((child) => editor.api.isBlock(child)) ? "\n" : "";
12284
+ return children.map((child) => nodeToPlainText(editor, child)).join(separator);
12262
12285
  }
12263
12286
  /** Serializes the editor to the `{ plainText, json, markdown? }` change/submit payload. */
12264
12287
  function buildPayload(editor, formatting) {
12265
12288
  const payload = {
12266
- plainText: editor.children.map(nodeToPlainText).join("\n"),
12289
+ plainText: editor.children.map((node) => nodeToPlainText(editor, node)).join("\n"),
12267
12290
  json: editor.children
12268
12291
  };
12269
12292
  if (formatting) {
@@ -12616,8 +12639,22 @@ function LinkElement(props) {
12616
12639
  }));
12617
12640
  }
12618
12641
  /**
12642
+ * Renders a quote node as a `<blockquote>` with a left rule. A quote wraps the paragraphs it
12643
+ * holds, so Enter adds a line inside it, and Enter on an empty line leaves it. Backspace at the
12644
+ * start of a line leaves it too, except on an empty line after the first, which it deletes
12645
+ * (BlockquotePlugin's own break/delete rules). Margin, not padding, for Figma's 2px inset: the
12646
+ * rule spans the text only.
12647
+ */
12648
+ function BlockquoteElement(props) {
12649
+ return /* @__PURE__ */ jsx(PlateElement, _objectSpread2(_objectSpread2({}, props), {}, {
12650
+ as: "blockquote",
12651
+ className: "my-0.5 border-l-3 border-muted pl-2.5",
12652
+ children: props.children
12653
+ }));
12654
+ }
12655
+ /**
12619
12656
  * Plugins registered when `formatting` is on: basic marks (bold/italic/underline/
12620
- * strikethrough/code), lists (bulleted/numbered), link, and Markdown serialization.
12657
+ * strikethrough/code), lists (bulleted/numbered), quote, link, and Markdown serialization.
12621
12658
  *
12622
12659
  * `MarkdownPlugin` is configured with `remark-gfm` so strikethrough serializes as
12623
12660
  * `~~...~~`, and underline is a `plainMark` because Markdown has no underline syntax
@@ -12640,10 +12677,19 @@ function normalizeLinkInput(url) {
12640
12677
  if (SAFE_LINK_SCHEME.test(trimmed)) return trimmed;
12641
12678
  return `http://${trimmed.replace(/^[a-z][a-z0-9+.-]*:\/*/i, "")}`;
12642
12679
  }
12680
+ /**
12681
+ * The plugins `formatting` registers, in order.
12682
+ *
12683
+ * @internal Exported for `rich-textarea.test.ts` only - deliberately absent from `src/index.ts`.
12684
+ */
12643
12685
  const formattingPlugins = [
12644
12686
  BasicMarksPlugin.configurePlugin(BoldPlugin, { inputRules: [BoldRules.markdown()] }).configurePlugin(ItalicPlugin, { inputRules: [ItalicRules.markdown(), ItalicRules.markdown({ variant: "_" })] }).configurePlugin(StrikethroughPlugin, { inputRules: [StrikethroughRules.markdown()] }).configurePlugin(CodePlugin, { inputRules: [CodeRules.markdown()] }),
12645
12687
  IndentPlugin,
12646
12688
  ListPlugin,
12689
+ BlockquotePlugin.configure({
12690
+ inputRules: [BlockquoteRules.markdown()],
12691
+ render: { node: BlockquoteElement }
12692
+ }),
12647
12693
  LinkPlugin.configure({
12648
12694
  options: {
12649
12695
  forceSubmit: true,
@@ -12812,6 +12858,13 @@ function RichTextareaRoot(componentProps) {
12812
12858
  }
12813
12859
  RichTextareaRoot.displayName = "RichTextareaRoot";
12814
12860
  /**
12861
+ * List and inline code styles, shared by the editable and {@link MarkdownView} so both
12862
+ * render the same. `!pl-6` overrides the inline `padding:0` Plate's list rendering sets, so
12863
+ * `ol`/`ul` markers are indented; `[&_code]` gives inline code a boxed style (DS ships no
12864
+ * list/code editor CSS).
12865
+ */
12866
+ const formattedContentClassName = "[&_ol]:!pl-6 [&_ul]:!pl-6 [&_ol]:my-1 [&_ul]:my-1 [&_code]:rounded-sm [&_code]:border [&_code]:border-border [&_code]:bg-muted [&_code]:px-1 [&_code]:py-0.5 [&_code]:font-mono [&_code]:text-[0.85em]";
12867
+ /**
12815
12868
  * The editable surface of a composed RichTextarea. Must render inside a
12816
12869
  * {@link RichTextareaRoot}. Use `bare` when placing it inside an `InputGroup`.
12817
12870
  */
@@ -12846,7 +12899,7 @@ const RichTextareaContent = React.forwardRef((componentProps, forwardRef) => {
12846
12899
  ref: forwardRef,
12847
12900
  "data-slot": bare ? "input-group-control" : void 0,
12848
12901
  "aria-label": ariaLabel,
12849
- className: "placeholder:text-muted-foreground flex-1 outline-none [&_[data-slate-placeholder]]:text-muted-foreground [&_ol]:!pl-6 [&_ul]:!pl-6 [&_ol]:my-1 [&_ul]:my-1 [&_code]:rounded-sm [&_code]:border [&_code]:border-border [&_code]:bg-muted [&_code]:px-1 [&_code]:py-0.5 [&_code]:font-mono [&_code]:text-[0.85em]",
12902
+ className: cn("placeholder:text-muted-foreground flex-1 outline-none [&_[data-slate-placeholder]]:text-muted-foreground", formattedContentClassName),
12850
12903
  placeholder,
12851
12904
  readOnly: disabled,
12852
12905
  disabled,
@@ -12907,6 +12960,43 @@ const InputGroupRichTextarea = React.forwardRef((componentProps, forwardRef) =>
12907
12960
  }, componentProps));
12908
12961
  });
12909
12962
  InputGroupRichTextarea.displayName = "InputGroupRichTextarea";
12963
+ /**
12964
+ * Read-only render of the Markdown a `formatting` {@link RichTextarea} writes. It uses the
12965
+ * same plugins and elements, so quotes, lists, marks and links look as they do in the editor.
12966
+ * No border, padding or toolbar: it takes the surrounding text size and color. Links open in a
12967
+ * new tab, and a new `value` renders again.
12968
+ *
12969
+ * It renders what the editor can write: marks, lists, quotes and links. Other Markdown is not
12970
+ * styled: headings and tables show as plain text, and images do not show.
12971
+ *
12972
+ * @example
12973
+ * ```tsx
12974
+ * <MarkdownView value={script} />
12975
+ * ```
12976
+ */
12977
+ const MarkdownView = React.forwardRef((componentProps, forwardRef) => {
12978
+ const { value, className, "data-test": dataTest = "markdown-view" } = componentProps;
12979
+ const editor = usePlateEditor({
12980
+ plugins: formattingPlugins,
12981
+ value: (ed) => {
12982
+ var _markdown2;
12983
+ const nodes = (_markdown2 = ed.api.markdown) === null || _markdown2 === void 0 ? void 0 : _markdown2.deserialize(value);
12984
+ return (nodes === null || nodes === void 0 ? void 0 : nodes.length) ? nodes : toInitialValue(value, [], []);
12985
+ }
12986
+ }, [value]);
12987
+ return /* @__PURE__ */ jsx(Plate, {
12988
+ editor,
12989
+ readOnly: true,
12990
+ children: /* @__PURE__ */ jsx(PlateContent, {
12991
+ ref: forwardRef,
12992
+ readOnly: true,
12993
+ "data-slot": "markdown-view",
12994
+ "data-test": dataTest,
12995
+ className: cn("outline-none", formattedContentClassName, className)
12996
+ })
12997
+ });
12998
+ });
12999
+ MarkdownView.displayName = "MarkdownView";
12910
13000
  //#endregion
12911
13001
  //#region src/components/sheet.tsx
12912
13002
  const _excluded$5 = ["className"];
@@ -14177,4 +14267,4 @@ function useAudioGauge(options = {}) {
14177
14267
  };
14178
14268
  }
14179
14269
  //#endregion
14180
- 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, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Audio, AudioPlayerBar, AudioPlayerButton, AudioPlayerCurrentTime, AudioPlayerDuration, AudioPlayerManager, AudioPlayerRow, AudioPlayerSkip, AudioPlayerSpeed, AudioPlayerTime, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BadgeGroup, BadgeGroupCount, Banner, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, COMBOBOX_AUTO_SEARCH_THRESHOLD, COMBOBOX_AUTO_VIRTUALIZE_THRESHOLD, Calendar, CalendarDayButton, CalendarDropdown, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Chip, ChipRemove, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, ColorPickerArea, ColorPickerContent, ColorPickerHexField, ColorPickerHue, ColorPickerModeToggle, ColorPickerPanel, ColorPickerPresets, ColorPickerTrigger, 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, DataCombobox, DataTable, DataTree, DatePicker, 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, Gauge, HoverCard, HoverCardContent, HoverCardTrigger, InlineEditInput, InlineEditMultiCombobox, InlineEditMultiComboboxChip, InlineEditMultiComboboxChips, InlineEditMultiComboboxContent, InlineEditMultiComboboxItem, InlineEditMultiComboboxTrigger, InlineEditMultiComboboxValue, InlineEditSelect, InlineEditSelectContent, InlineEditSelectItem, InlineEditSelectTrigger, InlineEditSelectValue, InlineEditTextarea, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupRichTextarea, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, LEGACY_COLOR_PRESETS, Label, List, ListCol, ListRow, NotificationQueueProvider, NotificationSlot, NumericInput, NumericInputControl, NumericInputDecrement, NumericInputIncrement, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverClose, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, RichTextarea, RichTextareaContent, RichTextareaRoot, RichTextareaToolbar, SUPPORTED_LANGUAGES, ScrollArea, ScrollAreaPrimitive, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, 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, StepperTitles, 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, cardVariants, cn, counterBadgeVariants, detectInitialLanguage, fabVariants, isInsideCalendarDropdown, registerI18nNamespace, selectTriggerVariants, spinnerVariants, syncDsLanguage, toast, toggleVariants, useAudioGauge, useAudioPlayer, useAudioPlayerTime, useComboboxAnchor, useDsLocale, useDsTranslation, useNotification, useNotificationQueue, useSidebar, useStepper, useTheme };
14270
+ 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, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Audio, AudioPlayerBar, AudioPlayerButton, AudioPlayerCurrentTime, AudioPlayerDuration, AudioPlayerManager, AudioPlayerRow, AudioPlayerSkip, AudioPlayerSpeed, AudioPlayerTime, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BadgeGroup, BadgeGroupCount, Banner, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, COMBOBOX_AUTO_SEARCH_THRESHOLD, COMBOBOX_AUTO_VIRTUALIZE_THRESHOLD, Calendar, CalendarDayButton, CalendarDropdown, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Chip, ChipRemove, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, ColorPickerArea, ColorPickerContent, ColorPickerHexField, ColorPickerHue, ColorPickerModeToggle, ColorPickerPanel, ColorPickerPresets, ColorPickerTrigger, 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, DataCombobox, DataTable, DataTree, DatePicker, 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, Gauge, HoverCard, HoverCardContent, HoverCardTrigger, InlineEditInput, InlineEditMultiCombobox, InlineEditMultiComboboxChip, InlineEditMultiComboboxChips, InlineEditMultiComboboxContent, InlineEditMultiComboboxItem, InlineEditMultiComboboxTrigger, InlineEditMultiComboboxValue, InlineEditSelect, InlineEditSelectContent, InlineEditSelectItem, InlineEditSelectTrigger, InlineEditSelectValue, InlineEditTextarea, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupRichTextarea, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, LEGACY_COLOR_PRESETS, Label, List, ListCol, ListRow, MarkdownView, NotificationQueueProvider, NotificationSlot, NumericInput, NumericInputControl, NumericInputDecrement, NumericInputIncrement, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverClose, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, RichTextarea, RichTextareaContent, RichTextareaRoot, RichTextareaToolbar, SUPPORTED_LANGUAGES, ScrollArea, ScrollAreaPrimitive, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, 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, StepperTitles, 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, cardVariants, cn, counterBadgeVariants, detectInitialLanguage, fabVariants, isInsideCalendarDropdown, registerI18nNamespace, selectTriggerVariants, spinnerVariants, syncDsLanguage, toast, toggleVariants, useAudioGauge, useAudioPlayer, useAudioPlayerTime, useComboboxAnchor, useDsLocale, useDsTranslation, useNotification, useNotificationQueue, useSidebar, useStepper, useTheme };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aircall/ds",
3
- "version": "0.49.0",
3
+ "version": "0.50.0",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "sideEffects": [