@melv1c/ui-kit 0.0.0 → 1.0.1
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/README.md +1 -1
- package/dist/base.css +5 -0
- package/dist/code-editors/index.cjs +200 -0
- package/dist/code-editors/index.cjs.map +1 -0
- package/dist/code-editors/index.d.cts +46 -0
- package/dist/code-editors/index.d.ts +46 -0
- package/dist/code-editors/index.js +197 -0
- package/dist/code-editors/index.js.map +1 -0
- package/dist/index.cjs +1 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -116
- package/dist/index.d.ts +4 -116
- package/dist/index.js +3 -27
- package/dist/index.js.map +1 -1
- package/dist/{rich-text-editor-MOJDWQTI.cjs → rich-text-editor/index.cjs} +5 -5
- package/dist/rich-text-editor/index.cjs.map +1 -0
- package/dist/rich-text-editor/index.d.cts +50 -0
- package/dist/rich-text-editor/index.d.ts +50 -0
- package/dist/{rich-text-editor-JUERRDHQ.js → rich-text-editor/index.js} +5 -5
- package/dist/rich-text-editor/index.js.map +1 -0
- package/package.json +13 -3
- package/dist/chunk-2ZWQNZEN.cjs +0 -63
- package/dist/chunk-2ZWQNZEN.cjs.map +0 -1
- package/dist/chunk-RZJFYAJW.js +0 -60
- package/dist/chunk-RZJFYAJW.js.map +0 -1
- package/dist/code-diff-editor-IT2RMVDC.js +0 -73
- package/dist/code-diff-editor-IT2RMVDC.js.map +0 -1
- package/dist/code-diff-editor-J24VGXHL.cjs +0 -75
- package/dist/code-diff-editor-J24VGXHL.cjs.map +0 -1
- package/dist/code-editor-DK64HVFQ.cjs +0 -84
- package/dist/code-editor-DK64HVFQ.cjs.map +0 -1
- package/dist/code-editor-EJIJXZLN.js +0 -82
- package/dist/code-editor-EJIJXZLN.js.map +0 -1
- package/dist/rich-text-editor-JUERRDHQ.js.map +0 -1
- package/dist/rich-text-editor-MOJDWQTI.cjs.map +0 -1
- package/styles.css +0 -120
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import { ComponentProps, ReactNode
|
|
3
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
4
4
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
5
5
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
6
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -36,8 +36,6 @@ import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
|
36
36
|
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
37
37
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
38
38
|
import { i18n } from 'i18next';
|
|
39
|
-
import { Monaco } from '@monaco-editor/react';
|
|
40
|
-
import { editor } from 'monaco-editor';
|
|
41
39
|
import { ClassValue } from 'clsx';
|
|
42
40
|
|
|
43
41
|
declare function Accordion({ ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
@@ -442,11 +440,11 @@ declare function ToggleGroupItem({ className, children, variant, size, ...props
|
|
|
442
440
|
declare function NextButton(props: Omit<ComponentProps<typeof Button>, "children">): react_jsx_runtime.JSX.Element;
|
|
443
441
|
declare function PreviousButton(props: Omit<ComponentProps<typeof Button>, "children">): react_jsx_runtime.JSX.Element;
|
|
444
442
|
|
|
445
|
-
type SupportedLanguage
|
|
443
|
+
type SupportedLanguage = "en" | "fr" | "nl" | "es" | "de" | "it";
|
|
446
444
|
interface LocaleProviderProps {
|
|
447
445
|
children: ReactNode;
|
|
448
446
|
/** The language to use for UI kit translations. */
|
|
449
|
-
language: SupportedLanguage
|
|
447
|
+
language: SupportedLanguage;
|
|
450
448
|
/** Override specific translations for the selected language. */
|
|
451
449
|
overrides?: Record<string, string>;
|
|
452
450
|
}
|
|
@@ -508,116 +506,6 @@ interface TranslationProviderProps {
|
|
|
508
506
|
*/
|
|
509
507
|
declare function TranslationProvider({ i18n, children, fallback, overrides, }: TranslationProviderProps): react_jsx_runtime.JSX.Element;
|
|
510
508
|
|
|
511
|
-
type SupportedLanguage = "javascript" | "typescript" | "json" | "html" | "css" | "markdown" | "python" | "sql" | "xml" | "yaml" | "plaintext";
|
|
512
|
-
type EditorTheme = "light" | "vs-dark" | "qualifio";
|
|
513
|
-
|
|
514
|
-
declare const codeEditorVariants: (props?: ({
|
|
515
|
-
variant?: "default" | "ghost" | "card" | null | undefined;
|
|
516
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
517
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
518
|
-
|
|
519
|
-
interface DiffEditorProps extends VariantProps<typeof codeEditorVariants>, Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
520
|
-
original?: string;
|
|
521
|
-
modified?: string;
|
|
522
|
-
language: SupportedLanguage;
|
|
523
|
-
theme?: EditorTheme;
|
|
524
|
-
readOnly?: boolean;
|
|
525
|
-
disabled?: boolean;
|
|
526
|
-
onMount?: (editor: editor.IStandaloneDiffEditor, monaco: Monaco) => void;
|
|
527
|
-
options?: editor.IDiffEditorConstructionOptions;
|
|
528
|
-
}
|
|
529
|
-
declare function CodeDiffEditor({ original, modified, language, theme, readOnly, disabled, className, variant, size, onMount, options, ...props }: DiffEditorProps): react_jsx_runtime.JSX.Element;
|
|
530
|
-
|
|
531
|
-
interface CodeEditorProps$1 extends VariantProps<typeof codeEditorVariants>, Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
532
|
-
value?: string;
|
|
533
|
-
defaultValue?: string;
|
|
534
|
-
language: SupportedLanguage;
|
|
535
|
-
theme?: EditorTheme;
|
|
536
|
-
readOnly?: boolean;
|
|
537
|
-
disabled?: boolean;
|
|
538
|
-
lineNumbers?: boolean;
|
|
539
|
-
wordWrap?: boolean;
|
|
540
|
-
minimap?: boolean;
|
|
541
|
-
onChange?: (value: string | undefined) => void;
|
|
542
|
-
onMount?: (editor: editor.IStandaloneCodeEditor, monaco: Monaco) => void;
|
|
543
|
-
onValidate?: (markers: editor.IMarker[]) => void;
|
|
544
|
-
options?: editor.IStandaloneEditorConstructionOptions;
|
|
545
|
-
}
|
|
546
|
-
declare function CodeEditor({ value, defaultValue, language, theme, readOnly, disabled, lineNumbers, wordWrap, minimap, className, variant, size, onChange, onMount, onValidate, options, ...props }: CodeEditorProps$1): react_jsx_runtime.JSX.Element;
|
|
547
|
-
|
|
548
|
-
declare const CodeEditorInternal: React$1.LazyExoticComponent<typeof CodeEditor>;
|
|
549
|
-
declare const CodeDiffEditorInternal: React$1.LazyExoticComponent<typeof CodeDiffEditor>;
|
|
550
|
-
type CodeEditorProps = ComponentProps<typeof CodeEditorInternal>;
|
|
551
|
-
type CodeDiffEditorProps = ComponentProps<typeof CodeDiffEditorInternal>;
|
|
552
|
-
/**
|
|
553
|
-
* Lazy-loaded Code Editor component.
|
|
554
|
-
* Monaco Editor is only loaded when this component is rendered.
|
|
555
|
-
*
|
|
556
|
-
* @requires @monaco-editor/react and monaco-editor as peer dependencies
|
|
557
|
-
*/
|
|
558
|
-
declare function LazyCodeEditor(props: CodeEditorProps): react_jsx_runtime.JSX.Element;
|
|
559
|
-
/**
|
|
560
|
-
* Lazy-loaded Code Diff Editor component.
|
|
561
|
-
* Monaco Editor is only loaded when this component is rendered.
|
|
562
|
-
*
|
|
563
|
-
* @requires @monaco-editor/react and monaco-editor as peer dependencies
|
|
564
|
-
*/
|
|
565
|
-
declare function LazyCodeDiffEditor(props: CodeDiffEditorProps): react_jsx_runtime.JSX.Element;
|
|
566
|
-
|
|
567
|
-
declare const richTextEditorVariants: (props?: ({
|
|
568
|
-
variant?: "default" | "ghost" | "card" | null | undefined;
|
|
569
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
570
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
571
|
-
|
|
572
|
-
type EditorOutput = "html" | "json" | "text";
|
|
573
|
-
/**
|
|
574
|
-
* Configuration options to enable/disable toolbar features.
|
|
575
|
-
* All options default to `true` if not specified.
|
|
576
|
-
*/
|
|
577
|
-
interface ToolbarOptions {
|
|
578
|
-
/** Enable heading buttons (H1, H2, H3) */
|
|
579
|
-
headings?: boolean;
|
|
580
|
-
/** Enable bold formatting */
|
|
581
|
-
bold?: boolean;
|
|
582
|
-
/** Enable italic formatting */
|
|
583
|
-
italic?: boolean;
|
|
584
|
-
/** Enable underline formatting */
|
|
585
|
-
underline?: boolean;
|
|
586
|
-
/** Enable strikethrough formatting */
|
|
587
|
-
strikethrough?: boolean;
|
|
588
|
-
/** Enable bullet list */
|
|
589
|
-
bulletList?: boolean;
|
|
590
|
-
/** Enable ordered list */
|
|
591
|
-
orderedList?: boolean;
|
|
592
|
-
/** Enable link insertion */
|
|
593
|
-
link?: boolean;
|
|
594
|
-
}
|
|
595
|
-
interface RichTextEditorProps$1 extends VariantProps<typeof richTextEditorVariants>, Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
596
|
-
value: string;
|
|
597
|
-
onChange: (value: string) => void;
|
|
598
|
-
placeholder?: string;
|
|
599
|
-
readOnly?: boolean;
|
|
600
|
-
disabled?: boolean;
|
|
601
|
-
/** Allow multiline content (default: true). When false, Enter key is disabled. */
|
|
602
|
-
multiline?: boolean;
|
|
603
|
-
contentClassName?: string;
|
|
604
|
-
toolbarClassName?: string;
|
|
605
|
-
/** Configure which toolbar options are enabled. All enabled by default. */
|
|
606
|
-
toolbarOptions?: ToolbarOptions;
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
declare function RichTextEditor({ value, onChange, placeholder, readOnly, disabled, multiline, className, variant, size, contentClassName, toolbarClassName, toolbarOptions, ...props }: RichTextEditorProps$1): react_jsx_runtime.JSX.Element;
|
|
610
|
-
|
|
611
|
-
declare const RichTextEditorInternal: React$1.LazyExoticComponent<typeof RichTextEditor>;
|
|
612
|
-
type RichTextEditorProps = ComponentProps<typeof RichTextEditorInternal>;
|
|
613
|
-
/**
|
|
614
|
-
* Lazy-loaded Rich Text Editor component.
|
|
615
|
-
* Tiptap is only loaded when this component is rendered.
|
|
616
|
-
*
|
|
617
|
-
* @requires @tiptap/react, @tiptap/starter-kit, and related tiptap extensions as peer dependencies
|
|
618
|
-
*/
|
|
619
|
-
declare function LazyRichTextEditor(props: RichTextEditorProps): react_jsx_runtime.JSX.Element;
|
|
620
|
-
|
|
621
509
|
declare function cn(...inputs: ClassValue[]): string;
|
|
622
510
|
|
|
623
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox,
|
|
511
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, Input, Label, LocaleProvider, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NextButton, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PreviousButton, Progress, RadioGroup, RadioGroupItem, ScrollArea, 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, type SupportedLanguage, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TranslationProvider, badgeVariants, buttonGroupVariants, buttonVariants, cn, navigationMenuTriggerStyle, toggleVariants, useFormField, useSidebar };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import { ComponentProps, ReactNode
|
|
3
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
4
4
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
5
5
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
6
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -36,8 +36,6 @@ import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
|
36
36
|
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
37
37
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
38
38
|
import { i18n } from 'i18next';
|
|
39
|
-
import { Monaco } from '@monaco-editor/react';
|
|
40
|
-
import { editor } from 'monaco-editor';
|
|
41
39
|
import { ClassValue } from 'clsx';
|
|
42
40
|
|
|
43
41
|
declare function Accordion({ ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
@@ -442,11 +440,11 @@ declare function ToggleGroupItem({ className, children, variant, size, ...props
|
|
|
442
440
|
declare function NextButton(props: Omit<ComponentProps<typeof Button>, "children">): react_jsx_runtime.JSX.Element;
|
|
443
441
|
declare function PreviousButton(props: Omit<ComponentProps<typeof Button>, "children">): react_jsx_runtime.JSX.Element;
|
|
444
442
|
|
|
445
|
-
type SupportedLanguage
|
|
443
|
+
type SupportedLanguage = "en" | "fr" | "nl" | "es" | "de" | "it";
|
|
446
444
|
interface LocaleProviderProps {
|
|
447
445
|
children: ReactNode;
|
|
448
446
|
/** The language to use for UI kit translations. */
|
|
449
|
-
language: SupportedLanguage
|
|
447
|
+
language: SupportedLanguage;
|
|
450
448
|
/** Override specific translations for the selected language. */
|
|
451
449
|
overrides?: Record<string, string>;
|
|
452
450
|
}
|
|
@@ -508,116 +506,6 @@ interface TranslationProviderProps {
|
|
|
508
506
|
*/
|
|
509
507
|
declare function TranslationProvider({ i18n, children, fallback, overrides, }: TranslationProviderProps): react_jsx_runtime.JSX.Element;
|
|
510
508
|
|
|
511
|
-
type SupportedLanguage = "javascript" | "typescript" | "json" | "html" | "css" | "markdown" | "python" | "sql" | "xml" | "yaml" | "plaintext";
|
|
512
|
-
type EditorTheme = "light" | "vs-dark" | "qualifio";
|
|
513
|
-
|
|
514
|
-
declare const codeEditorVariants: (props?: ({
|
|
515
|
-
variant?: "default" | "ghost" | "card" | null | undefined;
|
|
516
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
517
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
518
|
-
|
|
519
|
-
interface DiffEditorProps extends VariantProps<typeof codeEditorVariants>, Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
520
|
-
original?: string;
|
|
521
|
-
modified?: string;
|
|
522
|
-
language: SupportedLanguage;
|
|
523
|
-
theme?: EditorTheme;
|
|
524
|
-
readOnly?: boolean;
|
|
525
|
-
disabled?: boolean;
|
|
526
|
-
onMount?: (editor: editor.IStandaloneDiffEditor, monaco: Monaco) => void;
|
|
527
|
-
options?: editor.IDiffEditorConstructionOptions;
|
|
528
|
-
}
|
|
529
|
-
declare function CodeDiffEditor({ original, modified, language, theme, readOnly, disabled, className, variant, size, onMount, options, ...props }: DiffEditorProps): react_jsx_runtime.JSX.Element;
|
|
530
|
-
|
|
531
|
-
interface CodeEditorProps$1 extends VariantProps<typeof codeEditorVariants>, Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
532
|
-
value?: string;
|
|
533
|
-
defaultValue?: string;
|
|
534
|
-
language: SupportedLanguage;
|
|
535
|
-
theme?: EditorTheme;
|
|
536
|
-
readOnly?: boolean;
|
|
537
|
-
disabled?: boolean;
|
|
538
|
-
lineNumbers?: boolean;
|
|
539
|
-
wordWrap?: boolean;
|
|
540
|
-
minimap?: boolean;
|
|
541
|
-
onChange?: (value: string | undefined) => void;
|
|
542
|
-
onMount?: (editor: editor.IStandaloneCodeEditor, monaco: Monaco) => void;
|
|
543
|
-
onValidate?: (markers: editor.IMarker[]) => void;
|
|
544
|
-
options?: editor.IStandaloneEditorConstructionOptions;
|
|
545
|
-
}
|
|
546
|
-
declare function CodeEditor({ value, defaultValue, language, theme, readOnly, disabled, lineNumbers, wordWrap, minimap, className, variant, size, onChange, onMount, onValidate, options, ...props }: CodeEditorProps$1): react_jsx_runtime.JSX.Element;
|
|
547
|
-
|
|
548
|
-
declare const CodeEditorInternal: React$1.LazyExoticComponent<typeof CodeEditor>;
|
|
549
|
-
declare const CodeDiffEditorInternal: React$1.LazyExoticComponent<typeof CodeDiffEditor>;
|
|
550
|
-
type CodeEditorProps = ComponentProps<typeof CodeEditorInternal>;
|
|
551
|
-
type CodeDiffEditorProps = ComponentProps<typeof CodeDiffEditorInternal>;
|
|
552
|
-
/**
|
|
553
|
-
* Lazy-loaded Code Editor component.
|
|
554
|
-
* Monaco Editor is only loaded when this component is rendered.
|
|
555
|
-
*
|
|
556
|
-
* @requires @monaco-editor/react and monaco-editor as peer dependencies
|
|
557
|
-
*/
|
|
558
|
-
declare function LazyCodeEditor(props: CodeEditorProps): react_jsx_runtime.JSX.Element;
|
|
559
|
-
/**
|
|
560
|
-
* Lazy-loaded Code Diff Editor component.
|
|
561
|
-
* Monaco Editor is only loaded when this component is rendered.
|
|
562
|
-
*
|
|
563
|
-
* @requires @monaco-editor/react and monaco-editor as peer dependencies
|
|
564
|
-
*/
|
|
565
|
-
declare function LazyCodeDiffEditor(props: CodeDiffEditorProps): react_jsx_runtime.JSX.Element;
|
|
566
|
-
|
|
567
|
-
declare const richTextEditorVariants: (props?: ({
|
|
568
|
-
variant?: "default" | "ghost" | "card" | null | undefined;
|
|
569
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
570
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
571
|
-
|
|
572
|
-
type EditorOutput = "html" | "json" | "text";
|
|
573
|
-
/**
|
|
574
|
-
* Configuration options to enable/disable toolbar features.
|
|
575
|
-
* All options default to `true` if not specified.
|
|
576
|
-
*/
|
|
577
|
-
interface ToolbarOptions {
|
|
578
|
-
/** Enable heading buttons (H1, H2, H3) */
|
|
579
|
-
headings?: boolean;
|
|
580
|
-
/** Enable bold formatting */
|
|
581
|
-
bold?: boolean;
|
|
582
|
-
/** Enable italic formatting */
|
|
583
|
-
italic?: boolean;
|
|
584
|
-
/** Enable underline formatting */
|
|
585
|
-
underline?: boolean;
|
|
586
|
-
/** Enable strikethrough formatting */
|
|
587
|
-
strikethrough?: boolean;
|
|
588
|
-
/** Enable bullet list */
|
|
589
|
-
bulletList?: boolean;
|
|
590
|
-
/** Enable ordered list */
|
|
591
|
-
orderedList?: boolean;
|
|
592
|
-
/** Enable link insertion */
|
|
593
|
-
link?: boolean;
|
|
594
|
-
}
|
|
595
|
-
interface RichTextEditorProps$1 extends VariantProps<typeof richTextEditorVariants>, Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
596
|
-
value: string;
|
|
597
|
-
onChange: (value: string) => void;
|
|
598
|
-
placeholder?: string;
|
|
599
|
-
readOnly?: boolean;
|
|
600
|
-
disabled?: boolean;
|
|
601
|
-
/** Allow multiline content (default: true). When false, Enter key is disabled. */
|
|
602
|
-
multiline?: boolean;
|
|
603
|
-
contentClassName?: string;
|
|
604
|
-
toolbarClassName?: string;
|
|
605
|
-
/** Configure which toolbar options are enabled. All enabled by default. */
|
|
606
|
-
toolbarOptions?: ToolbarOptions;
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
declare function RichTextEditor({ value, onChange, placeholder, readOnly, disabled, multiline, className, variant, size, contentClassName, toolbarClassName, toolbarOptions, ...props }: RichTextEditorProps$1): react_jsx_runtime.JSX.Element;
|
|
610
|
-
|
|
611
|
-
declare const RichTextEditorInternal: React$1.LazyExoticComponent<typeof RichTextEditor>;
|
|
612
|
-
type RichTextEditorProps = ComponentProps<typeof RichTextEditorInternal>;
|
|
613
|
-
/**
|
|
614
|
-
* Lazy-loaded Rich Text Editor component.
|
|
615
|
-
* Tiptap is only loaded when this component is rendered.
|
|
616
|
-
*
|
|
617
|
-
* @requires @tiptap/react, @tiptap/starter-kit, and related tiptap extensions as peer dependencies
|
|
618
|
-
*/
|
|
619
|
-
declare function LazyRichTextEditor(props: RichTextEditorProps): react_jsx_runtime.JSX.Element;
|
|
620
|
-
|
|
621
509
|
declare function cn(...inputs: ClassValue[]): string;
|
|
622
510
|
|
|
623
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox,
|
|
511
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, Input, Label, LocaleProvider, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NextButton, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PreviousButton, Progress, RadioGroup, RadioGroupItem, ScrollArea, 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, type SupportedLanguage, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TranslationProvider, badgeVariants, buttonGroupVariants, buttonVariants, cn, navigationMenuTriggerStyle, toggleVariants, useFormField, useSidebar };
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { locales_exports } from './chunk-4H5OSMBC.js';
|
|
2
1
|
import { Skeleton } from './chunk-PYHBC3IQ.js';
|
|
3
2
|
export { Skeleton } from './chunk-PYHBC3IQ.js';
|
|
4
3
|
import { buttonVariants, Separator, Button, Input } from './chunk-WTLIXI2B.js';
|
|
5
4
|
export { Button, Input, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Separator, Toggle, ToggleGroup, ToggleGroupItem, buttonVariants, toggleVariants } from './chunk-WTLIXI2B.js';
|
|
6
5
|
import { cn } from './chunk-WZ2GOU2J.js';
|
|
7
6
|
export { cn } from './chunk-WZ2GOU2J.js';
|
|
7
|
+
import { locales_exports } from './chunk-4H5OSMBC.js';
|
|
8
8
|
import './chunk-PZ5AY32C.js';
|
|
9
9
|
import * as React9 from 'react';
|
|
10
|
-
import {
|
|
10
|
+
import { useState, useMemo, useEffect } from 'react';
|
|
11
11
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
12
12
|
import { ChevronDownIcon, ChevronRight, MoreHorizontal, ChevronLeftIcon, ChevronRightIcon, ArrowLeft, ArrowRight, CheckIcon, XIcon, SearchIcon, CircleIcon, MoreHorizontalIcon, ChevronUpIcon, PanelLeftIcon, Loader2Icon, OctagonXIcon, TriangleAlertIcon, InfoIcon, CircleCheckIcon, ArrowRightIcon, ArrowLeftIcon } from 'lucide-react';
|
|
13
13
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -3840,31 +3840,7 @@ function TranslationProvider({
|
|
|
3840
3840
|
}
|
|
3841
3841
|
return /* @__PURE__ */ jsx(I18nextProvider, { i18n: i18n2, children });
|
|
3842
3842
|
}
|
|
3843
|
-
var CodeEditorInternal = lazy(
|
|
3844
|
-
() => import('./code-editor-EJIJXZLN.js').then((m) => ({ default: m.CodeEditor }))
|
|
3845
|
-
);
|
|
3846
|
-
var CodeDiffEditorInternal = lazy(
|
|
3847
|
-
() => import('./code-diff-editor-IT2RMVDC.js').then((m) => ({ default: m.CodeDiffEditor }))
|
|
3848
|
-
);
|
|
3849
|
-
function EditorSkeleton() {
|
|
3850
|
-
return /* @__PURE__ */ jsx(Skeleton, { className: "h-full w-full min-h-50" });
|
|
3851
|
-
}
|
|
3852
|
-
function LazyCodeEditor(props) {
|
|
3853
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(EditorSkeleton, {}), children: /* @__PURE__ */ jsx(CodeEditorInternal, { ...props }) });
|
|
3854
|
-
}
|
|
3855
|
-
function LazyCodeDiffEditor(props) {
|
|
3856
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(EditorSkeleton, {}), children: /* @__PURE__ */ jsx(CodeDiffEditorInternal, { ...props }) });
|
|
3857
|
-
}
|
|
3858
|
-
var RichTextEditorInternal = lazy(
|
|
3859
|
-
() => import('./rich-text-editor-JUERRDHQ.js').then((m) => ({ default: m.RichTextEditor }))
|
|
3860
|
-
);
|
|
3861
|
-
function EditorSkeleton2() {
|
|
3862
|
-
return /* @__PURE__ */ jsx(Skeleton, { className: "h-full w-full min-h-[100px]" });
|
|
3863
|
-
}
|
|
3864
|
-
function LazyRichTextEditor(props) {
|
|
3865
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(EditorSkeleton2, {}), children: /* @__PURE__ */ jsx(RichTextEditorInternal, { ...props }) });
|
|
3866
|
-
}
|
|
3867
3843
|
|
|
3868
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox,
|
|
3844
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, Label3 as Label, LocaleProvider, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NextButton, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PreviousButton, Progress, RadioGroup4 as RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, 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, Slider, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TranslationProvider, badgeVariants, buttonGroupVariants, navigationMenuTriggerStyle, useFormField, useSidebar };
|
|
3869
3845
|
//# sourceMappingURL=index.js.map
|
|
3870
3846
|
//# sourceMappingURL=index.js.map
|