@omnsight/osint-entity-components 0.2.1 → 0.2.3
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/package.json
CHANGED
|
@@ -8,12 +8,14 @@ interface EventIconSelectorProps {
|
|
|
8
8
|
data: Event;
|
|
9
9
|
value?: string | null;
|
|
10
10
|
onChange: (value: string | null) => void;
|
|
11
|
+
error?: string;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export const EventIconSelector: React.FC<EventIconSelectorProps> = ({
|
|
14
15
|
data,
|
|
15
16
|
value,
|
|
16
17
|
onChange,
|
|
18
|
+
error,
|
|
17
19
|
}) => {
|
|
18
20
|
const { t } = useTranslation();
|
|
19
21
|
|
|
@@ -29,7 +31,7 @@ export const EventIconSelector: React.FC<EventIconSelectorProps> = ({
|
|
|
29
31
|
value={value ?? ""}
|
|
30
32
|
onChange={onChange}
|
|
31
33
|
data={translatedOptions}
|
|
32
|
-
|
|
34
|
+
error={error}
|
|
33
35
|
/>
|
|
34
36
|
);
|
|
35
37
|
};
|
|
@@ -37,11 +39,13 @@ export const EventIconSelector: React.FC<EventIconSelectorProps> = ({
|
|
|
37
39
|
interface EventColorSelectorProps {
|
|
38
40
|
value?: string | null;
|
|
39
41
|
onChange: (value: string | null) => void;
|
|
42
|
+
error?: string;
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
export const EventColorSelector: React.FC<EventColorSelectorProps> = ({
|
|
43
46
|
value,
|
|
44
47
|
onChange,
|
|
48
|
+
error,
|
|
45
49
|
}) => {
|
|
46
50
|
const colors = [
|
|
47
51
|
"#0089ff",
|
|
@@ -59,7 +63,7 @@ export const EventColorSelector: React.FC<EventColorSelectorProps> = ({
|
|
|
59
63
|
value={value ?? ""}
|
|
60
64
|
onChange={onChange}
|
|
61
65
|
swatches={colors}
|
|
62
|
-
|
|
66
|
+
error={error}
|
|
63
67
|
/>
|
|
64
68
|
);
|
|
65
69
|
};
|
|
@@ -8,11 +8,12 @@ interface OrganizationIconSelectorProps {
|
|
|
8
8
|
data: Organization;
|
|
9
9
|
value?: string | null;
|
|
10
10
|
onChange: (value: string | null) => void;
|
|
11
|
+
error?: string;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export const OrganizationIconSelector: React.FC<
|
|
14
15
|
OrganizationIconSelectorProps
|
|
15
|
-
> = ({ data, value, onChange }) => {
|
|
16
|
+
> = ({ data, value, onChange, error }) => {
|
|
16
17
|
const { t } = useTranslation();
|
|
17
18
|
|
|
18
19
|
const translatedOptions = ICON_OPTIONS.map((option) => ({
|
|
@@ -27,7 +28,7 @@ export const OrganizationIconSelector: React.FC<
|
|
|
27
28
|
value={value ?? ""}
|
|
28
29
|
onChange={onChange}
|
|
29
30
|
data={translatedOptions}
|
|
30
|
-
|
|
31
|
+
error={error}
|
|
31
32
|
/>
|
|
32
33
|
);
|
|
33
34
|
};
|
|
@@ -35,11 +36,12 @@ export const OrganizationIconSelector: React.FC<
|
|
|
35
36
|
interface OrganizationColorSelectorProps {
|
|
36
37
|
value?: string | null;
|
|
37
38
|
onChange: (value: string | null) => void;
|
|
39
|
+
error?: string;
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
export const OrganizationColorSelector: React.FC<
|
|
41
43
|
OrganizationColorSelectorProps
|
|
42
|
-
> = ({ value, onChange }) => {
|
|
44
|
+
> = ({ value, onChange, error }) => {
|
|
43
45
|
const colors = [
|
|
44
46
|
"#0089ff",
|
|
45
47
|
"#ff0000",
|
|
@@ -56,7 +58,7 @@ export const OrganizationColorSelector: React.FC<
|
|
|
56
58
|
value={value ?? ""}
|
|
57
59
|
onChange={onChange}
|
|
58
60
|
swatches={colors}
|
|
59
|
-
|
|
61
|
+
error={error}
|
|
60
62
|
/>
|
|
61
63
|
);
|
|
62
64
|
};
|
|
@@ -8,12 +8,14 @@ interface PersonIconSelectorProps {
|
|
|
8
8
|
data: Person;
|
|
9
9
|
value?: string | null;
|
|
10
10
|
onChange: (value: string | null) => void;
|
|
11
|
+
error?: string;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export const PersonIconSelector: React.FC<PersonIconSelectorProps> = ({
|
|
14
15
|
data,
|
|
15
16
|
value,
|
|
16
17
|
onChange,
|
|
18
|
+
error,
|
|
17
19
|
}) => {
|
|
18
20
|
const { t } = useTranslation();
|
|
19
21
|
|
|
@@ -29,7 +31,7 @@ export const PersonIconSelector: React.FC<PersonIconSelectorProps> = ({
|
|
|
29
31
|
value={value ?? ""}
|
|
30
32
|
onChange={onChange}
|
|
31
33
|
data={translatedOptions}
|
|
32
|
-
|
|
34
|
+
error={error}
|
|
33
35
|
/>
|
|
34
36
|
);
|
|
35
37
|
};
|
|
@@ -37,11 +39,13 @@ export const PersonIconSelector: React.FC<PersonIconSelectorProps> = ({
|
|
|
37
39
|
interface PersonColorSelectorProps {
|
|
38
40
|
value?: string | null;
|
|
39
41
|
onChange: (value: string | null) => void;
|
|
42
|
+
error?: string;
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
export const PersonColorSelector: React.FC<PersonColorSelectorProps> = ({
|
|
43
46
|
value,
|
|
44
47
|
onChange,
|
|
48
|
+
error,
|
|
45
49
|
}) => {
|
|
46
50
|
const colors = [
|
|
47
51
|
"#0089ff",
|
|
@@ -59,7 +63,7 @@ export const PersonColorSelector: React.FC<PersonColorSelectorProps> = ({
|
|
|
59
63
|
value={value ?? ""}
|
|
60
64
|
onChange={onChange}
|
|
61
65
|
swatches={colors}
|
|
62
|
-
|
|
66
|
+
error={error}
|
|
63
67
|
/>
|
|
64
68
|
);
|
|
65
69
|
};
|
|
@@ -8,12 +8,14 @@ interface SourceIconSelectorProps {
|
|
|
8
8
|
data: Source;
|
|
9
9
|
value?: string | null;
|
|
10
10
|
onChange: (value: string | null) => void;
|
|
11
|
+
error?: string;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export const SourceIconSelector: React.FC<SourceIconSelectorProps> = ({
|
|
14
15
|
data,
|
|
15
16
|
value,
|
|
16
17
|
onChange,
|
|
18
|
+
error,
|
|
17
19
|
}) => {
|
|
18
20
|
const { t } = useTranslation();
|
|
19
21
|
|
|
@@ -29,7 +31,7 @@ export const SourceIconSelector: React.FC<SourceIconSelectorProps> = ({
|
|
|
29
31
|
value={value ?? ""}
|
|
30
32
|
onChange={onChange}
|
|
31
33
|
data={translatedOptions}
|
|
32
|
-
|
|
34
|
+
error={error}
|
|
33
35
|
/>
|
|
34
36
|
);
|
|
35
37
|
};
|
|
@@ -37,11 +39,13 @@ export const SourceIconSelector: React.FC<SourceIconSelectorProps> = ({
|
|
|
37
39
|
interface SourceColorSelectorProps {
|
|
38
40
|
value?: string | null;
|
|
39
41
|
onChange: (value: string | null) => void;
|
|
42
|
+
error?: string;
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
export const SourceColorSelector: React.FC<SourceColorSelectorProps> = ({
|
|
43
46
|
value,
|
|
44
47
|
onChange,
|
|
48
|
+
error,
|
|
45
49
|
}) => {
|
|
46
50
|
const colors = [
|
|
47
51
|
"#ababab",
|
|
@@ -59,7 +63,7 @@ export const SourceColorSelector: React.FC<SourceColorSelectorProps> = ({
|
|
|
59
63
|
value={value ?? ""}
|
|
60
64
|
onChange={onChange}
|
|
61
65
|
swatches={colors}
|
|
62
|
-
|
|
66
|
+
error={error}
|
|
63
67
|
/>
|
|
64
68
|
);
|
|
65
69
|
};
|
|
@@ -8,12 +8,14 @@ interface WebsiteIconSelectorProps {
|
|
|
8
8
|
data: Website;
|
|
9
9
|
value?: string | null;
|
|
10
10
|
onChange: (value: string | null) => void;
|
|
11
|
+
error?: string;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export const WebsiteIconSelector: React.FC<WebsiteIconSelectorProps> = ({
|
|
14
15
|
data,
|
|
15
16
|
value,
|
|
16
17
|
onChange,
|
|
18
|
+
error,
|
|
17
19
|
}) => {
|
|
18
20
|
const { t } = useTranslation();
|
|
19
21
|
|
|
@@ -29,7 +31,7 @@ export const WebsiteIconSelector: React.FC<WebsiteIconSelectorProps> = ({
|
|
|
29
31
|
value={value ?? ""}
|
|
30
32
|
onChange={onChange}
|
|
31
33
|
data={translatedOptions}
|
|
32
|
-
|
|
34
|
+
error={error}
|
|
33
35
|
/>
|
|
34
36
|
);
|
|
35
37
|
};
|
|
@@ -37,11 +39,13 @@ export const WebsiteIconSelector: React.FC<WebsiteIconSelectorProps> = ({
|
|
|
37
39
|
interface WebsiteColorSelectorProps {
|
|
38
40
|
value?: string | null;
|
|
39
41
|
onChange: (value: string | null) => void;
|
|
42
|
+
error?: string;
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
export const WebsiteColorSelector: React.FC<WebsiteColorSelectorProps> = ({
|
|
43
46
|
value,
|
|
44
47
|
onChange,
|
|
48
|
+
error,
|
|
45
49
|
}) => {
|
|
46
50
|
const colors = [
|
|
47
51
|
"#0089ff",
|
|
@@ -59,7 +63,7 @@ export const WebsiteColorSelector: React.FC<WebsiteColorSelectorProps> = ({
|
|
|
59
63
|
value={value ?? ""}
|
|
60
64
|
onChange={onChange}
|
|
61
65
|
swatches={colors}
|
|
62
|
-
|
|
66
|
+
error={error}
|
|
63
67
|
/>
|
|
64
68
|
);
|
|
65
69
|
};
|