aliascss 1.5.3 → 1.5.5
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/lib/classPrinter.d.ts +1 -1
- package/lib/classPrinter.js +22 -13
- package/lib/compilers/dashedIdent.d.ts +49 -0
- package/lib/compilers/dashedIdent.js +115 -0
- package/lib/compilers/length.js +4 -2
- package/lib/css-properties-all-old-full-alias-support.d.ts +19 -0
- package/lib/css-properties-all-old-full-alias-support.js +3122 -0
- package/lib/css-properties-all.js +184 -169
- package/lib/node/compileFile.js +30 -15
- package/lib/prefix/pseudoSelectorNew.js +5 -1
- package/lib/prefix/responsive.js +7 -7
- package/lib/returnPropertyAndValue.js +10 -3
- package/lib/returnStatement.js +2 -2
- package/lib/static/staticClassNamesAlias.js +8 -8
- package/lib/utils/createCompilerObj.d.ts +3 -0
- package/lib/utils/createCompilerObj.js +18 -0
- package/lib/utils/helper.d.ts +4 -0
- package/lib/utils/helper.js +30 -3
- package/lib/x-imports.js +135 -68
- package/package.json +2 -1
- package/.prettierrc +0 -5
- package/READMEEdititng.md +0 -615
- package/aliascss.config.bk.js +0 -131
- package/aliascss.config.js +0 -50
- package/custom-compilers.js +0 -61
- package/docc.md +0 -486
- package/docs/PseudoSelector.js +0 -141
- package/docs/colors-tokens.js +0 -3771
- package/docs/mediaSelector.js +0 -49
- package/docs/staticClassNames.js +0 -15731
- package/docs/utilitiesClassName.js +0 -204
- package/jestconfig.json +0 -8
- package/old-custom-compilers.js +0 -149
- package/ts-22.js +0 -2631
- package/ts.js +0 -36
- package/tsconfig.json +0 -16
- package/tsconfig.test.json +0 -10
- package/tslint.json +0 -9
- package/webpack.config.js +0 -11
package/lib/node/compileFile.js
CHANGED
|
@@ -18,7 +18,7 @@ import postcssDiscardDuplicates from "postcss-discard-duplicates";
|
|
|
18
18
|
import cssnano from "cssnano";
|
|
19
19
|
import chokidar from "chokidar";
|
|
20
20
|
import sortMediaQueries from "postcss-sort-media-queries";
|
|
21
|
-
import {
|
|
21
|
+
import { parseKeyframeStep } from "../utils/helper.js";
|
|
22
22
|
const init = {
|
|
23
23
|
classList: [],
|
|
24
24
|
groups: [],
|
|
@@ -161,24 +161,39 @@ export function groupStatement(name, classNames, statementMaker) {
|
|
|
161
161
|
// return kfStatement + "\n}\n";
|
|
162
162
|
// }
|
|
163
163
|
export function keyframesStatement(name, timeLine, statementMaker) {
|
|
164
|
-
let kfStatement = "@keyframes " + name + "{\n";
|
|
165
164
|
const returnPnV = (e) => e.map((i) => statementMaker.make(i, null, true)).join(";");
|
|
166
|
-
|
|
167
|
-
split.forEach((each) => {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
const at = m[1].replace(/[\[\]\s%]/g, ""); // "0,25,50"
|
|
174
|
-
kfStatement += ` ${at.split(",").map((s) => s + "%").join(",")} {${returnPnV(splitByCommaOutsideParens(m[2].replace(/^\[|\]$/g, "")))}}`;
|
|
175
|
-
}
|
|
176
|
-
catch (error) {
|
|
177
|
-
console.error("Not a valid entry for AliasCSS keyframes processor : " + each, error);
|
|
165
|
+
let steps = "";
|
|
166
|
+
timeLine.trim().split(/\s+/).forEach((each) => {
|
|
167
|
+
// @50[…] @50-[…] @50%[…] @[0,25,50][…] @50-o-0 @[0,25]-o-0
|
|
168
|
+
const step = parseKeyframeStep(each);
|
|
169
|
+
if (!step) {
|
|
170
|
+
console.error("Not a valid entry for AliasCSS keyframes processor : " + each + " (expected @50-[…], @50-class or @[0,50]-class)");
|
|
171
|
+
return;
|
|
178
172
|
}
|
|
173
|
+
steps += ` ${step.at} {${returnPnV(step.classes)}}`;
|
|
179
174
|
});
|
|
180
|
-
|
|
175
|
+
// no valid step: write nothing rather than an empty @keyframes
|
|
176
|
+
return steps ? "@keyframes " + name + "{\n" + steps + "\n}\n" : "";
|
|
181
177
|
}
|
|
178
|
+
// export function keyframesStatement(name: string, timeLine: string, statementMaker: { make: (a: string, b?: string | null, c?: boolean) => string }) {
|
|
179
|
+
// let kfStatement = "@keyframes " + name + "{\n";
|
|
180
|
+
// const returnPnV = (e: string[]) => e.map((i) => statementMaker.make(i, null, true)).join(";");
|
|
181
|
+
// const split = timeLine.trim().split(/\s+/);
|
|
182
|
+
// split.forEach((each: string) => {
|
|
183
|
+
// try {
|
|
184
|
+
// // @0[…] @0-[…] @[0,25,50][…] @[0,25,50]-[…]
|
|
185
|
+
// const m = each.match(/^@(\[[\d,\s%]+\]|[\d.]+)-?(\[.*\])$/);
|
|
186
|
+
// if (!m) throw new Error("expected @50[...] or @[0,50][...]");
|
|
187
|
+
// const at = m[1].replace(/[\[\]\s%]/g, ""); // "0,25,50"
|
|
188
|
+
// kfStatement += ` ${at.split(",").map((s) => s + "%").join(",")} {${returnPnV(
|
|
189
|
+
// splitByCommaOutsideParens(m[2].replace(/^\[|\]$/g, ""))
|
|
190
|
+
// )}}`;
|
|
191
|
+
// } catch (error) {
|
|
192
|
+
// console.error("Not a valid entry for AliasCSS keyframes processor : " + each, error);
|
|
193
|
+
// }
|
|
194
|
+
// });
|
|
195
|
+
// return kfStatement + "\n}\n";
|
|
196
|
+
// }
|
|
182
197
|
export function createCSSFileByFile(file_1) {
|
|
183
198
|
return __awaiter(this, arguments, void 0, function* (file, bool = false) {
|
|
184
199
|
const [gbContent, content, module] = compileFile(file, config, statementMaker, init.classList);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import prefix, { createRegexForPseudo } from './PseudoPrefixNew.js';
|
|
2
2
|
import extractPrefix from './extractPrefix.js';
|
|
3
|
+
import { splitTopLevel } from '../utils/helper.js';
|
|
3
4
|
// ---------------------------------------------------------------------------
|
|
4
5
|
// Built once at module load, not on every call
|
|
5
6
|
// ---------------------------------------------------------------------------
|
|
@@ -50,7 +51,10 @@ export default function PseudoEleStateNew(data) {
|
|
|
50
51
|
const [inner, rest] = parts;
|
|
51
52
|
if (!inner)
|
|
52
53
|
return [rest, ''];
|
|
53
|
-
|
|
54
|
+
// Inside ( ), a bare word is an element: nav → _nav, h1,h2 → _h1,_h2
|
|
55
|
+
const args = splitTopLevel(inner).map((a) => (/^[a-zA-Z]/.test(a) ? '_' + a : a)).join(',');
|
|
56
|
+
const [result] = extractPrefix(args + '-display-none');
|
|
57
|
+
// const [result] = extractPrefix(inner + '-display-none');
|
|
54
58
|
return [rest, `${prefix['-' + fn[1]]}(${result})`];
|
|
55
59
|
}
|
|
56
60
|
// 2. --nth-child(…) --nc(…) …: argument passed through as is
|
package/lib/prefix/responsive.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const target = {
|
|
2
|
-
print: '@media print',
|
|
2
|
+
// print: '@media print',
|
|
3
3
|
'@print': '@media print',
|
|
4
4
|
'@hover-capable': '@media screen and (hover: hover)',
|
|
5
5
|
'@landscape': '@media (orientation: landscape)',
|
|
@@ -25,19 +25,19 @@ const target = {
|
|
|
25
25
|
'@resolution-xl': '@media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi)',
|
|
26
26
|
'@contrast-more': '@media (prefers-contrast: more)',
|
|
27
27
|
'@data-reduce': '@media (prefers-reduced-data: reduce)',
|
|
28
|
-
xs: '@media (max-width: 575.99px)',
|
|
28
|
+
// xs: '@media (max-width: 575.99px)',
|
|
29
29
|
'@xs': '@media (max-width: 575.99px)',
|
|
30
30
|
// NOTE: bare `sm` collides with the `sm` (scroll-margin) property alias:
|
|
31
31
|
// `sm-10px` is read as a media scope. Prefer `@sm` in authored classes.
|
|
32
|
-
sm: '@media (min-width: 576px)',
|
|
32
|
+
// sm: '@media (min-width: 576px)',
|
|
33
33
|
'@sm': '@media (min-width: 576px)',
|
|
34
|
-
md: '@media (min-width: 768px)',
|
|
34
|
+
// md: '@media (min-width: 768px)',
|
|
35
35
|
'@md': '@media (min-width: 768px)',
|
|
36
|
-
lg: '@media (min-width: 992px)',
|
|
36
|
+
// lg: '@media (min-width: 992px)',
|
|
37
37
|
'@lg': '@media (min-width: 992px)',
|
|
38
|
-
xl: '@media (min-width: 1200px)',
|
|
38
|
+
// xl: '@media (min-width: 1200px)',
|
|
39
39
|
'@xl': '@media (min-width: 1200px)',
|
|
40
|
-
xxl: '@media (min-width: 1408px)',
|
|
40
|
+
// xxl: '@media (min-width: 1408px)',
|
|
41
41
|
'@xxl': '@media (min-width: 1408px)',
|
|
42
42
|
dark: '@media (prefers-color-scheme: dark)',
|
|
43
43
|
'@dark': '@media (prefers-color-scheme: dark)',
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import compileDashedIdent, { isDashedIdentProperty } from './compilers/dashedIdent.js';
|
|
1
2
|
/**
|
|
2
3
|
* A value written after ":" has no separator dash, but property compilers expect the value
|
|
3
4
|
* exactly as it follows the property in a normal class: "-8px" in m-8px (dash = separator),
|
|
@@ -117,6 +118,12 @@ bool = false) {
|
|
|
117
118
|
}
|
|
118
119
|
// --End of Group type
|
|
119
120
|
const prop = property.property ? property.property : propertyKey;
|
|
121
|
+
// Properties whose values are --names, not CSS variables (anchor-name, timelines, …)
|
|
122
|
+
if (isDashedIdentProperty(prop)) {
|
|
123
|
+
const value = compileDashedIdent(prop, className.replace(propertyKey, ''));
|
|
124
|
+
if (value)
|
|
125
|
+
return bool ? [prop, value] : prop + ":" + value;
|
|
126
|
+
}
|
|
120
127
|
// Case 2: CSS Variables
|
|
121
128
|
if (/--var--/.test(className)) {
|
|
122
129
|
const splits = className.split(/--var--/);
|
|
@@ -215,10 +222,10 @@ bool = false) {
|
|
|
215
222
|
}
|
|
216
223
|
else {
|
|
217
224
|
const asWritten = valuePortion.replace(/^-/, '');
|
|
225
|
+
if (!asWritten)
|
|
226
|
+
return bool ? [null, null] : null; // "fs", "adu", "c": a property with no value is not a class
|
|
218
227
|
console.warn(`AliasCSS: "${className}": couldn't compile the value "${asWritten}", used it as written`);
|
|
219
|
-
|
|
220
|
-
// (the old one-liner returned only the value: `prop + ":" + x ? x : …` parses as `(prop + ":" + x) ? x : …`)
|
|
221
|
-
return bool ? [prop, v] : prop + ":" + v;
|
|
228
|
+
return bool ? [prop, asWritten] : prop + ":" + asWritten;
|
|
222
229
|
}
|
|
223
230
|
}
|
|
224
231
|
else {
|
package/lib/returnStatement.js
CHANGED
|
@@ -188,9 +188,9 @@ export const compiler = {
|
|
|
188
188
|
let [elementAndPseudo, important] = ['', ''];
|
|
189
189
|
// workingClassName=workingClassName.replace(/[_][\.]([a-zA-Z])/g,(s,e)=>"_"+'ACSS').replace(/[.]/g,"d").replace(/[%]/g,'p')
|
|
190
190
|
// 3. Process --important flag
|
|
191
|
-
if (/(
|
|
191
|
+
if (/(--imp|--important)$/.test(className)) {
|
|
192
192
|
important = ' !important';
|
|
193
|
-
workingClassName = workingClassName.replace(/(
|
|
193
|
+
workingClassName = workingClassName.replace(/(--imp|--important)$/, '');
|
|
194
194
|
}
|
|
195
195
|
// 4. process Pseudo State
|
|
196
196
|
const prefixPseudoElementAttribute = extractPrefix(workingClassName);
|
|
@@ -576,11 +576,11 @@ export const staticClassNamesAlias = {
|
|
|
576
576
|
'czo': 'cursor: zoom-out',
|
|
577
577
|
'db': 'display: block',
|
|
578
578
|
'dc2': 'display: compact',
|
|
579
|
-
'dc': 'display: container',
|
|
579
|
+
// 'dc': 'display: container',
|
|
580
580
|
'd/contents': 'display: contents',
|
|
581
581
|
// 'dconts': 'display: container',
|
|
582
582
|
'dc/compact': 'display: compact',
|
|
583
|
-
'dc/container': 'display: container',
|
|
583
|
+
// 'dc/container': 'display: container',
|
|
584
584
|
'dcp': 'display: compact',
|
|
585
585
|
'df': 'display: flex',
|
|
586
586
|
'dg': 'display: grid',
|
|
@@ -1105,7 +1105,7 @@ export const staticClassNamesAlias = {
|
|
|
1105
1105
|
'owt/thin': 'outline-width: thin',
|
|
1106
1106
|
'owt/thick': 'outline-width: thick',
|
|
1107
1107
|
'owtn': 'outline-width: thin',
|
|
1108
|
-
'
|
|
1108
|
+
'owa': 'overflow-wrap: anywhere',
|
|
1109
1109
|
'oxa': 'overflow-x: auto',
|
|
1110
1110
|
'oxh': 'overflow-x: hidden',
|
|
1111
1111
|
'oxs': 'overflow-x: scroll',
|
|
@@ -1138,7 +1138,7 @@ export const staticClassNamesAlias = {
|
|
|
1138
1138
|
'pbia2': 'page-break-inside: avoid',
|
|
1139
1139
|
'pbia': 'page-break-inside: auto',
|
|
1140
1140
|
'pbiav': 'page-break-inside: avoid',
|
|
1141
|
-
'pc': 'position: center',
|
|
1141
|
+
// 'pc': 'position: center',
|
|
1142
1142
|
'pcbc': 'place-content: baseline center',
|
|
1143
1143
|
'pccs': 'place-content: center start',
|
|
1144
1144
|
'pcel': 'place-content: end left',
|
|
@@ -1309,12 +1309,12 @@ export const staticClassNamesAlias = {
|
|
|
1309
1309
|
'tdn': 'text-decoration: none',
|
|
1310
1310
|
'tdo': 'text-decoration: overline',
|
|
1311
1311
|
'tdsbd': 'text-decoration-skip: box-decoration',
|
|
1312
|
-
'tdsd2': 'text-decoration-style:
|
|
1312
|
+
'tdsd2': 'text-decoration-style:double ',
|
|
1313
1313
|
'tdsd3': 'text-decoration-style: dotted',
|
|
1314
1314
|
'tdsd': 'text-decoration-style: dashed',
|
|
1315
|
-
'tdsd/double': 'text-decoration-style:
|
|
1315
|
+
'tdsd/double': 'text-decoration-style: double',
|
|
1316
1316
|
'tdsd/dotted': 'text-decoration-style: dotted',
|
|
1317
|
-
'tdsd/dashed': 'text-decoration-style:
|
|
1317
|
+
'tdsd/dashed': 'text-decoration-style: dashed',
|
|
1318
1318
|
'tdsdb': 'text-decoration-style: double',
|
|
1319
1319
|
'tdsds': 'text-decoration-style: dashed',
|
|
1320
1320
|
'tdsdt': 'text-decoration-style: dotted',
|
|
@@ -1522,7 +1522,7 @@ export const staticClassNamesAlias = {
|
|
|
1522
1522
|
'wwbw': 'word-wrap: break-word',
|
|
1523
1523
|
'wwn': 'word-wrap: normal',
|
|
1524
1524
|
'wwnl': 'word-wrap: normal',
|
|
1525
|
-
'
|
|
1525
|
+
'wwa': 'word-wrap: anywhere',
|
|
1526
1526
|
'wxc': 'width:max-content',
|
|
1527
1527
|
'xhn': 'max-height: none',
|
|
1528
1528
|
'xwn': 'max-width: none',
|
|
@@ -21,6 +21,9 @@ export default _default;
|
|
|
21
21
|
export declare function staticValueCompiler(property: string, alias: string | boolean | undefined, values: string[]): {
|
|
22
22
|
[key: string]: string;
|
|
23
23
|
};
|
|
24
|
+
export declare function oldstaticValueCompiler(property: string, alias: string | boolean | undefined, values: string[]): {
|
|
25
|
+
[key: string]: string;
|
|
26
|
+
};
|
|
24
27
|
export declare function extractProperty(className: string, data: {
|
|
25
28
|
[key: string]: Property;
|
|
26
29
|
}): ({} | null)[];
|
|
@@ -18,6 +18,24 @@ export default (key, compiler) => {
|
|
|
18
18
|
return [dynamicCompilerObj, staticCompilerObj];
|
|
19
19
|
};
|
|
20
20
|
export function staticValueCompiler(property, alias = false, values) {
|
|
21
|
+
const result = {};
|
|
22
|
+
values.forEach((value) => {
|
|
23
|
+
const parts = value.split(':');
|
|
24
|
+
const val = parts[0].trim();
|
|
25
|
+
if (!val)
|
|
26
|
+
return; // '' placeholder: no class, no empty declaration
|
|
27
|
+
parts.forEach((part) => {
|
|
28
|
+
const each = part.trim();
|
|
29
|
+
if (!each || /\s/.test(each))
|
|
30
|
+
return; // a value with spaces can't be a class; its short code still is
|
|
31
|
+
result[`${property}-${each}`] = `${property}:${val}`;
|
|
32
|
+
if (alias)
|
|
33
|
+
result[`${alias}-${each}`] = `${property}:${val}`;
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
return result;
|
|
37
|
+
}
|
|
38
|
+
export function oldstaticValueCompiler(property, alias = false, values) {
|
|
21
39
|
const result = {};
|
|
22
40
|
if (values.length) {
|
|
23
41
|
values.forEach((value) => {
|
package/lib/utils/helper.d.ts
CHANGED
|
@@ -17,3 +17,7 @@ export declare function matchTrailingGroup(s: string): {
|
|
|
17
17
|
} | null;
|
|
18
18
|
export declare function splitTopLevel(str: string): string[];
|
|
19
19
|
export declare const joinGroupItem: (prefix: string, item: string) => string;
|
|
20
|
+
export declare function parseKeyframeStep(step: string): {
|
|
21
|
+
at: string;
|
|
22
|
+
classes: string[];
|
|
23
|
+
} | null;
|
package/lib/utils/helper.js
CHANGED
|
@@ -142,6 +142,33 @@ export function splitTopLevel(str) {
|
|
|
142
142
|
return out;
|
|
143
143
|
}
|
|
144
144
|
// Join prefix + item. A combinator item (starts with "_") is attached directly.
|
|
145
|
-
export const joinGroupItem = (prefix, item) =>
|
|
146
|
-
|
|
147
|
-
|
|
145
|
+
export const joinGroupItem = (prefix, item) => {
|
|
146
|
+
if (prefix && item.startsWith('_'))
|
|
147
|
+
return prefix + item;
|
|
148
|
+
if (/^-[a-z]/i.test(item))
|
|
149
|
+
return prefix + item; // -webkit-…, -moz-…: the item's own dash is the joiner
|
|
150
|
+
return (prefix + '-').replace(/--$/, '-') + item.replace(/^--/, '-');
|
|
151
|
+
};
|
|
152
|
+
// Parse one keyframes step written as @<stops><styles>:
|
|
153
|
+
// stops: 25 | 25% | 12.5 | [0,25,50] | [0,50%]
|
|
154
|
+
// styles: [class,class] a group (commas inside ( ) are kept)
|
|
155
|
+
// class a single class, taken as written
|
|
156
|
+
// An optional "-" separates the stops from the styles: @25dn = @25-dn, @25[o-0] = @25-[o-0].
|
|
157
|
+
// "--" right after the stops starts a CSS variable: @25--x-angle:90deg.
|
|
158
|
+
export function parseKeyframeStep(step) {
|
|
159
|
+
const m = step.match(/^@(\[[\d.,%]+\]|[\d.]+%?)(.+)$/);
|
|
160
|
+
if (!m)
|
|
161
|
+
return null;
|
|
162
|
+
const stops = m[1].replace(/[\[\]%]/g, '').split(',');
|
|
163
|
+
if (!stops.every((s) => /^\d+(\.\d+)?$/.test(s)))
|
|
164
|
+
return null;
|
|
165
|
+
let body = m[2];
|
|
166
|
+
if (body.startsWith('-') && !body.startsWith('--'))
|
|
167
|
+
body = body.slice(1); // optional separator
|
|
168
|
+
if (!body || (/^[\d.%-]/.test(body) && !body.startsWith('--')))
|
|
169
|
+
return null;
|
|
170
|
+
const classes = body.startsWith('[') && body.endsWith(']')
|
|
171
|
+
? splitByCommaOutsideParens(body.slice(1, -1))
|
|
172
|
+
: [body];
|
|
173
|
+
return classes.length ? { at: stops.map((s) => s + '%').join(','), classes } : null;
|
|
174
|
+
}
|
package/lib/x-imports.js
CHANGED
|
@@ -156,76 +156,143 @@ export default {
|
|
|
156
156
|
'x-import-utils-classes': {
|
|
157
157
|
type: 'statement',
|
|
158
158
|
statement: `
|
|
159
|
-
[c-gray-900
|
|
160
|
-
[c-
|
|
161
|
-
[c-
|
|
162
|
-
[c-
|
|
163
|
-
[c-gray-
|
|
164
|
-
[c-
|
|
165
|
-
[c-
|
|
166
|
-
[c-
|
|
159
|
+
[c-gray-900]--as-text-primary
|
|
160
|
+
@dark[c-grayDark-50]--as-text-primary
|
|
161
|
+
[c-white]--as-text-primary-on-brand
|
|
162
|
+
@dark[c-grayDark-50]--as-text-primary-on-brand
|
|
163
|
+
[c-gray-700,--hover-c-gray-800]--as-text-secondary
|
|
164
|
+
@dark[c-grayDark-300,--hover-c-grayDark-200]--as-text-secondary
|
|
165
|
+
[c-brand-200]--as-text-secondary-on-brand
|
|
166
|
+
@dark[c-grayDark-300]--as-text-secondary-on-brand
|
|
167
|
+
[c-gray-600,--h-c-gray-700]--as-text-tertiary
|
|
168
|
+
@dark[c-grayDark-400,--h-c-grayDark-300]--as-text-tertiary
|
|
169
|
+
[c-brand-200]--as-text-tertiary-on-brand
|
|
170
|
+
@dark[c-grayDark-300]--as-text-tertiary-on-brand
|
|
171
|
+
[c-gray-500]--as-text-quaternary
|
|
172
|
+
@dark[c-grayDark-400]--as-text-quaternary
|
|
173
|
+
[c-brand-300]--as-text-quaternary-on-brand
|
|
174
|
+
@dark[c-grayDark-400]--as-text-quaternary-on-brand
|
|
167
175
|
[c-white]--as-text-white
|
|
168
176
|
c-gray-500--as-text-disabled
|
|
169
|
-
[c-gray-500
|
|
170
|
-
[c-
|
|
171
|
-
[c-
|
|
172
|
-
[c-
|
|
173
|
-
[c-brand-
|
|
174
|
-
[c-
|
|
175
|
-
[c-
|
|
176
|
-
[c-
|
|
177
|
-
[c-
|
|
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
|
-
[background-color-
|
|
206
|
-
[background-color-white
|
|
207
|
-
[background-color-gray-
|
|
208
|
-
[background-color-
|
|
209
|
-
[background-color-gray-
|
|
210
|
-
[background-color-
|
|
211
|
-
[background-color-gray-
|
|
212
|
-
[background-color-
|
|
213
|
-
[background-color-gray-
|
|
214
|
-
[background-color-
|
|
215
|
-
[background-color-gray-
|
|
216
|
-
[background-color-
|
|
217
|
-
[background-color-
|
|
218
|
-
[background-color-
|
|
219
|
-
[background-color-
|
|
220
|
-
[background-color-
|
|
221
|
-
[background-color-brand-
|
|
222
|
-
[background-color-brand-
|
|
223
|
-
[background-color-
|
|
224
|
-
[background-color-
|
|
225
|
-
[background-color-
|
|
226
|
-
[background-color-
|
|
227
|
-
[background-color-
|
|
228
|
-
[background-color-
|
|
177
|
+
[c-gray-500]--as-text-placeholder
|
|
178
|
+
@dark[c-grayDark-400]--as-text-placeholder
|
|
179
|
+
[c-gray-300]--as-text-placeholder-subtle
|
|
180
|
+
@dark[c-grayDark-700]--as-text-placeholder-subtle
|
|
181
|
+
[c-brand-900]--as-text-brand-primary
|
|
182
|
+
@dark[c-grayDark-50]--as-text-brand-primary
|
|
183
|
+
[c-brand-700]--as-text-brand-secondary
|
|
184
|
+
@dark[c-grayDark-300]--as-text-brand-secondary
|
|
185
|
+
[c-brand-600]--as-text-brand-tertiary
|
|
186
|
+
@dark[c-grayDark-400]--as-text-brand-tertiary
|
|
187
|
+
[c-brand-600]--as-text-brand-tertiary-alt
|
|
188
|
+
@dark[c-grayDark-50]--as-text-brand-tertiary-alt
|
|
189
|
+
[c-error-600]--as-text-error-primary
|
|
190
|
+
@dark[c-error-400]--as-text-error-primary
|
|
191
|
+
[c-warning-600]--as-text-warning-primary
|
|
192
|
+
@dark[c-warning-400]--as-text-warning-primary
|
|
193
|
+
[c-success-600]--as-text-success-primary
|
|
194
|
+
@dark[c-success-400]--as-text-success-primary
|
|
195
|
+
[border-color-gray-300]--as-border-primary
|
|
196
|
+
@dark[border-color-grayDark-700]--as-border-primary
|
|
197
|
+
[border-color-gray-200]--as-border-secondary
|
|
198
|
+
@dark[border-color-grayDark-800]--as-border-secondary
|
|
199
|
+
[border-color-gray-100]--as-border-tertiary
|
|
200
|
+
@dark[border-color-grayDark-800]--as-border-tertiary
|
|
201
|
+
[border-color-gray-300]--as-border-disabled
|
|
202
|
+
@dark[border-color-grayDark-700]--as-border-disabled
|
|
203
|
+
[border-color-gray-200]--as-border-disabled-subtle
|
|
204
|
+
@dark[border-color-grayDark-800]--as-border-disabled-subtle
|
|
205
|
+
[border-color-brand-500]--as-border-brand
|
|
206
|
+
@dark[border-color-brand-400]--as-border-brand
|
|
207
|
+
[border-color-brand-600]--as-border-brand-alt
|
|
208
|
+
@dark[border-color-grayDark-700]--as-border-brand-alt
|
|
209
|
+
[border-color-error-500]--as-border-error
|
|
210
|
+
@dark[border-color-error-400]--as-border-error
|
|
211
|
+
[border-color-error-300]--as-border-error-subtle
|
|
212
|
+
@dark[border-color-error-400]--as-border-error-subtle
|
|
213
|
+
[background-color-gray-900]--as-fg-primary
|
|
214
|
+
@dark[background-color-white]--as-fg-primary
|
|
215
|
+
[background-color-gray-700,--h-bgc-gray-800]--as-fg-secondary
|
|
216
|
+
@dark[background-color-grayDark-300,--h-bgc-grayDark-200]--as-fg-secondary
|
|
217
|
+
[background-color-gray-600,--h-bgc-gray-700]--as-fg-tertiary
|
|
218
|
+
@dark[background-color-grayDark-400,--h-bgc-grayDark-300]--as-fg-tertiary
|
|
219
|
+
[background-color-gray-500,--h-bgc-gray-400]--as-fg-quaternary
|
|
220
|
+
@dark[background-color-grayDark-600,--h-bgc-grayDark-300]--as-fg-quaternary
|
|
221
|
+
[background-color-gray-400,--h-bgc-gray-500]--as-fg-quinary
|
|
222
|
+
@dark[background-color-grayDark-500,--h-bgc-grayDark-400]--as-fg-quinary
|
|
223
|
+
[background-color-gray-300]--as-fg-senary
|
|
224
|
+
@dark[background-color-grayDark-600]--as-fg-senary
|
|
225
|
+
[background-color-gray-400]--as-fg-disabled
|
|
226
|
+
@dark[background-color-grayDark-500]--as-fg-disabled
|
|
227
|
+
[background-color-gray-300]--as-fg-disabled-subtle
|
|
228
|
+
@dark[background-color-grayDark-600]--as-fg-disabled-subtle
|
|
229
|
+
[background-color-brand-600]--as-fg-brand-primary
|
|
230
|
+
@dark[background-color-brand-500]--as-fg-brand-primary
|
|
231
|
+
[background-color-brand-600]--as-fg-brand-primary-alt
|
|
232
|
+
@dark[background-color-grayDark-300]--as-fg-brand-primary-alt
|
|
233
|
+
[background-color-brand-500]--as-fg-brand-secondary
|
|
234
|
+
@dark[background-color-brand-500]--as-fg-brand-secondary
|
|
235
|
+
[background-color-error-600]--as-fg-error-primary
|
|
236
|
+
@dark[background-color-error-500]--as-fg-error-primary
|
|
237
|
+
[background-color-error-500]--as-fg-error-secondary
|
|
238
|
+
@dark[background-color-error-400]--as-fg-error-secondary
|
|
239
|
+
[background-color-warning-600]--as-fg-warning-primary
|
|
240
|
+
@dark[background-color-warning-500]--as-fg-warning-primary
|
|
241
|
+
[background-color-warning-500]--as-fg-warning-secondary
|
|
242
|
+
@dark[background-color-warning-400]--as-fg-warning-secondary
|
|
243
|
+
[background-color-success-600]--as-fg-success-primary
|
|
244
|
+
@dark[background-color-success-500]--as-fg-success-primary
|
|
245
|
+
[background-color-success-500]--as-fg-success-secondary
|
|
246
|
+
@dark[background-color-success-400]--as-fg-success-secondary
|
|
247
|
+
|
|
248
|
+
[background-color-white,--h-bgc-gray-50]--as-bg-primary
|
|
249
|
+
@dark[background-color-grayDark-950,--h-bgc-grayDark-800]--as-bg-primary
|
|
250
|
+
[background-color-white]--as-bg-primary-alt
|
|
251
|
+
@dark[background-color-grayDark-900]--as-bg-primary-alt
|
|
252
|
+
[background-color-gray-950]--as-bg-primary-solid
|
|
253
|
+
@dark[background-color-grayDark-900]--as-bg-primary-solid
|
|
254
|
+
[background-color-gray-50,--h-bgc-gray-100]--as-bg-secondary
|
|
255
|
+
@dark[background-color-grayDark-900,--h-bgc-grayDark-800]--as-bg-secondary
|
|
256
|
+
[background-color-gray-50]--as-bg-secondary-alt
|
|
257
|
+
@dark[background-color-grayDark-950]--as-bg-secondary-alt
|
|
258
|
+
[background-color-gray-25]--as-bg-secondary-subtle
|
|
259
|
+
@dark[background-color-grayDark-900]--as-bg-secondary-subtle
|
|
260
|
+
[background-color-gray-600]--as-bg-secondary-solid
|
|
261
|
+
@dark[background-color-grayDark-600]--as-bg-secondary-solid
|
|
262
|
+
[background-color-gray-100]--as-bg-tertiary
|
|
263
|
+
@dark[background-color-grayDark-800]--as-bg-tertiary
|
|
264
|
+
[background-color-gray-200]--as-bg-quaternary
|
|
265
|
+
@dark[background-color-grayDark-700]--as-bg-quaternary
|
|
266
|
+
[background-color-gray-50]--as-bg-active
|
|
267
|
+
@dark[background-color-grayDark-800]--as-bg-active
|
|
268
|
+
[background-color-gray-100]--as-bg-disabled
|
|
269
|
+
@dark[background-color-grayDark-800]--as-bg-disabled
|
|
270
|
+
[background-color-gray-950]--as-bg-overlay
|
|
271
|
+
@dark[background-color-grayDark-800]--as-bg-overlay
|
|
272
|
+
[background-color-brand-50]--as-bg-brand-primary
|
|
273
|
+
@dark[background-color-brand-500]--as-bg-brand-primary
|
|
274
|
+
[background-color-brand-50]--as-bg-brand-primary-alt
|
|
275
|
+
@dark[background-color-grayDark-800]--as-bg-brand-primary-alt
|
|
276
|
+
[background-color-brand-100]--as-bg-brand-secondary
|
|
277
|
+
@dark[background-color-brand-600]--as-bg-brand-secondary
|
|
278
|
+
[background-color-brand-600,--h-bgc-brand-700]--as-bg-brand-solid
|
|
279
|
+
@dark[background-color-brand-600,--h-bgc-brand-500]--as-bg-brand-solid
|
|
280
|
+
[background-color-brand-800]--as-bg-section
|
|
281
|
+
@dark[background-color-grayDark-800]--as-bg-section
|
|
282
|
+
[background-color-brand-700]--as-bg-section-subtle
|
|
283
|
+
@dark[background-color-grayDark-950]--as-bg-section-subtle
|
|
284
|
+
[background-color-error-50]--as-bg-error-primary
|
|
285
|
+
@dark[background-color-error-500]--as-bg-error-primary
|
|
286
|
+
[background-color-warning-50]--as-bg-warning-primary
|
|
287
|
+
@dark[background-color-warning-500]--as-bg-warning-primary
|
|
288
|
+
[background-color-warning-100]--as-bg-warning-secondary
|
|
289
|
+
@dark[background-color-warning-600]--as-bg-warning-secondary
|
|
290
|
+
[background-color-warning-600]--as-bg-warning-solid
|
|
291
|
+
@dark[background-color-warning-600]--as-bg-warning-solid
|
|
292
|
+
[background-color-success-100]--as-bg-success-primary
|
|
293
|
+
@dark[background-color-success-600]--as-bg-success-primary
|
|
294
|
+
[background-color-success-600]--as-bg-success-solid
|
|
295
|
+
@dark[background-color-success-600]--as-bg-success-solid
|
|
229
296
|
`,
|
|
230
297
|
},
|
|
231
298
|
// React Aria utililies , color and Theme
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aliascss",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.5",
|
|
4
4
|
"description": "AliasCSS is a CSS post processor.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
7
7
|
"bin": "bin/aliascss.js",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"typings": "dist/index.d.ts",
|
|
10
|
+
"files": ["lib", "dist", "bin", "llms.txt", "README.md", "LICENSE", "CHANGELOG.md"],
|
|
10
11
|
"scripts": {
|
|
11
12
|
"test": "jest --config jestconfig.json",
|
|
12
13
|
"build": "tsc",
|