@ynput/ayon-react-components 0.3.3 → 0.3.5
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/Dropdown/DefaultValueTemplate.d.ts +10 -0
- package/dist/Dropdown/Dropdown.d.ts +3 -1
- package/dist/Dropdown/TagsValueTemplate.d.ts +4 -0
- package/dist/Layout/FormRow/FormRow.d.ts +2 -2
- package/dist/ayon-react-components.es.js +5670 -5585
- package/dist/ayon-react-components.umd.js +137 -131
- package/package.json +13 -13
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { DropdownProps } from './Dropdown';
|
|
3
|
+
export interface DefaultValueTemplateProps extends Pick<DropdownProps, 'value' | 'isMultiple' | 'dropIcon' | 'onClear' | 'placeholder'> {
|
|
4
|
+
displayIcon: string;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
valueStyle?: React.CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
declare const DefaultValueTemplate: FC<DefaultValueTemplateProps>;
|
|
10
|
+
export default DefaultValueTemplate;
|
|
@@ -8,7 +8,7 @@ export interface DropdownProps {
|
|
|
8
8
|
onOpen?: () => void;
|
|
9
9
|
onClose?: () => void;
|
|
10
10
|
value: Array<string | number>;
|
|
11
|
-
valueTemplate?: (value?: (string | number)[]) => React.ReactNode;
|
|
11
|
+
valueTemplate?: ((value?: (string | number)[]) => React.ReactNode) | 'tags';
|
|
12
12
|
dataKey?: string;
|
|
13
13
|
dataLabel?: string;
|
|
14
14
|
options: Array<any>;
|
|
@@ -30,5 +30,7 @@ export interface DropdownProps {
|
|
|
30
30
|
searchFields?: string[];
|
|
31
31
|
minSelected?: number;
|
|
32
32
|
dropIcon?: IconType;
|
|
33
|
+
onClear?: () => void;
|
|
34
|
+
editable?: boolean;
|
|
33
35
|
}
|
|
34
36
|
export declare const Dropdown: import("react").ForwardRefExoticComponent<DropdownProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
export interface FormRowProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
label: string;
|
|
4
|
-
fieldStyle
|
|
5
|
-
labelStyle
|
|
4
|
+
fieldStyle?: React.CSSProperties;
|
|
5
|
+
labelStyle?: React.CSSProperties;
|
|
6
6
|
}
|
|
7
7
|
export declare const FormRow: import("react").ForwardRefExoticComponent<FormRowProps & import("react").RefAttributes<HTMLDivElement>>;
|