fina-react-ds 1.0.45 → 1.0.47

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.
@@ -0,0 +1,6 @@
1
+ export declare function FormHtmlInput({ name, label, description, required, ...props }: {
2
+ name: string;
3
+ label: string;
4
+ description?: string;
5
+ required?: boolean;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ var f=Object.defineProperty;var o=(e,n)=>f(e,"name",{value:n,configurable:!0});import{jsx as r,jsxs as p}from"react/jsx-runtime";import{useFormContext as d}from"react-hook-form";import{FormField as h,FormItem as u,FormLabel as g,FormControl as C,FormDescription as x,FormMessage as I}from"./form.js";import{HtmlInput as j}from"./html-input.js";function O({name:e,label:n,description:t,required:m=!1,...l}){const{control:i}=d();return r(h,{control:i,name:e,render:o(({field:s})=>{const{onChange:F,...a}=s;return p(u,{children:[r(g,{required:m,children:n}),r(C,{children:r(j,{...a,...l,onChange:o((D,c)=>{F(c.getData())},"onChange")})}),t&&r(x,{children:t}),r(I,{})]})},"render")})}o(O,"FormHtmlInput");export{O as FormHtmlInput};
@@ -1 +1,5 @@
1
- export declare function HtmlInput(): import("react/jsx-runtime").JSX.Element;
1
+ import { ClassicEditor, EventInfo } from "ckeditor5";
2
+ export declare function HtmlInput({ value, onChange, }: {
3
+ value: string;
4
+ onChange?: (event: EventInfo, editor: ClassicEditor) => void;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1 @@
1
- var e=Object.defineProperty;var o=(i,r)=>e(i,"name",{value:r,configurable:!0});import{jsxs as n,jsx as t}from"react/jsx-runtime";import{cn as d}from"../lib/utils.js";import{CKEditor as s}from"@ckeditor/ckeditor5-react";import{Essentials as a,Paragraph as l,Bold as c,Italic as m,ClassicEditor as p}from"ckeditor5";import{useId as b}from"react";function w(){const i=b(),r=`
2
- #${i} .ck-sticky-panel__content { border: none; }
3
- #${i} .ck-content { border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; box-shadow: none; }
4
- `;return n("div",{id:i,className:d("bg-input border border-input-border w-full rounded-md shadow-xs md:text-sm outline-none overflow-hidden","has-focus-visible:border-ring has-focus-visible:ring-ring/50 has-focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"),children:[t("style",{children:r}),t(s,{editor:p,config:{licenseKey:"GPL",plugins:[a,l,c,m],toolbar:["bold","italic","|","formatPainter"],initialData:"<p>Hello from CKEditor 5 in React!</p>"}})]})}o(w,"HtmlInput");export{w as HtmlInput};
1
+ var e=Object.defineProperty;var t=(i,r)=>e(i,"name",{value:r,configurable:!0});import{jsx as a}from"react/jsx-runtime";import{cn as o}from"../lib/utils.js";import{CKEditor as n}from"@ckeditor/ckeditor5-react";import{Essentials as s,Paragraph as d,Bold as l,Italic as c,List as u,ClassicEditor as g}from"ckeditor5";function h({value:i,onChange:r}){return a("div",{className:o("bg-input border border-input-border w-full rounded-md shadow-xs md:text-sm outline-none ","has-focus-visible:border-ring has-focus-visible:ring-ring/50 has-focus-visible:ring-[3px]","has-active:border-ring has-active:ring-ring/50 has-active:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"),children:a(n,{editor:g,config:{licenseKey:"GPL",plugins:[s,d,l,c,u],toolbar:["bold","italic","|","bulletedList"],initialData:"<p>Hello from CKEditor 5 in React!</p>"},data:i,onChange:r})})}t(h,"HtmlInput");export{h as HtmlInput};
@@ -40,6 +40,7 @@ export { FormSelect } from "./form-select";
40
40
  export { FormSwitch } from "./form-switch";
41
41
  export { FormTextarea } from "./form-textarea";
42
42
  export { FormImageUploader } from "./form-image-uploader";
43
+ export { FormHtmlInput } from "./form-html-input";
43
44
  export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, } from "./form";
44
45
  export { ThemeProvider, useTheme } from "../providers/theme-provider";
45
46
  export { LoaderProvider, useLoader } from "../providers/loader-provider";
@@ -1 +1 @@
1
- import{AlertDialog as r,AlertDialogAction as t,AlertDialogCancel as a,AlertDialogContent as i,AlertDialogDescription as n,AlertDialogFooter as p,AlertDialogHeader as l,AlertDialogOverlay as d,AlertDialogPortal as m,AlertDialogTitle as g,AlertDialogTrigger as u}from"./alert-dialog.js";import{Alert as S,AlertDescription as b,AlertTitle as f}from"./alert.js";import{Badge as T}from"./badge.js";import{Button as s,buttonVariants as F}from"./button.js";import{Avatar as c,AvatarFallback as P,AvatarImage as A}from"./avatar.js";import{Calendar as h}from"./calendar.js";import{Card as I,CardAction as H,CardContent as k,CardDescription as L,CardFooter as B,CardHeader as G,CardTitle as R}from"./card.js";import{Checkbox as U}from"./checkbox.js";import{DatePicker as E}from"./date-picker.js";import{Dialog as V,DialogClose as j,DialogContent as q,DialogDescription as z,DialogFooter as J,DialogHeader as K,DialogOverlay as Q,DialogPortal as W,DialogTitle as X,DialogTrigger as Y}from"./dialog.js";import{DataLoader as _}from"./data-loader.js";import{DropdownMenu as ee,DropdownMenuCheckboxItem as oe,DropdownMenuContent as re,DropdownMenuGroup as te,DropdownMenuItem as ae,DropdownMenuLabel as ie,DropdownMenuPortal as ne,DropdownMenuRadioGroup as pe,DropdownMenuRadioItem as le,DropdownMenuSeparator as de,DropdownMenuShortcut as me,DropdownMenuSub as ge,DropdownMenuSubContent as ue,DropdownMenuSubTrigger as xe,DropdownMenuTrigger as Se}from"./dropdown-menu.js";import{FileUploader as fe}from"./file-uploader.js";import{ImageUploader as Te}from"./image-uploader.js";import{HoverCard as se,HoverCardContent as Fe,HoverCardTrigger as Me}from"./hover-card.js";import{Input as Pe}from"./input.js";import{Label as we}from"./label.js";import{ModeToggle as ve}from"./mode-toggle.js";import{Pagination as He,PaginationContent as ke,PaginationEllipsis as Le,PaginationItem as Be,PaginationLink as Ge,PaginationNext as Re,PaginationPrevious as ye}from"./pagination.js";import{PasswordRulesChecker as Oe}from"./password-rules-checker.js";import{Popover as Ne,PopoverAnchor as Ve,PopoverContent as je,PopoverTrigger as qe}from"./popover.js";import{Select as Je}from"./select.js";import{Separator as Qe}from"./separator.js";import{Sheet as Xe,SheetBody as Ye,SheetClose as Ze,SheetContent as _e,SheetDescription as $e,SheetFooter as eo,SheetHeader as oo,SheetTitle as ro,SheetTrigger as to}from"./sheet.js";import{Sidebar as io,SidebarContent as no,SidebarFooter as po,SidebarGroup as lo,SidebarGroupAction as mo,SidebarGroupContent as go,SidebarGroupLabel as uo,SidebarHeader as xo,SidebarInput as So,SidebarInset as bo,SidebarMenu as fo,SidebarMenuAction as Do,SidebarMenuBadge as To,SidebarMenuButton as Co,SidebarMenuItem as so,SidebarMenuSkeleton as Fo,SidebarMenuSub as Mo,SidebarMenuSubButton as co,SidebarMenuSubItem as Po,SidebarProvider as Ao,SidebarRail as wo,SidebarSeparator as ho,SidebarTrigger as vo,useSidebar as Io}from"./sidebar.js";import{SimplePagination as ko}from"./simple-pagination.js";import{SimpleTooltip as Bo}from"./simple-tooltip.js";import{Skeleton as Ro}from"./skeleton.js";import{Switch as Uo}from"./switch.js";import{Toaster as Eo}from"./sonner.js";import{Table as Vo,TableBody as jo,TableCaption as qo,TableCell as zo,TableFooter as Jo,TableHead as Ko,TableHeader as Qo,TableRow as Wo}from"./table.js";import{Tabs as Yo,TabsContent as Zo,TabsList as _o,TabsTrigger as $o}from"./tabs.js";import{Textarea as or}from"./textarea.js";import{Tooltip as tr,TooltipContent as ar,TooltipProvider as ir,TooltipTrigger as nr}from"./tooltip.js";import{FormDate as lr}from"./form-date.js";import{FormColorPicker as mr}from"./form-color-picker.js";import{FormFileUploader as ur}from"./form-file-uploader.js";import{FormInput as Sr}from"./form-input.js";import{FormSelect as fr}from"./form-select.js";import{FormSwitch as Tr}from"./form-switch.js";import{FormTextarea as sr}from"./form-textarea.js";import{FormImageUploader as Mr}from"./form-image-uploader.js";import{Form as Pr,FormControl as Ar,FormDescription as wr,FormField as hr,FormItem as vr,FormLabel as Ir,FormMessage as Hr,useFormField as kr}from"./form.js";import{ThemeProvider as Br,useTheme as Gr}from"../providers/theme-provider.js";import{LoaderProvider as yr,useLoader as Ur}from"../providers/loader-provider.js";import{HtmlInput as Er}from"./html-input.js";export{S as Alert,b as AlertDescription,r as AlertDialog,t as AlertDialogAction,a as AlertDialogCancel,i as AlertDialogContent,n as AlertDialogDescription,p as AlertDialogFooter,l as AlertDialogHeader,d as AlertDialogOverlay,m as AlertDialogPortal,g as AlertDialogTitle,u as AlertDialogTrigger,f as AlertTitle,c as Avatar,P as AvatarFallback,A as AvatarImage,T as Badge,s as Button,h as Calendar,I as Card,H as CardAction,k as CardContent,L as CardDescription,B as CardFooter,G as CardHeader,R as CardTitle,U as Checkbox,_ as DataLoader,E as DatePicker,V as Dialog,j as DialogClose,q as DialogContent,z as DialogDescription,J as DialogFooter,K as DialogHeader,Q as DialogOverlay,W as DialogPortal,X as DialogTitle,Y as DialogTrigger,ee as DropdownMenu,oe as DropdownMenuCheckboxItem,re as DropdownMenuContent,te as DropdownMenuGroup,ae as DropdownMenuItem,ie as DropdownMenuLabel,ne as DropdownMenuPortal,pe as DropdownMenuRadioGroup,le as DropdownMenuRadioItem,de as DropdownMenuSeparator,me as DropdownMenuShortcut,ge as DropdownMenuSub,ue as DropdownMenuSubContent,xe as DropdownMenuSubTrigger,Se as DropdownMenuTrigger,fe as FileUploader,Pr as Form,mr as FormColorPicker,Ar as FormControl,lr as FormDate,wr as FormDescription,hr as FormField,ur as FormFileUploader,Mr as FormImageUploader,Sr as FormInput,vr as FormItem,Ir as FormLabel,Hr as FormMessage,fr as FormSelect,Tr as FormSwitch,sr as FormTextarea,se as HoverCard,Fe as HoverCardContent,Me as HoverCardTrigger,Er as HtmlInput,Te as ImageUploader,Pe as Input,we as Label,yr as LoaderProvider,ve as ModeToggle,He as Pagination,ke as PaginationContent,Le as PaginationEllipsis,Be as PaginationItem,Ge as PaginationLink,Re as PaginationNext,ye as PaginationPrevious,Oe as PasswordRulesChecker,Ne as Popover,Ve as PopoverAnchor,je as PopoverContent,qe as PopoverTrigger,Je as Select,Qe as Separator,Xe as Sheet,Ye as SheetBody,Ze as SheetClose,_e as SheetContent,$e as SheetDescription,eo as SheetFooter,oo as SheetHeader,ro as SheetTitle,to as SheetTrigger,io as Sidebar,no as SidebarContent,po as SidebarFooter,lo as SidebarGroup,mo as SidebarGroupAction,go as SidebarGroupContent,uo as SidebarGroupLabel,xo as SidebarHeader,So as SidebarInput,bo as SidebarInset,fo as SidebarMenu,Do as SidebarMenuAction,To as SidebarMenuBadge,Co as SidebarMenuButton,so as SidebarMenuItem,Fo as SidebarMenuSkeleton,Mo as SidebarMenuSub,co as SidebarMenuSubButton,Po as SidebarMenuSubItem,Ao as SidebarProvider,wo as SidebarRail,ho as SidebarSeparator,vo as SidebarTrigger,ko as SimplePagination,Bo as SimpleTooltip,Ro as Skeleton,Uo as Switch,Vo as Table,jo as TableBody,qo as TableCaption,zo as TableCell,Jo as TableFooter,Ko as TableHead,Qo as TableHeader,Wo as TableRow,Yo as Tabs,Zo as TabsContent,_o as TabsList,$o as TabsTrigger,or as Textarea,Br as ThemeProvider,Eo as Toaster,tr as Tooltip,ar as TooltipContent,ir as TooltipProvider,nr as TooltipTrigger,F as buttonVariants,kr as useFormField,Ur as useLoader,Io as useSidebar,Gr as useTheme};
1
+ import{AlertDialog as r,AlertDialogAction as t,AlertDialogCancel as a,AlertDialogContent as i,AlertDialogDescription as n,AlertDialogFooter as p,AlertDialogHeader as l,AlertDialogOverlay as m,AlertDialogPortal as d,AlertDialogTitle as g,AlertDialogTrigger as u}from"./alert-dialog.js";import{Alert as S,AlertDescription as b,AlertTitle as f}from"./alert.js";import{Badge as T}from"./badge.js";import{Button as s,buttonVariants as F}from"./button.js";import{Avatar as c,AvatarFallback as P,AvatarImage as A}from"./avatar.js";import{Calendar as h}from"./calendar.js";import{Card as I,CardAction as H,CardContent as k,CardDescription as L,CardFooter as B,CardHeader as G,CardTitle as R}from"./card.js";import{Checkbox as U}from"./checkbox.js";import{DatePicker as E}from"./date-picker.js";import{Dialog as V,DialogClose as j,DialogContent as q,DialogDescription as z,DialogFooter as J,DialogHeader as K,DialogOverlay as Q,DialogPortal as W,DialogTitle as X,DialogTrigger as Y}from"./dialog.js";import{DataLoader as _}from"./data-loader.js";import{DropdownMenu as oo,DropdownMenuCheckboxItem as eo,DropdownMenuContent as ro,DropdownMenuGroup as to,DropdownMenuItem as ao,DropdownMenuLabel as io,DropdownMenuPortal as no,DropdownMenuRadioGroup as po,DropdownMenuRadioItem as lo,DropdownMenuSeparator as mo,DropdownMenuShortcut as go,DropdownMenuSub as uo,DropdownMenuSubContent as xo,DropdownMenuSubTrigger as So,DropdownMenuTrigger as bo}from"./dropdown-menu.js";import{FileUploader as Do}from"./file-uploader.js";import{ImageUploader as Co}from"./image-uploader.js";import{HoverCard as Fo,HoverCardContent as Mo,HoverCardTrigger as co}from"./hover-card.js";import{Input as Ao}from"./input.js";import{Label as ho}from"./label.js";import{ModeToggle as Io}from"./mode-toggle.js";import{Pagination as ko,PaginationContent as Lo,PaginationEllipsis as Bo,PaginationItem as Go,PaginationLink as Ro,PaginationNext as yo,PaginationPrevious as Uo}from"./pagination.js";import{PasswordRulesChecker as Eo}from"./password-rules-checker.js";import{Popover as Vo,PopoverAnchor as jo,PopoverContent as qo,PopoverTrigger as zo}from"./popover.js";import{Select as Ko}from"./select.js";import{Separator as Wo}from"./separator.js";import{Sheet as Yo,SheetBody as Zo,SheetClose as _o,SheetContent as $o,SheetDescription as oe,SheetFooter as ee,SheetHeader as re,SheetTitle as te,SheetTrigger as ae}from"./sheet.js";import{Sidebar as ne,SidebarContent as pe,SidebarFooter as le,SidebarGroup as me,SidebarGroupAction as de,SidebarGroupContent as ge,SidebarGroupLabel as ue,SidebarHeader as xe,SidebarInput as Se,SidebarInset as be,SidebarMenu as fe,SidebarMenuAction as De,SidebarMenuBadge as Te,SidebarMenuButton as Ce,SidebarMenuItem as se,SidebarMenuSkeleton as Fe,SidebarMenuSub as Me,SidebarMenuSubButton as ce,SidebarMenuSubItem as Pe,SidebarProvider as Ae,SidebarRail as we,SidebarSeparator as he,SidebarTrigger as ve,useSidebar as Ie}from"./sidebar.js";import{SimplePagination as ke}from"./simple-pagination.js";import{SimpleTooltip as Be}from"./simple-tooltip.js";import{Skeleton as Re}from"./skeleton.js";import{Switch as Ue}from"./switch.js";import{Toaster as Ee}from"./sonner.js";import{Table as Ve,TableBody as je,TableCaption as qe,TableCell as ze,TableFooter as Je,TableHead as Ke,TableHeader as Qe,TableRow as We}from"./table.js";import{Tabs as Ye,TabsContent as Ze,TabsList as _e,TabsTrigger as $e}from"./tabs.js";import{Textarea as er}from"./textarea.js";import{Tooltip as tr,TooltipContent as ar,TooltipProvider as ir,TooltipTrigger as nr}from"./tooltip.js";import{FormDate as lr}from"./form-date.js";import{FormColorPicker as dr}from"./form-color-picker.js";import{FormFileUploader as ur}from"./form-file-uploader.js";import{FormInput as Sr}from"./form-input.js";import{FormSelect as fr}from"./form-select.js";import{FormSwitch as Tr}from"./form-switch.js";import{FormTextarea as sr}from"./form-textarea.js";import{FormImageUploader as Mr}from"./form-image-uploader.js";import{FormHtmlInput as Pr}from"./form-html-input.js";import{Form as wr,FormControl as hr,FormDescription as vr,FormField as Ir,FormItem as Hr,FormLabel as kr,FormMessage as Lr,useFormField as Br}from"./form.js";import{ThemeProvider as Rr,useTheme as yr}from"../providers/theme-provider.js";import{LoaderProvider as Or,useLoader as Er}from"../providers/loader-provider.js";import{HtmlInput as Vr}from"./html-input.js";export{S as Alert,b as AlertDescription,r as AlertDialog,t as AlertDialogAction,a as AlertDialogCancel,i as AlertDialogContent,n as AlertDialogDescription,p as AlertDialogFooter,l as AlertDialogHeader,m as AlertDialogOverlay,d as AlertDialogPortal,g as AlertDialogTitle,u as AlertDialogTrigger,f as AlertTitle,c as Avatar,P as AvatarFallback,A as AvatarImage,T as Badge,s as Button,h as Calendar,I as Card,H as CardAction,k as CardContent,L as CardDescription,B as CardFooter,G as CardHeader,R as CardTitle,U as Checkbox,_ as DataLoader,E as DatePicker,V as Dialog,j as DialogClose,q as DialogContent,z as DialogDescription,J as DialogFooter,K as DialogHeader,Q as DialogOverlay,W as DialogPortal,X as DialogTitle,Y as DialogTrigger,oo as DropdownMenu,eo as DropdownMenuCheckboxItem,ro as DropdownMenuContent,to as DropdownMenuGroup,ao as DropdownMenuItem,io as DropdownMenuLabel,no as DropdownMenuPortal,po as DropdownMenuRadioGroup,lo as DropdownMenuRadioItem,mo as DropdownMenuSeparator,go as DropdownMenuShortcut,uo as DropdownMenuSub,xo as DropdownMenuSubContent,So as DropdownMenuSubTrigger,bo as DropdownMenuTrigger,Do as FileUploader,wr as Form,dr as FormColorPicker,hr as FormControl,lr as FormDate,vr as FormDescription,Ir as FormField,ur as FormFileUploader,Pr as FormHtmlInput,Mr as FormImageUploader,Sr as FormInput,Hr as FormItem,kr as FormLabel,Lr as FormMessage,fr as FormSelect,Tr as FormSwitch,sr as FormTextarea,Fo as HoverCard,Mo as HoverCardContent,co as HoverCardTrigger,Vr as HtmlInput,Co as ImageUploader,Ao as Input,ho as Label,Or as LoaderProvider,Io as ModeToggle,ko as Pagination,Lo as PaginationContent,Bo as PaginationEllipsis,Go as PaginationItem,Ro as PaginationLink,yo as PaginationNext,Uo as PaginationPrevious,Eo as PasswordRulesChecker,Vo as Popover,jo as PopoverAnchor,qo as PopoverContent,zo as PopoverTrigger,Ko as Select,Wo as Separator,Yo as Sheet,Zo as SheetBody,_o as SheetClose,$o as SheetContent,oe as SheetDescription,ee as SheetFooter,re as SheetHeader,te as SheetTitle,ae as SheetTrigger,ne as Sidebar,pe as SidebarContent,le as SidebarFooter,me as SidebarGroup,de as SidebarGroupAction,ge as SidebarGroupContent,ue as SidebarGroupLabel,xe as SidebarHeader,Se as SidebarInput,be as SidebarInset,fe as SidebarMenu,De as SidebarMenuAction,Te as SidebarMenuBadge,Ce as SidebarMenuButton,se as SidebarMenuItem,Fe as SidebarMenuSkeleton,Me as SidebarMenuSub,ce as SidebarMenuSubButton,Pe as SidebarMenuSubItem,Ae as SidebarProvider,we as SidebarRail,he as SidebarSeparator,ve as SidebarTrigger,ke as SimplePagination,Be as SimpleTooltip,Re as Skeleton,Ue as Switch,Ve as Table,je as TableBody,qe as TableCaption,ze as TableCell,Je as TableFooter,Ke as TableHead,Qe as TableHeader,We as TableRow,Ye as Tabs,Ze as TabsContent,_e as TabsList,$e as TabsTrigger,er as Textarea,Rr as ThemeProvider,Ee as Toaster,tr as Tooltip,ar as TooltipContent,ir as TooltipProvider,nr as TooltipTrigger,F as buttonVariants,Br as useFormField,Er as useLoader,Ie as useSidebar,yr as useTheme};
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "https://github.com/F1na/fina-react-ds"
6
6
  },
7
7
  "private": false,
8
- "version": "1.0.45",
8
+ "version": "1.0.47",
9
9
  "type": "module",
10
10
  "files": [
11
11
  "dist"