@toptal/picasso-forms 40.0.0 → 42.1.0
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/Form/Form.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare const Form: {
|
|
|
17
17
|
(props: import("../Autocomplete/Autocomplete").Props): JSX.Element;
|
|
18
18
|
displayName: string;
|
|
19
19
|
};
|
|
20
|
-
Input: React.ForwardRefExoticComponent<Pick<import("../Input").Props, string |
|
|
20
|
+
Input: React.ForwardRefExoticComponent<Pick<import("../Input").Props, keyof import("react-final-form").FieldProps<string | undefined, import("react-final-form").FieldRenderProps<string | undefined, HTMLInputElement>, HTMLInputElement>> & React.RefAttributes<HTMLInputElement>>;
|
|
21
21
|
Select: {
|
|
22
22
|
<T_1 extends import("@toptal/picasso").SelectValueType, M extends boolean = false>(props: import("../Select/Select").Props<T_1, M>): JSX.Element;
|
|
23
23
|
defaultProps: {};
|
package/Input/Input.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export declare type FormInputProps = Omit<InputProps, 'onResetClick'> & {
|
|
|
6
6
|
onResetClick?: (set: (value: string) => void) => void;
|
|
7
7
|
};
|
|
8
8
|
export declare type Props = FormInputProps & FieldProps<InputProps['value']>;
|
|
9
|
-
export declare const Input: React.ForwardRefExoticComponent<Pick<Props, string |
|
|
9
|
+
export declare const Input: React.ForwardRefExoticComponent<Pick<Props, keyof import("react-final-form").FieldProps<string | undefined, import("react-final-form").FieldRenderProps<string | undefined, HTMLInputElement>, HTMLInputElement>> & React.RefAttributes<HTMLInputElement>>;
|
|
10
10
|
export default Input;
|
|
@@ -11,7 +11,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
};
|
|
12
12
|
import { RichTextEditor as PicassoRichTextEditor } from '@toptal/picasso';
|
|
13
13
|
import React, { useCallback, useState } from 'react';
|
|
14
|
-
import
|
|
14
|
+
import InputField from '../InputField';
|
|
15
15
|
export const RichTextEditor = (_a) => {
|
|
16
16
|
var { onChange, defaultValue } = _a, rest = __rest(_a, ["onChange", "defaultValue"]);
|
|
17
17
|
const [value, setValue] = useState('');
|
|
@@ -21,7 +21,7 @@ export const RichTextEditor = (_a) => {
|
|
|
21
21
|
setValue(newVal);
|
|
22
22
|
onChange === null || onChange === void 0 ? void 0 : onChange(newVal);
|
|
23
23
|
}, [onChange, setValue]);
|
|
24
|
-
return (React.createElement(
|
|
24
|
+
return (React.createElement(InputField, Object.assign({ value: value, onChange: handleOnChange }, rest), (inputProps) => (React.createElement(PicassoRichTextEditor, Object.assign({ defaultValue: defaultValue }, inputProps)))));
|
|
25
25
|
};
|
|
26
26
|
export default RichTextEditor;
|
|
27
27
|
//# sourceMappingURL=RichTextEditor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichTextEditor.js","sourceRoot":"","sources":["../../src/RichTextEditor/RichTextEditor.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAEL,cAAc,IAAI,qBAAqB,EAExC,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"RichTextEditor.js","sourceRoot":"","sources":["../../src/RichTextEditor/RichTextEditor.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAEL,cAAc,IAAI,qBAAqB,EAExC,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAIpD,OAAO,UAAU,MAAM,eAAe,CAAA;AActC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAA0C,EAAE,EAAE;QAA9C,EAAE,QAAQ,EAAE,YAAY,OAAkB,EAAb,IAAI,cAAjC,4BAAmC,CAAF;IAC9D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAA;IAEtC,+EAA+E;IAC/E,+CAA+C;IAC/C,MAAM,cAAc,GAAG,WAAW,CAChC,CAAC,MAAc,EAAE,EAAE;QACjB,QAAQ,CAAC,MAAM,CAAC,CAAA;QAChB,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,MAAM,CAAC,CAAA;IACpB,CAAC,EACD,CAAC,QAAQ,EAAE,QAAQ,CAAC,CACrB,CAAA;IAED,OAAO,CACL,oBAAC,UAAU,kBACT,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,cAAc,IACpB,IAAI,GAEP,CAAC,UAA+B,EAAE,EAAE,CAAC,CACpC,oBAAC,qBAAqB,kBAAC,YAAY,EAAE,YAAY,IAAM,UAAU,EAAI,CACtE,CACU,CACd,CAAA;AACH,CAAC,CAAA;AAED,eAAe,cAAc,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toptal/picasso-forms",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "42.1.0",
|
|
4
4
|
"description": "Picasso form components",
|
|
5
5
|
"author": "Toptal",
|
|
6
6
|
"homepage": "https://github.com/toptal/picasso/tree/master/packages/picasso-forms#readme",
|
|
@@ -23,10 +23,11 @@
|
|
|
23
23
|
"url": "https://github.com/toptal/picasso/issues"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@toptal/picasso": "^
|
|
27
|
-
"@toptal/picasso-shared": "^
|
|
28
|
-
"react": "
|
|
29
|
-
"
|
|
26
|
+
"@toptal/picasso": "^22.0.0",
|
|
27
|
+
"@toptal/picasso-shared": "^8.0.0",
|
|
28
|
+
"react": ">=16.12.0 && < 19.0.0",
|
|
29
|
+
"typescript": "4.6.x",
|
|
30
|
+
"react-dom": ">=16.12.0 && < 19.0.0"
|
|
30
31
|
},
|
|
31
32
|
"dependencies": {
|
|
32
33
|
"classnames": "^2.3.1",
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
"react-final-form-listeners": "^1.0.3"
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
40
|
-
"@testing-library/react-hooks": "^
|
|
41
|
+
"@testing-library/react-hooks": "^7.0.2",
|
|
41
42
|
"@types/classnames": "^2.3.1",
|
|
42
43
|
"@types/react-final-form-listeners": "^1.0.0",
|
|
43
44
|
"storybook-readme": "^5.0.9",
|