@ioca/react 1.2.7 → 1.2.9
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/lib/css/index.css +1 -1
- package/lib/css/index.css.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/types/index.d.ts +6 -7
- package/package.json +1 -1
package/lib/types/index.d.ts
CHANGED
|
@@ -295,13 +295,15 @@ declare const Dropdown: {
|
|
|
295
295
|
Item: (props: IDropItem) => react_jsx_runtime.JSX.Element;
|
|
296
296
|
};
|
|
297
297
|
|
|
298
|
-
interface IEditor {
|
|
298
|
+
interface IEditor extends Omit<HTMLAttributes<HTMLDivElement>, "onInput"> {
|
|
299
299
|
ref?: RefObject<RefEditor | null>;
|
|
300
300
|
placeholder?: string;
|
|
301
301
|
width?: string | number;
|
|
302
302
|
height?: string | number;
|
|
303
303
|
autosize?: boolean;
|
|
304
|
-
|
|
304
|
+
richPaste?: boolean;
|
|
305
|
+
controls?: string[] | "simple" | "all" | "none";
|
|
306
|
+
border?: boolean;
|
|
305
307
|
onInput?: (html: string, e: FormEvent<HTMLDivElement>) => void;
|
|
306
308
|
}
|
|
307
309
|
interface RefEditor {
|
|
@@ -311,7 +313,7 @@ interface RefEditor {
|
|
|
311
313
|
|
|
312
314
|
declare const Editor: (props: IEditor) => react_jsx_runtime.JSX.Element;
|
|
313
315
|
|
|
314
|
-
interface IFlex {
|
|
316
|
+
interface IFlex extends HTMLAttributes<HTMLElement> {
|
|
315
317
|
as?: keyof JSX.IntrinsicElements;
|
|
316
318
|
align?: string;
|
|
317
319
|
justify?: string;
|
|
@@ -319,12 +321,9 @@ interface IFlex {
|
|
|
319
321
|
direction?: any;
|
|
320
322
|
wrap?: any;
|
|
321
323
|
columns?: string | number;
|
|
322
|
-
style?: CSSProperties;
|
|
323
|
-
className?: string;
|
|
324
|
-
children?: ReactNode;
|
|
325
324
|
}
|
|
326
325
|
|
|
327
|
-
declare const Flex:
|
|
326
|
+
declare const Flex: React.FC<IFlex>;
|
|
328
327
|
|
|
329
328
|
declare class IFormInstance {
|
|
330
329
|
readonly id?: string;
|