aliascss 1.1.15 → 1.1.17
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/aliascss.config.js +4 -1
- package/dist/aliascss.js +1 -1
- package/lib/css-properties-all.d.ts +3 -0
- package/lib/css-properties-all.js +179 -1
- package/lib/index.d.ts +3 -0
- package/lib/prefix/attribute-selector.js +2 -2
- package/lib/returnStatement.js +3 -2
- package/lib/static/customColors2.d.ts +3 -0
- package/lib/static/customColors2.js +376 -0
- package/lib/static/customStaticClassNames.js +14 -3
- package/lib/utils/createCompilerObj.js +5 -0
- package/package.json +1 -1
|
@@ -63,11 +63,22 @@ export const customStaticClassNames = {
|
|
|
63
63
|
"width-4xl": 'width:var(--width-4xl,1440px)',
|
|
64
64
|
"width-5xl": 'width:var(--width-5xl,1600px)',
|
|
65
65
|
"width-6xl": 'width:var(--width-6xl,1920px)',
|
|
66
|
-
"max-width-desktop": 'width:var(--max-width-desktop,1280px)',
|
|
67
|
-
"
|
|
68
|
-
"
|
|
66
|
+
"max-width-desktop": 'max-width:var(--max-width-desktop,1280px)',
|
|
67
|
+
"desktop-width-desktop": 'width:var(--width-desktop,1280px)',
|
|
68
|
+
"width-tablet": 'width:var(--width-tablet,768px)',
|
|
69
|
+
"max-width-tablet": 'max-width:var(--max-width-tablet,768px)',
|
|
70
|
+
"width-mobile": 'width:var(--width-mobile,375px)',
|
|
71
|
+
"max-width-mobile": 'max-width:var(--max-width-mobile,375px)',
|
|
72
|
+
"container-max-width-desktop": 'max-width:var(--container-max-width-desktop,1280px)',
|
|
73
|
+
"paragraph-max-width": 'max-width:var(--paragraph-max-width,720px)',
|
|
69
74
|
// ---old
|
|
70
75
|
'flex-center': 'display:flex; justify-content:center;align-items:center',
|
|
76
|
+
'inline-flex-center': 'display:inline-flex; justify-content:center;align-items:center',
|
|
77
|
+
'grid-center': 'display:grid; justify-content:center;align-content:center',
|
|
78
|
+
'inline-grid-center': 'display:inline-grid; justify-content:center;align-content:center',
|
|
79
|
+
'absolute-center': "position:absolute;margin:auto;top:0;left:0;right:0;bottom:0;",
|
|
80
|
+
'fixed-center': "position:fixed;margin:auto;top:0;left:0;right:0;bottom:0;",
|
|
81
|
+
'sr-only': 'position:absolute;overflow:hidden;clip-path:rect(0 0 0 0);height:1px;width:1px;margin:-1px;padding:0;border:0',
|
|
71
82
|
'display-2xl': 'font-size:72px ; line-height:90px ; letter-spacing:-0.02em',
|
|
72
83
|
'display-xxl': 'font-size:72px ; line-height:90px ; letter-spacing:-0.02em',
|
|
73
84
|
'display-xl': 'font-size: 60px; line-height: 72px; letter-spacing:-0.02em',
|
|
@@ -79,6 +79,11 @@ export function createCompilerObj(obj, globalValue = []) {
|
|
|
79
79
|
// check compiler for type=group
|
|
80
80
|
if (obj[key].type === 'group') {
|
|
81
81
|
compilerObj[key] = obj[key];
|
|
82
|
+
// if(obj[key].alias?.trim()) {
|
|
83
|
+
// const alias=obj[key].alias?.trim()||null;
|
|
84
|
+
// if(alias){
|
|
85
|
+
// compilerObj[alias]=obj[key];
|
|
86
|
+
// }
|
|
82
87
|
return;
|
|
83
88
|
}
|
|
84
89
|
// createStaticClassNames from Obj
|