-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetting.json
More file actions
143 lines (142 loc) · 4.16 KB
/
setting.json
File metadata and controls
143 lines (142 loc) · 4.16 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
{
"button": {
"props": {
"children": "React.ReactNode",
"variant?": "'outlined' | 'success' | '@primary'",
"onClick": "() => void",
"size?": "'@small' | 'medium' | 'large'",
"color?": "'@primary' | 'secondary-darkBlue' | 'warning' | 'error' | 'success' | 'info'",
"disabled?": "boolean",
"icon?": "React.ReactNode",
"mom?": "{name: string}"
},
"state": {
"counter": "setCounter(0)"
},
"body": {
"button": {
"className": {
"default": "w-fit py-2 px-3 bg-neutral-500 hover:bg-neutral-600 rounded-lg flex items-center",
"size": {
"small": "h-9",
"medium": "h-11",
"large": "h-[52px]"
},
"variant": {
"outlined": "border border-{color}-200 text-{color}-600 bg-white hover:bg-{color}-100",
"primary": "bg-{color}-500 hover:bg-{color}-600 active:bg-{color}-700 text-white"
},
"{mom?.name === 'gg'}": "opacity-50 pointer-events-none bg-{color}-200",
"{counter === 2}": "opacity-50 pointer-events-none bg-{color}-200",
"{disabled}": "opacity-50 pointer-events-none bg-{color}-200"
},
"onClick": "{onClick}",
"children": {
"span": {
"body": {
"className": {
"default": "w-full",
"primary": "bg-{color}-500 hover:bg-{color}-600 active:bg-{color}-700 text-white"
},
"children": {
"div": {
"body": {
"className": "flex",
"children": {
"span": {
"body": {
"children": "{mom?.name}"
}
},
"i": {
"body": {
"className": "w-5 h-5",
"children": {
"div": {
"body": {
"children": "{icon && icon}"
}
}
}
}
}
}
}
}
}
}
}
}
}
}
},
"chip": {
"props": {
"children": "React.ReactNode",
"variant?": "'@outlined' | 'success' | 'primary'",
"onClick?": "() => void",
"size?": "'@small' | 'medium' | 'large'",
"color?": "'@primary' | 'secondary-darkBlue' | 'warning' | 'error' | 'success' | 'info'"
},
"body": {
"button": {
"children": "{children}",
"className": {
"default": "rounded-[20px] w-auto",
"size": {
"small": "h-6 gap-x-[2px] px-2 text-xs",
"medium": "h-8 gap-x-1 px-[10px] text-sm",
"large": "h-9 gap-x-1 px-3 text-base"
},
"variant": {
"outlined": "border border-{color}-200 text-{color}-600 bg-white hover:bg-{color}-100",
"primary": "bg-{color}-500 hover:bg-{color}-600 active:bg-{color}-700 text-{color}-600 hover:text-{color}-200"
}
},
"onClick": "{onClick}"
}
}
},
"card": {
"props": {
"children": "React.ReactNode",
"variant": "'outlined' | 'success'",
"onClick": "() => void"
},
"body": {
"button": {
"children": "{children}",
"className": "w-4 h-5",
"onClick": "{onClick}"
}
}
},
"avatar": {
"props": {
"size?": "'@small' | 'medium' | 'large'",
"image": "string",
"alt?": "string"
},
"body": {
"div": {
"className": {
"default": "rounded-full relative overflow-hidden aspect-square",
"size": {
"small": "h-8 w-8",
"medium": "w-11 h-11",
"large": "w-14 h-14"
}
},
"children": {
"img": {
"body": {
"src": "{image}",
"alt": "{alt}",
"className": "w-full h-full object-cover"
}
}
}
}
}
}
}