PluginProbe
Gutenify – Visual Site Builder Blocks & Starter Templates / 0.0.1
Gutenify – Visual Site Builder Blocks & Starter Templates v0.0.1
1.9.0 1.8.0 1.7.0 1.6.6 1.6.5 1.6.4 trunk 0.0.1 0.0.2 0.0.3 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 All 74 releases
gutenify / src / components / blocks / count-down / attributes.js

attributes.js in Gutenify – Visual Site Builder Blocks & Starter Templates 0.0.1, at src/components/blocks/count-down/attributes.js

223 lines 5.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 const attributes = {
2 blockClientId: {
3 type: 'string'
4 },
5 dateTime: {
6 type: 'string',
7 default: new Date()
8 },
9 showDays: {
10 type: 'boolean',
11 default: true
12 },
13 showHour: {
14 type: 'boolean',
15 default: true
16 },
17 showMinute: {
18 type: 'boolean',
19 default: true
20 },
21 showSecond: {
22 type: 'boolean',
23 default: true
24 },
25 showLabel: {
26 type: 'boolean',
27 default: true
28 },
29 customLabel: {
30 type: 'boolean',
31 default: false
32 },
33 customLabelDays: {
34 type: 'string',
35 default: 'Days',
36 },
37 customLabelHours: {
38 type: 'string',
39 default: 'Hours',
40 },
41 customLabelMinutes: {
42 type: 'string',
43 default: 'Minutes',
44 },
45 customLabelSeconds: {
46 type: 'string',
47 default: 'Seconds',
48 },
49 expireActions: {
50 type: 'array',
51 default: []
52 },
53 expireMessage: {
54 type: 'string',
55 },
56 expireURL: {
57 type: 'string',
58 },
59 // containerWidth: {
60 // type: 'number'
61 // },
62 containerWidth: {
63 type: 'object',
64 default: {
65 desktop: {
66 value: '',
67 unit: '%'
68 },
69 tablet: {
70 value: '',
71 unit: '%'
72 },
73 mobile: {
74 value: '',
75 unit: '%'
76 }
77 }
78 },
79 containerWidthUnit: {
80 type: 'string'
81 },
82 counterPosition: {
83 type: 'string'
84 },
85 borderAttrs: {
86 type: 'object',
87 default: {
88 color: '#297cba',
89 width: 1
90 }
91 },
92 backgroundAttrs: {
93 type: 'object',
94 default:{
95 color: '#297cba',
96 }
97 },
98 boxSpacing:{
99 type:'object',
100 default:{
101 desktop: {
102 value: 5
103 },
104 tablet: {
105 value: ''
106 },
107 mobile: {
108 value: ''
109 }
110 }
111 },
112 digitAttrs: {
113 type: 'object',
114 default: {
115 color: '#fff',
116 typographyChange: false,
117 typography: {
118 size: {
119 desktop: {
120 value: '15',
121 unit: 'px'
122 },
123 tablet: {
124 value: '',
125 unit: 'px'
126 },
127 mobile: {
128 value: '',
129 unit: 'px'
130 }
131 },
132 weight: '',
133 transform: '',
134 style: '',
135 decoration: '',
136 lineHeight: {
137 desktop: {
138 value: '',
139 unit: 'px'
140 },
141 tablet: {
142 value: '',
143 unit: 'px'
144 },
145 mobile: {
146 value: '',
147 unit: 'px'
148 }
149 },
150 letterSpacing: {
151 desktop: {
152 value: '',
153 unit: 'px'
154 },
155 tablet: {
156 value: '',
157 unit: 'px'
158 },
159 mobile: {
160 value: '',
161 unit: 'px'
162 }
163 }
164 }
165 }
166 },
167 titleAttrs: {
168 type: 'object',
169 default:{
170 color: '#fff',
171 typographyChange: false,
172 typography: {
173 size: {
174 desktop: {
175 value: '15',
176 unit: 'px'
177 },
178 tablet: {
179 value: '',
180 unit: 'px'
181 },
182 mobile: {
183 value: '',
184 unit: 'px'
185 }
186 },
187 weight: '',
188 transform: '',
189 style: '',
190 decoration: '',
191 lineHeight: {
192 desktop: {
193 value: '',
194 unit: 'px'
195 },
196 tablet: {
197 value: '',
198 unit: 'px'
199 },
200 mobile: {
201 value: '',
202 unit: 'px'
203 }
204 },
205 letterSpacing: {
206 desktop: {
207 value: '',
208 unit: 'px'
209 },
210 tablet: {
211 value: '',
212 unit: 'px'
213 },
214 mobile: {
215 value: '',
216 unit: 'px'
217 }
218 }
219 }
220 }
221 }
222 };
223 export default attributes;