Skip to content

Commit

Permalink
fix: property -> key
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Dec 18, 2021
1 parent 3e16dc6 commit 8ce9118
Show file tree
Hide file tree
Showing 147 changed files with 152 additions and 153 deletions.
2 changes: 1 addition & 1 deletion src/accent-color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { Style } from '@master/style';
import { ACCENT, COLOR, DASH } from './constants/css-property-keyword';

export class AccentColorStyle extends Style {
static override property = ACCENT + DASH + COLOR;
static override key = ACCENT + DASH + COLOR;
}
2 changes: 1 addition & 1 deletion src/align-content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { ALIGN, CONTENT, DASH } from './constants/css-property-keyword';
import { Style } from '@master/style';

export class AlignContentStyle extends Style {
static override property = ALIGN + DASH + CONTENT;
static override key = ALIGN + DASH + CONTENT;
}
2 changes: 1 addition & 1 deletion src/align-items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { ALIGN, DASH, ITEMS } from './constants/css-property-keyword';
import { Style } from '@master/style';

export class AlignItemsStyle extends Style {
static override property = ALIGN + DASH + ITEMS;
static override key = ALIGN + DASH + ITEMS;
}
2 changes: 1 addition & 1 deletion src/align-self.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { ALIGN, DASH, SELF } from './constants/css-property-keyword';
import { Style } from '@master/style';

export class AlignSelfStyle extends Style {
static override property = ALIGN + DASH + SELF;
static override key = ALIGN + DASH + SELF;
}
2 changes: 1 addition & 1 deletion src/animation-delay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { Style } from '@master/style';

export class AnimationDelayStyle extends Style {
static override prefixes = /^\*delay:/;
static override property = ANIMATION + DASH + DELAY;
static override key = ANIMATION + DASH + DELAY;
static override unit = 'ms';
}
2 changes: 1 addition & 1 deletion src/animation-direction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { Style } from '@master/style';

export class AnimationDirectionStyle extends Style {
static override prefixes = /^\*direction:/;
static override property = ANIMATION + DASH + DIRECTION;
static override key = ANIMATION + DASH + DIRECTION;
}
2 changes: 1 addition & 1 deletion src/animation-duration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { Style } from '@master/style';

export class AnimationDurationStyle extends Style {
static override prefixes = /^\*duration:/;
static override property = ANIMATION + DASH + DURATION;
static override key = ANIMATION + DASH + DURATION;
static override unit = 'ms';
}
2 changes: 1 addition & 1 deletion src/animation-fill-mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { Style } from '@master/style';

export class AnimationFillModeStyle extends Style {
static override prefixes = /^\*fill-mode:/;
static override property = ANIMATION + DASH + FILL + DASH + MODE;
static override key = ANIMATION + DASH + FILL + DASH + MODE;
}
2 changes: 1 addition & 1 deletion src/animation-iteration-count.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { Style } from '@master/style';

export class AnimationIterationCountStyle extends Style {
static override prefixes = /^\*iteration-count:/;
static override property = ANIMATION + DASH + ITERATION + DASH + COUNT;
static override key = ANIMATION + DASH + ITERATION + DASH + COUNT;
}
2 changes: 1 addition & 1 deletion src/animation-name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { Style } from '@master/style';

export class AnimationNameStyle extends Style {
static override prefixes = /^\*name:/;
static override property = ANIMATION + DASH + NAME;
static override key = ANIMATION + DASH + NAME;
}
2 changes: 1 addition & 1 deletion src/animation-play-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { Style } from '@master/style';

export class AnimationPlayStateStyle extends Style {
static override prefixes = /^\*play-state:/;
static override property = ANIMATION + DASH + PLAY_STATE;
static override key = ANIMATION + DASH + PLAY_STATE;
}
2 changes: 1 addition & 1 deletion src/animation-timing-function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { Style } from '@master/style';

export class AnimationTimingFunctionStyle extends Style {
static override prefixes = /^\*easing:/;
static override property = ANIMATION + DASH + TIMING_FUNCTION;
static override key = ANIMATION + DASH + TIMING_FUNCTION;
}
2 changes: 1 addition & 1 deletion src/animation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { Style } from '@master/style';

export class AnimationStyle extends Style {
static override symbol = '*';
static override property = ANIMATION;
static override key = ANIMATION;
}
2 changes: 1 addition & 1 deletion src/appearance.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Style } from '@master/style';

export class AppearanceStyle extends Style {
static override property = 'appearance';
static override key = 'appearance';
}
2 changes: 1 addition & 1 deletion src/aspect-radio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { SQUARE, VIDEO, ASPECT, RATIO, DASH } from './constants/css-property-key

export class AspectRadioStyle extends Style {
static override prefixes = /^aspect:/;
static override property = ASPECT + DASH + RATIO;
static override key = ASPECT + DASH + RATIO;
static override unit = '';
static override semantics = {
[SQUARE]: '1/1',
Expand Down
2 changes: 1 addition & 1 deletion src/backdrop-filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { Style } from '@master/style';

export class BackdropFilterStyle extends Style {
static override prefixes = /^bd:/;
static override property = BACKDROP + DASH + FILTER;
static override key = BACKDROP + DASH + FILTER;
}
2 changes: 1 addition & 1 deletion src/background-attachment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { ATTACHMENT, BACKGROUND, DASH } from './constants/css-property-keyword';

export class BackgroundAttachmentStyle extends Style {
static override prefixes = /^(bg-attachment:|(bg|background):(fixed|local|scroll))/;
static override property = BACKGROUND + DASH + ATTACHMENT;
static override key = BACKGROUND + DASH + ATTACHMENT;
}
2 changes: 1 addition & 1 deletion src/background-blend-mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { BACKGROUND, BLEND, DASH, MODE } from './constants/css-property-keyword'

export class BackgroundBlendModeStyle extends Style {
static override prefixes = /^bg-blend:/;
static override property = BACKGROUND + DASH + BLEND + DASH + MODE;
static override key = BACKGROUND + DASH + BLEND + DASH + MODE;
}
2 changes: 1 addition & 1 deletion src/background-clip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Style } from '@master/style';

export class BackgroundClipStyle extends Style {
static override prefixes = /^(bg|background)-clip:/;
override get properties(): { [key: string]: any } {
override get props(): { [key: string]: any } {
return {
'-webkit-background-clip': this,
'background-clip': this
Expand Down
2 changes: 1 addition & 1 deletion src/background-color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { BACKGROUND, COLOR, DASH } from './constants/css-property-keyword';

export class BackgroundColorStyle extends Style {
static override prefixes = /^(bg-color:|(bg|background):transparent)/;
static override property = BACKGROUND + DASH + COLOR;
static override key = BACKGROUND + DASH + COLOR;
}
2 changes: 1 addition & 1 deletion src/background-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { BACKGROUND, DASH, IMAGE } from './constants/css-property-keyword';

export class BackgroundImageStyle extends Style {
static override prefixes = /^bg-image:/;
static override property = BACKGROUND + DASH + IMAGE;
static override key = BACKGROUND + DASH + IMAGE;
}
2 changes: 1 addition & 1 deletion src/background-origin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { BACKGROUND, DASH, ORIGIN } from './constants/css-property-keyword';

export class BackgroundOriginStyle extends Style {
static override prefixes = /^bg-origin:/;
static override property = BACKGROUND + DASH + ORIGIN;
static override key = BACKGROUND + DASH + ORIGIN;
}
2 changes: 1 addition & 1 deletion src/background-position.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { BACKGROUND, DASH, POSITION } from './constants/css-property-keyword';

export class BackgroundPositionStyle extends Style {
static override prefixes = /^(bg-position:|(bg|background):(top|bottom|right|left|center))/;
static override property = BACKGROUND + DASH + POSITION;
static override key = BACKGROUND + DASH + POSITION;
}
2 changes: 1 addition & 1 deletion src/background-repeat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { BACKGROUND, DASH, REPEAT } from './constants/css-property-keyword';

export class BackgroundRepeatStyle extends Style {
static override prefixes = /^(bg-repeat:|(bg|background):(repeat|no-repeat|repeat-x|repeat-y))/;
static override property = BACKGROUND + DASH + REPEAT;
static override key = BACKGROUND + DASH + REPEAT;
}
2 changes: 1 addition & 1 deletion src/background-size.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { BACKGROUND, DASH, SIZE } from './constants/css-property-keyword';

export class BackgroundSizeStyle extends Style {
static override prefixes = /^(bg-size:|(bg|background):(auto|cover|contain))/;
static override property = BACKGROUND + DASH + SIZE;
static override key = BACKGROUND + DASH + SIZE;
}
2 changes: 1 addition & 1 deletion src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { BACKGROUND } from './constants/css-property-keyword';

export class BackgroundStyle extends Style {
static override prefixes = /^bg:/;
static override property = BACKGROUND;
static override key = BACKGROUND;
}
2 changes: 1 addition & 1 deletion src/border-collapse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { BORDER, COLLAPSE, DASH } from './constants/css-property-keyword';

export class BorderCollapseStyle extends Style {
static override prefixes = /^b-collapse:/;
static override property = BORDER + DASH + COLLAPSE;
static override key = BORDER + DASH + COLLAPSE;
}
2 changes: 1 addition & 1 deletion src/border-color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { BORDER, COLOR, DASH } from './constants/css-property-keyword';

export class BorderColorStyle extends Style {
static override prefixes = /^b-color:/;
static override property = BORDER + DASH + COLOR;
static override key = BORDER + DASH + COLOR;
}
2 changes: 1 addition & 1 deletion src/border-radius.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class BorderRadiusStyle extends Style {
[ROUNDED]: '1e9em',
[ROUND]: '50%'
}
override get properties(): { [key: string]: any } {
override get props(): { [key: string]: any } {
if (this.prefix) {
const suffix = this.prefix.slice(1, -1);
switch (suffix) {
Expand Down
2 changes: 1 addition & 1 deletion src/border-style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { BORDER, DASH, STYLE } from './constants/css-property-keyword';

export class BorderStyleStyle extends Style {
static override prefixes = /^b-style:|b(order)?:dotted|dashed|solid|double|groove|ridge|inset|outset/;
static override property = BORDER + DASH + STYLE;
static override key = BORDER + DASH + STYLE;
}
2 changes: 1 addition & 1 deletion src/border-width.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { BORDER, DASH, WIDTH } from './constants/css-property-keyword';

export class BorderWidthStyle extends Style {
static override prefixes = /^b-width:|b(order)?:[0-9]((?!;).)*$/;
static override property = BORDER + DASH + WIDTH;
static override key = BORDER + DASH + WIDTH;
}
2 changes: 1 addition & 1 deletion src/border.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { BORDER } from './constants/css-property-keyword';

export class BorderStyle extends Style {
static override prefixes = /^b:/;
static override property = BORDER;
static override key = BORDER;
}
2 changes: 1 addition & 1 deletion src/box-decoration-break.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { BOX, BREAK, DASH, DECORATION } from './constants/css-property-keyword';

export class BoxDecorationBreakStyle extends Style {
static override prefixes = /^box:(slice|clone)/;
static override property = BOX + DASH + DECORATION + DASH + BREAK;
static override key = BOX + DASH + DECORATION + DASH + BREAK;
}
2 changes: 1 addition & 1 deletion src/box-shadow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { BOX, DASH, SHADOW } from './constants/css-property-keyword';

export class BoxShadowStyle extends Style {
static override prefixes = /^shadow:/;
static override property = BOX + DASH + SHADOW;
static override key = BOX + DASH + SHADOW;
}
2 changes: 1 addition & 1 deletion src/box-sizing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Style } from '@master/style';

export class BoxSizingStyle extends Style {
static override prefixes = /^box:(content|border)/;
static override property = BOX + DASH + SIZING;
static override key = BOX + DASH + SIZING;
static override values = {
content: CONTENT + DASH + BOX,
border: BORDER + DASH + BOX
Expand Down
2 changes: 1 addition & 1 deletion src/break-after.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { Style } from '@master/style';
import { AFTER, BREAK, DASH } from './constants/css-property-keyword';

export class BreakAfterStyle extends Style {
static override property = BREAK + DASH + AFTER;
static override key = BREAK + DASH + AFTER;
}
2 changes: 1 addition & 1 deletion src/break-before.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { Style } from '@master/style';
import { BEFORE, BREAK, DASH } from './constants/css-property-keyword';

export class BreakBeforeStyle extends Style {
static override property = BREAK + DASH + BEFORE;
static override key = BREAK + DASH + BEFORE;
}
2 changes: 1 addition & 1 deletion src/break-inside.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { Style } from '@master/style';
import { BREAK, DASH, INSIDE } from './constants/css-property-keyword';

export class BreakInsideStyle extends Style {
static override property = BREAK + DASH + INSIDE;
static override key = BREAK + DASH + INSIDE;
}
2 changes: 1 addition & 1 deletion src/caret-color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { Style } from '@master/style';
import { CARET, COLOR, DASH } from './constants/css-property-keyword';

export class CaretColorStyle extends Style {
static override property = CARET + DASH + COLOR;
static override key = CARET + DASH + COLOR;
}
2 changes: 1 addition & 1 deletion src/clear.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { CLEAR } from './constants/css-property-keyword';
import { Style } from '@master/style';

export class ClearStyle extends Style {
static override property = CLEAR;
static override key = CLEAR;
}
2 changes: 1 addition & 1 deletion src/column-span.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { Style } from '@master/style';

export class ColumnSpanStyle extends Style {
static override prefixes = /^col-span:/;
static override property = COLUMN + DASH + SPAN;
static override key = COLUMN + DASH + SPAN;
}
2 changes: 1 addition & 1 deletion src/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { Style } from '@master/style';
import { CONTENT } from './constants/css-property-keyword';

export class ContentStyle extends Style {
static override property = CONTENT;
static override key = CONTENT;
}
2 changes: 1 addition & 1 deletion src/cursor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { Style } from '@master/style';
import { CURSOR } from './constants/css-property-keyword';

export class CursorStyle extends Style {
static override property = CURSOR;
static override key = CURSOR;
}
2 changes: 1 addition & 1 deletion src/display.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Style } from '@master/style';

export class DisplayStyle extends Style {
static override prefixes = /^d:/;
static override property = DISPLAY;
static override key = DISPLAY;
static override semantics = {
'hidden': NONE
}
Expand Down
2 changes: 1 addition & 1 deletion src/fill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { FILL } from './constants/css-property-keyword';
import { Style } from '@master/style';

export class FillStyle extends Style {
static override property = FILL;
static override key = FILL;
}
2 changes: 1 addition & 1 deletion src/filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { FILTER } from './constants/css-property-keyword';
import { Style } from '@master/style';

export class FilterStyle extends Style {
static override property = FILTER;
static override key = FILTER;
}
2 changes: 1 addition & 1 deletion src/flex-basis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { BASIS, DASH, FLEX, SIZING_VALUES } from './constants/css-property-keywo
import { Style } from '@master/style';

export class FlexBasisStyle extends Style {
static override property = FLEX + DASH + BASIS;
static override key = FLEX + DASH + BASIS;
static override values = SIZING_VALUES;
}
2 changes: 1 addition & 1 deletion src/flex-direction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Style } from '@master/style';

export class FlexDirectionStyle extends Style {
static override prefixes = /^flex:((row|col|column)(-reverse)?)/;
static override property = FLEX + DASH + DIRECTION;
static override key = FLEX + DASH + DIRECTION;
static override values = {
col: COLUMN,
'col-reverse': COLUMN + DASH + REVERSE
Expand Down
Loading

0 comments on commit 8ce9118

Please sign in to comment.