@toptal/picasso-forms 61.0.2 → 61.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.
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { TextLabelProps } from '@toptal/picasso-shared';
|
|
3
3
|
export declare type Props = {
|
|
4
4
|
name?: string;
|
|
5
|
-
label?:
|
|
5
|
+
label?: React.ReactNode;
|
|
6
6
|
required?: boolean;
|
|
7
7
|
} & TextLabelProps;
|
|
8
8
|
declare const FieldLabel: {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { Props as FieldProps } from '../Field';
|
|
3
3
|
import type { ValueType, IFormComponentProps } from '../FieldBase';
|
|
4
|
-
export declare type Props<TWrappedComponentProps, TInputValue> =
|
|
5
|
-
label?: string;
|
|
6
|
-
};
|
|
4
|
+
export declare type Props<TWrappedComponentProps, TInputValue> = FieldProps<TWrappedComponentProps, TInputValue>;
|
|
7
5
|
declare const FieldWrapper: {
|
|
8
6
|
<TWrappedComponentProps extends IFormComponentProps, TInputValue extends ValueType = TWrappedComponentProps["value"]>(props: Props<TWrappedComponentProps, TInputValue>): JSX.Element;
|
|
9
7
|
defaultProps: {};
|
package/package.json
CHANGED