@ynput/ayon-react-components 0.3.7 → 0.3.8
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 +3 -3
- package/dist/Dropdown/Dropdown.d.ts +4 -1
- package/dist/Dropdown/TagsValueTemplate.d.ts +1 -1
- package/dist/Dropdown/index.d.ts +1 -0
- package/dist/TagsSelect/TagsSelect.d.ts +18 -0
- package/dist/TagsSelect/TagsSelectValueTemplate.d.ts +9 -0
- package/dist/TagsSelect/index.d.ts +3 -0
- package/dist/TagsSelect/tags.d.ts +103 -0
- package/dist/ayon-react-components.es.js +3165 -3032
- package/dist/ayon-react-components.umd.js +181 -138
- package/dist/index.d.ts +1 -0
- package/package.json +1 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { DropdownProps } from './Dropdown';
|
|
3
3
|
export interface DefaultValueTemplateProps extends Pick<DropdownProps, 'value' | 'isMultiple' | 'dropIcon' | 'onClear' | 'placeholder'> {
|
|
4
|
-
displayIcon
|
|
4
|
+
displayIcon?: string;
|
|
5
5
|
style?: React.CSSProperties;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
valueStyle?: React.CSSProperties;
|
|
8
8
|
isOpen?: boolean;
|
|
9
|
+
className?: string;
|
|
9
10
|
}
|
|
10
|
-
declare const DefaultValueTemplate: FC<DefaultValueTemplateProps>;
|
|
11
|
-
export default DefaultValueTemplate;
|
|
11
|
+
export declare const DefaultValueTemplate: FC<DefaultValueTemplateProps>;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { IconType } from '../Icon';
|
|
3
|
+
export declare const DefaultItemStyled: import("styled-components").StyledComponent<"span", any, {
|
|
4
|
+
isSelected: boolean;
|
|
5
|
+
}, never>;
|
|
3
6
|
export interface DropdownProps {
|
|
4
7
|
message?: string;
|
|
5
8
|
itemStyle?: CSSProperties;
|
|
@@ -12,7 +15,7 @@ export interface DropdownProps {
|
|
|
12
15
|
dataKey?: string;
|
|
13
16
|
labelKey?: string;
|
|
14
17
|
options: Array<any>;
|
|
15
|
-
itemTemplate?: (option: any, isActive: boolean, isSelected: boolean) => React.ReactNode;
|
|
18
|
+
itemTemplate?: (option: any, isActive: boolean, isSelected: boolean, index: number) => React.ReactNode;
|
|
16
19
|
align?: 'left' | 'right';
|
|
17
20
|
multiSelect?: boolean;
|
|
18
21
|
search?: boolean;
|
package/dist/Dropdown/index.d.ts
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type TagsOrderType, type TagsType } from './tags';
|
|
2
|
+
export interface TagsSelectProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
3
|
+
value: string[];
|
|
4
|
+
options: {
|
|
5
|
+
name: string;
|
|
6
|
+
fullName?: string;
|
|
7
|
+
avatarUrl?: string;
|
|
8
|
+
}[];
|
|
9
|
+
onChange?: (names: string[]) => void;
|
|
10
|
+
widthExpand?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
isMultiple?: boolean;
|
|
13
|
+
tags: TagsType;
|
|
14
|
+
tagsOrder?: TagsOrderType;
|
|
15
|
+
editor?: boolean;
|
|
16
|
+
align?: 'left' | 'right';
|
|
17
|
+
}
|
|
18
|
+
export declare const TagsSelect: import("react").ForwardRefExoticComponent<TagsSelectProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { DefaultValueTemplateProps } from '../Dropdown';
|
|
3
|
+
import { type TagsType } from './tags';
|
|
4
|
+
interface TagsSelectValueTemplateProps extends Omit<DefaultValueTemplateProps, 'children'> {
|
|
5
|
+
tags: TagsType;
|
|
6
|
+
editor?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const TagsSelectValueTemplate: FC<TagsSelectValueTemplateProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
export type TagType = {
|
|
2
|
+
name: string;
|
|
3
|
+
color: string;
|
|
4
|
+
};
|
|
5
|
+
export type TagsType = {
|
|
6
|
+
[key: string]: TagType;
|
|
7
|
+
};
|
|
8
|
+
export type TagsOrderType = string[];
|
|
9
|
+
export declare const tags: {
|
|
10
|
+
beauty: {
|
|
11
|
+
name: string;
|
|
12
|
+
color: string;
|
|
13
|
+
};
|
|
14
|
+
cute: {
|
|
15
|
+
name: string;
|
|
16
|
+
color: string;
|
|
17
|
+
};
|
|
18
|
+
funny: {
|
|
19
|
+
name: string;
|
|
20
|
+
color: string;
|
|
21
|
+
};
|
|
22
|
+
happy: {
|
|
23
|
+
name: string;
|
|
24
|
+
color: string;
|
|
25
|
+
};
|
|
26
|
+
sad: {
|
|
27
|
+
name: string;
|
|
28
|
+
color: string;
|
|
29
|
+
};
|
|
30
|
+
scary: {
|
|
31
|
+
name: string;
|
|
32
|
+
color: string;
|
|
33
|
+
};
|
|
34
|
+
sexy: {
|
|
35
|
+
name: string;
|
|
36
|
+
color: string;
|
|
37
|
+
};
|
|
38
|
+
cuddly: {
|
|
39
|
+
name: string;
|
|
40
|
+
color: string;
|
|
41
|
+
};
|
|
42
|
+
fluffy: {
|
|
43
|
+
name: string;
|
|
44
|
+
color: string;
|
|
45
|
+
};
|
|
46
|
+
soft: {
|
|
47
|
+
name: string;
|
|
48
|
+
color: string;
|
|
49
|
+
};
|
|
50
|
+
warm: {
|
|
51
|
+
name: string;
|
|
52
|
+
color: string;
|
|
53
|
+
};
|
|
54
|
+
fuzzy: {
|
|
55
|
+
name: string;
|
|
56
|
+
color: string;
|
|
57
|
+
};
|
|
58
|
+
hairy: {
|
|
59
|
+
name: string;
|
|
60
|
+
color: string;
|
|
61
|
+
};
|
|
62
|
+
furry: {
|
|
63
|
+
name: string;
|
|
64
|
+
color: string;
|
|
65
|
+
};
|
|
66
|
+
spiky: {
|
|
67
|
+
name: string;
|
|
68
|
+
color: string;
|
|
69
|
+
};
|
|
70
|
+
sharp: {
|
|
71
|
+
name: string;
|
|
72
|
+
color: string;
|
|
73
|
+
};
|
|
74
|
+
pointy: {
|
|
75
|
+
name: string;
|
|
76
|
+
color: string;
|
|
77
|
+
};
|
|
78
|
+
dangerous: {
|
|
79
|
+
name: string;
|
|
80
|
+
color: string;
|
|
81
|
+
};
|
|
82
|
+
adorable: {
|
|
83
|
+
name: string;
|
|
84
|
+
color: string;
|
|
85
|
+
};
|
|
86
|
+
flabadob: {
|
|
87
|
+
name: string;
|
|
88
|
+
color: string;
|
|
89
|
+
};
|
|
90
|
+
blup: {
|
|
91
|
+
name: string;
|
|
92
|
+
color: string;
|
|
93
|
+
};
|
|
94
|
+
blip: {
|
|
95
|
+
name: string;
|
|
96
|
+
color: string;
|
|
97
|
+
};
|
|
98
|
+
boo: {
|
|
99
|
+
name: string;
|
|
100
|
+
color: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
export declare const tagsOrder: string[];
|