@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.
Files changed (88) hide show
  1. package/README.md +0 -0
  2. package/dist/hooks.js +89 -0
  3. package/dist/styles.css +37 -62
  4. package/dist/ui.js +665 -0
  5. package/jest.config.js +0 -0
  6. package/package.json +16 -18
  7. package/rollup.config.js +30 -47
  8. package/src/comps/box.tsx +24 -28
  9. package/src/comps/button.tsx +23 -47
  10. package/src/comps/crumb.tsx +9 -0
  11. package/src/comps/form.tsx +57 -88
  12. package/src/comps/heading.tsx +25 -31
  13. package/src/comps/icon.tsx +24 -36
  14. package/src/comps/input.tsx +24 -224
  15. package/src/comps/select.tsx +23 -63
  16. package/src/comps/spinner.tsx +23 -35
  17. package/src/comps/stylesheet.tsx +5 -0
  18. package/src/context/AppContext.tsx +2 -2
  19. package/src/context/AppProvider.tsx +68 -105
  20. package/src/context/createSlice.tsx +15 -39
  21. package/src/context/index.tsx +4 -5
  22. package/src/core/css.ts +1 -0
  23. package/src/core/index.tsx +241 -0
  24. package/src/core/styles.ts +378 -371
  25. package/src/hooks/index.tsx +2 -10
  26. package/src/hooks/useDispatch.tsx +36 -36
  27. package/src/hooks/useStore.tsx +24 -26
  28. package/src/hooks.tsx +8 -0
  29. package/src/scss/mixins.scss +2 -2
  30. package/src/scss/props.scss +91 -69
  31. package/src/scss/{style.scss → styles.scss} +102 -132
  32. package/src/ui.tsx +13 -0
  33. package/tsconfig.json +0 -0
  34. package/tsconfig.lib.json +0 -0
  35. package/tsconfig.spec.json +0 -0
  36. package/dist/index.js +0 -1868
  37. package/src/actions/addForm.tsx +0 -0
  38. package/src/actions/index.tsx +0 -29
  39. package/src/actions/redo.tsx +0 -1
  40. package/src/actions/reset.tsx +0 -1
  41. package/src/actions/undo.tsx +0 -1
  42. package/src/comps/app.tsx +0 -34
  43. package/src/comps/checkbox.tsx +0 -74
  44. package/src/comps/component.tsx +0 -32
  45. package/src/comps/contextmenu.tsx +0 -60
  46. package/src/comps/cover.tsx +0 -34
  47. package/src/comps/image.tsx +0 -34
  48. package/src/comps/masonry.tsx +0 -192
  49. package/src/comps/mediaplayer.tsx +0 -12
  50. package/src/comps/placeholder.tsx +0 -58
  51. package/src/comps/root.tsx +0 -32
  52. package/src/comps/spacer.tsx +0 -20
  53. package/src/comps/text.tsx +0 -27
  54. package/src/comps/toaster.tsx +0 -117
  55. package/src/comps/tweet.tsx +0 -48
  56. package/src/context/_AppProvider.tsx +0 -116
  57. package/src/context/combineReducers.tsx +0 -47
  58. package/src/context/combineState.tsx +0 -14
  59. package/src/context/reduceReducers.tsx +0 -6
  60. package/src/context/store/appbase.tsx +0 -19
  61. package/src/context/store/lang.tsx +0 -26
  62. package/src/context/store/theme.tsx +0 -54
  63. package/src/core/defaultTheme.ts +0 -90
  64. package/src/core/extractCurrentDesignState.tsx +0 -0
  65. package/src/core/index.ts +0 -431
  66. package/src/core/router.ts +0 -86
  67. package/src/hooks/useAppReducer.tsx +0 -40
  68. package/src/hooks/useChooseEffect.tsx +0 -6
  69. package/src/hooks/useContextMenu.tsx +0 -123
  70. package/src/hooks/useDevice.tsx +0 -164
  71. package/src/hooks/useImage.tsx +0 -84
  72. package/src/hooks/useLang.tsx +0 -9
  73. package/src/hooks/useMediaPlayer.tsx +0 -27
  74. package/src/hooks/useNavigator.tsx +0 -6
  75. package/src/hooks/useRender.tsx +0 -29
  76. package/src/hooks/useResizeObserver.tsx +0 -84
  77. package/src/hooks/useRouter.tsx +0 -45
  78. package/src/hooks/useSelector.tsx +0 -9
  79. package/src/hooks/useTheme.tsx +0 -9
  80. package/src/hooks/useToast.tsx +0 -11
  81. package/src/index.tsx +0 -35
  82. package/src/kit/Builder.tsx +0 -18
  83. package/src/kit/Component.tsx +0 -32
  84. package/src/kit/Header.tsx +0 -21
  85. package/src/redux/slices/app.js +0 -26
  86. package/src/redux/slices/form.js +0 -46
  87. package/src/redux/store.js +0 -33
  88. package/src/scss/constants.scss +0 -4
@@ -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
- "fontWeight": "font-weight",
138
- "gap" : "gap",
139
- "grid": "grid",
140
- "gridArea": "grid-area",
141
- "gridAutoColumns": "grid-auto-columns",
142
- "gridAutoFlow": "grid-auto-flow",
143
- "gridAutoRows": "grid-auto-rows",
144
- "gridColumn": "grid-column",
145
- "gridColumnEnd": "grid-column-end",
146
- "gridColumnGap": "grid-column-gap",
147
- "gridColumnStart": "grid-column-start",
148
- "gridGap": "grid-gap",
149
- "gridRow": "grid-row",
150
- "gridRowEnd": "grid-row-end",
151
- "gridRowGap": "grid-row-gap",
152
- "gridRowStart": "grid-row-start",
153
- "gridTemplate": "grid-template",
154
- "gridTemplateAreas": "grid-template-areas",
155
- "gridTemplateColumns": "grid-template-columns",
156
- "gridTemplateRows": "grid-template-rows",
157
- "hangingPunctuation": "hanging-punctuation",
158
- "hyphens": "hyphens",
159
- "isolation": "isolation",
160
- "jcc": "jcc",
161
- "jcs": "jcs",
162
- "jce": "jce",
163
- "jc": "justify-content",
164
- "justifyContent": "justify-content",
165
- "left": "left",
166
- "letterSpacing": "letter-spacing",
167
- "lineHeight": "line-height",
168
- "listStyle": "list-style",
169
- "listStyleImage": "list-style-image",
170
- "listStylePosition": "list-style-position",
171
- "listStyleType": "list-style-type",
172
-
173
- //Margin
174
- "m": "margin",
175
- "margin": "margin",
176
- "mb": "margin-bottom",
177
- "marginBottom": "margin-bottom",
178
- "ml": "margin-left",
179
- "marginLeft": "margin-left",
180
- "mr": "margin-right",
181
- "marginRight": "margin-right",
182
- "mt": "margin-top",
183
- "marginTop": "margin-top",
184
-
185
-
186
- //Height
187
- "h": "height",
188
- "height": "height",
189
- "minH": "min-height",
190
- "minHeight": "min-height",
191
- "maxH": "max-height",
192
- "maxHeight": "max-height",
193
-
194
- //Width
195
- "w": "width",
196
- "width": "width",
197
- "minW": "min-width",
198
- "minWidth": "min-width",
199
- "maxW": "max-width",
200
- "maxWidth": "max-width",
201
-
202
- "mixBlendMode": "mix-blend-mode",
203
- "objectFit": "object-fit",
204
- "objectPosition": "object-position",
205
- "opacity": "opacity",
206
- "order": "order",
207
- "outline": "outline",
208
- "outlineColor": "outline-color",
209
- "outlineOffset": "outline-offset",
210
- "outlineStyle": "outline-style",
211
- "outlineWidth": "outline-width",
212
- "overflow": "overflow",
213
- "overflowX": "overflow-x",
214
- "overflowY": "overflow-y",
215
-
216
-
217
- "p": "padding",
218
- "padding": "padding",
219
- "pb": "padding-bottom",
220
- "paddingBottom": "padding-bottom",
221
- "pl": "padding-left",
222
- "paddingLeft": "padding-left",
223
- "pr": "padding-right",
224
- "paddingRight": "padding-right",
225
- "pt": "padding-top",
226
- "paddingTop": "padding-top",
227
-
228
- "pageBreakAfter": "page-break-after",
229
- "pageBreakBefore": "page-break-before",
230
- "pageBreakInside": "page-break-inside",
231
- "perspective": "perspective",
232
- "perspectiveOrigin": "perspective-origin",
233
- "pointerEvents": "pointer-events",
234
-
235
- "rel":"rel",
236
- "abs":"abs",
237
- "fixed":"fixed",
238
- "sticky":"sticky",
239
- "pos": "position",
240
- "position": "position",
241
-
242
- "quotes": "quotes",
243
- "resize": "resize",
244
- "right": "right",
245
- "scrollBehavior": "scroll-behavior",
246
- "tabSize": "tab-size",
247
- "tableLayout": "table-layout",
248
-
249
- "align" : "text-align",
250
- "textAlign": "text-align",
251
- "textAlignLast": "text-align-last",
252
-
253
- "tdh": "tdh", //text-decoration: underline on hover
254
- "td": "text-decoration",
255
- "textDecoration": "text-decoration",
256
- "textDecorationColor": "text-decoration-color",
257
- "textDecorationLine": "text-decoration-line",
258
- "textDecorationStyle": "text-decoration-style",
259
- "textIndent": "text-indent",
260
- "textJustify": "text-justify",
261
- "textOverflow": "text-overflow",
262
- "textShadow": "text-shadow",
263
- "textTransform": "text-transform",
264
- "top": "top",
265
-
266
- "transform": "transform",
267
- "transform(2D)": "transform(2D)",
268
- "transformOrigin(twoValue syntax)": "transform-origin(two-value syntax)",
269
- "transformStyle": "transform-style",
270
- "transition": "transition",
271
- "transitionDelay": "transition-delay",
272
- "transitionDuration": "transition-duration",
273
- "transitionProperty": "transition-property",
274
- "transitionTimingFunction": "transition-timing-function",
275
- "unicodeBidi": "unicode-bidi",
276
- "userSelect": "user-select",
277
- "verticalAlign": "vertical-align",
278
- "visibility": "visibility",
279
- "weight" : "flex",
280
- "whiteSpace": "white-space",
281
- "ws": "white-space",
282
- "wordBreak": "word-break",
283
- "wordSpacing": "word-spacing",
284
- "wrap": "wrap",
285
- "textWrap": "textWrap",
286
- "wordWrap": "word-wrap",
287
- "writingMode": "writing-mode",
288
- "zIndex": "z-index",
289
- "backdropFilter": "backdrop-filter",
290
- "bgFilter": "backdrop-filter",
291
-
292
- //Custom
293
- "anim" : "anim",
294
- "fill" : "fill",
295
- "abc" : "abc",
296
- "fb" : "fb",
297
- "ph" : "ph",
298
- "pv" : "pv",
299
- "mv" : "mv",
300
- "mh" : "mh"
301
- }
302
-
303
- const cssPropsVals : { [key: string] : any } = {
304
- //Colors
305
- "primary" : 'var(--primary-color)',
306
- "c" : "center",
307
- //Flex Directions
308
- "cols" : "column",
309
- "colsr" : "column-reverse",
310
- "rows" : "row",
311
- "rowsr" : "row-reverse",
312
- //Positions
313
- "rel" : "relative",
314
- "abs" : "absolute",
315
- }
316
-
317
- const cssPropsDirect : { [key : string] : any } = {
318
- 'rel' : 'position: relative;',
319
- 'fixed' : 'position: fixed;',
320
- 'abs' : 'position: absolute;',
321
- 'sticky' : 'position: sticky;',
322
- 'flex' : 'display: flex;',
323
- 'fwrap' : 'flex-wrap: wrap;',
324
- 'aic' : 'align-items: center;',
325
- 'ais' : 'align-items: flex-start;',
326
- 'aie' : 'align-items: flex-end;',
327
- 'ass' : 'align-self: flex-start;',
328
- 'asc' : 'align-self: center;',
329
- 'ase' : 'align-self: flex-end;',
330
- 'jcc' : 'justify-content: center;',
331
- 'jcs' : 'justify-content: flex-start;',
332
- 'jce' : 'justify-content: flex-end;',
333
- 'grid' : 'display: grid;',
334
- 'fill' : 'top: 0px;left: 0px;right: 0px;bottom: 0px;',
335
- 'abc' : 'top: 50%;left: 50%;transform: translate(-50%, -50%);',
336
- 'block' : 'display: block;',
337
- 'bold' : "font-weight: bold;",
338
- 'wrap' : "word-wrap: break-word;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;max-width: 99%;",
339
- 'textWrap' : "word-wrap: break-word;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;max-width: 99%;",
340
- 'pointer' : "cursor: pointer;",
341
- 'fb' : 'font-family: var(--primary-font-bold);',
342
- 'ph' : 'padding-left: __VALUE__;padding-right: __VALUE__;',
343
- 'pv' : 'padding-bottom: __VALUE__;padding-top: __VALUE__;',
344
- 'mv' : 'margin-bottom: __VALUE__;margin-top: __VALUE__;',
345
- 'mh' : 'margin-left: __VALUE__;margin-right: __VALUE__;',
346
- 'anim' : 'transition:all __VALUE__s linear 0s;',
347
- 'nous' : 'user-select: none;',
348
- 'nope' : 'pointer-events: none;',
349
- 'tdn' : 'text-decoration: none;',
350
- }
351
-
352
- const cssPropsIgnore : string[] = [
353
- 'weight', `opacity`
354
- ]
355
-
356
- const _cssColors : string[] = [ `white`, `black`, `gray`, `red`, `orange`, `yellow`, `green`, `teal`, `blue`, `cyan`, `purple`, `pink`, `linkedin`, `facebook`, `messenger`, `whatsapp`, `twitter`, `telegram` ]
357
- const _cssColorsRange : string[] = [ `50`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900` ]
358
- let cssColors : string[] = []
359
-
360
- if(cssColors.length == 0){
361
- _cssColors.map(c => {
362
- _cssColorsRange.map(r => cssColors.push(`${c}.${r}`));
363
- });
364
- }
365
-
366
- export {
367
- cssPropsDirect,
368
- cssProps,
369
- cssPropsVals,
370
- cssPropsIgnore,
371
- cssColors
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
  }