aliascss 1.3.1 → 1.3.3
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/dist/aliascss.js +1 -1
- package/docc.md +259 -0
- package/docs/PseudoSelector.js +141 -0
- package/docs/colors-tokens.js +3771 -0
- package/docs/mediaSelector.js +49 -0
- package/docs/staticClassNames.js +15731 -0
- package/docs/utilitiesClassName.js +204 -0
- package/lib/build/index.js +1 -18
- package/lib/compilers/color.js +6 -0
- package/lib/compilers/length.js +10 -3
- package/lib/compilers/transition.js +11 -1
- package/lib/config.js +14 -2
- package/lib/css-properties-all.js +1 -1
- package/lib/prefix/PseudoPrefix-old.d.ts +7 -0
- package/lib/prefix/PseudoPrefix-old.js +145 -0
- package/lib/prefix/PseudoPrefixNew.js +4 -0
- package/lib/prefix/pseudoSelector.js +1 -1
- package/lib/returnPropertyAndValue.js +42 -3
- package/lib/returnStatement.js +5 -2
- package/lib/static/customColorVariablesOklch.d.ts +1 -0
- package/lib/static/customColorVariablesOklch.js +375 -0
- package/lib/static/customColorVariablesOklch2.d.ts +1 -0
- package/lib/static/customColorVariablesOklch2.js +375 -0
- package/lib/static/customColors2.js +150 -0
- package/lib/static/customColorsRadix.js +1 -1
- package/lib/static/customStaticClassNames.js +64 -49
- package/package.json +2 -2
|
@@ -76,44 +76,18 @@ export const customStaticClassNames = {
|
|
|
76
76
|
"x-container-max-width-desktop": 'max-width:var(--x-container-max-width-desktop,1280px)',
|
|
77
77
|
"x-paragraph-max-width": 'max-width:var(--x-paragraph-max-width,720px)',
|
|
78
78
|
// ---old
|
|
79
|
-
'x-
|
|
80
|
-
'x-
|
|
81
|
-
'x-
|
|
82
|
-
'x-
|
|
83
|
-
'x-
|
|
84
|
-
'x-
|
|
85
|
-
'x-
|
|
86
|
-
'x-
|
|
87
|
-
|
|
88
|
-
'x-
|
|
89
|
-
'x-
|
|
90
|
-
'x-
|
|
91
|
-
'x-display-sm': 'font-size: 30px; line-height: 38px',
|
|
92
|
-
'x-display-xs': 'font-size: 24px; line-height: 32px',
|
|
93
|
-
'x-heading-2xl': 'font-size:72px ; line-height:90px ; letter-spacing:-0.02em',
|
|
94
|
-
// 'x-heading-xxl': 'font-size:72px ; line-height:90px ; letter-spacing:-0.02em',
|
|
95
|
-
'x-heading-xl': 'font-size: 60px; line-height: 72px; letter-spacing:-0.02em',
|
|
96
|
-
'x-heading-lg': 'font-size:48px ; line-height: 60px; letter-spacing:-0.02em',
|
|
97
|
-
'x-heading-md': 'font-size: 36px; line-height: 44px; letter-spacing:-0.02em',
|
|
98
|
-
'x-heading-sm': 'font-size: 30px; line-height: 38px',
|
|
99
|
-
'x-heading-xs': 'font-size: 24px; line-height: 32px',
|
|
100
|
-
'x-h-2xl': 'font-size:72px ; line-height:90px ; letter-spacing:-0.02em',
|
|
101
|
-
'x-h-xxl': 'font-size:72px ; line-height:90px ; letter-spacing:-0.02em',
|
|
102
|
-
'x-h-xl': 'font-size: 60px; line-height: 72px; letter-spacing:-0.02em',
|
|
103
|
-
'x-h-lg': 'font-size:48px ; line-height: 60px; letter-spacing:-0.02em',
|
|
104
|
-
'x-h-md': 'font-size: 36px; line-height: 44px; letter-spacing:-0.02em',
|
|
105
|
-
'x-h-sm': 'font-size: 30px; line-height: 38px',
|
|
106
|
-
'x-h-xs': 'font-size: 24px; line-height: 32px',
|
|
107
|
-
'x-text-xl': 'font-size:20px;line-height:30px',
|
|
108
|
-
'x-text-lg': 'font-size:18px;line-height:28px',
|
|
109
|
-
'x-text-md': 'font-size:16px;line-height:24px',
|
|
110
|
-
'x-text-sm': 'font-size:14px;line-height:20px',
|
|
111
|
-
'x-text-xs': 'font-size:12px;line-height:18px',
|
|
112
|
-
'x-t-xl': 'font-size:20px;line-height:30px',
|
|
113
|
-
'x-t-lg': 'font-size:18px;line-height:28px',
|
|
114
|
-
'x-t-md': 'font-size:16px;line-height:24px',
|
|
115
|
-
'x-t-sm': 'font-size:14px;line-height:20px',
|
|
116
|
-
'x-t-xs': 'font-size:12px;line-height:18px',
|
|
79
|
+
'x-display-2xl': 'font-size: 4.5rem; line-height: 5.625rem; letter-spacing: -0.02em',
|
|
80
|
+
// 'x-display-xxl': 'font-size: 4.5rem; line-height: 5.625rem; letter-spacing: -0.02em',
|
|
81
|
+
'x-display-xl': 'font-size: 3.75rem; line-height: 4.5rem; letter-spacing: -0.02em',
|
|
82
|
+
'x-display-lg': 'font-size: 3rem; line-height: 3.75rem; letter-spacing: -0.02em',
|
|
83
|
+
'x-display-md': 'font-size: 2.25rem; line-height: 2.75rem; letter-spacing: -0.02em',
|
|
84
|
+
'x-display-sm': 'font-size: 1.875rem; line-height: 2.375rem',
|
|
85
|
+
'x-display-xs': 'font-size: 1.5rem; line-height: 2rem',
|
|
86
|
+
'x-text-xl': 'font-size: 1.25rem; line-height: 1.875rem',
|
|
87
|
+
'x-text-lg': 'font-size: 1.125rem; line-height: 1.75rem',
|
|
88
|
+
'x-text-md': 'font-size: 1rem; line-height: 1.5rem',
|
|
89
|
+
'x-text-sm': 'font-size: 0.875rem; line-height: 1.25rem',
|
|
90
|
+
'x-text-xs': 'font-size: 0.75rem; line-height: 1.125rem',
|
|
117
91
|
// 'x-button-xxl':
|
|
118
92
|
// 'display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:16px 28px;border-radius:8px;box-sizing:border-box',
|
|
119
93
|
// 'x-button-2xl':
|
|
@@ -158,6 +132,20 @@ export const customStaticClassNames = {
|
|
|
158
132
|
'x-clip-star': 'clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);',
|
|
159
133
|
'x-clip-close': 'clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%)',
|
|
160
134
|
'x-clip-plus': 'clip-path: polygon(40% 0%,60% 0%,60% 40%,100% 40%,100% 60%,60% 60%,60% 100%,40% 100%,40% 60%,0% 60%,0% 40%,40% 40%);',
|
|
135
|
+
// ---------------------------------------General------------
|
|
136
|
+
'x-flex-center': 'display:flex; justify-content:center;align-items:center',
|
|
137
|
+
'x-inline-flex-center': 'display:inline-flex; justify-content:center;align-items:center',
|
|
138
|
+
'x-grid-center': 'display:grid; justify-content:center;align-content:center',
|
|
139
|
+
'x-inline-grid-center': 'display:inline-grid; justify-content:center;align-content:center',
|
|
140
|
+
'x-absolute-center': "position:absolute;margin:auto;top:0;left:0;right:0;bottom:0;",
|
|
141
|
+
'x-absolute-inset': "position:absolute;inset:0",
|
|
142
|
+
'x-absolute-content-inset': 'position:absolute;inset:0,content:" "',
|
|
143
|
+
'x-absolute-inset-y': "position:absolute;margin:auto;top:0;bottom:0;",
|
|
144
|
+
'x-absolute-inset-x': "position:absolute;left:0;right:0;",
|
|
145
|
+
'x-fixed-center': "position:fixed;margin:auto;top:0;left:0;right:0;bottom:0;",
|
|
146
|
+
'x-sr-only': 'position:absolute;overflow:hidden;clip-path:rect(0 0 0 0);height:1px;width:1px;margin:-1px;padding:0;border:0',
|
|
147
|
+
// 'x-jusitfy-between':'justify-content: space-between',
|
|
148
|
+
// 'x-flex':'display:flex',
|
|
161
149
|
'flex-center': 'display:flex;align-items:center;justify-content:center',
|
|
162
150
|
'inline-flex-center': 'display:inline-flex;align-items:center;justify-content:center',
|
|
163
151
|
'absolute-center': 'position:absolute;top:0;right:0;left:0;bottom:0:margin:auto',
|
|
@@ -182,23 +170,50 @@ export const customStaticClassNames = {
|
|
|
182
170
|
'x-w-screen-d': 'width:100dvw',
|
|
183
171
|
'width-screen-d': 'width:100dvw',
|
|
184
172
|
'x-width-screen-d': 'width:100dvw',
|
|
185
|
-
'h-screen': '
|
|
186
|
-
'x-h-screen': '
|
|
187
|
-
'height-screen': '
|
|
188
|
-
'x-height-screen': '
|
|
189
|
-
'h-screen-d': '
|
|
190
|
-
'x-h-screen-d': '
|
|
191
|
-
'height-screen-d': '
|
|
192
|
-
'x-height-screen-d': '
|
|
173
|
+
'h-screen': 'height:100vh',
|
|
174
|
+
'x-h-screen': 'height:100vh',
|
|
175
|
+
'height-screen': 'height:100vh',
|
|
176
|
+
'x-height-screen': 'height:100vh',
|
|
177
|
+
'h-screen-d': 'height:100dvh',
|
|
178
|
+
'x-h-screen-d': 'height:100dvh',
|
|
179
|
+
'height-screen-d': 'height:100dvh',
|
|
180
|
+
'x-height-screen-d': 'height:100dvh',
|
|
193
181
|
'fixed': 'position:fixed',
|
|
194
182
|
'x-fixed': 'position:fixed',
|
|
195
183
|
'absolute': 'position:absolute',
|
|
196
184
|
'x-absolute': 'position:absolute',
|
|
197
185
|
'relative': 'position:relative',
|
|
198
186
|
'x-relative': 'position:relative',
|
|
199
|
-
'x-jusitfy-between': 'justify-content: space-between',
|
|
200
|
-
'x-flex': 'display:flex',
|
|
201
187
|
'x-flex-between': 'display:flex;align-items:center;justify-content:space-between',
|
|
202
188
|
'flex-between': 'display:flex;align-items:center;justify-content:space-between',
|
|
203
|
-
|
|
189
|
+
// ------new Added
|
|
190
|
+
'min-h-screen': 'min-height: 100vh',
|
|
191
|
+
'max-w-sm': 'max-width: 24rem',
|
|
192
|
+
'max-w-md': 'max-width: 28rem',
|
|
193
|
+
'max-w-lg': 'max-width: 32rem',
|
|
194
|
+
'max-w-xl': 'max-width: 36rem',
|
|
195
|
+
'max-w-2xl': 'max-width: 42rem',
|
|
196
|
+
'max-w-full': 'max-width: 100%',
|
|
197
|
+
'x-min-h-screen': 'min-height: 100vh',
|
|
198
|
+
'x-max-w-sm': 'max-width: 24rem',
|
|
199
|
+
'x-max-w-md': 'max-width: 28rem',
|
|
200
|
+
'x-max-w-lg': 'max-width: 32rem',
|
|
201
|
+
'x-max-w-xl': 'max-width: 36rem',
|
|
202
|
+
'x-max-w-2xl': 'max-width: 42rem',
|
|
203
|
+
'x-max-w-full': 'max-width: 100%',
|
|
204
|
+
'mh-screen': 'min-height: 100vh',
|
|
205
|
+
'xw-sm': 'max-width: 24rem',
|
|
206
|
+
'xw-md': 'max-width: 28rem',
|
|
207
|
+
'xw-lg': 'max-width: 32rem',
|
|
208
|
+
'xw-xl': 'max-width: 36rem',
|
|
209
|
+
'xw-2xl': 'max-width: 42rem',
|
|
210
|
+
'xw-full': 'max-width: 100%',
|
|
211
|
+
'x-mh-screen': 'min-height: 100vh',
|
|
212
|
+
'x-xw-sm': 'max-width: 24rem',
|
|
213
|
+
'x-xw-md': 'max-width: 28rem',
|
|
214
|
+
'x-xw-lg': 'max-width: 32rem',
|
|
215
|
+
'x-xw-xl': 'max-width: 36rem',
|
|
216
|
+
'x-xw-2xl': 'max-width: 42rem',
|
|
217
|
+
'x-xw-full': 'max-width: 100%',
|
|
218
|
+
'truncate': 'overflow: hidden; text-overflow: ellipsis; white-space: nowrap',
|
|
204
219
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aliascss",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "AliasCSS is a CSS post processor.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"url": "git+https://github.com/Rodolopho/aliascss.git"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@types/jest": "^29.5.
|
|
28
|
+
"@types/jest": "^29.5.14",
|
|
29
29
|
"@types/postcss-sorting": "^8.0.2",
|
|
30
30
|
"browser-sync": "^3.0.4",
|
|
31
31
|
"jest": "^29.6.2",
|