Skip to content

Commit

Permalink
Allow alias overwrite & added clip-path alias
Browse files Browse the repository at this point in the history
  • Loading branch information
msarca committed Apr 14, 2022
1 parent 2cbd09a commit 324e9d8
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 14 deletions.
7 changes: 4 additions & 3 deletions dist/assembler.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions dist/assembler.es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions dist/assembler.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/assembler.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@asmcss/assembler",
"version": "0.8.0",
"version": "0.8.1",
"main": "dist/assembler.cjs.js",
"module": "dist/assembler.es.js",
"browser": "dist/assembler.js",
Expand Down
6 changes: 3 additions & 3 deletions src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ export function getUserSettings(dataset: {[key: string]: string}): UserSettings
const prop = registeredProperties[i];
if (PROPERTY_LIST.indexOf(prop.name) === -1) {
PROPERTY_LIST.push(prop.name);
if (prop.aliases.length > 0) {
PROPERTY_VARIANTS[prop.name] = prop.aliases;
}
}
if (prop.aliases.length > 0) {
PROPERTY_VARIANTS[prop.name] = prop.aliases;
}
}

Expand Down
1 change: 1 addition & 0 deletions src/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ export const PROPERTY_VARIANTS = {
"background-clip": ["-webkit-background-clip", "-moz-background-clip"],
"backdrop-filter": ["-webkit-backdrop-filter"],
"box-orient": ["-webkit-box-orient"],
"clip-path": ["-webkit-clip-path"],
"column-gap": ["-moz-column-gap"],
"line-clamp": ["-webkit-line-clamp"],
"user-select": ["-webkit-user-select", "-moz-user-select"],
Expand Down
1 change: 1 addition & 0 deletions types/list.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export declare const PROPERTY_VARIANTS: {
"background-clip": string[];
"backdrop-filter": string[];
"box-orient": string[];
"clip-path": string[];
"column-gap": string[];
"line-clamp": string[];
"user-select": string[];
Expand Down

0 comments on commit 324e9d8

Please sign in to comment.