dothtml-interfaces 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -0
- package/package.json +1 -1
- package/src/i-dot-css.d.ts +45 -45
- package/src/index.d.ts +3 -2
package/README.md
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/src/i-dot-css.d.ts
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
// Building blocks.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
export type BasicCommonValues = "inherit"|"initial"|"unset"|"revert"|"revert-layer";
|
|
3
|
+
export type AbsoluteUnits = "cm"|"mm"|"in"|"px"|"pt"|"pc";
|
|
4
|
+
export type RelativeUnits = "em"|"ex"|"ch"|"rem"|"vw"|"vh"|"vmin"|"vmax"|"%";
|
|
5
|
+
export type AllUnits = AbsoluteUnits|RelativeUnits;
|
|
6
|
+
export type OptionalWhitespace = ""|" ";
|
|
7
|
+
export type UrlType = `url('${string}')`;
|
|
8
|
+
export type NumericLength = number|`${number}${AllUnits}`;
|
|
9
|
+
export type NumericLengthOrAuto = NumericLength|"auto";
|
|
10
|
+
export type AngleUnits = "deg"|"turn"|"rad"|"grad";
|
|
11
|
+
export type NumericAngle = number|`${number}${AngleUnits}`;
|
|
12
|
+
export type Percentage = number|`${number}%`; // Used for filters.
|
|
13
13
|
|
|
14
14
|
// ts starts complaining about the complexity of the type :(
|
|
15
15
|
//export declare type DigitStr = "0"|"1"|"2"|"3"|"4"|"5"|"6"|"7"|"8"|"9";
|
|
16
16
|
// export declare type HexStr = DigitStr|"A"|"B"|"C"|"D"|"E"|"F"|"a"|"b"|"c"|"d"|"e"|"f";
|
|
17
17
|
|
|
18
18
|
// Types
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
19
|
+
export type AppearanceValues = BasicCommonValues|"none"|"menulist-button"|"textfield"|"button"|"searchfield"|"textarea"|"push-button"|"slider-horizontal"|"checkbox"|"radio"|"square-button"|"menulist"|"listbox"|"meter"|"progress-bar"|"scrollbarbutton-up"|"button-bevel"|"media-mute-button"|"caret";
|
|
20
|
+
export type BackgroundAttachmentValues = BasicCommonValues|"scroll"|"fixed"|"local";
|
|
21
|
+
export type BackgroundRepeatValues = BasicCommonValues|"no-repeat"|"repeat"|"space"|"round";
|
|
22
|
+
export type BackgroundOriginValues = BasicCommonValues|"padding-box"|"border-box"|"content-box";
|
|
23
|
+
export type BackgroundSizeValues = BasicCommonValues|"auto"|NumericLength|"cover"|"contain";
|
|
24
|
+
export type BackfaceVisibilityValues = BasicCommonValues|"visible"|"hidden";
|
|
25
|
+
export type BorderStyles = BasicCommonValues|"dotted"|"dashed"|"solid"|"double"|"groove"|"ridge"|"inset"|"outset"|"none"|"hidden";
|
|
26
|
+
export type ColorName = BasicCommonValues|"aliceblue"|"antiquewhite"|"aqua"|"aquamarine"|"azure"|"beige"|"bisque"|"black"|"blanchedalmond"|"blue"|"blueviolet"|"brown"|"burlywood"|"cadetblue"|"chartreuse"|"chocolate"|"coral"|"cornflowerblue"|"cornsilk"|"crimson"|"cyan"|"darkblue"|"darkcyan"|"darkgoldenrod"|"darkgray"|"darkgrey"|"darkgreen"|"darkkhaki"|"darkmagenta"|"darkolivegreen"|"darkorange"|"darkorchid"|"darkred"|"darksalmon"|"darkseagreen"|"darkslateblue"|"darkslategray"|"darkslategrey"|"darkturquoise"|"darkviolet"|"deeppink"|"deepskyblue"|"dimgray"|"dimgrey"|"dodgerblue"|"firebrick"|"floralwhite"|"forestgreen"|"fuchsia"|"gainsboro"|"ghostwhite"|"gold"|"goldenrod"|"gray"|"grey"|"green"|"greenyellow"|"honeydew"|"hotpink"|"indianred"|"indigo"|"ivory"|"khaki"|"lavender"|"lavenderblush"|"lawngreen"|"lemonchiffon"|"lightblue"|"lightcoral"|"lightcyan"|"lightgoldenrodyellow"|"lightgray"|"lightgrey"|"lightgreen"|"lightpink"|"lightsalmon"|"lightseagreen"|"lightskyblue"|"lightslategray"|"lightslategrey"|"lightsteelblue"|"lightyellow"|"lime"|"limegreen"|"linen"|"magenta"|"maroon"|"mediumaquamarine"|"mediumblue"|"mediumorchid"|"mediumpurple"|"mediumseagreen"|"mediumslateblue"|"mediumspringgreen"|"mediumturquoise"|"mediumvioletred"|"midnightblue"|"mintcream"|"mistyrose"|"moccasin"|"navajowhite"|"navy"|"oldlace"|"olive"|"olivedrab"|"orange"|"orangered"|"orchid"|"palegoldenrod"|"palegreen"|"paleturquoise"|"palevioletred"|"papayawhip"|"peachpuff"|"peru"|"pink"|"plum"|"powderblue"|"purple"|"rebeccapurple"|"red"|"rosybrown"|"royalblue"|"saddlebrown"|"salmon"|"sandybrown"|"seagreen"|"seashell"|"sienna"|"silver"|"skyblue"|"slateblue"|"slategray"|"slategrey"|"snow"|"springgreen"|"steelblue"|"tan"|"teal"|"thistle"|"tomato"|"turquoise"|"violet"|"wheat"|"white"|"whitesmoke"|"yellow"|"yellowgreen";
|
|
27
|
+
export type DisplayValues = BasicCommonValues|"inline"|"block"|"contents"|"flex"|"grid"|"inline-block"|"inline-flex"|"inline-grid"|"inline-table"|"list-item"|"run-in"|"table"|"table-caption"|"table-column-group"|"table-header-group"|"table-footer-group"|"table-row-group"|"table-cell"|"table-column"|"table-row"|"none";
|
|
28
|
+
export type DirectionValues = BasicCommonValues|"ltr"|"rtl";
|
|
29
|
+
export type FontStyleValues = BasicCommonValues|"normal"|"italic"|"oblique";
|
|
30
|
+
export type FontVariantValues = BasicCommonValues|"normal"|"small-caps";
|
|
31
|
+
export type FontVariantCapsValues = FontVariantValues|"all-small-caps"|"petite-caps"|"all-petite-caps"|"unicase"|"titling-caps";
|
|
32
|
+
export type FontWeightValues = BasicCommonValues|number|"normal"|"bold"|"bolder"|"lighter";
|
|
33
|
+
export type LengthProp = BasicCommonValues|"maxHeight"|"minHeight"|"top"|"bottom"|"height"|"maxHidth"|"minWidth"|"right"|"left"|"width"|"margin"|"marginTop"|"marginBottom"|"marginLeft"|"marginRight"|"outlineOffset"|"padding"|"paddingTop"|"paddingBottom"|"paddingLeft"|"paddingRight"|"lineHeight"|"flexBasis"|"fontSize";
|
|
34
|
+
export type OutlineWidthValues = BasicCommonValues|"medium"|"thin"|"thick"|NumericLength;
|
|
35
|
+
export type PositionNames = BasicCommonValues|"static"|"relative"|"fixed"|"absolute"|"sticky";
|
|
36
|
+
|
|
37
|
+
export type FlexDirectionNames = BasicCommonValues|"row"|"row-reverse"|"column"|"column-reverse";
|
|
38
|
+
export type FlexWrapNames = BasicCommonValues|"nowrap"|"wrap"|"wrap-reverse";
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
// Advanced formatted types.
|
|
42
|
-
|
|
42
|
+
export type ColorFormat = BasicCommonValues|ColorName|number|`#${string}`|`rgb(${number},${OptionalWhitespace}${number},${OptionalWhitespace}${number})`|`rgba(${number},${OptionalWhitespace}${number},${OptionalWhitespace}${number},${OptionalWhitespace}${number})`|`hsl(${number},${OptionalWhitespace}${number}%,${OptionalWhitespace}${number}%)`|`hsla(${number},${OptionalWhitespace}${number}%,${OptionalWhitespace}${number}%,${OptionalWhitespace}${number})`;
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
export type BackgroundRepeatValues2d = BackgroundRepeatValues|"repeat-x"|"repeat-y"|`${BackgroundRepeatValues} ${BackgroundRepeatValues}`;
|
|
45
|
+
export type BorderShorthand = BasicCommonValues|`${BorderStyles}`|`${BorderStyles} ${ColorFormat}`|`${number}${AllUnits} ${BorderStyles} ${ColorFormat}`;
|
|
46
|
+
export type BackgroundImageFormat = BasicCommonValues|UrlType|`${UrlType}, ${UrlType}`;
|
|
47
|
+
export type BackgroundPositionShorthand2D = BasicCommonValues|`${BasicCommonValues|number} ${BasicCommonValues|number}`|`${number}% ${number}%`|`${"left"|"right"|"center"} ${"top"|"center"|"bottom"}`;
|
|
48
|
+
export type BackgroundShorthand = BasicCommonValues|`${ColorFormat} ${UrlType} ${BackgroundRepeatValues} ${BackgroundPositionShorthand2D}`;
|
|
49
|
+
export type FlexFlowShorthand = BasicCommonValues|`${FlexDirectionNames} ${FlexWrapNames}`;
|
|
50
|
+
export type FlexShorthand = BasicCommonValues|`${BasicCommonValues|number} ${BasicCommonValues|number} ${BasicCommonValues|`${number}${AllUnits}`}`;
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
interface IDotcssProp{
|
|
@@ -991,27 +991,27 @@ export default interface IDotCss extends IDotcssProp{
|
|
|
991
991
|
version: string;
|
|
992
992
|
}
|
|
993
993
|
|
|
994
|
-
interface IDotcssAnimatable<T> extends IDotcssProp{
|
|
994
|
+
export interface IDotcssAnimatable<T> extends IDotcssProp{
|
|
995
995
|
(value: T): IDotcssProp;
|
|
996
996
|
|
|
997
997
|
animate(value: number|string, duration: number, style: "ease", complete: Function): IDotcssProp;
|
|
998
998
|
}
|
|
999
999
|
|
|
1000
|
-
interface IDotcssAnimatableColor extends IDotcssProp{
|
|
1000
|
+
export interface IDotcssAnimatableColor extends IDotcssProp{
|
|
1001
1001
|
(value: ColorFormat|Array<number>): IDotcssProp;
|
|
1002
1002
|
(r: number, g: number, b: number, a?: number): IDotcssProp;
|
|
1003
1003
|
|
|
1004
1004
|
animate(value: ColorFormat|Array<number>, duration: number, style: "ease", complete: Function): IDotcssProp;
|
|
1005
1005
|
}
|
|
1006
1006
|
|
|
1007
|
-
interface HideParams{
|
|
1007
|
+
export interface HideParams{
|
|
1008
1008
|
duration?: number,
|
|
1009
1009
|
complete?: Function,
|
|
1010
1010
|
hideStyle?: "normal"|"fade"|"shrink",
|
|
1011
1011
|
animationStyle?: "ease",
|
|
1012
1012
|
}
|
|
1013
1013
|
|
|
1014
|
-
interface ShowParams{
|
|
1014
|
+
export interface ShowParams{
|
|
1015
1015
|
duration?: number,
|
|
1016
1016
|
display?: DisplayValues, // TODO: potential to expand this.
|
|
1017
1017
|
complete?: Function,
|
|
@@ -1022,7 +1022,7 @@ interface ShowParams{
|
|
|
1022
1022
|
animationStyle?: "ease",
|
|
1023
1023
|
}
|
|
1024
1024
|
|
|
1025
|
-
interface TransformationBuilder {
|
|
1025
|
+
export interface TransformationBuilder {
|
|
1026
1026
|
// TODO: it would be cool if this didn't have to return anything, and the trns parameter that's passed in would just retain a memory of the transformations.
|
|
1027
1027
|
(trns: ITransformationContext): ITransformationContext|string;
|
|
1028
1028
|
}
|
|
@@ -1178,7 +1178,7 @@ export type ITransformationContext = {
|
|
|
1178
1178
|
perspectiveVMin: (v: number)=>ITransformationContext;
|
|
1179
1179
|
}
|
|
1180
1180
|
|
|
1181
|
-
interface FilterBuilder{
|
|
1181
|
+
export interface FilterBuilder{
|
|
1182
1182
|
(filtCtx: IFilterContext): IFilterContext|string;
|
|
1183
1183
|
}
|
|
1184
1184
|
|
package/src/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
export { default as IDotCss } from "./i-dot";
|
|
2
|
+
export { default as IDotCss } from "./i-dot-css";
|
|
3
|
+
export * from "./i-dot-css";
|
|
3
4
|
|
|
4
|
-
export
|
|
5
|
+
export * from "./i-dot";
|
|
5
6
|
|
|
6
7
|
export { default as IComponent } from "./i-component";
|
|
7
8
|
|