Skip to content

Commit

Permalink
fix: MasterStyle -> Style
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSeage committed Dec 16, 2021
1 parent 3ff9f04 commit e3d14c0
Show file tree
Hide file tree
Showing 19 changed files with 42 additions and 42 deletions.
4 changes: 2 additions & 2 deletions src/accent-color.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { MasterStyle } from '@master/style';
import { Style } from '@master/style';
import { ACCENT, COLOR, DASH } from './constants/css-property-keyword';

export class AccentColorStyle extends MasterStyle {
export class AccentColorStyle extends Style {
static override properties = [ACCENT + DASH + COLOR];
}
4 changes: 2 additions & 2 deletions src/appearance.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { MasterStyle } from '@master/style';
import { Style } from '@master/style';

export class AppearanceStyle extends MasterStyle {
export class AppearanceStyle extends Style {
static override properties = ['appearance'];
}
4 changes: 2 additions & 2 deletions src/border-collapse.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MasterStyle } from '@master/style';
import { Style } from '@master/style';
import { BORDER, COLLAPSE, DASH } from './constants/css-property-keyword';

export class BorderCollapseStyle extends MasterStyle {
export class BorderCollapseStyle extends Style {
static override prefixes = /^b(order)?-collapse:/;
static override properties = [BORDER + DASH + COLLAPSE];
static override supportFullName = false;
Expand Down
4 changes: 2 additions & 2 deletions src/caret-color.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { MasterStyle } from '@master/style';
import { Style } from '@master/style';
import { CARET, COLOR, DASH } from './constants/css-property-keyword';

export class CaretColorStyle extends MasterStyle {
export class CaretColorStyle extends Style {
static override properties = [CARET + DASH + COLOR];
}
4 changes: 2 additions & 2 deletions src/content.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { MasterStyle } from '@master/style';
import { Style } from '@master/style';
import { CONTENT } from './constants/css-property-keyword';

export class ContentStyle extends MasterStyle {
export class ContentStyle extends Style {
static override properties = [CONTENT];
}
4 changes: 2 additions & 2 deletions src/outline-color.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { COLOR, DASH, OUTLINE } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';
import { Style } from '@master/style';

export class OutlineColorStyle extends MasterStyle {
export class OutlineColorStyle extends Style {
static override properties = [OUTLINE + DASH + COLOR];
}
4 changes: 2 additions & 2 deletions src/outline-offset.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DASH, OFFSET, OUTLINE } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';
import { Style } from '@master/style';

export class OutlineOffsetStyle extends MasterStyle {
export class OutlineOffsetStyle extends Style {
static override properties = [OUTLINE + DASH + OFFSET];
static override defaultUnit = 'px';
}
4 changes: 2 additions & 2 deletions src/outline-style.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { DASH, OUTLINE, STYLE } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';
import { Style } from '@master/style';

export class OutlineStyleStyle extends MasterStyle {
export class OutlineStyleStyle extends Style {
static override properties = [OUTLINE + DASH + STYLE];
}
4 changes: 2 additions & 2 deletions src/outline-width.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DASH, OUTLINE, WIDTH } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';
import { Style } from '@master/style';

export class OutlineWidthStyle extends MasterStyle {
export class OutlineWidthStyle extends Style {
static override properties = [OUTLINE + DASH + WIDTH];
static override defaultUnit = 'px';
}
14 changes: 7 additions & 7 deletions src/package-lock.json

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

2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"ui"
],
"peerDependencies": {
"@master/style": "^1.0.0-alpha.14"
"@master/style": "^1.0.0-alpha.15"
},
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions src/scroll-behavior.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BEHAVIOR, DASH, SCROLL } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';
import { Style } from '@master/style';

export class ScrollBehaviorStyle extends MasterStyle {
export class ScrollBehaviorStyle extends Style {
static override properties = [SCROLL + DASH + BEHAVIOR];
}
4 changes: 2 additions & 2 deletions src/scroll-margin.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { MasterStyle } from '@master/style';
import { Style } from '@master/style';
import { DASH, MARGIN, SCROLL } from './constants/css-property-keyword';
import { B, BOTTOM, L, LEFT, R, RIGHT, T, TOP, X, Y } from './constants/direction';

export class ScrollMarginStyle extends MasterStyle {
export class ScrollMarginStyle extends Style {
static override prefixes = /^scroll-(m(x|y|t|b|l|r)|m(argin)?(-(top|bottom|left|right))?):/;
static override supportFullName = false;
override get properties(): { [key: string]: any } {
Expand Down
4 changes: 2 additions & 2 deletions src/table-layout.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { DASH, LAYOUT, TABLE } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';
import { Style } from '@master/style';

export class TableLayoutStyle extends MasterStyle {
export class TableLayoutStyle extends Style {
static override properties = [TABLE + DASH + LAYOUT];
}
4 changes: 2 additions & 2 deletions src/text-decoration-color.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { COLOR, DASH, DECORATION, TEXT } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';
import { Style } from '@master/style';

export class TextDecorationColorStyle extends MasterStyle {
export class TextDecorationColorStyle extends Style {
static override prefixes = /^t(ext)?-decoration-color:/;
static override properties = [TEXT + DASH + DECORATION + DASH + COLOR];
static override supportFullName = false;
Expand Down
4 changes: 2 additions & 2 deletions src/text-decoration-style.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DASH, DECORATION, STYLE, TEXT } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';
import { Style } from '@master/style';

export class TextDecorationStyleStyle extends MasterStyle {
export class TextDecorationStyleStyle extends Style {
static override prefixes = /^(t(ext)?-decoration-style:|t(ext)?:(solid|double|dotted|dashed|wavy))/;
static override properties = [TEXT + DASH + DECORATION + DASH + STYLE];
static override supportFullName = false;
Expand Down
4 changes: 2 additions & 2 deletions src/text-decoration-thickness.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DASH, DECORATION, TEXT, THICKNESS } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';
import { Style } from '@master/style';

export class TextDecorationThicknessStyle extends MasterStyle {
export class TextDecorationThicknessStyle extends Style {
static override prefixes = /^(t(ext)?-decoration-thickness:|t(ext)?:(auto))/;
static override properties = [TEXT + DASH + DECORATION + DASH + THICKNESS];
static override defaultUnit = 'px';
Expand Down
4 changes: 2 additions & 2 deletions src/text-indent.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DASH, INDENT, TEXT } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';
import { Style } from '@master/style';

export class TextIndentStyle extends MasterStyle {
export class TextIndentStyle extends Style {
static override prefixes = /^t(ext)?-indent:/;
static override properties = [TEXT + DASH + INDENT];
static override supportFullName = false;
Expand Down
4 changes: 2 additions & 2 deletions src/text-underline-offset.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DASH, OFFSET, TEXT, UNDERLINE } from './constants/css-property-keyword';
import { MasterStyle } from '@master/style';
import { Style } from '@master/style';

export class TextUnderlineOffsetStyle extends MasterStyle {
export class TextUnderlineOffsetStyle extends Style {
static override prefixes = /^t(ext)?-underline-offset:/;
static override properties = [TEXT + DASH + UNDERLINE + DASH + OFFSET];
static override supportFullName = false;
Expand Down

0 comments on commit e3d14c0

Please sign in to comment.