@zuzjs/ui 0.3.2 → 0.3.4
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/README.md +0 -0
- package/dist/hooks.js +89 -0
- package/dist/styles.css +37 -62
- package/dist/ui.js +665 -0
- package/jest.config.js +0 -0
- package/package.json +16 -18
- package/rollup.config.js +30 -47
- package/src/comps/box.tsx +24 -28
- package/src/comps/button.tsx +23 -47
- package/src/comps/crumb.tsx +9 -0
- package/src/comps/form.tsx +57 -88
- package/src/comps/heading.tsx +25 -31
- package/src/comps/icon.tsx +24 -36
- package/src/comps/input.tsx +24 -224
- package/src/comps/select.tsx +23 -63
- package/src/comps/spinner.tsx +23 -35
- package/src/comps/stylesheet.tsx +5 -0
- package/src/context/AppContext.tsx +2 -2
- package/src/context/AppProvider.tsx +68 -105
- package/src/context/createSlice.tsx +15 -39
- package/src/context/index.tsx +4 -5
- package/src/core/css.ts +1 -0
- package/src/core/index.tsx +241 -0
- package/src/core/styles.ts +378 -371
- package/src/hooks/index.tsx +2 -10
- package/src/hooks/useDispatch.tsx +36 -36
- package/src/hooks/useStore.tsx +24 -26
- package/src/hooks.tsx +8 -0
- package/src/scss/mixins.scss +2 -2
- package/src/scss/props.scss +91 -69
- package/src/scss/{style.scss → styles.scss} +102 -132
- package/src/ui.tsx +13 -0
- package/tsconfig.json +0 -0
- package/tsconfig.lib.json +0 -0
- package/tsconfig.spec.json +0 -0
- package/dist/index.js +0 -1868
- package/src/actions/addForm.tsx +0 -0
- package/src/actions/index.tsx +0 -29
- package/src/actions/redo.tsx +0 -1
- package/src/actions/reset.tsx +0 -1
- package/src/actions/undo.tsx +0 -1
- package/src/comps/app.tsx +0 -34
- package/src/comps/checkbox.tsx +0 -74
- package/src/comps/component.tsx +0 -32
- package/src/comps/contextmenu.tsx +0 -60
- package/src/comps/cover.tsx +0 -34
- package/src/comps/image.tsx +0 -34
- package/src/comps/masonry.tsx +0 -192
- package/src/comps/mediaplayer.tsx +0 -12
- package/src/comps/placeholder.tsx +0 -58
- package/src/comps/root.tsx +0 -32
- package/src/comps/spacer.tsx +0 -20
- package/src/comps/text.tsx +0 -27
- package/src/comps/toaster.tsx +0 -117
- package/src/comps/tweet.tsx +0 -48
- package/src/context/_AppProvider.tsx +0 -116
- package/src/context/combineReducers.tsx +0 -47
- package/src/context/combineState.tsx +0 -14
- package/src/context/reduceReducers.tsx +0 -6
- package/src/context/store/appbase.tsx +0 -19
- package/src/context/store/lang.tsx +0 -26
- package/src/context/store/theme.tsx +0 -54
- package/src/core/defaultTheme.ts +0 -90
- package/src/core/extractCurrentDesignState.tsx +0 -0
- package/src/core/index.ts +0 -431
- package/src/core/router.ts +0 -86
- package/src/hooks/useAppReducer.tsx +0 -40
- package/src/hooks/useChooseEffect.tsx +0 -6
- package/src/hooks/useContextMenu.tsx +0 -123
- package/src/hooks/useDevice.tsx +0 -164
- package/src/hooks/useImage.tsx +0 -84
- package/src/hooks/useLang.tsx +0 -9
- package/src/hooks/useMediaPlayer.tsx +0 -27
- package/src/hooks/useNavigator.tsx +0 -6
- package/src/hooks/useRender.tsx +0 -29
- package/src/hooks/useResizeObserver.tsx +0 -84
- package/src/hooks/useRouter.tsx +0 -45
- package/src/hooks/useSelector.tsx +0 -9
- package/src/hooks/useTheme.tsx +0 -9
- package/src/hooks/useToast.tsx +0 -11
- package/src/index.tsx +0 -35
- package/src/kit/Builder.tsx +0 -18
- package/src/kit/Component.tsx +0 -32
- package/src/kit/Header.tsx +0 -21
- package/src/redux/slices/app.js +0 -26
- package/src/redux/slices/form.js +0 -46
- package/src/redux/store.js +0 -33
- package/src/scss/constants.scss +0 -4
package/src/core/styles.ts
CHANGED
|
@@ -1,372 +1,379 @@
|
|
|
1
|
-
const cssProps : { [key: string] : any } = {
|
|
2
|
-
"ac": "align-content",
|
|
3
|
-
"alignContent": "align-content",
|
|
4
|
-
|
|
5
|
-
"aic": "aic",
|
|
6
|
-
"ais": "ais",
|
|
7
|
-
"aie": "aie",
|
|
8
|
-
"nous": "nous",
|
|
9
|
-
"nope": "nope",
|
|
10
|
-
"ai": "align-items",
|
|
11
|
-
"alignItems": "align-items",
|
|
12
|
-
|
|
13
|
-
"ass": "ass",
|
|
14
|
-
"asc": "asc",
|
|
15
|
-
"ase": "ase",
|
|
16
|
-
"alignSelf": "align-self",
|
|
17
|
-
"all": "all",
|
|
18
|
-
"animation": "animation",
|
|
19
|
-
"animationDelay": "animation-delay",
|
|
20
|
-
"animationDirection": "animation-direction",
|
|
21
|
-
"animationDuration": "animation-duration",
|
|
22
|
-
"animationFillMode": "animation-fill-mode",
|
|
23
|
-
"animationIterationCount": "animation-iteration-count",
|
|
24
|
-
"animationName": "animation-name",
|
|
25
|
-
"animationPlayState": "animation-play-state",
|
|
26
|
-
"animationTimingFunction": "animation-timing-function",
|
|
27
|
-
"backfaceVisibility": "backface-visibility",
|
|
28
|
-
"backgroundAttachment": "background-attachment",
|
|
29
|
-
"backgroundBlendMode": "background-blend-mode",
|
|
30
|
-
"backgroundClip": "background-clip",
|
|
31
|
-
|
|
32
|
-
"bg": "background",
|
|
33
|
-
"background": "background",
|
|
34
|
-
"bgc": "background-color",
|
|
35
|
-
"bgColor": "background-color",
|
|
36
|
-
"backgroundColor": "background-color",
|
|
37
|
-
|
|
38
|
-
"backgroundImage": "background-image",
|
|
39
|
-
"backgroundOrigin": "background-origin",
|
|
40
|
-
"backgroundPosition": "background-position",
|
|
41
|
-
"backgroundRepeat": "background-repeat",
|
|
42
|
-
"backgroundSize": "background-size",
|
|
43
|
-
"border": "border",
|
|
44
|
-
"borderBottom": "border-bottom",
|
|
45
|
-
"borderBottomColor": "border-bottom-color",
|
|
46
|
-
"borderBottomStyle": "border-bottom-style",
|
|
47
|
-
"borderBottomWidth": "border-bottom-width",
|
|
48
|
-
"borderCollapse": "border-collapse",
|
|
49
|
-
"borderColor": "border-color",
|
|
50
|
-
"borderImage": "border-image",
|
|
51
|
-
"borderImageOutset": "border-image-outset",
|
|
52
|
-
"borderImageRepeat": "border-image-repeat",
|
|
53
|
-
"borderImageSlice": "border-image-slice",
|
|
54
|
-
"borderImageSource": "border-image-source",
|
|
55
|
-
"borderImageWidth": "border-image-width",
|
|
56
|
-
"borderLeft": "border-left",
|
|
57
|
-
"borderLeftColor": "border-left-color",
|
|
58
|
-
"borderLeftStyle": "border-left-style",
|
|
59
|
-
"borderLeftWidth": "border-left-width",
|
|
60
|
-
|
|
61
|
-
//Radius
|
|
62
|
-
"r": "border-radius",
|
|
63
|
-
"br": "border-radius",
|
|
64
|
-
"borderRadius": "border-radius",
|
|
65
|
-
"brtl": "border-top-left-radius",
|
|
66
|
-
"borderTopLeftRadius": "border-top-left-radius",
|
|
67
|
-
"brtr": "border-top-right-radius",
|
|
68
|
-
"borderTopRightRadius": "border-top-right-radius",
|
|
69
|
-
"brbl": "border-bottom-left-radius",
|
|
70
|
-
"borderBottomLeftRadius": "border-bottom-left-radius",
|
|
71
|
-
"brbr": "border-bottom-right-radius",
|
|
72
|
-
"borderBottomRightRadius": "border-bottom-right-radius",
|
|
73
|
-
|
|
74
|
-
"borderRight": "border-right",
|
|
75
|
-
"borderRightColor": "border-right-color",
|
|
76
|
-
"borderRightStyle": "border-right-style",
|
|
77
|
-
"borderRightWidth": "border-right-width",
|
|
78
|
-
"borderSpacing": "border-spacing",
|
|
79
|
-
"borderStyle": "border-style",
|
|
80
|
-
"borderTop": "border-top",
|
|
81
|
-
"borderTopColor": "border-top-color",
|
|
82
|
-
|
|
83
|
-
"borderTopStyle": "border-top-style",
|
|
84
|
-
"borderTopWidth": "border-top-width",
|
|
85
|
-
"borderWidth": "border-width",
|
|
86
|
-
"bottom": "bottom",
|
|
87
|
-
"boxDecorationBreak": "box-decoration-break",
|
|
88
|
-
"boxShadow": "box-shadow",
|
|
89
|
-
"boxSizing": "box-sizing",
|
|
90
|
-
"captionSide": "caption-side",
|
|
91
|
-
"caretColor": "caret-color",
|
|
92
|
-
"@charset": "@charset",
|
|
93
|
-
"clear": "clear",
|
|
94
|
-
"clip": "clip",
|
|
95
|
-
"clipPath": "clip-path",
|
|
96
|
-
"color": "color",
|
|
97
|
-
"columnCount": "column-count",
|
|
98
|
-
"columnFill": "column-fill",
|
|
99
|
-
"columnGap": "column-gap",
|
|
100
|
-
"colGap": "column-gap",
|
|
101
|
-
"columnRule": "column-rule",
|
|
102
|
-
"columnRuleColor": "column-rule-color",
|
|
103
|
-
"columnRuleStyle": "column-rule-style",
|
|
104
|
-
"columnRuleWidth": "column-rule-width",
|
|
105
|
-
"columnSpan": "column-span",
|
|
106
|
-
"columnWidth": "column-width",
|
|
107
|
-
"colW": "column-width",
|
|
108
|
-
"columns": "columns",
|
|
109
|
-
"content": "content",
|
|
110
|
-
"counterIncrement": "counter-increment",
|
|
111
|
-
"counterReset": "counter-reset",
|
|
112
|
-
"cursor": "cursor",
|
|
113
|
-
"pointer": "pointer",
|
|
114
|
-
"direction": "direction",
|
|
115
|
-
"display": "display",
|
|
116
|
-
"emptyCells": "empty-cells",
|
|
117
|
-
"filter": "filter",
|
|
118
|
-
"flex": "flex",
|
|
119
|
-
"flexBasis": "flex-basis",
|
|
120
|
-
"dir": "flex-direction",
|
|
121
|
-
"flexDirection": "flex-direction",
|
|
122
|
-
"flexFlow": "flex-flow",
|
|
123
|
-
"flexGrow": "flex-grow",
|
|
124
|
-
"flexShrink": "flex-shrink",
|
|
125
|
-
"flexWrap": "flex-wrap",
|
|
126
|
-
"float": "float",
|
|
127
|
-
"font": "font",
|
|
128
|
-
"fontFamily": "font-family",
|
|
129
|
-
"fontKerning": "font-kerning",
|
|
130
|
-
"size": "font-size",
|
|
131
|
-
"fontSize": "font-size",
|
|
132
|
-
"fontSizeAdjust": "font-size-adjust",
|
|
133
|
-
"fontStretch": "font-stretch",
|
|
134
|
-
"fontStyle": "font-style",
|
|
135
|
-
"fontVariant": "font-variant",
|
|
136
|
-
"bold": "bold",
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
"
|
|
166
|
-
"
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
|
|
177
|
-
"
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
"
|
|
181
|
-
"
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
"
|
|
191
|
-
"
|
|
192
|
-
"
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
"
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
"
|
|
199
|
-
"
|
|
200
|
-
"
|
|
201
|
-
|
|
202
|
-
"
|
|
203
|
-
"
|
|
204
|
-
|
|
205
|
-
"
|
|
206
|
-
"
|
|
207
|
-
"
|
|
208
|
-
"
|
|
209
|
-
"
|
|
210
|
-
"
|
|
211
|
-
"
|
|
212
|
-
"
|
|
213
|
-
"
|
|
214
|
-
"
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
"
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
"
|
|
221
|
-
"
|
|
222
|
-
"
|
|
223
|
-
"
|
|
224
|
-
"
|
|
225
|
-
"
|
|
226
|
-
"
|
|
227
|
-
|
|
228
|
-
"
|
|
229
|
-
"
|
|
230
|
-
|
|
231
|
-
"
|
|
232
|
-
"
|
|
233
|
-
"
|
|
234
|
-
|
|
235
|
-
"
|
|
236
|
-
"
|
|
237
|
-
|
|
238
|
-
"
|
|
239
|
-
"
|
|
240
|
-
"
|
|
241
|
-
|
|
242
|
-
"
|
|
243
|
-
"
|
|
244
|
-
|
|
245
|
-
"
|
|
246
|
-
"
|
|
247
|
-
"
|
|
248
|
-
|
|
249
|
-
"
|
|
250
|
-
"
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
"
|
|
254
|
-
"
|
|
255
|
-
|
|
256
|
-
"
|
|
257
|
-
"
|
|
258
|
-
"
|
|
259
|
-
"
|
|
260
|
-
"
|
|
261
|
-
"
|
|
262
|
-
"
|
|
263
|
-
"
|
|
264
|
-
"
|
|
265
|
-
|
|
266
|
-
"
|
|
267
|
-
"
|
|
268
|
-
|
|
269
|
-
"
|
|
270
|
-
"
|
|
271
|
-
"
|
|
272
|
-
"
|
|
273
|
-
"
|
|
274
|
-
"
|
|
275
|
-
"
|
|
276
|
-
"
|
|
277
|
-
"
|
|
278
|
-
"
|
|
279
|
-
"
|
|
280
|
-
"
|
|
281
|
-
"
|
|
282
|
-
"
|
|
283
|
-
"
|
|
284
|
-
"
|
|
285
|
-
"
|
|
286
|
-
"
|
|
287
|
-
"
|
|
288
|
-
"
|
|
289
|
-
"
|
|
290
|
-
"
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
"
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
"
|
|
297
|
-
"
|
|
298
|
-
"
|
|
299
|
-
"
|
|
300
|
-
"
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
//
|
|
308
|
-
"
|
|
309
|
-
"
|
|
310
|
-
|
|
311
|
-
"
|
|
312
|
-
|
|
313
|
-
"
|
|
314
|
-
"
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
'
|
|
322
|
-
'
|
|
323
|
-
'
|
|
324
|
-
'
|
|
325
|
-
'
|
|
326
|
-
'
|
|
327
|
-
'
|
|
328
|
-
'
|
|
329
|
-
'
|
|
330
|
-
'
|
|
331
|
-
'
|
|
332
|
-
'
|
|
333
|
-
'
|
|
334
|
-
'
|
|
335
|
-
'
|
|
336
|
-
'
|
|
337
|
-
'
|
|
338
|
-
'
|
|
339
|
-
'
|
|
340
|
-
'
|
|
341
|
-
'
|
|
342
|
-
'
|
|
343
|
-
'
|
|
344
|
-
'
|
|
345
|
-
'
|
|
346
|
-
'
|
|
347
|
-
'
|
|
348
|
-
'
|
|
349
|
-
'
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
'
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
1
|
+
const cssProps : { [key: string] : any } = {
|
|
2
|
+
"ac": "align-content",
|
|
3
|
+
"alignContent": "align-content",
|
|
4
|
+
|
|
5
|
+
"aic": "aic",
|
|
6
|
+
"ais": "ais",
|
|
7
|
+
"aie": "aie",
|
|
8
|
+
"nous": "nous",
|
|
9
|
+
"nope": "nope",
|
|
10
|
+
"ai": "align-items",
|
|
11
|
+
"alignItems": "align-items",
|
|
12
|
+
|
|
13
|
+
"ass": "ass",
|
|
14
|
+
"asc": "asc",
|
|
15
|
+
"ase": "ase",
|
|
16
|
+
"alignSelf": "align-self",
|
|
17
|
+
"all": "all",
|
|
18
|
+
"animation": "animation",
|
|
19
|
+
"animationDelay": "animation-delay",
|
|
20
|
+
"animationDirection": "animation-direction",
|
|
21
|
+
"animationDuration": "animation-duration",
|
|
22
|
+
"animationFillMode": "animation-fill-mode",
|
|
23
|
+
"animationIterationCount": "animation-iteration-count",
|
|
24
|
+
"animationName": "animation-name",
|
|
25
|
+
"animationPlayState": "animation-play-state",
|
|
26
|
+
"animationTimingFunction": "animation-timing-function",
|
|
27
|
+
"backfaceVisibility": "backface-visibility",
|
|
28
|
+
"backgroundAttachment": "background-attachment",
|
|
29
|
+
"backgroundBlendMode": "background-blend-mode",
|
|
30
|
+
"backgroundClip": "background-clip",
|
|
31
|
+
|
|
32
|
+
"bg": "background",
|
|
33
|
+
"background": "background",
|
|
34
|
+
"bgc": "background-color",
|
|
35
|
+
"bgColor": "background-color",
|
|
36
|
+
"backgroundColor": "background-color",
|
|
37
|
+
|
|
38
|
+
"backgroundImage": "background-image",
|
|
39
|
+
"backgroundOrigin": "background-origin",
|
|
40
|
+
"backgroundPosition": "background-position",
|
|
41
|
+
"backgroundRepeat": "background-repeat",
|
|
42
|
+
"backgroundSize": "background-size",
|
|
43
|
+
"border": "border",
|
|
44
|
+
"borderBottom": "border-bottom",
|
|
45
|
+
"borderBottomColor": "border-bottom-color",
|
|
46
|
+
"borderBottomStyle": "border-bottom-style",
|
|
47
|
+
"borderBottomWidth": "border-bottom-width",
|
|
48
|
+
"borderCollapse": "border-collapse",
|
|
49
|
+
"borderColor": "border-color",
|
|
50
|
+
"borderImage": "border-image",
|
|
51
|
+
"borderImageOutset": "border-image-outset",
|
|
52
|
+
"borderImageRepeat": "border-image-repeat",
|
|
53
|
+
"borderImageSlice": "border-image-slice",
|
|
54
|
+
"borderImageSource": "border-image-source",
|
|
55
|
+
"borderImageWidth": "border-image-width",
|
|
56
|
+
"borderLeft": "border-left",
|
|
57
|
+
"borderLeftColor": "border-left-color",
|
|
58
|
+
"borderLeftStyle": "border-left-style",
|
|
59
|
+
"borderLeftWidth": "border-left-width",
|
|
60
|
+
|
|
61
|
+
//Radius
|
|
62
|
+
"r": "border-radius",
|
|
63
|
+
"br": "border-radius",
|
|
64
|
+
"borderRadius": "border-radius",
|
|
65
|
+
"brtl": "border-top-left-radius",
|
|
66
|
+
"borderTopLeftRadius": "border-top-left-radius",
|
|
67
|
+
"brtr": "border-top-right-radius",
|
|
68
|
+
"borderTopRightRadius": "border-top-right-radius",
|
|
69
|
+
"brbl": "border-bottom-left-radius",
|
|
70
|
+
"borderBottomLeftRadius": "border-bottom-left-radius",
|
|
71
|
+
"brbr": "border-bottom-right-radius",
|
|
72
|
+
"borderBottomRightRadius": "border-bottom-right-radius",
|
|
73
|
+
|
|
74
|
+
"borderRight": "border-right",
|
|
75
|
+
"borderRightColor": "border-right-color",
|
|
76
|
+
"borderRightStyle": "border-right-style",
|
|
77
|
+
"borderRightWidth": "border-right-width",
|
|
78
|
+
"borderSpacing": "border-spacing",
|
|
79
|
+
"borderStyle": "border-style",
|
|
80
|
+
"borderTop": "border-top",
|
|
81
|
+
"borderTopColor": "border-top-color",
|
|
82
|
+
|
|
83
|
+
"borderTopStyle": "border-top-style",
|
|
84
|
+
"borderTopWidth": "border-top-width",
|
|
85
|
+
"borderWidth": "border-width",
|
|
86
|
+
"bottom": "bottom",
|
|
87
|
+
"boxDecorationBreak": "box-decoration-break",
|
|
88
|
+
"boxShadow": "box-shadow",
|
|
89
|
+
"boxSizing": "box-sizing",
|
|
90
|
+
"captionSide": "caption-side",
|
|
91
|
+
"caretColor": "caret-color",
|
|
92
|
+
"@charset": "@charset",
|
|
93
|
+
"clear": "clear",
|
|
94
|
+
"clip": "clip",
|
|
95
|
+
"clipPath": "clip-path",
|
|
96
|
+
"color": "color",
|
|
97
|
+
"columnCount": "column-count",
|
|
98
|
+
"columnFill": "column-fill",
|
|
99
|
+
"columnGap": "column-gap",
|
|
100
|
+
"colGap": "column-gap",
|
|
101
|
+
"columnRule": "column-rule",
|
|
102
|
+
"columnRuleColor": "column-rule-color",
|
|
103
|
+
"columnRuleStyle": "column-rule-style",
|
|
104
|
+
"columnRuleWidth": "column-rule-width",
|
|
105
|
+
"columnSpan": "column-span",
|
|
106
|
+
"columnWidth": "column-width",
|
|
107
|
+
"colW": "column-width",
|
|
108
|
+
"columns": "columns",
|
|
109
|
+
"content": "content",
|
|
110
|
+
"counterIncrement": "counter-increment",
|
|
111
|
+
"counterReset": "counter-reset",
|
|
112
|
+
"cursor": "cursor",
|
|
113
|
+
"pointer": "pointer",
|
|
114
|
+
"direction": "direction",
|
|
115
|
+
"display": "display",
|
|
116
|
+
"emptyCells": "empty-cells",
|
|
117
|
+
"filter": "filter",
|
|
118
|
+
"flex": "flex",
|
|
119
|
+
"flexBasis": "flex-basis",
|
|
120
|
+
"dir": "flex-direction",
|
|
121
|
+
"flexDirection": "flex-direction",
|
|
122
|
+
"flexFlow": "flex-flow",
|
|
123
|
+
"flexGrow": "flex-grow",
|
|
124
|
+
"flexShrink": "flex-shrink",
|
|
125
|
+
"flexWrap": "flex-wrap",
|
|
126
|
+
"float": "float",
|
|
127
|
+
"font": "font",
|
|
128
|
+
"fontFamily": "font-family",
|
|
129
|
+
"fontKerning": "font-kerning",
|
|
130
|
+
"size": "font-size",
|
|
131
|
+
"fontSize": "font-size",
|
|
132
|
+
"fontSizeAdjust": "font-size-adjust",
|
|
133
|
+
"fontStretch": "font-stretch",
|
|
134
|
+
"fontStyle": "font-style",
|
|
135
|
+
"fontVariant": "font-variant",
|
|
136
|
+
"bold": "bold",
|
|
137
|
+
"b900": "b900",
|
|
138
|
+
"b800": "b800",
|
|
139
|
+
"b700": "b700",
|
|
140
|
+
"fontWeight": "font-weight",
|
|
141
|
+
"gap" : "gap",
|
|
142
|
+
"grid": "grid",
|
|
143
|
+
"gridArea": "grid-area",
|
|
144
|
+
"gridAutoColumns": "grid-auto-columns",
|
|
145
|
+
"gridAutoFlow": "grid-auto-flow",
|
|
146
|
+
"gridAutoRows": "grid-auto-rows",
|
|
147
|
+
"gridColumn": "grid-column",
|
|
148
|
+
"gridColumnEnd": "grid-column-end",
|
|
149
|
+
"gridColumnGap": "grid-column-gap",
|
|
150
|
+
"gridColumnStart": "grid-column-start",
|
|
151
|
+
"gridGap": "grid-gap",
|
|
152
|
+
"gridRow": "grid-row",
|
|
153
|
+
"gridRowEnd": "grid-row-end",
|
|
154
|
+
"gridRowGap": "grid-row-gap",
|
|
155
|
+
"gridRowStart": "grid-row-start",
|
|
156
|
+
"gridTemplate": "grid-template",
|
|
157
|
+
"gridTemplateAreas": "grid-template-areas",
|
|
158
|
+
"gridTemplateColumns": "grid-template-columns",
|
|
159
|
+
"gridTemplateRows": "grid-template-rows",
|
|
160
|
+
"hangingPunctuation": "hanging-punctuation",
|
|
161
|
+
"hyphens": "hyphens",
|
|
162
|
+
"isolation": "isolation",
|
|
163
|
+
"jcc": "jcc",
|
|
164
|
+
"jcs": "jcs",
|
|
165
|
+
"jce": "jce",
|
|
166
|
+
"jc": "justify-content",
|
|
167
|
+
"justifyContent": "justify-content",
|
|
168
|
+
"left": "left",
|
|
169
|
+
"letterSpacing": "letter-spacing",
|
|
170
|
+
"lineHeight": "line-height",
|
|
171
|
+
"listStyle": "list-style",
|
|
172
|
+
"listStyleImage": "list-style-image",
|
|
173
|
+
"listStylePosition": "list-style-position",
|
|
174
|
+
"listStyleType": "list-style-type",
|
|
175
|
+
"aspectRatio": "aspect-ratio",
|
|
176
|
+
//Margin
|
|
177
|
+
"m": "margin",
|
|
178
|
+
"margin": "margin",
|
|
179
|
+
"mb": "margin-bottom",
|
|
180
|
+
"marginBottom": "margin-bottom",
|
|
181
|
+
"ml": "margin-left",
|
|
182
|
+
"marginLeft": "margin-left",
|
|
183
|
+
"mr": "margin-right",
|
|
184
|
+
"marginRight": "margin-right",
|
|
185
|
+
"mt": "margin-top",
|
|
186
|
+
"marginTop": "margin-top",
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
//Height
|
|
190
|
+
"h": "height",
|
|
191
|
+
"height": "height",
|
|
192
|
+
"minH": "min-height",
|
|
193
|
+
"minHeight": "min-height",
|
|
194
|
+
"maxH": "max-height",
|
|
195
|
+
"maxHeight": "max-height",
|
|
196
|
+
|
|
197
|
+
//Width
|
|
198
|
+
"w": "width",
|
|
199
|
+
"width": "width",
|
|
200
|
+
"minW": "min-width",
|
|
201
|
+
"minWidth": "min-width",
|
|
202
|
+
"maxW": "max-width",
|
|
203
|
+
"maxWidth": "max-width",
|
|
204
|
+
|
|
205
|
+
"mixBlendMode": "mix-blend-mode",
|
|
206
|
+
"objectFit": "object-fit",
|
|
207
|
+
"objectPosition": "object-position",
|
|
208
|
+
"opacity": "opacity",
|
|
209
|
+
"order": "order",
|
|
210
|
+
"outline": "outline",
|
|
211
|
+
"outlineColor": "outline-color",
|
|
212
|
+
"outlineOffset": "outline-offset",
|
|
213
|
+
"outlineStyle": "outline-style",
|
|
214
|
+
"outlineWidth": "outline-width",
|
|
215
|
+
"overflow": "overflow",
|
|
216
|
+
"overflowX": "overflow-x",
|
|
217
|
+
"overflowY": "overflow-y",
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
"p": "padding",
|
|
221
|
+
"padding": "padding",
|
|
222
|
+
"pb": "padding-bottom",
|
|
223
|
+
"paddingBottom": "padding-bottom",
|
|
224
|
+
"pl": "padding-left",
|
|
225
|
+
"paddingLeft": "padding-left",
|
|
226
|
+
"pr": "padding-right",
|
|
227
|
+
"paddingRight": "padding-right",
|
|
228
|
+
"pt": "padding-top",
|
|
229
|
+
"paddingTop": "padding-top",
|
|
230
|
+
|
|
231
|
+
"pageBreakAfter": "page-break-after",
|
|
232
|
+
"pageBreakBefore": "page-break-before",
|
|
233
|
+
"pageBreakInside": "page-break-inside",
|
|
234
|
+
"perspective": "perspective",
|
|
235
|
+
"perspectiveOrigin": "perspective-origin",
|
|
236
|
+
"pointerEvents": "pointer-events",
|
|
237
|
+
|
|
238
|
+
"rel":"rel",
|
|
239
|
+
"abs":"abs",
|
|
240
|
+
"fixed":"fixed",
|
|
241
|
+
"sticky":"sticky",
|
|
242
|
+
"pos": "position",
|
|
243
|
+
"position": "position",
|
|
244
|
+
|
|
245
|
+
"quotes": "quotes",
|
|
246
|
+
"resize": "resize",
|
|
247
|
+
"right": "right",
|
|
248
|
+
"scrollBehavior": "scroll-behavior",
|
|
249
|
+
"tabSize": "tab-size",
|
|
250
|
+
"tableLayout": "table-layout",
|
|
251
|
+
|
|
252
|
+
"align" : "text-align",
|
|
253
|
+
"textAlign": "text-align",
|
|
254
|
+
"textAlignLast": "text-align-last",
|
|
255
|
+
|
|
256
|
+
"tdh": "tdh", //text-decoration: underline on hover
|
|
257
|
+
"td": "text-decoration",
|
|
258
|
+
"textDecoration": "text-decoration",
|
|
259
|
+
"textDecorationColor": "text-decoration-color",
|
|
260
|
+
"textDecorationLine": "text-decoration-line",
|
|
261
|
+
"textDecorationStyle": "text-decoration-style",
|
|
262
|
+
"textIndent": "text-indent",
|
|
263
|
+
"textJustify": "text-justify",
|
|
264
|
+
"textOverflow": "text-overflow",
|
|
265
|
+
"textShadow": "text-shadow",
|
|
266
|
+
"textTransform": "text-transform",
|
|
267
|
+
"top": "top",
|
|
268
|
+
|
|
269
|
+
"transform": "transform",
|
|
270
|
+
"transform(2D)": "transform(2D)",
|
|
271
|
+
"transformOrigin(twoValue syntax)": "transform-origin(two-value syntax)",
|
|
272
|
+
"transformStyle": "transform-style",
|
|
273
|
+
"transition": "transition",
|
|
274
|
+
"transitionDelay": "transition-delay",
|
|
275
|
+
"transitionDuration": "transition-duration",
|
|
276
|
+
"transitionProperty": "transition-property",
|
|
277
|
+
"transitionTimingFunction": "transition-timing-function",
|
|
278
|
+
"unicodeBidi": "unicode-bidi",
|
|
279
|
+
"userSelect": "user-select",
|
|
280
|
+
"verticalAlign": "vertical-align",
|
|
281
|
+
"visibility": "visibility",
|
|
282
|
+
"weight" : "flex",
|
|
283
|
+
"whiteSpace": "white-space",
|
|
284
|
+
"ws": "white-space",
|
|
285
|
+
"wordBreak": "word-break",
|
|
286
|
+
"wordSpacing": "word-spacing",
|
|
287
|
+
"wrap": "wrap",
|
|
288
|
+
"textWrap": "textWrap",
|
|
289
|
+
"wordWrap": "word-wrap",
|
|
290
|
+
"writingMode": "writing-mode",
|
|
291
|
+
"zIndex": "z-index",
|
|
292
|
+
"backdropFilter": "backdrop-filter",
|
|
293
|
+
"bgFilter": "backdrop-filter",
|
|
294
|
+
|
|
295
|
+
//Custom
|
|
296
|
+
"anim" : "anim",
|
|
297
|
+
"fill" : "fill",
|
|
298
|
+
"abc" : "abc",
|
|
299
|
+
"fb" : "fb",
|
|
300
|
+
"ph" : "ph",
|
|
301
|
+
"pv" : "pv",
|
|
302
|
+
"mv" : "mv",
|
|
303
|
+
"mh" : "mh"
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
const cssPropsVals : { [key: string] : any } = {
|
|
307
|
+
//Colors
|
|
308
|
+
"primary" : 'var(--primary-color)',
|
|
309
|
+
"c" : "center",
|
|
310
|
+
//Flex Directions
|
|
311
|
+
"cols" : "column",
|
|
312
|
+
"colsr" : "column-reverse",
|
|
313
|
+
"rows" : "row",
|
|
314
|
+
"rowsr" : "row-reverse",
|
|
315
|
+
//Positions
|
|
316
|
+
"rel" : "relative",
|
|
317
|
+
"abs" : "absolute",
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
const cssPropsDirect : { [key : string] : any } = {
|
|
321
|
+
'rel' : 'position: relative;',
|
|
322
|
+
'fixed' : 'position: fixed;',
|
|
323
|
+
'abs' : 'position: absolute;',
|
|
324
|
+
'sticky' : 'position: sticky;',
|
|
325
|
+
'flex' : 'display: flex;',
|
|
326
|
+
'fwrap' : 'flex-wrap: wrap;',
|
|
327
|
+
'aic' : 'align-items: center;',
|
|
328
|
+
'ais' : 'align-items: flex-start;',
|
|
329
|
+
'aie' : 'align-items: flex-end;',
|
|
330
|
+
'ass' : 'align-self: flex-start;',
|
|
331
|
+
'asc' : 'align-self: center;',
|
|
332
|
+
'ase' : 'align-self: flex-end;',
|
|
333
|
+
'jcc' : 'justify-content: center;',
|
|
334
|
+
'jcs' : 'justify-content: flex-start;',
|
|
335
|
+
'jce' : 'justify-content: flex-end;',
|
|
336
|
+
'grid' : 'display: grid;',
|
|
337
|
+
'fill' : 'top: 0px;left: 0px;right: 0px;bottom: 0px;',
|
|
338
|
+
'abc' : 'top: 50%;left: 50%;transform: translate(-50%, -50%);',
|
|
339
|
+
'block' : 'display: block;',
|
|
340
|
+
'bold' : "font-weight: bold;",
|
|
341
|
+
'b900' : "font-weight: 900;",
|
|
342
|
+
'b800' : "font-weight: 800;",
|
|
343
|
+
'b700' : "font-weight: 700;",
|
|
344
|
+
'wrap' : "word-wrap: break-word;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;max-width: 99%;",
|
|
345
|
+
'textWrap' : "word-wrap: break-word;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;max-width: 99%;",
|
|
346
|
+
'pointer' : "cursor: pointer;",
|
|
347
|
+
'fb' : 'font-family: var(--primary-font-bold);',
|
|
348
|
+
'ph' : 'padding-left: __VALUE__;padding-right: __VALUE__;',
|
|
349
|
+
'pv' : 'padding-bottom: __VALUE__;padding-top: __VALUE__;',
|
|
350
|
+
'mv' : 'margin-bottom: __VALUE__;margin-top: __VALUE__;',
|
|
351
|
+
'mh' : 'margin-left: __VALUE__;margin-right: __VALUE__;',
|
|
352
|
+
'anim' : 'transition:all __VALUE__s linear 0s;',
|
|
353
|
+
'nous' : 'user-select: none;',
|
|
354
|
+
'nope' : 'pointer-events: none;',
|
|
355
|
+
'tdn' : 'text-decoration: none;',
|
|
356
|
+
'aspectRatio' : 'aspect-ratio: __VALUE__;'
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
const cssPropsIgnore : string[] = [
|
|
360
|
+
'weight', `opacity`
|
|
361
|
+
]
|
|
362
|
+
|
|
363
|
+
const _cssColors : string[] = [ `white`, `black`, `gray`, `red`, `orange`, `yellow`, `green`, `teal`, `blue`, `cyan`, `purple`, `pink`, `linkedin`, `facebook`, `messenger`, `whatsapp`, `twitter`, `telegram` ]
|
|
364
|
+
const _cssColorsRange : string[] = [ `50`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900` ]
|
|
365
|
+
let cssColors : string[] = []
|
|
366
|
+
|
|
367
|
+
if(cssColors.length == 0){
|
|
368
|
+
_cssColors.map(c => {
|
|
369
|
+
_cssColorsRange.map(r => cssColors.push(`${c}.${r}`));
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
export {
|
|
374
|
+
cssPropsDirect,
|
|
375
|
+
cssProps,
|
|
376
|
+
cssPropsVals,
|
|
377
|
+
cssPropsIgnore,
|
|
378
|
+
cssColors
|
|
372
379
|
}
|