Comparing version 2.3.0 to 2.3.1
{ | ||
"name": "csstype", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"main": "", | ||
@@ -19,4 +19,4 @@ "types": "index.d.ts", | ||
"jest": "^22.2.1", | ||
"mdn-browser-compat-data": "git+https://github.com/mdn/browser-compat-data.git#3ab7b502352239d2131571d7463e098d2317532d", | ||
"mdn-data": "git+https://github.com/mdn/data.git#c5fc95e780d14f4f949e9f26675bb6f0ae376ea0", | ||
"mdn-browser-compat-data": "git+https://github.com/mdn/browser-compat-data.git#bdff84a8265089c04a56e702c4a6287cea734b53", | ||
"mdn-data": "git+https://github.com/mdn/data.git#aac67bea6ebf68e752a71ef0aca20ff838168101", | ||
"prettier": "^1.10.2", | ||
@@ -23,0 +23,0 @@ "ts-node": "^5.0.1", |
130
README.md
@@ -25,11 +25,3 @@ # CSSType | ||
* [Style types](#style-types) | ||
* [`Properties`](#properties) | ||
* [`PropertiesHyphen`](#propertieshyphen) | ||
* [`PropertiesFallback`](#propertiesfallback) | ||
* [`PropertiesHyphenFallback`](#propertieshyphenfallback) | ||
* [At-rule types](#at-rule-types) | ||
* [`@counter-style`](#counter-style) | ||
* [`@font-face`](#font-face) | ||
* [`@page`](#page) | ||
* [`@viewport`](#viewport) | ||
* [Pseudo types](#pseudo-types) | ||
@@ -39,82 +31,33 @@ * [Usage](#usage) | ||
* [Version 2.0](#version-20) | ||
* [Contributing](#contributing) | ||
* [Commands](#commands) | ||
## Style types | ||
All properties are categorized in different uses and in several technical variations to provide typings that suits as many as possible. | ||
Properties are categorized in different uses and in several technical variations to provide typings that suits as many as possible. | ||
Categories: | ||
* `Standard` - Current properties | ||
* `Vendor` - Vendor prefixed properties | ||
* `Obsolete` - Removed or deprecated properties | ||
* `Svg` - SVG-specific properties | ||
Variations: | ||
* _Default variation_ - JavaScript (camel) cased property names | ||
* `Hyphen` - CSS (kebab) cased property names | ||
* `Fallback` - Also accepts array of values e.g. `string | string[]` | ||
All interfaces has one optional generic argument to define length. It defaults to `string | 0` because `0` is the [only unitless length](https://www.w3.org/TR/REC-CSS2/syndata.html#length-units). You can specify this, e.g. `string | number`, for platforms and libraries that accepts any numeric value as length with a specific unit. | ||
### `Properties` | ||
| | _Default_ | `Hyphen` | `Fallback` | `HyphenFallback` | | ||
| -------------- | -------------------- | -------------------------- | ---------------------------- | ---------------------------------- | | ||
| **_All_** | `Properties` | `PropertiesHyphen` | `PropertiesFallback` | `PropertiesHyphenFallback` | | ||
| **`Standard`** | `StandardProperties` | `StandardPropertiesHyphen` | `StandardPropertiesFallback` | `StandardPropertiesHyphenFallback` | | ||
| **`Vendor`** | `VendorProperties` | `VendorPropertiesHyphen` | `VendorPropertiesFallback` | `VendorPropertiesHyphenFallback` | | ||
| **`Obsolete`** | `ObsoleteProperties` | `ObsoletePropertiesHyphen` | `ObsoletePropertiesFallback` | `ObsoletePropertiesHyphenFallback` | | ||
| **`Svg`** | `SvgProperties` | `SvgPropertiesHyphen` | `SvgPropertiesFallback` | `SvgPropertiesHyphenFallback` | | ||
CSS properties interface with **camel** cased property names: | ||
Categories: | ||
Extends: | ||
* **_All_** - Includes `Standard`, `Vendor`, `Obsolete` and `Svg` | ||
* **`Standard`** - Current properties and extends subcategories `StandardLonghand` and `StandardShorthand` _(e.g. `StandardShorthandProperties`)_ | ||
* **`Vendor`** - Vendor prefixed properties and extends subcategories `VendorLonghand` and `VendorShorthand` _(e.g. `VendorShorthandProperties`)_ | ||
* **`Obsolete`** - Removed or deprecated properties | ||
* **`Svg`** - SVG-specific properties | ||
* `StandardProperties` | ||
* `StandardLonghandProperties` | ||
* `StandardShorthandProperties` | ||
* `VendorProperties` | ||
* `VendorLonghandProperties` | ||
* `VendorShorthandProperties` | ||
* `ObsoleteProperties` | ||
* `SvgProperties` | ||
Variations: | ||
### `PropertiesHyphen` | ||
* **_Default_** - JavaScript (camel) cased property names | ||
* **`Hyphen`** - CSS (kebab) cased property names | ||
* **`Fallback`** - Also accepts array of values e.g. `string | string[]` | ||
CSS properties interface with **kebab** cased property names: | ||
Extends: | ||
* `StandardPropertiesHyphen` | ||
* `StandardLonghandPropertiesHyphen` | ||
* `StandardShorthandPropertiesHyphen` | ||
* `VendorPropertiesHyphen` | ||
* `VendorLonghandPropertiesHyphen` | ||
* `VendorShorthandPropertiesHyphen` | ||
* `ObsoletePropertiesHyphen` | ||
* `SvgPropertiesHyphen` | ||
### `PropertiesFallback` | ||
Equals to **`Properties`** but also allows array of values: | ||
Extends: | ||
* `StandardPropertiesFallback` | ||
* `StandardLonghandPropertiesFallback` | ||
* `StandardShorthandPropertiesFallback` | ||
* `VendorPropertiesFallback` | ||
* `VendorLonghandPropertiesFallback` | ||
* `VendorShorthandPropertiesFallback` | ||
* `ObsoletePropertiesFallback` | ||
* `SvgPropertiesFallback` | ||
### `PropertiesHyphenFallback` | ||
Equals to **`PropertiesHyphen`** but also allows array of values: | ||
Extends: | ||
* `StandardPropertiesHyphenFallback` | ||
* `StandardLonghandPropertiesHyphenFallback` | ||
* `StandardShorthandPropertiesHyphenFallback` | ||
* `VendorPropertiesHyphenFallback` | ||
* `VendorLonghandPropertiesHyphenFallback` | ||
* `VendorShorthandPropertiesHyphenFallback` | ||
* `ObsoletePropertiesHyphenFallback` | ||
* `SvgPropertiesHyphenFallback` | ||
## At-rule types | ||
@@ -124,30 +67,9 @@ | ||
### `@counter-style` | ||
| | _Default_ | `Hyphen` | `Fallback` | `HyphenFallback` | | ||
| -------------------- | -------------- | -------------------- | ---------------------- | ---------------------------- | | ||
| **`@counter-style`** | `CounterStyle` | `CounterStyleHyphen` | `CounterStyleFallback` | `CounterStyleHyphenFallback` | | ||
| **`@font-face`** | `FontFace` | `FontFaceHyphen` | `FontFaceFallback` | `FontFaceHyphenFallback` | | ||
| **`@page`** | `Page` | `PageHyphen` | `PageFallback` | `PageHyphenFallback` | | ||
| **`@viewport`** | `Viewport` | `ViewportHyphen` | `ViewportFallback` | `ViewportHyphenFallback` | | ||
* `CounterStyle` | ||
* `CounterStyleFallback` | ||
* `CounterStyleHyphen` | ||
* `CounterStyleHyphenFallback` | ||
### `@font-face` | ||
* `FontFace` | ||
* `FontFaceFallback` | ||
* `FontFaceHyphen` | ||
* `FontFaceHyphenFallback` | ||
### `@page` | ||
* `Page` | ||
* `PageFallback` | ||
* `PageHyphen` | ||
* `PageHyphenFallback` | ||
### `@viewport` | ||
* `Viewport` | ||
* `ViewportFallback` | ||
* `ViewportHyphen` | ||
* `ViewportHyphenFallback` | ||
## Pseudo types | ||
@@ -154,0 +76,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
485526
4507
219