File size: 1,571 Bytes
9cd6ddb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import { ForwardRefExoticComponent, RefAttributes } from "react";

export interface EditorType {
  icons: IconType[];
  shape: {
    component?: string | null;
    colour: string;
    stringColor?: string;
    image?: {
      urls?: string[];
      enabled?: boolean;
    };
    gradient: {
      enabled: boolean;
      colours?: any[];
      angle: any;
      type?: string;
    };
    position: {
      angle?: number;
      scale?: number;
    };
    background_image?: string;
    radius?: number;
    border?: {
      width?: number;
      colour?: string;
    };
    transparency: boolean;
  };
}

export interface IconType {
  component?: string | null;
  colour?: string;
  gradient?: {
    enabled?: boolean;
    colours?: any[];
    angle?: any;
    type?: string;
  };
  stringColor?: string;
  image?: string;
  background_image?: string;
  border?: {
    width?: number;
    colour?: string;
  };
  shadow?: {
    enabled?: boolean;
    colour?: string;
    position?: {
      x?: number;
      y?: number;
      blur?: number;
    };
  };
  custom_text?: {
    text?: string;
    enabled?: boolean;
    size?: number;
  };
  transparency?: number;
  position?: {
    x?: number;
    y?: number;
    scale?: number;
    angle?: number;
    xPath?: number;
    yPath?: number;
  };
}

export interface IconItem {
  tags: string[];
  category?: string;
  date?: number;
  name: string;
  defaultColor?: string;
  component:
    | React.Component
    | ForwardRefExoticComponent<
        Pick<any, string | number | symbol> & RefAttributes<unknown>
      >;
}