Skip to content

Commit

Permalink
feat: add TS definitions for css literals (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Nov 9, 2020
1 parent 2a8cd8f commit 43a4ba6
Show file tree
Hide file tree
Showing 14 changed files with 61 additions and 0 deletions.
10 changes: 10 additions & 0 deletions all-imports.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export * from './mixins/field-button.js';
export * from './mixins/menu-overlay.js';
export * from './mixins/overlay.js';
export * from './mixins/required-field.js';
export * from './badge.js';
export * from './color.js';
export * from './sizing.js';
export * from './spacing.js';
export * from './style.js';
export * from './typography.js';
3 changes: 3 additions & 0 deletions badge.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import {CSSResult} from 'lit-element';

export const badge: CSSResult;
2 changes: 2 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
"license": "Apache-2.0",
"ignore": [
"**/.*",
"*.d.ts",
"mixins/*.d.ts",
"node_modules",
"bower_components",
"gulpfile.js",
Expand Down
7 changes: 7 additions & 0 deletions color.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {CSSResult} from 'lit-element';

export const colorBase: CSSResult;

export const color: CSSResult;

export const colorLegacy: CSSResult;
11 changes: 11 additions & 0 deletions magi-p3-post.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
files: [
'all-imports.js'
],
from: [
/import '\.\/(.+)\.js';/g
],
to: [
`import './$1.js';\nexport * from './$1.js';`
]
};
3 changes: 3 additions & 0 deletions mixins/field-button.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import {CSSResult} from 'lit-element';

export const fieldButton: CSSResult;
3 changes: 3 additions & 0 deletions mixins/menu-overlay.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import {CSSResult} from 'lit-element';

export const menuOverlay: CSSResult;
3 changes: 3 additions & 0 deletions mixins/overlay.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import {CSSResult} from 'lit-element';

export const overlay: CSSResult;
3 changes: 3 additions & 0 deletions mixins/required-field.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import {CSSResult} from 'lit-element';

export const requiredField: CSSResult;
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"homepage": "https://vaadin.com/components",
"files": [
"*.js",
"*.d.ts",
"mixins/*.js",
"mixins/*.d.ts",
"presets/*.js",
"!wdio.conf.js"
],
Expand Down
3 changes: 3 additions & 0 deletions sizing.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import {CSSResult} from 'lit-element';

export const sizing: CSSResult;
3 changes: 3 additions & 0 deletions spacing.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import {CSSResult} from 'lit-element';

export const spacing: CSSResult;
3 changes: 3 additions & 0 deletions style.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import {CSSResult} from 'lit-element';

export const style: CSSResult;
5 changes: 5 additions & 0 deletions typography.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {CSSResult} from 'lit-element';

export const font: CSSResult;

export const typography: CSSResult;

0 comments on commit 43a4ba6

Please sign in to comment.