@orangesix/react 1.0.7 → 1.0.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/api/theme.css +378 -1
- package/box/_box.scss +1 -1
- package/editor/_editor.scss +98 -35
- package/editor/index.cjs.js +19 -1
- package/editor/index.cjs.js.map +1 -1
- package/editor/index.d.ts +30 -11
- package/editor/index.esm.js +19 -1
- package/editor/index.esm.js.map +1 -1
- package/package.json +10 -2
package/editor/index.d.ts
CHANGED
|
@@ -65,28 +65,47 @@ interface ApiFieldComponentProps {
|
|
|
65
65
|
interface EditorProps extends ApiComponentProps, ApiFieldComponentProps {
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* Valor inicial do editor de texto
|
|
69
69
|
*/
|
|
70
|
-
value:
|
|
70
|
+
value: string;
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* Define quais opção será renderizada no editor de texto
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
options?: EditorOptions | "basic" | "full"
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
|
-
* Define
|
|
78
|
+
* Define a altura minima do editor
|
|
79
79
|
*/
|
|
80
|
-
|
|
80
|
+
height?: number
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Método responsável por alterar o valor do state inicial
|
|
84
|
+
*/
|
|
85
|
+
onChange(value: string): void
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
interface EditorOptions {
|
|
89
|
+
text: boolean
|
|
90
|
+
bold: boolean;
|
|
91
|
+
italic: boolean;
|
|
92
|
+
color: boolean
|
|
93
|
+
strike: boolean;
|
|
94
|
+
underline: boolean;
|
|
95
|
+
code: boolean;
|
|
96
|
+
highlight: boolean;
|
|
97
|
+
bulletlist: boolean
|
|
98
|
+
orderlist: boolean
|
|
99
|
+
link: boolean
|
|
100
|
+
image: boolean
|
|
81
101
|
}
|
|
82
102
|
|
|
83
103
|
/**
|
|
84
104
|
* Componente - `Editor`
|
|
85
105
|
*
|
|
86
|
-
* Um componente versátil que pode ser utilizado para criar
|
|
106
|
+
* Um componente versátil que pode ser utilizado para criar container de edição de texto.
|
|
107
|
+
* Permite personalizar o estilo e o conteúdo através de propriedades.
|
|
87
108
|
*/
|
|
88
|
-
declare const Editor: ({
|
|
89
|
-
|
|
90
|
-
type IEditorProps = EditorProps;
|
|
109
|
+
declare const Editor: ({ options, iconPrefix, ...props }: EditorProps) => React.JSX.Element | null;
|
|
91
110
|
|
|
92
|
-
export { Editor
|
|
111
|
+
export { Editor };
|