fina-react-ds 1.0.45 → 1.0.46

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;
@@ -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};
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.46",
9
9
  "type": "module",
10
10
  "files": [
11
11
  "dist"