plataforma-fundacao-componentes 2.25.5 → 2.25.6
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/dist/components/textEditor/TextEditor.d.ts +19 -20
- package/dist/components/textEditor/components/textEditorColorPicker/TextEditorColorPicker.d.ts +11 -11
- package/dist/components/textEditor/components/textEditorHeaderButton/TextEditorHeaderButton.d.ts +7 -10
- package/dist/components/textEditor/components/textEditorInput/TextEditorHeaderInput.d.ts +10 -12
- package/dist/components/textEditor/components/textEditorMenuButton/TextEditorMenuButton.d.ts +3 -9
- package/dist/components/textEditor/components/textEditorTitleChoser/TextEditorTitleChoser.d.ts +10 -10
- package/dist/components/textEditor/components/textEditorUrlCreator/TextEditorUrlCreator.d.ts +11 -11
- package/dist/index.js +184 -191
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +184 -191
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import './TextEditor.scss';
|
|
3
|
+
interface Props {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
value?: string;
|
|
6
|
+
onChange?: (s: string, f: string) => void;
|
|
7
|
+
topLabel?: ReactNode;
|
|
8
|
+
helperText?: ReactNode;
|
|
9
|
+
hideTopLabel?: boolean;
|
|
10
|
+
hideHelperText?: boolean;
|
|
11
|
+
error?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
declare function TextEditor(props: Props): React.JSX.Element;
|
|
2
15
|
declare namespace TextEditor {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export const helperText: PropTypes.Requireable<string | object>;
|
|
9
|
-
export const hideTopLabel: PropTypes.Requireable<boolean>;
|
|
10
|
-
export const hideHelperText: PropTypes.Requireable<boolean>;
|
|
11
|
-
export const error: PropTypes.Requireable<boolean>;
|
|
12
|
-
}
|
|
13
|
-
export namespace defaultProps {
|
|
14
|
-
const disabled_1: boolean;
|
|
15
|
-
export { disabled_1 as disabled };
|
|
16
|
-
const value_1: string;
|
|
17
|
-
export { value_1 as value };
|
|
18
|
-
export function onChange_1(): void;
|
|
19
|
-
export { onChange_1 as onChange };
|
|
20
|
-
}
|
|
16
|
+
var defaultProps: {
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
value: string;
|
|
19
|
+
onChange: () => void;
|
|
20
|
+
};
|
|
21
21
|
}
|
|
22
22
|
export default TextEditor;
|
|
23
|
-
import PropTypes from "prop-types";
|
package/dist/components/textEditor/components/textEditorColorPicker/TextEditorColorPicker.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './TextEditorColorPicker.scss';
|
|
3
|
+
interface Props {
|
|
4
|
+
onChange: (color: string) => void;
|
|
5
|
+
atualColor?: string;
|
|
6
|
+
opened: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare function TextEditorColorPicker(props: Props): React.JSX.Element;
|
|
2
9
|
declare namespace TextEditorColorPicker {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export const opened: PropTypes.Requireable<boolean>;
|
|
7
|
-
}
|
|
8
|
-
export namespace defaultProps {
|
|
9
|
-
export function onChange_1(): void;
|
|
10
|
-
export { onChange_1 as onChange };
|
|
11
|
-
}
|
|
10
|
+
var defaultProps: {
|
|
11
|
+
onChange: () => void;
|
|
12
|
+
};
|
|
12
13
|
}
|
|
13
14
|
export default TextEditorColorPicker;
|
|
14
|
-
import PropTypes from "prop-types";
|
package/dist/components/textEditor/components/textEditorHeaderButton/TextEditorHeaderButton.d.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export const active: PropTypes.Requireable<boolean>;
|
|
7
|
-
export const disabled: PropTypes.Requireable<boolean>;
|
|
8
|
-
}
|
|
1
|
+
import React, { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import './TextEditorHeaderButton.scss';
|
|
3
|
+
interface Props extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
icon?: ReactNode;
|
|
5
|
+
active?: boolean;
|
|
9
6
|
}
|
|
10
|
-
export default TextEditorHeaderButton;
|
|
11
|
-
|
|
7
|
+
export default function TextEditorHeaderButton({ icon, active, ...props }: Props): React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import React, { InputHTMLAttributes } from 'react';
|
|
2
|
+
import './TextEditorHeaderInput.scss';
|
|
3
|
+
interface Props extends InputHTMLAttributes<HTMLInputElement> {
|
|
4
|
+
label?: string;
|
|
5
|
+
onEnter: () => void;
|
|
6
|
+
}
|
|
7
|
+
declare function TextEditorHeaderInput(props: Props): React.JSX.Element;
|
|
2
8
|
declare namespace TextEditorHeaderInput {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export const value: PropTypes.Requireable<import("react").Key>;
|
|
7
|
-
export const onEnter: PropTypes.Requireable<(...args: any[]) => any>;
|
|
8
|
-
}
|
|
9
|
-
export namespace defaultProps {
|
|
10
|
-
export function onChange_1(): void;
|
|
11
|
-
export { onChange_1 as onChange };
|
|
12
|
-
}
|
|
9
|
+
var defaultProps: {
|
|
10
|
+
onChange: () => void;
|
|
11
|
+
};
|
|
13
12
|
}
|
|
14
13
|
export default TextEditorHeaderInput;
|
|
15
|
-
import PropTypes from "prop-types";
|
package/dist/components/textEditor/components/textEditorMenuButton/TextEditorMenuButton.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export const onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
5
|
-
export const disabled: PropTypes.Requireable<boolean>;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
export default TextEditorMenuButton;
|
|
9
|
-
import PropTypes from "prop-types";
|
|
1
|
+
import React, { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import './TextEditorMenuButton.scss';
|
|
3
|
+
export default function TextEditorMenuButton(props: ButtonHTMLAttributes<HTMLButtonElement>): React.JSX.Element;
|
package/dist/components/textEditor/components/textEditorTitleChoser/TextEditorTitleChoser.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './TextEditorTitleChoser.scss';
|
|
3
|
+
interface Props {
|
|
4
|
+
onChange: (text: string) => void;
|
|
5
|
+
opened: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare function TextEditorTitleChoser(props: Props): React.JSX.Element;
|
|
2
8
|
declare namespace TextEditorTitleChoser {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
export namespace defaultProps {
|
|
8
|
-
export function onChange_1(): void;
|
|
9
|
-
export { onChange_1 as onChange };
|
|
10
|
-
}
|
|
9
|
+
var defaultProps: {
|
|
10
|
+
onChange: () => void;
|
|
11
|
+
};
|
|
11
12
|
}
|
|
12
13
|
export default TextEditorTitleChoser;
|
|
13
|
-
import PropTypes from "prop-types";
|
package/dist/components/textEditor/components/textEditorUrlCreator/TextEditorUrlCreator.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './TextEditorUrlCreator.scss';
|
|
3
|
+
interface Props {
|
|
4
|
+
opened?: boolean;
|
|
5
|
+
onChange: (textValue: string, urlValue: string, newTab: boolean) => void;
|
|
6
|
+
editorId: string;
|
|
7
|
+
}
|
|
8
|
+
declare function TextEditorUrlCreator(props: Props): React.JSX.Element;
|
|
2
9
|
declare namespace TextEditorUrlCreator {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export const editorId: PropTypes.Requireable<string>;
|
|
7
|
-
}
|
|
8
|
-
export namespace defaultProps {
|
|
9
|
-
export function onChange_1(): void;
|
|
10
|
-
export { onChange_1 as onChange };
|
|
11
|
-
}
|
|
10
|
+
var defaultProps: {
|
|
11
|
+
onChange: () => void;
|
|
12
|
+
};
|
|
12
13
|
}
|
|
13
14
|
export default TextEditorUrlCreator;
|
|
14
|
-
import PropTypes from "prop-types";
|